ARCHIVE
LinuxMCE Forums
May 25, 2013, 06:20:06 pm GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: lirc and setserial  (Read 1464 times)
archived
Hello, I'm new here

Posts: 0


View Profile
« on: October 09, 2006, 02:58:17 am »

On a particular media directer I hav constructed the basic serial port infrared receiver and added a couple of remote controls. After noticing errors on startup of the lirc device and checking the log it was having problems accessing the serial port.

A bit of googling reveals a solution. I needed to free the serial port before modprobing the lirc_serial driver. After that the lirc device fixes itself and the remotes work as expected.

The command to free the serial port is;
setserial /dev/ttyS0 uart none

At the moment I have to go to a console window and execute this command after the machine boots. Obviously this is a pain when the machine gets rebooted.

I have tried various rc scripts and creating serial.conf files to get this to run at startup. All with no success.

Has anyone encountered the same problem and solved it so that it works after a reboot?
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #1 on: October 09, 2006, 09:28:10 am »

Quote from: "darrenmason"
On a particular media directer I hav constructed the basic serial port infrared receiver and added a couple of remote controls. After noticing errors on startup of the lirc device and checking the log it was having problems accessing the serial port.

A bit of googling reveals a solution. I needed to free the serial port before modprobing the lirc_serial driver. After that the lirc device fixes itself and the remotes work as expected.

The command to free the serial port is;
setserial /dev/ttyS0 uart none

At the moment I have to go to a console window and execute this command after the machine boots. Obviously this is a pain when the machine gets rebooted.

I have tried various rc scripts and creating serial.conf files to get this to run at startup. All with no success.

Has anyone encountered the same problem and solved it so that it works after a reboot?

Hi,

same problem here - I also need to run few scripts to setup my ADSL connection. I've described it here

http://plutohome.com/wiki/index.php/How_to_setup_ADSL_access%3F

http://plutohome.com/wiki/index.php/ASUS_DIGIMatrix#Power_ON.2FOFF_from_remote_control_.21.21.21

but it would be nice to have some empty, user editable script that runs on boot, poweroff or restart, so user can put in commands he needs (it would be best that this would be setting over web-admin that would stay permanently in database)...

Regards,

Rob.
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #2 on: October 10, 2006, 01:32:33 pm »

Hi,

Just to update. The problem is now solved.

It was done by creating a file in the /etc/modprobe.d directory which allows modprobe configuration for each module.

The files contents were
Code:
options lirc_serial irq=4 io=0x3f8
install lirc_serial /bin/setserial /dev/ttyS0 uart none ;\
    /sbin/modprobe --ignore-install lirc_serial


Hope this helps someone else out.

Regards
Darren
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Pluto provided a snapshot of their forums with approximately 5,000 posts in February, 2007 when LinuxMCE branched off. Browse those forum posts in the Archive section. Those posts have been included in the search engine and can be found with keyword searches.