Kodi Community Forum

Full Version: [LINUX][LIRC] Going mad with ATI Remote Wonder II, Lirc and XBMC
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Dear all, I am going mad trying to configure my XBMC to work properly with my ATI Remote Wonder II.
I have installed a XBMC Live to my Revo hard drive, configured it and it does work just fine.
But, I connected my ATI Remote Wonder II and it does recognize some of the keys, but not others.
I have tried so far:
  • Configuring keyboard.xml and remote.xml, to no avail. I came to the conclusion that the remote does not generates correctly the KeyID to be able to map all the keys (see included section of the log).
  • Reconfiguring Lirc by modifying hardware.conf and lircd.conf. irw command does not work, and still no difference in behaviour.
  • I followed some different steps to blacklist the kernel module and use external Lirc instead, but still no chance to get it working.

So far I tried the instructions and hints posted in the following link:
http://ubuntuforums.org/showthread.php?t=1220383
http://www.mythtv.org/wiki/ATI_Remote_Wonder_II
http://forum.xbmc.org/showthread.php?p=270398
http://forum.xbmc.org/showthread.php?tid=64759
http://forum.xbmc.org/showthread.php?tid=57628
http://forum.xbmc.org/showthread.php?tid=30724
http://forum.xbmc.org/showthread.php?tid=41688
http://forum.xbmc.org/showthread.php?tid=31083


I think that if I can manage Lirc to work, and irw command to recognize button presses I can configure the actions via Lircmap.xml and remote.xml (in keymaps).

I came with a workaround that is not so elegant and that is to remap the scancodes to different existing keys, like:
Change KEY_OK (5c) --> KEY_ENTER (28)
Code:
sudo setkeycodes 0x005C 28 0x015C 28 0x025C 28 0x035C 28 0x045C 28

Change KEY_COFFEE (96) --> KEY_BACKSPACE (14)
Code:
sudo setkeycodes 0x0096 14 0x0196 14 0x0296 14 0x0396 14 0x0496 14

Change KEY_MENU (54) -->KEY_MENU (139)
Code:
sudo setkeycodes 0x0054 139 0x0154 139 0x0254 139 0x0354 139 0x0454 139

But this way does not allow me to assign custom functions and the buttons on the remote work unexpectedly if mapped to keys of the keyboard.


Could you please point me what else to try?
It has been almost a week trying everyday for several hours differents approaches, but none of them worked.


Excerpt from xbmc.log
Code:
00:15:13 T:3054434176 M:2777632768   DEBUG: SDLKeyboard: scancode: 114, sym: 275, unicode: 0, modifier: 0
00:15:13 T:3054434176 M:2777632768   DEBUG: OnKey: 61479 pressed, action is 2
00:15:14 T:3054434176 M:2777632768   DEBUG: SDLKeyboard: scancode: 113, sym: 276, unicode: 0, modifier: 0
00:15:14 T:3054434176 M:2777632768   DEBUG: OnKey: 61477 pressed, action is 1
00:15:16 T:3054434176 M:2777640960   DEBUG: SDLKeyboard: scancode: 111, sym: 273, unicode: 0, modifier: 0
00:15:16 T:3054434176 M:2777640960   DEBUG: OnKey: 61478 pressed, action is 3
00:15:16 T:3054434176 M:2777640960   DEBUG: SDLKeyboard: scancode: 116, sym: 274, unicode: 0, modifier: 0
00:15:16 T:3054434176 M:2777640960   DEBUG: OnKey: 61480 pressed, action is 4
00:15:19 T:3054434176 M:2777640960   DEBUG: SDLKeyboard: scancode: 127, sym: 19, unicode: 0, modifier: 0
00:15:20 T:3054434176 M:2777640960   DEBUG: SDLKeyboard: scancode: 167, sym: 0, unicode: 0, modifier: 0
00:15:20 T:3054434176 M:2777640960   DEBUG: OnKey: 61607 pressed, action is 0
00:15:20 T:3054434176 M:2777640960   DEBUG: HAL: Device (/org/freedesktop/Hal/devices/usb_device_471_602_noserial_logicaldev_input) Condition ButtonPressed | forward
00:15:20 T:3054434176 M:2777640960   DEBUG: SDLKeyboard: scancode: 176, sym: 0, unicode: 0, modifier: 0
00:15:20 T:3054434176 M:2777640960   DEBUG: OnKey: 61522 pressed, action is 78
00:15:21 T:3054434176 M:2777640960   DEBUG: HAL: Device (/org/freedesktop/Hal/devices/usb_device_471_602_noserial_logicaldev_input) Condition ButtonPressed | rewind
00:15:21 T:3054434176 M:2777640960   DEBUG: HAL: Device (/org/freedesktop/Hal/devices/usb_device_471_602_noserial_logicaldev_input) Condition ButtonPressed | rewind
00:15:24 T:3054434176 M:2777649152   DEBUG: SDLKeyboard: scancode: 147, sym: 0, unicode: 0, modifier: 0
00:15:24 T:3054434176 M:2777649152   DEBUG: HAL: Device (/org/freedesktop/Hal/devices/usb_device_471_602_noserial_logicaldev_input) Condition ButtonPressed | menu
Excerpt from cat /proc/bus/input/devices command:
Code:
I: Bus=0003 Vendor=0471 Product=0602 Version=0000
N: Name="ATI Remote Wonder II"
P: Phys=usb-0000:00:04.0-3/input0
S: Sysfs=/devices/pci0000:00/0000:00:04.0/usb2/2-3/input/input5
U: Uniq=
H: Handlers=kbd mouse2 event5
B: EV=100007
B: KEY=c0020 3000141 0 0 30000 0 408c00 10180 81300811 9e1680 0 14003 50040ffc
B: REL=3
Sorry for the up, but anyone any hint?


Regards