LinHES Forums
http://forum.linhes.org/

Remote not working in R5.5?
http://forum.linhes.org/viewtopic.php?f=2&t=18568
Page 1 of 1

Author:  aravenel [ Wed Jul 16, 2008 7:57 pm ]
Post subject:  Remote not working in R5.5?

Hello all. I installed a fresh install of R5.5 today because my hard drive died :( Everything went smoothly, except that I can't get my remote to work. I have a Philips Universal, not sure sure of the exact model number, but have in the past generally chosen the "homebrew" option when going through setup because I have a cheap little serial receiver, and this has always worked. I then copied over my previously working .lircrc and lircd.conf files. I did the same this time, but it doesn't seem to be working. I get absolutely nothing when I try to push any of the buttons.

I checked to make sure that the daemon is running:
Code:
root@Isildur:~# ps aux | grep lircd
root      3642  0.0  0.0   2964   500 ?        Ss   21:53   0:00 /usr/sbin/lircd --driver=default --device=/dev/lirc
root      3645  0.0  0.1   1776   544 ttyp0    S+   21:54   0:00 grep lircd


When I try to run IRRecord (for /dev/lirc), I get the following:
Code:
root@Isildur:~# irrecord -d /dev/lirc ./test.conf

irrecord -  application for recording IR-codes for usage with lirc

Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)

irrecord: could not get file information for /dev/lirc
irrecord: default_init(): No such file or directory
irrecord: could not init hardware (lircd running ? --> close it, check permissions)


I went and checked in the lircd log file, and saw the following:
Code:
Jul 16 21:17:46 Isildur lircd: lircd(all) ready
Jul 16 21:18:06 Isildur lircd: accepted new client on /dev/lircd
Jul 16 21:18:06 Isildur lircd: could not get hardware features
Jul 16 21:18:06 Isildur lircd: this device driver does not support the new LIRC interface
Jul 16 21:18:06 Isildur lircd: major number of /dev/ttyS1 is 4
Jul 16 21:18:06 Isildur lircd: LIRC major number is 61
Jul 16 21:18:06 Isildur lircd: check if /dev/ttyS1 is a LIRC device
Jul 16 21:18:06 Isildur lircd: caught signal


I searched through the syslog for "lirc" and "tty" to see what I could find. I've pasted the lines I found below:
Code:
Jul 16 20:12:29 Isildur kernel: serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Jul 16 20:12:29 Isildur kernel: serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A

Jul 16 20:22:21 Isildur kernel: lirc_dev: IR Remote Control driver registered, major 61
Jul 16 20:22:21 Isildur kernel: lirc_serial: auto-detected active low receiver
Jul 16 20:22:21 Isildur kernel: lirc_dev: lirc_register_plugin: sample_rate: 0


Any ideas? Anything I am missing here? I'm somewhat of a newbie, but have searched through the forums and online and not seen a whole lot that helped.

Edit: I tried running IRRecord for /dev/ttyS0 (and ttyS1, with the same results), and got the following. Not sure if it helps, but figured I'd add it.
Code:
root@Isildur:~# irrecord -d /dev/ttyS0 ./test.conf

irrecord -  application for recording IR-codes for usage with lirc

Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)

irrecord: could not get hardware features
irrecord: this device driver does not support the new LIRC interface
irrecord: major number of /dev/ttyS0 is 4
irrecord: LIRC major number is 61
irrecord: check if /dev/ttyS0 is a LIRC device
irrecord: could not init hardware (lircd running ? --> close it, check permissions)


Thanks!

Author:  mihanson [ Wed Jul 16, 2008 8:04 pm ]
Post subject: 

It looks like lirc looking for the signals on /dev/lirc... Post the output of:
Code:
# ls -l /dev/lirc*


If it does not list /dev/lirc, go into your lircd.conf file and change the device to what the above command showed.

Author:  aravenel [ Wed Jul 16, 2008 8:06 pm ]
Post subject: 

Below is the output. It seems I have two devices showing up:
Code:
root@Isildur:~# ls -l /dev/lirc*
crw-rw---- 1 root video 61, 0 Jul 16 21:17 /dev/lirc0
srw-rw-rw- 1 root root      0 Jul 16 21:53 /dev/lircd


Is there somewhere in lircd.conf to change this? I don't see anywhere where this info would go. Perhaps hardware.conf?

Author:  goofee [ Wed Jul 16, 2008 8:57 pm ]
Post subject: 

To get my homebrew serial IR reciever/blaster working I had to comment out the serial mouse section in /etc/X11/xorg.conf

Author:  aravenel [ Wed Jul 16, 2008 9:13 pm ]
Post subject: 

Just tried that, doesnt seem to be working :(

Author:  Greg Frost [ Wed Jul 16, 2008 9:18 pm ]
Post subject: 

aravenel wrote:
Below is the output. It seems I have two devices showing up:
Code:
root@Isildur:~# ls -l /dev/lirc*
crw-rw---- 1 root video 61, 0 Jul 16 21:17 /dev/lirc0
srw-rw-rw- 1 root root      0 Jul 16 21:53 /dev/lircd


Is there somewhere in lircd.conf to change this? I don't see anywhere where this info would go. Perhaps hardware.conf?

I think you need to change /etc/lirc/hardware.conf to reflect that it should use /dev/lirc0 instead of /dev/lirc

Author:  aravenel [ Thu Jul 17, 2008 7:15 am ]
Post subject: 

OK, so I updated the hardware.conf file to reflect /dev/lirc0 (it was previously pointing to /dev/lirc). Now when I run irrecord, I get the following:

Code:
root@Isildur:~# irrecord -d /dev/lirc0 ./a.conf

irrecord -  application for recording IR-codes for usage with lirc

Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)

irrecord: could not open /dev/lirc0
irrecord: default_init(): Device or resource busy
irrecord: could not init hardware (lircd running ? --> close it, check permissions)

Author:  tjc [ Thu Jul 17, 2008 7:48 am ]
Post subject: 

You need to stop lircd before you can run irrecord.

Author:  aravenel [ Thu Jul 17, 2008 7:52 am ]
Post subject: 

Wow, I feel like an idiot. OK, well now I can get irrecord to work. Not sure why the remote isn't working. I'm at work, so I can't see if it's actually receiving anything. I'll investigate more when I get home.

Author:  aravenel [ Thu Jul 17, 2008 5:27 pm ]
Post subject: 

OK, so I've poked around a bit more, and gotten it to start recognizing the remote in irrecord and irw. However, I cannot get the remote to do anything in MythTV. I've tried both my old lircrc and creating a new one, both making sure that the button names were correct and mapped to the lircd.conf file, but in both cases, nothing happens. I push buttons, and get no response.

Any ideas? Has the format of the lircrc file changed (I couldn't find anything about this)? Did it's location (/home/mythtv/.lircrc) change? Any other thoughts about what might be making my remote not work in MythTV?

Edit: In case anyone is thinking it's something with my hardware.conf file, I've included it below for reference.
Code:
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS=""

#Don't start lircmd even if there seems to be a good config file
START_LIRCMD=false

#Try to load appropriate kernel modules
LOAD_MODULES=true

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="default"
# If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be
# automatically used instead
DEVICE="/dev/lirc0"
MODULES="lirc_dev lirc_serial"

Author:  tjc [ Thu Jul 17, 2008 6:39 pm ]
Post subject: 

Did you see this thread: http://mysettopbox.tv/phpBB2/viewtopic.php?t=15551 It covers a lot of the gory details. Including what you have to do to make sure that changes get used. After you make and lirc config change I find that it's necessary to kill and restart lircd and then the whole X server and all it's clients. Sometime you've even got to manually rmmod the driver module before restarting lircd.

Author:  aravenel [ Thu Jul 17, 2008 7:02 pm ]
Post subject: 

I think I've got it--I don't know if the location for .lircrc has changed or what--I used to put it in /home/mythtv with no issues, but now apparently have to put it in /home/mythtv/.mythtv/.lircrc... No idea, but it seems to be working now.

Thanks for the help guys!

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/