LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-16-2008, 02:15 AM   #1
litlmary
Member
 
Registered: May 2005
Location: Texas, somewhere near Houston (I think)
Distribution: See my sig
Posts: 308

Rep: Reputation: 30
irblaster+lirc+suse 10.3


I'm pulling a sneaky trick on my MythBox. I'm using an infrared keyboard and a learning remote so that I can simply teach the remote all of the key combinations to operate Myth and the ugly keyboard can live in a closet.

I still need to use lirc with an irblaster to control my Dish Network set-top box and I can't get the booger to play nice.
  • I installed the lirc and lirc-kmp-default (matching my kernel) with smart.
  • I created .etc/lircd.conf for my set-top box with a file found on the lirc web site.
  • I ran
    Code:
    /bin/mknod /dev/lircd c 72 0
  • I created /etc/rc.d/rc.local with these lines:
    Code:
    /sbin/modprobe lirc_serial
    /usr/sbin/lircd --device=/dev/lirc0 --output=/dev/lircd
    /usr/sbin/lircd --driver=default --device=/dev/lirc1 --output=/dev/lircd1 --pidfile=/var/run/lircd1.pid
  • ...added these lines to /etc/modprobe.conf.local:
    Code:
    alias char-major-61-1 lirc_serial
    options lirc_serial irq=4 io=0x3f8
    ####IR setup####
    install lirc_serial setserial /dev/ttyS0 uart none; /sbin/modprobe --ignore-install lirc_serial
    (I know that port address for COM1 is correct, but I'm unsure about the IRQ)
  • ...created the script /usr/local/bin/change_chan.sh:
    Code:
    #!/bin/sh
    REMOTE_NAME=dish
    for digit in $(echo $1 | sed -e 's/./& /g'); do
    irsend --device=/dev/lircd1 SEND_ONCE $REMOTE_NAME $digit
    sleep 0.4 # note, you may have to tweak the interdigit delay up a bit
    done
    irsend --device=/dev/lircd1 SEND_ONCE $REMOTE_NAME select
    along with the requisite
    Code:
    chmod 755 /usr/local/bin/change_chan.sh
  • ...rebooted

and a test command, such as /usr/local/bin/change_chan.sh 12, nets me repeated complaints:
Code:
irsend: could not connect to socket
irsend: No such file or directory
typically 3 to 5 times before dropping me back to the prompt.

lsmod does not show lirc_serial being loaded, but it loads without complaint via modprobe.

Even then, I get the error from the command line. I've checked the GUI runlevel editor and it shows the lirc daemon as stopped, and it won't start unless I modprobe lirc_serial in first.

I still get no joy, though.

What do I do next?

TIA,

J

Last edited by litlmary; 02-16-2008 at 02:25 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with LIRC energiya Linux - Software 6 04-13-2007 02:50 AM
LIRC RPM Install On SuSE 10.0 x86_64 -Help- paradox101 Linux - Software 1 01-10-2006 03:05 PM
LIRC on SUSE 10.0 x86_64 paradox101 Linux - Hardware 0 12-07-2005 06:34 AM
default lirc support with SUSE 9.2 pro lixy Linux - Software 0 01-22-2005 09:00 AM
LIRC and 2.6.3 hoborocks Linux - Hardware 3 08-14-2004 10:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration