|
maZZoo's blog very low frequency tech postings - 10 11 2005 |
||
home blog feed eyes info code [12] dect [4] hard [8] meta [5] security [5] jul 2009 (1) jun 2009 (1) jan 2009 (2) dec 2008 (1) oct 2008 (1) jan 2008 (1) oct 2007 (1) jun 2007 (1) feb 2007 (3) jan 2007 (3) nov 2006 (2) aug 2006 (2) jul 2006 (1) may 2006 (1) nov 2005 (2) oct 2005 (1) apr 2005 (2) mar 2005 (2) feb 2005 (1) jan 2005 (1) may 2004 (1) jan 2004 (1) apr 2003 (1) jan 2003 (1) |
Thu, 10 Nov 2005 /* * bluestep - locks your screen once you step out of the room, * provided that you took your bluetooth enabled * mobile phone with you. * * version 0.01 * * usage: bluestep <bdaddr> * * bdaddr - MAC address of the remote bluetooth device * * * (c) 2005 by Matthias Wenzel, licensed under GPLv2 * */ this tiny daemon peridically pings your bluetooth mobile, if doesn't get responses for a while it will lock your X desktop with "xscreensaver-command -lock". hints: figure out your <bdaddr> with:
# hciconfig hci0 up
# hcitool scan
Scanning ...
00:11:22:33:44:55 my_left_foot
#
try to ping your device (hciconfig/hcitool/l2ping come with your bluetooth libraries and tools):
# l2ping -c 3 00:11:22:33:44:55 Ping: 00:11:22:33:44:55 from 00:55:44:33:22:11 (data size 44) ... 0 bytes from 00:11:22:33:44:55 id 0 time 27.52ms 0 bytes from 00:11:22:33:44:55 id 1 time 32.05ms 0 bytes from 00:11:22:33:44:55 id 2 time 47.04ms 3 sent, 3 received, 0% loss
if the above command works you're probably set to run bluestep! |
||