Action On Headphone Unplug?

Alexander Stephen Thomas Ross maillist_qi-hardware at
Mon Sep 3 19:43:37 EDT 2012

Is it possible to run a script when the headphones are unplugged? My 
idea is that, when your using ones Nano Note for playing music on a 
journey and then arrives at ones destination. Instead of quitting the 
music app and initiating power off manually you could have a automatic 
countdown to power-off, so if you accidentally or temporary unplug the 
headphones/line-out there is a chance to abort power-off sequence. Which 
is done by plugging the jack plug back into the audio out jack socket.

If this can be done. How does one monitor the audio out jack socket state?

More information about the discussion mailing list