IR remote.

Raspberry Pi related support

Re: IR remote.

Postby MarmiteSandwich » 20 Apr 2016, 08:02

There are commercially available USB IR remote devices, which emulate a keyboard, and which work with some media software widely available under Linux (Kodi?). Can't we organise a tweak to rune so that it also recognises this USB input? It is very handy sometimes to just pause the music with a remote instead of hunting around for your phone/laptop/tablet and then mousing around to the right page and location just to pause.
Marmite.
Music>iTunes>Minimserver>BubbleUPnP>RasPi3BMPD>
CambridgeAudioDACMagic>CyrusIIIi>Mission752>MyEars
MarmiteSandwich
 
Posts: 25
Joined: 19 Apr 2016, 22:50
Location: UK

Re: IR remote.

Postby hondagx35 » 20 Apr 2016, 10:21

Hi Marmite,

the latest images for RP2/RP3 has exactly this implemented (see here).
The used software is called xbindkeys and is made for keyboards with multimedia keys, but can be used for any other keys.

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: IR remote.

Postby MarmiteSandwich » 20 Apr 2016, 10:32

hondagx35 wrote:Hi Marmite,

the latest images for RP2/RP3 has exactly this implemented (see here).
The used software is called xbindkeys and is made for keyboards with multimedia keys, but can be used for any other keys.

Frank


Great news. This seems to be the version I am running, but my IR remote and USB receiver don't seem to have any effect. Do I need to do something to make it work, or should it just work? Maybe I have a dodgy remote - it was very cheap.
Marmite
Music>iTunes>Minimserver>BubbleUPnP>RasPi3BMPD>
CambridgeAudioDACMagic>CyrusIIIi>Mission752>MyEars
MarmiteSandwich
 
Posts: 25
Joined: 19 Apr 2016, 22:50
Location: UK

Re: IR remote.

Postby hondagx35 » 20 Apr 2016, 11:28

Hi,

the sample configuration is for a Logitech K400r keyboard.
It has to be adapted to your remote.
Is it a multimedia remote?

Please test if your remote is recognized by the kernel.
Code: Select all
lsusb


Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: IR remote.

Postby MarmiteSandwich » 20 Apr 2016, 14:45

Hi Frank,
I'm not sure I know how to do that. Can you give me some clues? I am generally OK with low level technical stuff, but one of the attractions of Runeaudio was that I didn't need to learn any Linux syntax, so I didn't bother to do that. You can point me to somewhere where this is defined. Can I get to the console from the local webpage?
Marmite
Music>iTunes>Minimserver>BubbleUPnP>RasPi3BMPD>
CambridgeAudioDACMagic>CyrusIIIi>Mission752>MyEars
MarmiteSandwich
 
Posts: 25
Joined: 19 Apr 2016, 22:50
Location: UK

Re: IR remote.

Postby PeteB » 20 Apr 2016, 18:25

@Marmite:

I think you will have to use at least some Linux commands to do this.

Can you post some information about your IR remote, and the USB dongle you are using? If someone here has the same one, and has already done it, perhaps you can get more specific help on how to make yours work. And also if you tried it before using it with Rune Audio. (The inexpensive ones sometimes do not work well, so you may want to try it with something else first)

I had a hard time with my Logitech kbd/mousepad combo, it only takes one thing you don't know, or one step you skip, and you can struggle for hours.

Also, I think this thread is mostly about using an IR sensor attached directly to a DAC board, or to the GPIO pins on the Pi (just saying you might get better help if you post a thread with "Installing USB remote" in the title... :D )

P.
PeteB
 
Posts: 421
Joined: 06 Feb 2016, 05:07

Re: IR remote.

Postby hondagx35 » 20 Apr 2016, 20:44

Hi MarmiteSandwich,

MarmiteSandwich wrote:Hi Frank,
I'm not sure I know how to do that. Can you give me some clues?


Please post your debug informations as mentioned on the "Post a reply" page.
If your remote is recognized you should see something like this in the output:
Code: Select all
[    4.557543] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    4.557560] usb 1-1.3: Product: USB Wireless HID Receiver
[    4.557574] usb 1-1.3: Manufacturer: Chicony
[    5.491509] usb 1-1.4: new high-speed USB device number 6 using dwc_otg
....
[    6.481871] input: Chicony USB Wireless HID Receiver as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:04F2:0618.0004/input/input0
[    6.541896] input: Chicony USB Wireless HID Receiver as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:04F2:0618.0004/input/input1
[    6.542278] topseed 0003:04F2:0618.0004: input,hidraw0: USB HID v1.11 Keyboard [Chicony USB Wireless HID Receiver] on usb-3f980000.usb-1.3/input0
[    6.550838] input: Chicony USB Wireless HID Receiver as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.1/0003:04F2:0618.0005/input/input2
....
[    6.601993] input: Chicony USB Wireless HID Receiver as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.1/0003:04F2:0618.0005/input/input4
[    6.602482] input: Chicony USB Wireless HID Receiver as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.1/0003:04F2:0618.0005/input/input5
[    6.603138] topseed 0003:04F2:0618.0005: input,hiddev0,hidraw1: USB HID v1.11 Device [Chicony USB Wireless HID Receiver] on usb-3f980000.usb-1.3/input1
[    6.604867] input: Chicony USB Wireless HID Receiver as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.2/0003:04F2:0618.0006/input/input6
[    6.605898] topseed 0003:04F2:0618.0006: input,hidraw2: USB HID v1.11 Mouse [Chicony USB Wireless HID Receiver] on usb-3f980000.usb-1.3/input2


- manufacturer?
- type?

- Get access to the console:
Use SSH from your PC
    If you are not familiar with SSH read this for Windows or this for Linux/MacOS
    The default login for RuneAudio is "root" with the password "rune" (without quotes).

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: IR remote.

Postby MarmiteSandwich » 20 Apr 2016, 21:46

pasted debug info here:
http://pastebin.com/mq7UikBr

You will see references to this company: iRFmedia.com
The remote and the USB receiver are shown in the top right of their banner on this page:
http://irfmedia.com/En/Main.asp

Skip forward and skip back work, but no other keys. Pause/play does not work, although it does work with Windows/Foobar.

Thanks for your interest.
Marmite.
Music>iTunes>Minimserver>BubbleUPnP>RasPi3BMPD>
CambridgeAudioDACMagic>CyrusIIIi>Mission752>MyEars
MarmiteSandwich
 
Posts: 25
Joined: 19 Apr 2016, 22:50
Location: UK

Re: IR remote.

Postby PeteB » 21 Apr 2016, 00:13

MarmiteSandwich wrote:Skip forward and skip back work, but no other keys. Pause/play does not work, although it does work with Windows/Foobar.

If some buttons work and others don't, then (probably) the remote and the dongle work, but some buttons do not match the Rune Audio defaults. So unfortunately you are back to configuring things manually from terminal in Linux, by editing config files, which I think you did not want to do.

Not so different from the bad old days of DOS and Windows, when you had to use the command line and a plain text editor to configure software (assuming you ever had that pleasure), :roll:
PeteB
 
Posts: 421
Joined: 06 Feb 2016, 05:07

Re: IR remote.

Postby hondagx35 » 21 Apr 2016, 16:39

Hi MarmiteSandwich,

so your remote works but not as expected.

Please try to connect via ssh to your Pi (see my last post).

Logged in to the console execute this
Code: Select all
 export DISPLAY=:0
xbindkeys -k

and press a key on your remote

The output should look like this:
Code: Select all
Press combination of keys or/and click under the window.
You can use one of the two lines after "NoCommand"
in $HOME/.xbindkeysrc to bind a key.
"NoCommand"
    m:0x0 + c:215
    XF86AudioPlay


If you are not familiar with linux i would recommend WinSCP and Notepad+ to edit files on the Pi.
You have to edit the file /root/.xbindkeysrc.

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

support RuneAudio Donate with PayPal

PreviousNext

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 8 guests