View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 2 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sun Dec 05, 2004 7:12 pm 
Offline
Joined: Tue Nov 16, 2004 5:05 am
Posts: 39
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 06, 2004 4:06 pm 
Offline
Joined: Tue Nov 16, 2004 5:05 am
Posts: 39
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


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu