Template:RemoteControlSupport:TerraTecGrayOrange
From LinuxTVWiki
TerraTec gray-orange remote
Apparently this remote is sold with (at least) the TerraTec Cinergy DT USB XS Diversity, TerraTec Cinergy 2400i DT, and TerraTec Cinergy T USB XXS.
The dvb-usb-dib0700 module needs to be loaded with the option dvb_usb_dib0700_ir_proto=0 to set the IR protocol to NEC (which is used by this device).
The following keycodes should work with it, specify them in /etc/lirc/lircd.conf:
# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.8.2-CVS(dev/input) on Tue May 8 23:40:09 2007
#
# contributed by Heinrich Schwietering
#
# brand:Terratec_
# model no. of remote control:
# devices being controlled by this remote: Cinergy_Hybrid_t_USB_XS
#
begin remote
name Cinergy_Hybrid_t_USB_XS
bits 16
eps 30
aeps 100
one 0 0
zero 0 0
pre_data_bits 16
pre_data 0x1
gap 135987
toggle_bit_mask 0x80000000
begin codes
onoff 0x0074
home 0x0066
dvdmenu 0x008B
subtitles 0x0172
teletext 0x0184
delete 0x006F
1 0x0002
2 0x0003
3 0x0004
4 0x0005
5 0x0006
6 0x0007
7 0x0008
8 0x0009
9 0x000A
0 0x000B
av 0x0182
ab 0x00A5
tv 0x0179
dvd 0x0185
video 0x0189
music 0x0188
pic 0x019A
up 0x0067
down 0x006C
left 0x0069
right 0x006A
ok 0x0160
epg 0x016D
info 0x0166
back 0x009E
vol+ 0x0073
vol- 0x0072
play 0x00CF
mute 0x0071
ch+ 0x0192
ch- 0x0193
red 0x018E
green 0x018F
yellow 0x0190
blue 0x0191
rec 0x00A7
stop 0x0080
pause 0x0077
last 0x0195
fr 0x00A8
ff 0x009F
next 0x0197
end codes
end remote
Note: the most recent model of this remote requires four different codes (replace them in above list).
ab 0x00AD
ff 0x00D0
last 0x019C
pic 0x0177
Should you need to quickly test all possible keycodes, just use this script to generate a list, which you can copy/paste to your lircd.conf file:
for (( i = 1; i < 512; i++ )); do x=`printf %#06X $i`; echo code$x $x; done
The result looks like this:
code0X0001 0X0001 code0X0002 0X0002 code0X0003 0X0003 code0X0004 0X0004 ... code0X01FC 0X01FC code0X01FD 0X01FD code0X01FE 0X01FE code0X01FF 0X01FF
Copy these keycodes just after the begin statement of your lircd.conf file. You can leave the original keycodes, duplicated values are not a problem. Once lircd is restarted, run the irw program and press your remote keys to show the missing codes:
# irw 00000000000100ad 00 code0X00AD Cinergy_Hybrid_t_USB_XS 00000000000100d0 00 code0X00D0 Cinergy_Hybrid_t_USB_XS 000000000001019c 00 code0X019C Cinergy_Hybrid_t_USB_XS 0000000000010177 00 code0X0177 Cinergy_Hybrid_t_USB_XS