curious_pi
Posts: 15
Joined: Tue Jan 27, 2015 9:56 am

Using IR Multimedia Remote

Thu Jan 29, 2015 3:42 am

Hi,
I had purchased a IR remote a few moths back. Although the cover says Windows remote it works with all Linux distros out of the box. It gets detected as a keyboard. Since the only player which supports hardware acceleration is omxplayer I am stuck with it. I tried using the remote with omxplayer but none of the important keys work.

Code: Select all

$ lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
Bus 001 Device 004: ID 413c:2107 Dell Computer Corp. 
Bus 001 Device 005: ID 046d:c52f Logitech, Inc. Wireless Mouse M305
Bus 001 Device 008: ID 0951:1643 Kingston Technology DataTraveler G3 4GB
[b]Bus 001 Device 007: ID 1d57:ad02 Xenta [/b]
Any ideas ??

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Using IR Multimedia Remote

Thu Jan 29, 2015 11:05 am

You need to write a program to read your new HID (human input device aka keyboard) and pass the characters you read to omxplayer. It won't be an automatic process (I wouldn't expect that). Time to a) read up about what interfaces omxplayer provides for external control and b) sharpen your coding pencil.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

gkreidl
Posts: 6335
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Using IR Multimedia Remote

Thu Jan 29, 2015 11:16 am

If it's discovered as a keyboard, does it send keyboard characters to the command line (try number keys, for example). If it does, you can configure omxplayer to use the keyboard commands sent from your IR remote with the
--key-config <file>
option. You'll find details on github about creating a config file.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

PiGraham
Posts: 3971
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: Using IR Multimedia Remote

Thu Jan 29, 2015 11:20 am

DougieLawson wrote:You need to write a program to read your new HID (human input device aka keyboard) and pass the characters you read to omxplayer. It won't be an automatic process (I wouldn't expect that). Time to a) read up about what interfaces omxplayer provides for external control and b) sharpen your coding pencil.
Really?
An HID keyboard device should just inject key events as if you typed on a keyboard.

Is it detected as a keyboard though?

Code: Select all

Bus 001 Device 007: ID 1d57:ad02 Xenta
Last edited by PiGraham on Thu Jan 29, 2015 11:27 am, edited 1 time in total.

PiGraham
Posts: 3971
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: Using IR Multimedia Remote

Thu Jan 29, 2015 11:27 am

A post about this device here:
http://forum.osmc.tv/showthread.php?tid=11868

Could there be a problem with USB power? I have a Cherry keyboard that will not work on a Model A+ but is fine via a powered hub.
The + model USB has a power setting.

Can you try it with a powered hub?
If that works you could try increasing the current capability of the USB port (AFAIK B+ ONLY). See here
https://projects.drogon.net/testing-set ... erry-pi-b/

curious_pi
Posts: 15
Joined: Tue Jan 27, 2015 9:56 am

Re: Using IR Multimedia Remote

Fri Jan 30, 2015 8:48 am

Under Ubuntu XBMC detected the remote and was working as intended. Is it possible to dual boot XBMC and Debian Raspbian ? Never done that before.


Also, I am having a problem with my USB flash drive, When I keep it plugged in while booting it doesnt get mounted. I need to to unplug it and plug it in.

curious_pi
Posts: 15
Joined: Tue Jan 27, 2015 9:56 am

Re: Using IR Multimedia Remote

Sat Jan 31, 2015 1:15 am

Installed Raspbmc and the remote is working perfectly. Thanks to all.

Return to “Beginners”