Bluetooth Proximity Lock On Ubuntu 9.10

Posted: 27th January 2010 by Joep Cremers in Software
Tags: , , ,

Installing BlueProximity

Basically BlueProximity is a tool to detect your presence near your computer. It can automatically lock your computer once you leave it and unlock it when you are back. I’m using a HTC Hero (Android 1.5) to connect with Ubuntu 9.10. Without Blueman Bluetooth Manager my phone does not auto-connect and the Measured atm in BlueProximity keeps jumping from 0 to 255.

$ sudo apt-get install blueproximity
$ wget http://ovh.dl.sourceforge.net/sourceforge/blueproximity/blueproximity_1.2.4-0ubuntu1_all.deb
$ sudo dpkg -i blueproximity_1.2.4-0ubuntu1_all.deb

Go to Applications > Ubuntu Software Center > Install Blueman Bluetooth Manager

Pairing Ubuntu With Bluetooth device

System > Preferences > Bluetooth > Click Set up new device…

Make sure your phone is “discoverable” and click Forward.

Select your phone and click Forward

Enter your PIN on the phone.

Ubuntu is now successfully paired with a new device.

Go to System > Preferences > Bluetooth Manager and check if your device is connected.

Configuring BlueProximity

Go to Accessories > BlueProximity > Bluetooth Device > Scan for devices

Select your device and click Scan channels on device.

Select a channel that is usable. On my device channel 2 is usable, but will not work with BlueProximity. Just try a few..

Go to Proximity Details. These are my settings, but depending on your bluetooth adapter and phone you may want to tweak this.

If your phone isn’t connected to a usable RFCOMM channel, the Measured atm keeps jumping from 0 to 255.

You can set your locking/unlocking commands.For Ubuntu use the gnome-screensaver-command

You can also attach a script that stops your music and updates the pidgin status.

Now reboot your system. If you want to change settings you have to close the BlueProximity Preferences screen, because it will run in simulation mode (locking disabeld). At first I didn’t see this and the system would not lock..

Leave it – it’s locked, come back – it’s back too…

Share or Bookmark:
  • StumbleUpon
  • Digg
  • del.icio.us
  • Reddit
  • Twitter
  • Technorati
  • Facebook
  • LinkedIn
  • Hyves
  • Google Bookmarks
  • Add to favorites
Related posts:
  1. Install Ubuntu 9.04 On PS3
  2. Install Ubuntu 9.10 On PS3
  3. Connect To Citrix Access Gateway On Ubuntu 9.10
  4. Stripped Ubuntu
  5. Ubuntu Time Server Configuration Using Commandline