[gnome-bluetooth] invoke screensaver when bluetooth device isremoved

Irving, Dave Dave.Irving at logicacmg.com
Wed May 4 17:18:11 BST 2005

One simple way is to l2ping the device. If you cant l2ping it, assume
its out of contact.
I did this recently to keep some dodgy text messaging software alive
which would crash for seemingly no reason every few hours. 
As soon as the program went down (monitoring the pid...) I set off an
l2ping every x seconds. 
As soon as this succeeded, I brought the program back up.
This served to keep the service available, and also bring it up
automatically when my phone was in range.

So you could set up a script which l2pings your device every few
As soon as this fails, assume the device is out of range and do an
xscreensaver-command -lock.
Might work.....


-----Original Message-----
From: gnome-bluetooth-bounces at lists.usefulinc.com
[mailto:gnome-bluetooth-bounces at lists.usefulinc.com] On Behalf Of Kim
Sent: 04 May 2005 17:10
To: gnome-bluetooth at lists.usefulinc.com
Subject: [gnome-bluetooth] invoke screensaver when bluetooth device

I would like to create some sort of app that starts the xscreensaver
(and locks the screen) whenever I leave the roam (having my bluetooth
device,mobile phone, in the pocket). 

Anyone that knows of such a program or has an idea on how to do it

   Kim Schulz   | Keen of Fundanemt? Want to share experieces with 
 Geek by nature | other users? join The Fundanemt User Group NOW!    
   schulz.dk    | http://www.fundausers.org    
gnome-bluetooth mailing list
gnome-bluetooth at lists.usefulinc.com

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

More information about the gnome-bluetooth mailing list