ximon Wrote:Edit: The remote is the only input device connected to the system, is it possible that Xorg requires at least one input device in order to start?
Xorg starts for me even if I blacklist the only input device.
Mindzai
Fan Posts: 333 Joined: Aug 2010 Reputation: 0 |
2011-02-19 15:17
Post: #71
ximon Wrote:Edit: The remote is the only input device connected to the system, is it possible that Xorg requires at least one input device in order to start? Xorg starts for me even if I blacklist the only input device. |
| find quote |
ximon
Member Posts: 50 Joined: Jan 2009 Reputation: 0 Location: Nantes, France |
2011-02-19 16:32
Post: #72
Code: Parse error on line 3 of section InputClass in file /usr/lib/X11/xorg.conf.d/50-remote.confOK, I found the reason why X won't start, 'MatchUSBID' doesn't seem to be allowed. Is there another way I can blacklist this remote from Xorg? Code: xbmc@XBMCLive:~$ lsusbThe remote is a Speedlink SL-6399, it shows as 'Belkin' in lsusb (for reasons beyond my comprehension), and 'HOLTEK USB to PS2 Devic' elsewhere. Code: xbmc@XBMCLive:~$ udevadm info --attribute-walk --name=/dev/hidraw0Code: xbmc@XBMCLive:~/hid_mapper_beta$ cat /proc/bus/input/devicesAny help is greatly appreciated! Cheers guys. Edit: hid_mapper's device list in case it helps: Code: xbmc@XBMCLive:~/hid_mapper_beta$ ./hid_mapper --list-devices |
| find quote |
ximon
Member Posts: 50 Joined: Jan 2009 Reputation: 0 Location: Nantes, France |
2011-02-19 16:54
Post: #73
Quote:I seem to have accidentally found a solution, or at least a workaround… EDIT: Nope, not working. It seems that my 50-remote.conf is making Xorg ignore all input, including that of hid_mapper. So, I still need a way of blacklisting my remote if anyone can help… Thanks!
(This post was last modified: 2011-02-19 17:14 by ximon.)
|
| find quote |
UsagiYojimbo
Member Joined: Feb 2010 Reputation: 1 Location: Debrecen, Hungary |
2011-02-19 17:55
Post: #74
ximon Wrote:(II) config/udev: Adding input device HOLTEK USB To PS2 Devic (/dev/input/event6)I do not really understand why do you need hid_mapper, again? If your HID device produces an event device (as mentioned above) X already uses it. You should be able to configure button-presses to key (or mouse) events in Xkbd... Or you could use LiRC with driver devinput,too... |
| find quote |
ximon
Member Posts: 50 Joined: Jan 2009 Reputation: 0 Location: Nantes, France |
2011-02-19 18:49
Post: #75
UsagiYojimbo Wrote:I do not really understand why do you need hid_mapper, again? Because only a handful of keys on my cheapo (not MCE) remote are recognized at the moment and I am trying to get as many buttons working as possible for optimal control of xbmc. In theory though, could I skip the blacklist in xorg and only configure hid_mapper for the keys that aren't working? Maybe that would be the simplest solution… |
| find quote |
Psycho_Dad
Junior Member Posts: 6 Joined: Feb 2011 Reputation: 0 |
2011-02-19 19:23
Post: #76
The blacklisting is only needed to block the key presses from your remote to the X server. If you have working buttons and you are satisfied with them you don't need to block it. And it won't be a problem if you have two devices which for example can send an 'F1' key press to the X server. You won't be using the two at the same time (I assume), so the X server will only know that the key press was an 'F1', it doesn't care about whom send it.
At least this is how I see, and I couldn't even map my HID device with hid_mapper yet. : ) However, blacklisting is a must for me, because my remote switches to tty2-4 with some key presses, and sends combinations like 'CTRL+ALT+SHIFT+F+F1+DEL+:D' and stuff to the X server.
(This post was last modified: 2011-02-19 19:25 by Psycho_Dad.)
|
| find quote |
ximon
Member Posts: 50 Joined: Jan 2009 Reputation: 0 Location: Nantes, France |
2011-02-21 21:35
Post: #77
UsagiYojimbo Wrote:I do not really understand why do you need hid_mapper, again? Also, my remote only produces stupid key presses (control shift ?) and is a PITA to set up in keymap.xml. It would be much easier for me to be able to assign 'normal' keyboard keys to each button on the remote and use the default xbmc keymap - for example backspace for back, esc for home, c for contextual menu… But to do this I need to get the blacklist to work… Getting a fully working remote is the bane of my xbmc life - I would just buy a MCE2 remote, but it is impossible to find one where I live (France). If anyone has any ideas, please share! Thanks! |
| find quote |
coldsource
Junior Member Posts: 41 Joined: Dec 2010 Reputation: 0 |
2011-02-22 19:04
Post: #78
Hi ximon,
Which distribution are you using ? MatchUSBID is refered in xorg.conf manual so it should work. Anyway have you tried : Quote:MatchVendor "HOLTEK" I think it could work. |
| find quote |
ximon
Member Posts: 50 Joined: Jan 2009 Reputation: 0 Location: Nantes, France |
coldsource Wrote:Hi ximon, I'm using XBMCLive Dharma. Tried "MatchVendor "HOLTEK"" and success! Thanks so much for your help, and of course for the HID Mapper.
|
| find quote |
Mindzai
Fan Posts: 333 Joined: Aug 2010 Reputation: 0 |
2011-02-23 13:50
Post: #80
Mindzai Wrote:Hi coldsource I'm still having no luck with this. I tried a different remote and that does the same. I notice that hid_mapper is exiting saying "Segmentation fault". It can't be an issue with the hardware because the second remote worked fine when I tested it at work (Ubuntu 10.10), but on my Live machine it breaks. Is there anything I can do to debug this? Here is the output from the command: Code: karl@mediacenter:~/hid_mapper_beta$ sudo ./hid_mapper --lookup-id --manufacturer '046e' --product '5577' --map emprex.map
(This post was last modified: 2011-02-23 13:59 by Mindzai.)
|
| find quote |