linuxstb / pidvbip

tvheadend client for the Raspberry Pi
http://www.pidvbip.org
GNU General Public License v2.0
53 stars 22 forks source link

Question about IR remote #38

Open pbosgraaf opened 9 years ago

pbosgraaf commented 9 years ago

Hi,

I am trying to get usb ir remote to work with pidvbip. I have tested mutiple remotes all with different results, mostly because i can't map keys from the remote to the remote-control-keys from the application.

My question, are you using a specific remote with the application? And if so would yo be willing to share brand/model so i can order the same? :-)

The other way would be to use lirc and use that to map my remote control keys to application specific commands.

Either way, feedback is welcome!

Thanks! P

mpmc commented 9 years ago

I haven't used pidvbip in a while due a bug that causes it to crash, but it should work with any usb hid remote, you just have to add the definition to the swtch in https://github.com/linuxstb/pidvbip/blob/master/input.c#L54

IIRC pidvbip will output the number of the key pressed you can then match this up with the key defines in https://github.com/torvalds/linux/blob/master/include/uapi/linux/input.h#L215 (see your kernel source though as they may be different).

As for the remote I used one like this http://www.ebay.co.uk/itm/USB-PC-Computer-Laptop-Remote-Control-Media-Centre-Controller-Windows-7-XP-Vista-/350950709176.

HTH

pbosgraaf commented 9 years ago

Wow, thanks for the quick reply! Haven't run into any crashes yet and now remote works like a charm after adjusting that file.

Any idea where i can change the mapping of the channel-list popup next/prev-channel button?

Right now when not viewing the channel list, n(next) and p(revious) switch channels by +/-1 But when you open the channel-list n and p become next and previous-page. And d(own) and u(p) become next/prev-channel in the list. I'd like to swap that the np and du behavior

Thanks for the support and development!

mpmc commented 9 years ago

Unfortunately I'm not sure how you'd go about doing that @linuxstb will know, however I believe he has stopped working on pidvbip for the time being.