/etc/init.d/lirc doesn't properly set TRANSMITTER_SOCKET variable

Bug #477988 reported by Jim Bauer
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mythbuntu
Fix Released
Medium
Unassigned

Bug Description

I have a mythbuntu 9.10 system with a PVR-250 and a serial irblaster.

I noticed that /dev/lircd and /dev/lircd1 symlinks are pointing to the same file

lrwxrwxrwx 1 root root 19 2009-11-07 20:10 /dev/lircd -> /var/run/lirc/lircd
lrwxrwxrwx 1 root root 19 2009-11-07 20:10 /dev/lircd1 -> /var/run/lirc/lircd

The second should be pointing to /var/run/lirc/lircd1.

srw-rw-rw- 1 root root 0 2009-11-07 20:10 /var/run/lirc/lircd
srw-rw-rw- 1 root root 0 2009-11-07 20:10 /var/run/lirc/lircd1

The problem is in /etc/init.d/lirc. The build_transmitter_args() function correctly sets TRANSMITTER_SOCKET, but because it is called via `build_transmitter_args` (i.e. in backquotes) the setting of the global variable isn't being preserved after the function returns. So when it is later used to create the symlink, the old default value is used.

Revision history for this message
LarryJ (larry-foxgulch) wrote :

My system is mythbuntu 9.10 (.22 fixes) with a Hauppauge HVR1600 ATSC Tuner/Encoder with Hauppauge provided imitation MCE remote and blaster.

I believe the problem cited with the symlinks above is responsible for this weirdness. When I press a button on the IR remote, the ir blaster fires off. So, for example, if I change the volume while watching a recording playback, the volume button press wakes up my satellite receiver. If anything happens to be recording at that time, the info screen of my satellite company is superimposed on top of the current recording.

Revision history for this message
LarryJ (larry-foxgulch) wrote :

The old links where /dev/lircd and /dev/lircd1 both point to /var/run/lirc/lircd are both regenerated when a "sudo service lirc restart" is issued. (Probably not news to those of you looking at the source code)

 So I notice that pressing the volume button on the remote is causing the channel change script to fire and the status red led on my ir blaster to fire. So I "sudo rm -i /dev/lircd1" and press then volume button again and observe the ir blaster status led. It doesn't fire. Exactly as it shouldn't

Now would someone please tell me how to create a /dev/lircd1 that I can then link to the proper file /var/run/lirc/lircd1. My knowledge of linux seems to stop right here. Is it mknod or what. I tried MAKEDEV but got some ubuntu error message I didn't understand. Thanks.

Revision history for this message
Thomas Mashos (tgm4883) wrote :

Thank you for helping to improve Mythbuntu by opening this ticket. I am marking this ticket as confirmed because it appears to have enough information to help the developers understand the problem. It is possible I am wrong and another more experienced triager or developer may adjust the status of the ticket to "incomplete" and request additional information.

Changed in mythbuntu:
importance: Undecided → Medium
status: New → Confirmed
status: Confirmed → Triaged
Revision history for this message
MarcRandolph (mrand) wrote :

I believe this was fixed, per Bug 475664.

Changed in mythbuntu:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.