View previous topic :: View next topic |
Author |
Message |
xmaes n00b
Joined: 13 Aug 2008 Posts: 69 Location: Madrid
|
Posted: Sun Sep 25, 2011 3:58 pm Post subject: LIRC 0.9 and Haupauge 1100 |
|
|
Hello,
I have some problem configuring my remote control with LIRC 0.9.
Here is my system info:
emerge --info
http://pastebin.com/DazC2qWg
.config
http://pastebin.com/ydhn8RHb
Quote: | dmesg | grep -i 'lirc'
[ 5.726160] lirc_dev: IR Remote Control driver registered, major 250
[ 5.726516] IR LIRC bridge handler initialized
dmesg | grep -i 'hauppauge'
[ 5.308217] saa7133[0]: subsystem: 0070:6701, board: Hauppauge WinTV-HVR1110 DVB-T/Hybrid [card=104,autodetected]
[ 5.447191] tveeprom 1-0050: Hauppauge model 67019, rev B4B4, serial# 951058
[ 5.447207] saa7133[0]: hauppauge eeprom: model=67019
[ 8.808024] Registered IR keymap rc-hauppauge
|
my remote control is working but no fully configured.
Even if my remote is recognize as /dev/input/event5 it is not listed in by-id
Code: | ls -l /dev/input/by-id/
total 0
lrwxrwxrwx 1 root root 9 Sep 25 2011 usb-Logitech_USB_Receiver-event-mouse -> ../event2
lrwxrwxrwx 1 root root 9 Sep 25 2011 usb-Logitech_USB_Receiver-mouse -> ../mouse0
lrwxrwxrwx 1 root root 9 Sep 25 2011 usb-NOVATEK_USB_Keyboard-event-if01 -> ../event4
lrwxrwxrwx 1 root root 9 Sep 25 2011 usb-NOVATEK_USB_Keyboard-event-kbd -> ../event3 |
so i configured the lircd as followed
Code: |
cat /etc/conf.d/lircd
# Options to pass to the lircd process
# for devices with lirc-kernel-module
#LIRCD_OPTS="-d /dev/lirc0"
#LIRCD_OPTS="-d /dev/lirc"
# for devices using the input-layer
LIRCD_OPTS="-H devinput -d /dev/input/event5"
# This should work, Bug #235107
#LIRCD_OPTS="-H devinput -d name=*DVB*" |
and some of the key are working in IRW but not all.
I downloaded the lastest /etc/conf.d/lircd get http://lirc.sourceforge.net/remotes/devinput/lircd.conf.devinput
but still the same results.
How can i change the lircd.conf to match all the button on my remote ?
For example
in the lircd.conf.devinput the GOTO button is define as
Code: | Begin remote
name devinput
bits 16
eps 30
aeps 100
one 0 0
zero 0 0
pre_data_bits 16
pre_data 0x1
post_data_bits 32
post_data 0x1
gap 132799
toggle_bit_mask 0x0
begin codes
KEY_GOTO 0x0162
end codes
end remote |
So i wanted to manullaly update the file by using irrecord -H dev/input -d /dev/input/event5 /tmp/remote
but looking at the file it doesnt have the same format
Code: | begin remote
name /tmp/remote
bits 64
eps 30
aeps 100
one 0 0
zero 0 0
gap 101995
toggle_bit_mask 0x0
begin codes
KEY_GOTO 0x000400040000003B 0x0000000000000000
end codes
end remote |
and last i dont understand why i cant use the file from lirc website as my remote is listed. this one:
http://lirc.sourceforge.net/remotes/hauppauge/PVR-350.jpg
Code: | begin remote
name hauppauge_pvr
bits 13
flags RC5|CONST_LENGTH
eps 30
aeps 100
one 969 811
zero 969 811
plead 1097
gap 114605
toggle_bit 2
begin codes
Go 0x00000000000017FB
end codes
end remote |
As the [0-9] key are working, as a test i configured Vlc to use this key and it is working.
Should the lircd.conf.devinput works without modification ?
Regards,
Xavier |
|
Back to top |
|
|
mp342 Apprentice
Joined: 03 Aug 2010 Posts: 165 Location: France
|
Posted: Sun Sep 25, 2011 4:12 pm Post subject: |
|
|
There is some change in the key codes used by the kernel recently. The conf you get is probably not up to date.
My remote looks like yours, here is my config :
Code: | begin remote
name NOVA-T
bits 16
eps 30
aeps 100
one 0 0
zero 0 0
gap 39998
pre_data_bits 16
pre_data 0x8001
begin codes
Go 0x0161
Power 0x0164
Tv 0x0179
Videos 0x0189
Music 0x0188
Pictures 0x00D4
Guide 0x016D
Radio 0x0181
Up 0x0067
Down 0x006C
Left 0x0069
Right 0x006A
Ok 0x0160
Back/exit 0x00AE
Menu 0x008B
Vol+ 0x0073
Vol- 0x0072
PrevChan 0x019C
Chan+ 0x0192
Chan- 0x0193
Mute 0x0071
Record 0x00A7
Stop 0x0080
Replay 0x00A8
SKip 0x00D0
Play 0x00CF
Previous 0x00A5
Next 0x00A3
Pause 0x0077
1 0x0002
2 0x0003
3 0x0004
4 0x0005
5 0x0006
6 0x0007
7 0x0008
8 0x0009
9 0x000A
Star 0x0184
0 0x000B
Sharp 0x0172
Red 0x018E
Green 0x018F
Yellow 0x0190
Blue 0x0191
end codes
end remote |
|
|
Back to top |
|
|
xmaes n00b
Joined: 13 Aug 2008 Posts: 69 Location: Madrid
|
Posted: Sun Sep 25, 2011 4:29 pm Post subject: |
|
|
thanks for the answer, I tried you config file but i get the same results only few are working but for example play , pause stop are not (neither with irw or in the .lircrc file).
Xavier |
|
Back to top |
|
|
mp342 Apprentice
Joined: 03 Aug 2010 Posts: 165 Location: France
|
Posted: Sun Sep 25, 2011 5:36 pm Post subject: |
|
|
Have you tried with your working config and only get the keycodes from my config ?
As you can see, I don't use the official name of the keys but my remote looks like yours, so you should be able to get the correct keys from lircd.conf.devinput with the keycodes of my config file. |
|
Back to top |
|
|
xmaes n00b
Joined: 13 Aug 2008 Posts: 69 Location: Madrid
|
Posted: Sun Sep 25, 2011 6:13 pm Post subject: |
|
|
with your config
xavier@mybox ~ $ irw
0000000080010192 00 Chan+ devinput
0000000080010193 00 Chan- devinput
0000000080010002 00 1 devinput
000000008001018e 00 Red devinput
with mine
xavier@mybox ~ $ irw
0000000080010192 00 KEY_CHANNELUP devinput
0000000080010193 00 KEY_CHANNELDOWN devinput
0000000080010193 01 KEY_CHANNELDOWN devinput
0000000080010002 00 KEY_1 devinput
000000008001018e 00 KEY_RED devinput
the same key are working and the name display is the one in the config file
i tried to put your key with the default the same key are not working.
i don't know what s going on. |
|
Back to top |
|
|
xmaes n00b
Joined: 13 Aug 2008 Posts: 69 Location: Madrid
|
Posted: Sun Oct 02, 2011 11:21 am Post subject: |
|
|
i manage to solve the problem by editing the /etc/rc_keymap/hauppauge
Quote: | ....
0x1e21 KEY_CHANNELDOWN
0x1f21 KEY_CHANNELDOWN
0x1d21 KEY_CHANNELDOWN
0x0021 KEY_CHANNELDOWN
0x1e20 KEY_CHANNELUP
0x1f20 KEY_CHANNELUP
0x1d20 KEY_CHANNELUP
0x0020 KEY_CHANNELUP
0x1e15 KEY_DOWN
0x1d15 KEY_DOWN
0x1f25 KEY_ENTER
0x1e1b KEY_EPG
0x1e1f KEY_EXIT
0x1f1f KEY_EXIT
0x1d1f KEY_EXIT
... |
I notice that the only working key are the one which are presents 4 times.
if i adjust the hauppauge file for key_down adding
0x1f15 KEY_DOWN
0x0015 KEY_DOWN
It works. |
|
Back to top |
|
|
|