LinHES Forums http://forum.linhes.org/ |
|
Avermedia DVB-T 771 Remote issues http://forum.linhes.org/viewtopic.php?f=2&t=3010 |
Page 1 of 1 |
Author: | sglynn [ Sun Dec 05, 2004 7:12 pm ] |
Post subject: | Avermedia DVB-T 771 Remote issues |
Hi, I've got a nearly complete working environment through a setup of KnoppMythR4V5 Avermedia DVB-T 771 Kernel 2.6.10-rc2 Through some list searching I've made the following changes to get IR up, but have come unstuck somewhere and could use some help. I've edited <linux source>/drivers/media/video/ir-kbd-gpio.c and uncommented the line for the 771 i.e. /* case BTTV_AVDVBT_771: */ recompiled, and loaded the module ir-kbd-gpio via modprobe The ir controller is now recognised and from within a tty terminal I can press the arrow keys on the remote and it behaves as if I pressed them on the keyboard. I understand that the remote is now behaving like a virtual keyboard, which is great, but unfortunately once in X windows (Alt-F7), I get no response from the remote with Myth. Some people have suggested that you can run lirc on top of this setup, using keyboard input as the input source, but others are saying why bother when you've already got it inputting as a keyboard. In any case, I couldn't get lirc working, so unless it is a necessity, I'll leave it out for the moment. As for ir-kbd-gpio. Does anybody know how to get the remote keypresses to work within X ? (someone mentioned that you need X to recognise a multi-media keyboard, but I don't know how you do that) Thanks Simon |
Author: | sglynn [ Mon Dec 06, 2004 4:06 pm ] |
Post subject: | |
Don't worry sorted most of it out. Without using LIRC, I needed to create an xmodmap file and then alter the KnoppMyth-run script to execute mythfrontend via the xmodmap i.e. in /usr/local/bin/KnoppMyth-run change the line exec mythfrontend to exec xmodmap modmapfile | mythfrontend As for what keys to map to what, I used xev to display the key events, and modified the xmodmap file accordingly. Not everything maps across very well on this remote control, it has a poor design, particularly in that the number keys are used to also navigate. I make do without the number keys, and use them for navigation only. Next issue is that not all keys on the remote are generating an event. I suspect that is because of ir-kbd-gpio not having an exact mapping for the 771 remote keys (I think it uses the 761 remote layout for mapping) If anyone knows how to read remote codes at a more basic level, perhaps I can modify the ir-kbd-gpio.c file to recognise them appropriately. Simon |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |