PDA

View Full Version : How to get Mythbuntu to use correct key mappings


Leigh Hunt
February 7th, 2009, 06:34 AM
Hi,

I've been using Mythbuntu for about a year now, and am very very pleased with it - it has completely changed the way we watch telly.

However, the one thing I try every few months to sort out, and always fail, is to get the key bindings on my remote to work correctly.

The remote is the Hauppauge WinTV Nova-S-Plus PCI DVB-S, and it's the silver on black remote, with A415-HPG-WE-A labelled on the inside.

The four arrow keys and OK button work fine (which is probably why I still haven't fixed it) but none of the other keys do.

Reading around, the closest I seem to get is with the following diagnostic commands:
sudo /usr/sbin/lircd -H dev/input -d /dev/input/event5 -n
and in another terminal:
irw

Then I get some output that looks like every key is correctly identified:

leigh@mythbuntu-server:~$ irw
0000000080010067 00 Up Hauppauge-HVR4000-Remote
000000008001006c 00 Down Hauppauge-HVR4000-Remote
0000000080010067 00 Up Hauppauge-HVR4000-Remote
00000000800100ae 00 Back/Exit Hauppauge-HVR4000-Remote
00000000800100ae 00 Back/Exit Hauppauge-HVR4000-Remote
0000000080010002 00 1 Hauppauge-HVR4000-Remote
...


What I seem to be missing is how to get Mythbuntu to pass these key presses around.

Has anyone got any pointers? I think I must have missed something really obvious.

Cheers,
Leigh.

scary_jeff
February 7th, 2009, 08:13 AM
This seems like the same problem that a guy was having here (http://ubuntuforums.org/showthread.php?t=1024933). The thread is marked as solved and he has posted exactly what he did to get everything working. Hope this helps.

nicoloks
February 7th, 2009, 08:29 AM
Looking forward to hearing how you get on Leigh as I'm having a lot of trouble with gettin my remote working too. Seems weird that this appears to be such a large blackhole for something that is pretty essential to getting a MythBuntu based system fully functional.

Leigh Hunt
February 8th, 2009, 03:42 PM
This seems like the same problem that a guy was having here (http://ubuntuforums.org/showthread.php?t=1024933). The thread is marked as solved and he has posted exactly what he did to get everything working. Hope this helps.

Thanks scary_jeff, I'll take a closer look at that one.

I'll report back on how it goes.

nicoloks, I've got this nagging feeling something didn't quite go right with my install as I had some mysql permission issues early on, as if some part of the installation just didn't run.

Either 1) I'm being incredibly thick, 2) the remote control installation is way too complicated, or 3) some part of the install just didn't complete on my machine.

I think it's a mix of 1 and 3. :-)

Cheers,
Leigh.

Leigh Hunt
February 12th, 2009, 05:41 AM
Thanks scary_jeff, I'll take a closer look at that one.

I'll report back on how it goes.



Note sorted yet, but I think I'm getting somewhere. Brain dump here in case it helps anyone else with this issue, or it lights a bulb for someone!

Looking at those bugs, I think what I'm experiencing is different - LIRC is getting the key presses fine, as reported by irw. But it appears as if they're not all getting redirected to the correct application.

The volume key is suddenly working now, in addition to the number and cursor keys. I think, but am not sure, that this was after running sudo dpkg-reconfigure lirc, or possibly: mythbuntu-lirc-generator
mythbuntu-lircrc-generator


In addition, typing sudo /usr/sbin/lircd -H dev/input -d /dev/input/event5 -n in one terminal and ircat mythtv in another, it looks like the various config files are being read and *some* but not all keypresses are being directed to MythTV.

I'm wondering if there is a mismatch somewhere between some of the config files - hopefully I'll be able to report a solution soon.

Cheers,
Leigh.

scary_jeff
February 13th, 2009, 02:49 PM
I haven't tried mythbuntu-lircrc-generator, but you could try manually creating the lircrc file. See here (http://www.mythtv.org/wiki/Hauppauge_WinTV_Nova-T_500_PCI#Remote_Control), but note that the bit about vbetool is only required if you want the power button to turn your monitor off.