Waistless
January 15th, 2008, 08:13 AM
I'm attempting to get my Twinhan remote working using this guide (http://www.doctort.org/adam/nerd-notes/mythtv-and-the-twinhan-remote.html)
I have one main problem and a small issue (which a lot of people might be able to solve). I'll start with the smaller issue
I have set up the remote controller for use with lirc as according to the guide, but it appears to already have been set up and is being used with keyboard commands, i.e the number buttons input the number but other buttons such as info/EPG outputs E, other buttons output other letters, and the power button kills X and lands me to a prompt. Is there anyway I can turn this off so I can use my remote only for Lirc? thanks. -----FIXED
Here's the second more major issue:
His remote is different to mine however in that mine is used for digital TV and recording and thus has a lot more buttons (image here (http://ecx.images-amazon.com/images/I/51QRQspO5xL._AA280_.jpg)). I'm fetching the commands for each button for the lircd.conf (which are subsequently used by lircrc) by entering:
hexdump /dev/input/irremote
This outputs the code for each button, for instance it ouputs this when I press 2
0000000 9b9f 478c 83ce 0004 0001 0003 0001 0000
0000010 9b9f 478c 83d9 0004 0000 0000 0000 0000
20000020 9b9f 478c a309 0004 0001 0003 0000 0000
0000030 9b9f 478c a314 0004 0000 0000 0000 0000
The hex in the first 5 collumns are dynamic and irrelevant. The bolded numbers are relevant to the command. And thus the button 2 command will be entered in the lircd.conf like so:
2 0x10003
I tried and tested using the buttons already in adam pierce's guide and using that basis added more buttons in. Here's a few I grabbed
RED 0x10013
GREEN 0x10022
YELLOW 0x10015
BLUE 0x10030
Unfortunately I have run into an annoying issue with this method. For certain buttons I am recieving conflicts which have a similar command that I can't simply use 1x00000 for. For instance, the Pause button outputs this:
0000000 9e21 478c ebda 0002 0001 0014 0001 0000
0000010 9e21 478c ebe5 0002 0000 0000 0000 0000
t0000020 9e21 478c 0b16 0003 0001 0014 0000 0000
0000030 9e21 478c 0b21 0003 0000 0000 0000 0000
and the Subtitle/CC button outputs this:
0000000 a029 478c bf70 0000 0001 001d 0001 0000
0000010 a029 478c bf80 0000 0001 0014 0001 0000
0000020 a029 478c bf86 0000 0000 0000 0000 0000
^T0000030 a029 478c fdf7 0000 0001 001d 0000 0000
0000040 a029 478c fe06 0000 0001 0014 0000 0000
0000050 a029 478c fe0c 0000 0000 0000 0000 0000
Here, there's added data for 0014 with 001d. 001d is also shared amongst other buttons as well.
Is there anyone with a good knowledge of hex out there that knows how to enter this in the format 1x00000 for use in lircd.conf? Would it be done by entering it as a compound? (e.g. 0x1001d 0x10014).
Please be understanding as i'm only an intermediate linux user with very little knowledge of hex and complex internal stuff :(
I have one main problem and a small issue (which a lot of people might be able to solve). I'll start with the smaller issue
I have set up the remote controller for use with lirc as according to the guide, but it appears to already have been set up and is being used with keyboard commands, i.e the number buttons input the number but other buttons such as info/EPG outputs E, other buttons output other letters, and the power button kills X and lands me to a prompt. Is there anyway I can turn this off so I can use my remote only for Lirc? thanks. -----FIXED
Here's the second more major issue:
His remote is different to mine however in that mine is used for digital TV and recording and thus has a lot more buttons (image here (http://ecx.images-amazon.com/images/I/51QRQspO5xL._AA280_.jpg)). I'm fetching the commands for each button for the lircd.conf (which are subsequently used by lircrc) by entering:
hexdump /dev/input/irremote
This outputs the code for each button, for instance it ouputs this when I press 2
0000000 9b9f 478c 83ce 0004 0001 0003 0001 0000
0000010 9b9f 478c 83d9 0004 0000 0000 0000 0000
20000020 9b9f 478c a309 0004 0001 0003 0000 0000
0000030 9b9f 478c a314 0004 0000 0000 0000 0000
The hex in the first 5 collumns are dynamic and irrelevant. The bolded numbers are relevant to the command. And thus the button 2 command will be entered in the lircd.conf like so:
2 0x10003
I tried and tested using the buttons already in adam pierce's guide and using that basis added more buttons in. Here's a few I grabbed
RED 0x10013
GREEN 0x10022
YELLOW 0x10015
BLUE 0x10030
Unfortunately I have run into an annoying issue with this method. For certain buttons I am recieving conflicts which have a similar command that I can't simply use 1x00000 for. For instance, the Pause button outputs this:
0000000 9e21 478c ebda 0002 0001 0014 0001 0000
0000010 9e21 478c ebe5 0002 0000 0000 0000 0000
t0000020 9e21 478c 0b16 0003 0001 0014 0000 0000
0000030 9e21 478c 0b21 0003 0000 0000 0000 0000
and the Subtitle/CC button outputs this:
0000000 a029 478c bf70 0000 0001 001d 0001 0000
0000010 a029 478c bf80 0000 0001 0014 0001 0000
0000020 a029 478c bf86 0000 0000 0000 0000 0000
^T0000030 a029 478c fdf7 0000 0001 001d 0000 0000
0000040 a029 478c fe06 0000 0001 0014 0000 0000
0000050 a029 478c fe0c 0000 0000 0000 0000 0000
Here, there's added data for 0014 with 001d. 001d is also shared amongst other buttons as well.
Is there anyone with a good knowledge of hex out there that knows how to enter this in the format 1x00000 for use in lircd.conf? Would it be done by entering it as a compound? (e.g. 0x1001d 0x10014).
Please be understanding as i'm only an intermediate linux user with very little knowledge of hex and complex internal stuff :(