New Setting Input Devices Peripherals
#1
Hi,
in the past i always used the eventclient from http://trac.xbmc.org/raw-attachment/ticket/8827/. I had a modified Keymap.xml and everything worked like expected. In the new Opdenkamp Version 11.0-pvr+p8~git20110829.4e9f5b7-0ubuntu1~stable48~natty my Hama daoesn`t work any more. I`ve noticed that there is a new Configuration Setting in System/Setting/System/Input Devices/Peripherals. There I can see the Hama HID device with the correct Vendor and Product ID. The Hama works but not all Keys as expected.
Can someone please explain how the new Configuration setting works, what files are involved and how someone can modifiy the settings.
Thank you very much.

spocky184

PS: if thi s is the wrong forum please move.
Reply
#2
ok, found an explanation at https://github.com/xbmc/xbmc/pull/383
Reply
#3
Hi, its me again.
Played around a little bit, but i cannot make the remote work with my customized Keymap.xml.

Tried the following:
Code:
<peripheral vendor="05A4" product="9881" bus="usb" name="Hama MCE Remote" mapTo="hama">
    <setting key="keymap_enabled" type="bool" value="1" label="35008" configurable="1" />
    <setting key="keymap" value="v05a4p9881" label="35007" configurable="1" />
  </peripheral>
in /usr/share/xbmc/system/peripherals.xml

Renamed my original modified Keymap.xml to v05a4p9881.xml and put it in ~/.xbmc/userdata/keymaps and (for testing) in /usr/share/xbmc/system/keymaps

Have a usb_05A4_9881.xml file in ~/.xbmc/userdata/peripheral_data/
Code:
<settings>
    <setting id="keymap" value="v05a4p9881" />
    <setting id="keymap_enabled" value="1" />
</settings>

It's a Hama MCE Remote ! The Remote works only with few of the Buttons on the remote, like Back, OK, Up/Down/Left/Right but no other Button works like expected.
F.e. i configured the Start-Button on the remote to always go back to the Home-Screen.
Code:
<start>XBMC.ActivateWindow(Home)</start>

Can someone please explain how i can configure evrything to use my modified Keymap.xml Huh

Thanx
spocky184
Reply
#4
remove your changes in /usr/share/xbmc/system/peripherals.xml, restart xbmc, go to system->system->input->peripherals, find your device and change the keymap in the settings dialog.

(and for those who are wondering, no, I'm not back from holiday yet. just got to wait a bit for someone here and I got a wlan connection atm Smile)
opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
Reply
#5
thank you for your fast response, i will give it a try ...
Happy Holiday !
Reply
#6
i removed my changes in /usr/share/xbmc/system/peripherals.xml (so xml is original), i`ve restarted xbmc, i went to system->system->input->peripherals, i find my device and changed the keymap in the settings dialog ... but to what ?
Sorry for my lack in understanding what to put in there. My modified Keymap.xml file is in ~/.xbmc/userdata/keymaps.
I`ve tried keymap, Keymap, Keymap.xml, renamed Keymap.xml to v05a4p9881.xml and tried the default setting v05a4p9881, i`ve tried everything with the complete path to the xml file ... sorry, but nothing worked.
It looks so easy but for me it is not very intuitive, sorry. Maybe anyone can tell me the trick ?

Thanx
spocky184
Reply
#7
could you plug in the device while xbmc is running and pastebin the full debug log
opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
Reply
#8
here`s the log
http://pastebin.com/FxLnyWbL
Reply
#9
looks like there's no custom keymap assigned in the peripheral settings. when you go to the peripheral settings, what keymap do you see there?
opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
Reply
#10
hi,
after a fresh install of the system i see the default setting v05A4p9881 in the keymap field.
after playing around a while with different settings and again with activated debugging it`s always the same in xbmc.log

i think the device is correctly detected
Code:
21:05:40 T:140251050727360   DEBUG: GetMappingForDevice - device (05A4:9881) mapped to Generic HID device (type = hid)
21:05:40 T:140251050727360   DEBUG: InitialiseFeature - switching active keymapping to: Keymap
21:05:40 T:140251050727360   DEBUG: InitialiseFeature - initialised HID device (05A4:9881)
21:05:40 T:140251050727360   DEBUG: Initialise - initialised peripheral on '/bus004/dev002' with 1 features and 0 sub devices
21:05:40 T:140251050727360  NOTICE: Register - new hid device registered on usb->/bus004/dev002: Generic HID device (05A4:9881)

but there are always the same errors
Code:
21:05:41 T:140251050727360    INFO: Loading special://xbmc/system/keymaps/remote.xml
21:05:41 T:140251050727360   ERROR: Keymapping error: no such action 'language' defined
21:05:41 T:140251050727360    INFO: Loading special://masterprofile/keymaps/Keymap.xml
21:05:41 T:140251050727360   ERROR: Keymapping error: no such action 'language' defined
21:05:41 T:140251050727360    INFO: Loading special://profile/keymaps/Keymap.xml
21:05:41 T:140251050727360   ERROR: Keymapping error: no such action 'language' defined
21:05:41 T:140251050727360    INFO: Loading special://xbmc/system/Lircmap.xml
21:05:41 T:140251050727360    INFO: * Adding remote mapping for device 'mceusb'
21:05:41 T:140251050727360    INFO: * Adding remote mapping for device 'XboxDVDDongle'
21:05:41 T:140251050727360    INFO: * Adding remote mapping for device 'Microsoft_Xbox'
21:05:41 T:140251050727360    INFO: * Adding remote mapping for device 'PinnacleSysPCTVRemote'
21:05:41 T:140251050727360    INFO: * Adding remote mapping for device 'anysee'
21:05:41 T:140251050727360    INFO: * Adding remote mapping for device 'iMON-PAD'
21:05:41 T:140251050727360    INFO: * Adding remote mapping for device 'Antec_Veris_RM200'
21:05:41 T:140251050727360    INFO: * Adding remote mapping for device 'MCE_via_iMON'
21:05:41 T:140251050727360    INFO: * Adding remote mapping for device 'TwinHanRemote'
21:05:41 T:140251050727360    INFO: * Adding remote mapping for device 'linux-input-layer'
21:05:41 T:140251050727360    INFO: * Linking remote mapping for 'linux-input-layer' to 'cx23885_remote'
21:05:41 T:140251050727360    INFO: * Linking remote mapping for 'linux-input-layer' to 'devinput'
21:05:41 T:140251050727360   DEBUG: CButtonTranslator::Load - no userdata Lircmap.xml found, skipping

i`ve tried the same with another HID Remote (a Foxconn Netbox) but the Remote isn`t detected

In syslog i can see the following
Code:
Sep 16 21:21:49 ztreambox-ad02 lircd-0.8.7[3093]: caught signal
Sep 16 21:21:57 ztreambox-ad02 kernel: [ 2567.060119] usb 4-1: new full speed USB device using ohci_hcd and address 5
Sep 16 21:21:57 ztreambox-ad02 kernel: [ 2567.265376] Registered IR keymap rc-rc6-mce
Sep 16 21:21:57 ztreambox-ad02 kernel: [ 2567.265695] input: Media Center Ed. eHome Infrared Remote Transceiver (1784:0011) as /devices/virtual/rc/rc0/input14
Sep 16 21:21:57 ztreambox-ad02 kernel: [ 2567.265893] rc0: Media Center Ed. eHome Infrared Remote Transceiver (1784:0011) as /devices/virtual/rc/rc0
Sep 16 21:21:57 ztreambox-ad02 kernel: [ 2567.270322] rc rc0: lirc_dev: driver ir-lirc-codec (mceusb) registered at minor = 0
Sep 16 21:21:57 ztreambox-ad02 kernel: [ 2567.270374] mceusb 4-1:1.0: Registered Topseed Technology Corp. eHome Infrared Transceiver on usb4:5
Sep 16 21:21:57 ztreambox-ad02 lircd-0.8.7[3171]: lircd(default) ready, using /var/run/lirc/lircd

if i am using the eventclient from http://trac.xbmc.org/ticket/8827 everything works as expected.

hope that helps.

greetings
spocky184
Reply
#11
I'll have a look at it when I get back
opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
Reply

Logout Mark Read Team Forum Stats Members Help
New Setting Input Devices Peripherals0