[gnome-bluetooth] using bluetooth for remote control

Damien Covey damien at covey.net.au
Mon Oct 20 16:19:36 BST 2003

I've gotten this to work with Xmms which is nice.  Now I am trying to 
modify it to work with Rhythmbox.  I dont think it will be too hard to 
have it change songs and pause.  My plan is to have it fake a keypress. 
  Herein lies my problem.  I do not know how to fake a keypress in Ruby. 
  Actually, it need not be in Ruby, a command line tool would do, 
anything at the moment would be better than what I have found.

By generating a keypress (scancode 153) it will be picked up by 
Rhythmbox as one of the 'multimedia' keys on my keyboard.  Bastien, I 
thought you might have the know how here as  you wrote Acme if I recall 
correctly.  So, can anyone help with programmatically generating a 
keypress?  I know this is not completely bluetooth related, but it is 
in a round about way and I haven't gotten any answers elsewhere I have 


On 06/10/2003, at 9:49 PM, Bastien Nocera wrote:

> On Mon, 2003-10-06 at 12:45, Damien Covey wrote:
>> I've just got myself a usb bluetooth transiever and would like to know
>> if it is possible to use this device as some sort of remote
>> controller.  I would like to be able to send messages (maybe via
>> bluetooth phone) to the device and have the computer resond by donig
>> things like changing songs in Rhythmbox or muting the sound etc.
>> Pretty simple sort of actions, but nice to be able to do from the
>> lounge room.  Maybe even launching an application such as rhythmbox or
>> totem etc.
>> So, does anyone know if this is either possible at the moment or maybe
>> in the near future, and perhaps quicker with more resouces :)
> You might want to look at:
> http://linuxbrit.co.uk/bluexmms/
> If somebody knows something similar for Nokia phones, I'd be grateful 
> to
> hear about it :)
> Cheers
> ---
> Bastien Nocera <hadess at hadess.net>
> It was a working class tradition, like fathers chasing kids around with
> their power tools.

More information about the gnome-bluetooth mailing list