My hardware lirc file looks like:
Code:
## Path: Hardware/Lirc
## Description: lirc (infrared remote control) configuration
## ServiceRestart: lirc
## Type: string
## Default: "660"
#
# permissions for /dev/lircd
#
LIRCD_DEV_PERMISSIONS="660"
## Type: string
## Default: "root:video"
#
# owner and group for /dev/lircd
#
LIRCD_DEV_OWNER="root:video"
## Type: string
## Default: ""
#
# use given driver
#
LIRCD_DRIVER=""
## Type: string
## Default: ""
#
# read from given device
#
LIRCD_DEVICE="/dev/lirc"
## Type: string(lirc_bt829,lirc_gpio,lirc_i2c,lirc_it87,lirc_parallel,lirc_sir,ir-kbd-i2c,ir-kbd-gpio)
## Default: ""
#
# load given lirc driver module
#
LIRC_MODULE=""
## Type: string
## Default: ""
#
# listen for network connections on specified port.
# WARNING: don't use this on a machine with an internet
# connection as lircd is running as root!
#
LIRCD_LISTENPORT=""
## Type: string
## Default: ""
#
# connect lircd to specified host
#
LIRCD_CONNECT=""
The command I need to run either from shell or in boot.local is:
Code:
lircd -H dev/input -d /dev/input/event3 -n &
And this is what I get running irw and pressing a few keys:
Code:
# irw
00000000800100d0 00 Skip hauppauge_nova_t_uk
0000000080010006 00 5 hauppauge_nova_t_uk
000000008001000b 00 0 hauppauge_nova_t_uk
0000000080010073 00 VolumeUp hauppauge_nova_t_uk
00000000800100ae 00 Back hauppauge_nova_t_uk
000000008001019c 00 PreviousChannel hauppauge_nova_t_uk
I found out I needed /dev/input/event3 from reading the MythTV lirc stuff - can't quite remember where but somewhere it says how to determine which event number to use.
Still sometimes a bit erratic on startup - something to do with my audio card I think - but I found that if irw doesn't work then the remote doesn't work so that's a good test.
There's also a lircd.conf file that contains the mappings, mine looks like :
Code:
# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.7.1pre2(any) on Sat Sep 17 01:00:56 2005
#
# contributed by
#
# brand: lircd.conf.kernel-2.6.13.1.conf
# model no. of remote control:
# devices being controlled by this remote:
#
begin remote
name hauppauge_nova_t_uk
bits 16
eps 30
aeps 100
one 0 0
zero 0 0
pre_data_bits 16
pre_data 0x8001
gap 135803
toggle_bit 0
begin codes
Power 0x0074
Go 0x0161
TV 0x0179
Videos 0x0189
Music 0x0188
Pictures 0x016F
Guide 0x016D
Radio 0x0181
Up 0x0067
Left 0x0069
Right 0x006A
Down 0x006C
OK 0x001C
Back 0x00AE
Menu 0x008B
VolumeUp 0x0073
VolumeDown 0x0072
PreviousChannel 0x019C
Mute 0x0071
ChannelUp 0x0192
ChannelDown 0x0193
Record 0x00A7
Stop 0x0080
Replay 0x00A8
Play 0x00CF
Skip 0x00D0
PreviousTrack 0x00A5
Pause 0x0077
NextTrack 0x00A3
1 0x0002
2 0x0003
3 0x0004
4 0x0005
5 0x0006
6 0x0007
7 0x0008
8 0x0009
9 0x000A
0 0x000B
Text 0x0184
Subtitles 0x0172
Red 0x018E
Green 0x018F
Yellow 0x0190
Blue 0x0191
end codes
end remote