[mythtv-users] LIRC with a laptop's native IR blaster?
Bret Schuhmacher
bschuhmacher at workbrain.com
Mon Jan 9 15:52:34 UTC 2006
I have a Dell Latitude (CPXJ, I think) with an onboard IR emitter. I
cannot figure out how to get it to blast IR codes to my Dish 301 (JVC)
settop box. I'm not worried about receiving IR, just sending IR now. I
used the trick of viewing the IR with a digital camera - I can see
handheld remotes sending IR, but I cannot see the onboard IR sending
anything (forget for a moment whether I'm sending proper codes for my
301 or not).
I have the IR enabled in the BIOS and the following:
root at mythtv:~# dmesg | grep lirc
lirc_dev: IR Remote Control driver registered, at major 61
lirc_serial: port 03f8 already in use
lirc_serial: use 'setserial /dev/ttySX uart none'
lirc_serial: or compile the serial port driver as module and
lirc_serial: make sure this module is loaded first
lirc_dev: lirc_register_plugin: sample_rate: 0
lirc_sir: I/O port 0x03e8, IRQ 4.
lirc_sir: Installed.
lirc_sir: Uninstalled.
caller is init_port+0xb1/0x290 [lirc_serial] <<<<<<<<< I insmod'ed
lirc_serial here to see
[<e0eb4a01>] init_port+0xb1/0x290 [lirc_serial]<<<<<<<<< if it would
change anything...
[<e0eb532a>] init_module+0x3a/0xa0 [lirc_serial]
lirc_serial: auto-detected active high receiver
lirc_dev: lirc_register_plugin: sample_rate: 0
root at mythtv:~# lsmod |grep lirc
lirc_serial 13824 0
lirc_i2c 10372 0
lirc_dev 14852 2 lirc_serial,lirc_i2c <<<<< I've also
had lirc_sir loaded here
i2c_core 19200 38 <<<<< and it
didn't help
wis_sony_tuner,wis_uda1342,wis_saa7115,eeprom,i2c_sensor,cx88xx,lirc_i2c
,dvb_ttusb_budget,cx22700,budget_av,tda10021,budget_ci,budget,s5h1420,bu
dget_core,dvb_ttpci,l64781,tda8083,stv0297,sp8870,ttpci_eeprom,mt312,tda
1004x,ves1820,stv0299,ves1x93,dvb_bt8xx,nxt6000,mt352,sp887x,or51211,dst
,cx24110,bttv,i2c_algo_bit,tveeprom,go7007_usb,go7007
root at mythtv:~# ls -l /dev/lirc*
crw-r--r-- 1 root root 61, 0 Sep 25 03:01 /dev/lirc
crw-r--r-- 1 root root 61, 1 Oct 1 04:02 /dev/lirc1
srw-rw-rw- 1 root root 0 Jan 9 00:14 /dev/lircd
prw-r--r-- 1 root root 0 Jul 30 2004 /dev/lircm
root at mythtv:~# ls -l /dev/ttyS*
crw-rw-rw- 1 root dialout 4, 64 May 7 2004 /dev/ttyS0
crw-rw-rw- 1 root dialout 4, 65 May 7 2004 /dev/ttyS1
crw-rw-rw- 1 root dialout 4, 66 May 7 2004 /dev/ttyS2
crw-rw-rw- 1 root dialout 4, 67 May 7 2004 /dev/ttyS3
crw-rw-rw- 1 root dialout 4, 68 May 7 2004 /dev/ttyS4
Here's my change_channel.sh script:
root at mythtv:~# cat /usr/local/bin/change_channel.sh
#!/bin/sh
#REMOTE_NAME=echostar1
REMOTE_NAME=3100
#REMOTE_NAME=d6
#REMOTE_NAME=d9
for digit in $(echo $1 | sed -e 's/./& /g'); do
irsend --device=/dev/lircd SEND_ONCE $REMOTE_NAME $digit
sleep 0.4 # note, you may have to tweak the interdigit delay up a bit
done
irsend --device=/dev/lircd SEND_ONCE $REMOTE_NAME select
Has anyone here gotten the native IRDA port on a laptop working with
LIRC? Would you send me your config files, please, or a quick "start
this, insmod that, set this to xxx" email, please?
Thanks!!
Bret
Instead of having "answers" on a math test, they should just call them
"impressions," and if you got a different "impression," so what, can't
we all
be brothers? -- Deep Thoughts, by Jack Handey
More information about the mythtv-users
mailing list