[LINUX] Generic HID Remote Driver for XBMC (Drivers for XBMC on Linux and XBMC Live)

  Thread Rating:
  • 7 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
UsagiYojimbo Offline
Member
Posts: 83
Joined: Feb 2010
Reputation: 1
Location: Debrecen, Hungary
Post: #131
uryu_ishida Wrote:Doesn't work, and hid_rc.log says this:
Code:
Unable to find specified HID device
Loaded map file '...'
I can't load hid_mapper until a few seconds after the XBMC main screen shows up. And my remote doesn't work until then either.
I still believe some modules are not loading in time...
Could you check lsmod before and after the XBMC main screen?
Look for module-names that contain usb or hid, also modules depending on these.
If found add those in the starting script, just as uinput was:
modprobe module-name
find quote
uryu_ishida Offline
Junior Member
Posts: 23
Joined: Mar 2011
Reputation: 0
Post: #132
UsagiYojimbo Wrote:I still believe some modules are not loading in time...
Could you check lsmod before and after the XBMC main screen?
Look for module-names that contain usb or hid, also modules depending on these.
If found add those in the starting script, just as uinput was:
modprobe module-name

So the hid and usbhid modules weren't loading until after the main screen. I added those to rc.local, and they now load before the main screen, but hid_mapper oddly still won't load until after the main screen.

Also, hid_mapper --list-devices doesn't show any devices until after the main screen loads, if that helps.
find quote
coldsource Offline
Junior Member
Posts: 41
Joined: Dec 2010
Reputation: 0
Post: #133
Hi uryu_ishida,
I've developped a new option on the mapper that should help in your case. It is available at :
hid_mapper_beta.tar.gz

You can now use --wait-device switch on the command line to make hid_mapper waits for the device for the specified number of seconds.
For example, if you set --wait-device 30, hid_mapper will try to find the device every second for 30 seconds before exiting. If the device is found before the timeout, hid_mapper starts normally.

Hope this helps
find quote
Dizzzeh Offline
Junior Member
Posts: 6
Joined: Apr 2011
Reputation: 0
Post: #134
Hey, I'm having some problems getting this driver to work. I'm using a Jetway Mini-top system with XBMC-Live installed.

I can get the driver to list the devices, and it finds:

Quote:Found HID device at /dev/hidraw2
Manufacturer : Cy se̪http://www.ir
Product name : http://www.irfmedia.com UIR

But when I try to capture events, I get this result:

Quote:sudo ./hid_mapper --lookup-id --manufacturer 'Cy se̪http://www.ir' --product 'www.irfmedia.com UIR' --map 'maptest.map'
Loaded map file maptest.map
Unable to find specified HID device

If I run the same command using the hex values that I found during the look-up, I get the same result:

Quote:sudo ./hid_mapper --lookup-id --manufacturer '0755' --product '2626' --map 'maptest.map'
Loaded map file maptest.map
Unable to find specified HID device

It doesn't seem to matter if I use the apha-numeric values or the hex values that I find using the --list-devices switch, I get the same error message regardless.

Any suggestions?
find quote
Arquero Offline
Junior Member
Posts: 5
Joined: May 2011
Reputation: 0
Post: #135
I have a Jetway Mini-top with Ubuntu 11.04 running XBMC.

I've been using hid_mapper for a while and it worked great. I told Ubuntu to ignore the remote so mappings only went through hid_mapper. I also had hid_mapper load on startup with a script.

I recently upgraded Ubuntu from 10.10 to 11.04 and after redoing my settings to get the sound and everything working again for xbmc, I noticed the remote no longer is working. Running the normal command returns an error:

Code:
sudo /root/hid_mapper/hid_mapper --lookup-id --manufacturer '0755' --product '2626' --map /root/hid_mapper/remote.map
Loaded map file /root/hid_mapper/remote.map
Unable to find specified HID device

The ids are correct.
Code:
sudo /root/hid_mapper/hid_mapper --list-devices --lookup-id
Found HID device at /dev/hidraw0
  Manufacturer : 0755
  Product name : 2626

Found HID device at /dev/hidraw1
  Manufacturer : 0755
  Product name : 2626

This is the same output 10.10 gave me. Running --learn tells me the same thing. I may be missing something obvious, but is it possible there is something different between 10.10 and 11.04 that doesn't allow hid_mapper to find HIDs?
find quote
Mindzai Offline
Fan
Posts: 333
Joined: Aug 2010
Reputation: 0
Post: #136
I know it doesn't help you much but I also upgraded to 11.04 and have been able to use hid_mapper still, so the driver seems to be compatible. Did you try recompiling?
find quote
Arquero Offline
Junior Member
Posts: 5
Joined: May 2011
Reputation: 0
Post: #137
I did try recompiling. I tried make clean. I deleted the whole folder, downloaded the latest tarball, un-tarred, and ran make on that, but I still get the same results. It must be something I'm missing. Probably something the upgrade disabled that I have yet to enable again. I'll look through my steps again.
find quote
Arquero Offline
Junior Member
Posts: 5
Joined: May 2011
Reputation: 0
Post: #138
Well, after installing xbmc live (based on 10.10) and again getting everything to work but the remote, I've narrowed it down to the new version of the hid_mapper (which I decided to update at the same time as the update to 11.04). When I went to an older version, it worked again.

The newer version seems to get stuck at 'Found HID device' while the older one will tell me 'Opened HID interface on /dev/hidraw3'

Problem solved for me I guess.
find quote
Dizzzeh Offline
Junior Member
Posts: 6
Joined: Apr 2011
Reputation: 0
Post: #139
Has anyone with a Jetway Mini-top found two identical HID devices when running the ./hid_mapper --list-devices command?

Here is the output that I get:

Code:
Found HID device at /dev/hidraw0
  Manufacturer : C-Media Electronics Inc.
  Product name : USB PnP Sound Device

Found HID device at /dev/hidraw1
  Manufacturer : Cy se̪[url]www.ir[/url]
  Product name : [url]www.irfmedia.com[/url] UIR

Found HID device at /dev/hidraw2
  Manufacturer : Cy se̪[url]www.ir[/url]
  Product name : [url]www.irfmedia.com[/url] UIR

Found HID device at /dev/hidraw3
  Manufacturer : Unknown
  Product name : Unknown

Found HID device at /dev/hidraw4
  Manufacturer : Unknown
  Product name : Unknown
find quote
Arquero Offline
Junior Member
Posts: 5
Joined: May 2011
Reputation: 0
Post: #140
Yes. I get 2 as well. I don't know why, but it doesn't seem to negatively effect anything. Also I'd like to point out that I haven't been able to use hid_mapper using the actual names, but rather only by ids. The high-ASCII 'e̪' character might mess it up.

Code:
./hid_mapper --list-devices --lookup-id

Should give you 2 instances with manufacturer of '0755' and product of '2626'. So the learn command is:

Code:
./hid_mapper --lookup-id --learn --manufacturer '0755' --product '2626'

That should give you the following output:

Code:
Found HID device
Opened HID interface on /dev/hidraw1
Opened HID interface on /dev/hidraw2

The actual hidraw numbers will vary based on what devices you have connected. I have an issue with the latest beta not actually opening the HIDs, so I'm using an earlier version.
find quote
Post Reply