Hi All,
I have difficulties to map buttons of my remote with my Kodi installation
I am trying to run a script when I press the volume up and down button of my remote because I can’t control the volume form kodi as I am using passthrough with my amp.
I am running a Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-62-generic x86_64)
with Kodi 2:17.0~git20170119.1031-rc3-0xenial
my remote is a August PCR450
here is my keyboard.xml with my different try ( it is loaded in the logs )
Code:
<keymap>
<global>
<keyboard>
<key id="123">Notification(123, 123, 3)</key>
<key id="122">Notification(122, 122, 3)</key>
<XF86AudioRaiseVolume>Notification(XF86AudioRaiseVolume, XF86AudioRaiseVolume, 3)</XF86AudioRaiseVolume>
<XF86AudioLowerVolume>Notification(XF86AudioLowerVolume, XF86AudioLowerVolume, 3)</XF86AudioLowerVolume>
<volume_up>Notification(volume_up, volume_up, 3)</volume_up>
<volume_down>Notification(volume_down, volume_down, 3)</volume_down>
<VolumeUp>Notification(VolumeUp, VolumeUp, 3)</VolumeUp>
<VolumeDown>Notification(VolumeDown, VolumeDown, 3)</VolumeDown>
<volampup>Notification(volampup, volampup, 3)</volampup>
<volampdown>Notification(volampdown, volampdown, 3)</volampdown>
</keyboard>
</global>
</keymap>
here is the logs when I press buttons ( the two last lines are volume up and then volume down )
Code:
15:27:05.552 T:140129937250688 DEBUG: Keyboard: scancode: 0x6f, sym: 0x0111, unicode: 0x0000, modifier: 0x0
15:27:05.552 T:140129937250688 DEBUG: OnKey: up (0xf080) pressed, action is Up
15:27:05.684 T:140129937250688 DEBUG: Keyboard: scancode: 0x6f, sym: 0x0111, unicode: 0x0000, modifier: 0x0
15:27:07.435 T:140129937250688 DEBUG: Keyboard: scancode: 0x7a, sym: 0x00ae, unicode: 0x0000, modifier: 0x0
15:27:08.194 T:140129937250688 DEBUG: Keyboard: scancode: 0x7b, sym: 0x00af, unicode: 0x0000, modifier: 0x0
15:27:09.469 T:140129937250688 DEBUG: Keyboard: scancode: 0x7a, sym: 0x00ae, unicode: 0x0000, modifier: 0x0
15:27:09.959 T:140129937250688 DEBUG: Keyboard: scancode: 0x7b, sym: 0x00af, unicode: 0x0000, modifier: 0x0
15:27:13.217 T:140129937250688 DEBUG: Keyboard: scancode: 0x7a, sym: 0x00ae, unicode: 0x0000, modifier: 0x0
here are the codes I get with xev
Code:
111 Up
114 Right
113 Left
116 Down
36 Return
180 XF86HomePage
135 Menu
166 XF86Back
123 XF86AudioRaiseVolume
122 XF86AudioLowerVolume
I am I missing something there ?