Logitech UltraX Media Remote
To get the Logitech UltraX Media remote R-RC6 working in Mythtv there are a few steps to be taken. When you plug in the device, some of the keys are working as this usb device present itself as a keyboard. However the special keys are mapped to a second input device which needs to be enabled to work.
Section "InputDevice" Identifier "remotekeyboard1" Driver "evdev" Option "Name" "Logitech USB Receiver" Option "XkbRules" "xorg" Option "XkbModel" "evdev" Option "Phys" "usb-*/input1" Option "Protocol" "evdev" EndSection
and to add in:
Section "ServerLayout" InputDevice "remotekeyboard1" "SendCoreEvents" EndSection
This will enable X to see all the events related to this remote. Restart X to get this effective.
Map key events
The keyboard codes are not yet recognized by X. To have X recognize the keys create a Xmodmap. You can find these events by checking using xev and clicking the keys one-by-one Save the file in the user homedir with the name .Xmodmap
!Xmodmap mapping for Logitech UltaX Remote R-RC6 !Start keycode 150 = F13 !Home !Close keycode 214 = F14 !TV keycode 129 = F15 !DVD keycode 141 = F16 !FMRadio keycode 137 = F17 !Pictures keycode 234 = F18 !Video's keycode 145 = F19 !Music keycode 143 = F20 !Record keycode 175 = R !Stopkey keycode 174 = Escape !Mute keycode 121 = F9 !vol- keycode 122 = F10 !Vol+ keycode 123 = F11 !PlayPause keycode 172 = P !DVDMENU keycode 147 = M !Info/EPG keycode 138 = I !<>keys keycode 173 = less keycode 171 = greater !skip keycode 176 = KP_Home keycode 216 = KP_End !Back keycode 166 = BackSpace !Angle - strange - same event as Voldown !keycode 123 = F21 !Ch Up keycode 154 = KP_Add !Ch Down keycode 155 = KP_Subtract !SAP keycode 144 = F22 !LastCH keycode 157 = F23 !Language keycode 120 = l !Repeat - strange - same event as fmradio !keycode 137 = F24 !Subtitle - same event as vol up !keycode 122 = F24 !Shuffle !keycode 162 = Space !CC/Teletext keycode 140 = T
Map key codes in Myth
As now all the keys are regular X keys, you can use the key mapping in mythtv to map the special keys to the related actions. e.g. map video's to the video's key (F19 with the above mapping)