LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-24-2006, 03:05 PM   #1
NoMoreReinstallMS
Member
 
Registered: Aug 2006
Distribution: Kubuntu Edgy 2.6.17-10
Posts: 31

Rep: Reputation: 15
need help: write udev rule for LIRC, digital setopbox


The main issue in a 95%-working mythtv box is that the remote has never actually changed any channels on the digital cable box, although it does everything but that. So I was told to write a udev rule, the mention and contents of which were totally skipped in the howto I was following, and have been poring over http://www.reactivated.net/writing_u...html#ownership for a few days now. I'm finding it difficult to apply to my situation.

I'd already written a 10-local.rules file for my usb MFC's scanner, but that the contents were in a howto that I simply pasted into it, and apparently another paragraph for the lirc is in order (according to the hyperlinked instructions above).

One of the difficulties is that the device in question has both a class and a module in the sys tree, and I have no idea which to use for the subsystem, and it's also a usb-device, being an irblaster that came with my Hauppauge WinTV PVR-250. Another difficulty is that the appropriate module for that tuner is the i2c, which had to be downloaded from a backports source, along with the change-channel-lirc.pl file, and there is no contrib/ directory in those tarballs.

At any rate, here's some sysinfo data:
When I type into a terminal: "udevinfo -a -p /sys/module/lirc_i2c" I get:
looking at device '/module/lirc_i2c':
KERNEL=="lirc_i2c"
SUBSYSTEM=="module"
SYSFS{refcnt}=="2"
SYSFS{srcversion}=="24D5B1AE659A301B1B416CB"
When I type in: "udevinfo -a -p /sys/class/lirc/lirc0" I get:
looking at device '/class/lirc/lirc0':
KERNEL=="lirc0"
SUBSYSTEM=="lirc"
SYSFS{dev}=="61:0"
I get nada output when I try to modprobe lirc_i2c, or modprobe ir-kbd-i2c, and the only 3 results when I type: "cat /proc/bus/input/devices" are for the keyboard, mouse, and pc speaker (yes, I'm using sudo in front of each terminal command).

Right now my udev paragraph is:
SUBSYSTEM!="lirc", ACTION!="add", GOTO="_end"
# KERNEL="lirc[0-9]*", NAME="lirc0/%n"
SYSFS{dev}=="61:0", MODE="0666", GROUP="mythtv". RUN+="/usr/local/bin/change-channel-lirc.pl"
LABEL="_end"
and it doesn't seem to be giving me any errors at system boot-up.

Any diagnosis/assistance would be greatly appreciated. I'm using Mythtv .20, the the full release of Kubuntu 6.10 (the combined backend, frontend system, with the lamp server installed first, then the desktops. There really seems to be no connection between the lirc and the setop box, except my bright idea of making sure the program is linked in the udev rule above.
 
  


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
udev rule for usbstick Steve50 Slackware 5 10-13-2006 05:53 AM
Udev rule required for scsi scanner samac Slackware 2 10-07-2006 10:32 AM
udev-Rule for Mobile tuxangler Linux - Hardware 1 03-28-2006 05:41 AM
Making a udev rule for sonypi blimbo Linux - Software 4 03-01-2006 07:48 PM
Issues with adding a udev rule... Ateo Linux - General 1 03-04-2005 08:02 PM

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

All times are GMT -5. The time now is 10:39 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