Bembel-B Blog

2007/03/04

Amarok Bluetooth Remote for Sony Ericsson K750i Mobile Phone

A few weeks ago I purchased a shiny new mobile phone, the Sony Ericsson K750i, to replace my good ole Sony Ericsson T610. A nice feature of the K750i are the freely configurable Bluetooth Remotes via BT HID, which are also available on other models.

Sony Ericsson K750i

So I wanted to remote control my favoured music player Amarok. I found a ready made HID configuration by tnt, but unfortunately the keystrokes where not the default Amarok global hotkeys’ ones and also conflict with the default Gnome shortcuts. With the help of Stefan Tomanek’s great website and the HID Usage Tables Reference (page 53) I modified the Remote Control keys to match the Amarok defaults.

A ready to use .hid file is now available from my Box.net share.

If I wasn’t lazy right now, I would provide the new HID profile ready to use – an uncompressed tar archive containing the GUI screen as JPEG image and the HID configuration as a UNIX style XML file. But I’ll have to add the GPL stuff first. So for now here’s the diff of the key codes:

[scheff@p512o amarok-hid]$ diff *kcf*
6c6
<         <KEYBOARD MODIFIERS = "0A" USAGEID = "56"/> <!-- REWIND -->
---
>         <KEYBOARD MODIFIERS = "05" USAGEID = "50"/> <!-- REWIND -->
11c11
<         <KEYBOARD MODIFIERS = "08" USAGEID = "06"/> <!-- PLAY -->
---
>         <KEYBOARD MODIFIERS = "05" USAGEID = "4A"/> <!-- PLAY -->
16c16
<         <KEYBOARD MODIFIERS = "0A" USAGEID = "57"/> <!-- FAST FORWARD -->
---
>         <KEYBOARD MODIFIERS = "05" USAGEID = "4F"/> <!-- FAST FORWARD -->
21c21
<         <KEYBOARD MODIFIERS = "08" USAGEID = "1D"/> <!-- PREV -->
---
>         <KEYBOARD MODIFIERS = "05" USAGEID = "4B"/> <!-- PREV -->
26c26
<         <KEYBOARD MODIFIERS = "08" USAGEID = "19"/> <!-- STOP -->
---
>         <KEYBOARD MODIFIERS = "05" USAGEID = "16"/> <!-- STOP -->
31c31
<         <KEYBOARD MODIFIERS = "08" USAGEID = "05"/> <!-- NEXT -->
---
>         <KEYBOARD MODIFIERS = "05" USAGEID = "4E"/> <!-- NEXT -->
36c36
<         <KEYBOARD MODIFIERS = "08" USAGEID = "10"/> <!-- MUTE -->
---
>         <KEYBOARD MODIFIERS = "05" USAGEID = "10"/> <!-- MUTE -->
41c41
<         <KEYBOARD MODIFIERS = "08" USAGEID = "57"/> <!-- VOL UP -->
---
>         <KEYBOARD MODIFIERS = "01" USAGEID = "57"/> <!-- VOL UP -->
46c46
<         <KEYBOARD MODIFIERS = "08" USAGEID = "56"/> <!-- VOL DOWN -->
---
>         <KEYBOARD MODIFIERS = "01" USAGEID = "56"/> <!-- VOL DOWN -->
50c50
< </SONY_ERICSSON_REMOTE_CONTROL_CONFIGURATION>
---
> </SONY_ERICSSON_REMOTE_CONTROL_CONFIGURATION>
\ Kein Zeilenumbruch am Dateiende.

To get this running on my Fedora Core 5 box, all I had to do was uploading the HID configuration to my mobile:

obex_push 5 00:11:22:33:44:55 AmaroK.hid

Then on the phone start the remote choosing my FC5 box as target and connect my HID Server with:

hidd --connect 00:11:22:33:44:55

To remove the connection again, use:

hidd --unplug 00:11:22:33:44:55

Don’t know if that’s necessary, but I had paired phone and PC before.

Have fun! And may the power-source be with you! :]

ChangeLog

[070429 Fix minor typo. Add download link. Add photo.]

Blog at WordPress.com.