/dev/lirc0 disappeared after upgrade from 2.6.35-20 to -22

Bug #655512 reported by Todd Chisholm
46
This bug affects 9 people
Affects Status Importance Assigned to Milestone
lirc (Ubuntu)
Fix Released
High
Unassigned
Maverick
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: lirc

Using kernel 2.6.35-20 works fine - there is /dev/lirc0 entry. Recent upgrade to 2.6.35-22 caused /dev/lirc0 to disappear. Rebooting with 2.6.35-20 brings it back.

== Regression details ==
Discovered in version: Linux 2.6.35-22
Last known good version: Linux 2.6.35-20

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: lirc 0.8.7~pre3-0ubuntu1 [modified: usr/share/lirc/extras/transmitter.hwdb]
ProcVersionSignature: Ubuntu 2.6.35-20.29-generic 2.6.35.4
Uname: Linux 2.6.35-20-generic i686
Architecture: i386
Date: Tue Oct 5 23:36:42 2010
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Alpha i386 (20100910)
ProcEnviron:
 LANG=en_CA.utf8
 SHELL=/bin/bash
SourcePackage: lirc
---
.etc.asound.conf:
 pcm.!default{
 type hw
 card 1
 device 3
 }
AcpiTables: Error: command ['gksu', '-D', 'Apport', '--', '/usr/share/apport/dump_acpi_tables.py'] failed with exit code 1:
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: todd 1810 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'SB'/'HDA ATI SB at 0xfe024000 irq 16'
   Mixer name : 'Realtek ALC889A'
   Components : 'HDA:10ec0885,1458a002,00100101'
   Controls : 41
   Simple ctrls : 23
Card1.Amixer.info:
 Card hw:1 'HDMI'/'HDA ATI HDMI at 0xfdffc000 irq 19'
   Mixer name : 'ATI RS690/780 HDMI'
   Components : 'HDA:1002791a,00791a00,00100000'
   Controls : 4
   Simple ctrls : 1
Card1.Amixer.values:
 Simple mixer control 'IEC958',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
DistroRelease: Ubuntu 10.10
HibernationDevice: RESUME=UUID=2a89ff2c-7da4-457a-ac27-8747ff6acc88
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Alpha i386 (20100910)
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.
MachineType: Gigabyte Technology Co., Ltd. GA-MA78GM-US2H
Package: linux (not installed)
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.35-20-generic root=UUID=8398ea79-91c0-4b7d-b700-ff318f98cc57 ro acpi=off
ProcEnviron:
 LANG=en_CA.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.35-20.29-generic 2.6.35.4
Regression: Yes
RelatedPackageVersions: linux-firmware 1.38
Reproducible: Yes
RfKill:

Tags: maverick kernel-config regression-potential needs-upstream-testing
Uname: Linux 2.6.35-20-generic i686
UserGroups: adm admin cdrom dialout lpadmin mythtv plugdev sambashare
WifiSyslog: Oct 7 20:10:55 todd-desktop kernel: [162304.465564] mythfrontend.re[17616]: segfault at 33eee05f ip 0888540c sp bfdefdc8 error 6
dmi.bios.date: 12/15/2008
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F1
dmi.board.name: GA-MA78GM-US2H
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF1:bd12/15/2008:svnGigabyteTechnologyCo.,Ltd.:pnGA-MA78GM-US2H:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnGA-MA78GM-US2H:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: GA-MA78GM-US2H
dmi.sys.vendor: Gigabyte Technology Co., Ltd.

---
.etc.asound.conf:
 pcm.!default{
 type hw
 card 1
 device 3
 }
AcpiTables:
 Error: command ['gksu', '-D', 'Apport', '--', '/usr/share/apport/dump_acpi_tables.py'] failed with exit code 1: Traceback (most recent call last): File "/usr/share/apport/dump_acpi_tables.py", line 52, in <module>
     dump_acpi_tables('/sys/firmware/acpi/tables', sys.stdout)
   File "/usr/share/apport/dump_acpi_tables.py", line 43, in dump_acpi_tables
     tables = os.listdir(path)
 OSError: [Errno 2] No such file or directory: '/sys/firmware/acpi/tables'
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: todd 1759 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'SB'/'HDA ATI SB at 0xfe024000 irq 16'
   Mixer name : 'Realtek ALC889A'
   Components : 'HDA:10ec0885,1458a002,00100101'
   Controls : 41
   Simple ctrls : 23
Card1.Amixer.info:
 Card hw:1 'HDMI'/'HDA ATI HDMI at 0xfdffc000 irq 19'
   Mixer name : 'ATI RS690/780 HDMI'
   Components : 'HDA:1002791a,00791a00,00100000'
   Controls : 4
   Simple ctrls : 1
Card1.Amixer.values:
 Simple mixer control 'IEC958',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
DistroRelease: Ubuntu 10.10
HibernationDevice: RESUME=UUID=2a89ff2c-7da4-457a-ac27-8747ff6acc88
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Alpha i386 (20100910)
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.
MachineType: Gigabyte Technology Co., Ltd. GA-MA78GM-US2H
NonfreeKernelModules: fglrx
Package: linux (not installed)
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.35-22-generic root=UUID=8398ea79-91c0-4b7d-b700-ff318f98cc57 ro acpi=off
ProcEnviron:
 LANG=en_CA.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
Regression: Yes
RelatedPackageVersions: linux-firmware 1.38
Reproducible: Yes
RfKill:

Tags: maverick kernel-config regression-potential needs-upstream-testing
Uname: Linux 2.6.35-22-generic i686
UserGroups: adm admin cdrom dialout lpadmin mythtv plugdev sambashare
dmi.bios.date: 12/15/2008
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F1
dmi.board.name: GA-MA78GM-US2H
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF1:bd12/15/2008:svnGigabyteTechnologyCo.,Ltd.:pnGA-MA78GM-US2H:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnGA-MA78GM-US2H:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: GA-MA78GM-US2H
dmi.sys.vendor: Gigabyte Technology Co., Ltd.

Revision history for this message
Todd Chisholm (todd-chisholm) wrote :
Revision history for this message
MarcRandolph (mrand) wrote :

User said he is using a standard mceusb remote. Pushing over to the kernel side... might be high or critical importance?

affects: lirc (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
importance: Undecided → High
summary: - No /dev/lirc0 entry for mceusb remote
+ /dev/lirc0 disappeared after upgrade from 2.6.35-20 to -22
tags: added: regression-potential
Revision history for this message
Mario Limonciello (superm1) wrote :

Are you sure he said he was using a mceusb remote? I didn't see that in the description.

Can the OP please provide the following details:
# apport-collect 655512

Revision history for this message
Todd Chisholm (todd-chisholm) wrote :

Yes, it was an mceusb (version 2). I'll post the results of apport-collect this evening.

Another user has the same problem: http://ubuntuforums.org/showthread.php?t=1581528

Revision history for this message
Mario Limonciello (superm1) wrote :

Todd:

OK, thanks for the info. The apport-collect should hopefully gather all the logs that we need to help analyze this problem.

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : AlsaDevices.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Todd Chisholm (todd-chisholm) wrote : AplayDevices.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : ArecordDevices.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : BootDmesg.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : Card1.Codecs.codec.0.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : Lspci.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : Lsusb.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : PciMultimedia.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : ProcModules.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : UdevDb.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : UdevLog.txt

apport information

Revision history for this message
Mario Limonciello (superm1) wrote :

So according to that you have mceusb loaded when it detected your device. I don't see any errors in dmesg either. I'm assuming you actually have the lirc package installed right?

As long as you do, can you please try

# sudo /etc/init.d/lirc restart

to rule out a potential race condition with it reconfiguring the kernel device?

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : AlsaDevices.txt

apport information

description: updated
Revision history for this message
Todd Chisholm (todd-chisholm) wrote : AplayDevices.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : ArecordDevices.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : BootDmesg.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : Card1.Codecs.codec.0.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : Lspci.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : Lsusb.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : PciMultimedia.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : ProcModules.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : UdevDb.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : UdevLog.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote : WifiSyslog.txt

apport information

Revision history for this message
Todd Chisholm (todd-chisholm) wrote :

I just realized that you probably wanted apport-collect run with the -22 kernel (the one that doesn't have /dev/lirc0). I've just re-ran it.

I also just tried stopping and starting lirc (via /etc/init.d/lirc) and also remove and modprobe'd the lirc_mceusb module. Still no /dev/lirc0.

Thank very much for your help, by the way.

Todd

Revision history for this message
Mario Limonciello (superm1) wrote :

This part stands out:
[ 13.111336] ir_lirc_codec: Unknown symbol lirc_dev_fop_poll (err 0)
[ 13.111429] ir_lirc_codec: Unknown symbol lirc_dev_fop_open (err 0)
[ 13.111505] ir_lirc_codec: disagrees about version of symbol lirc_get_pdata
[ 13.111507] ir_lirc_codec: Unknown symbol lirc_get_pdata (err -22)
[ 13.111583] ir_lirc_codec: Unknown symbol lirc_dev_fop_close (err 0)
[ 13.111652] ir_lirc_codec: Unknown symbol lirc_dev_fop_read (err 0)
[ 13.111717] ir_lirc_codec: disagrees about version of symbol lirc_register_driver
[ 13.111719] ir_lirc_codec: Unknown symbol lirc_register_driver (err -22)
[ 13.111882] ir_lirc_codec: Unknown symbol lirc_dev_fop_ioctl (err 0)

Do you have some DKMS modules installed (possibly lirc-modules-source)? If so, can you please remove it and try again?

Revision history for this message
Todd Chisholm (todd-chisholm) wrote :

That's got it! I believe that I installed that following a how-to from somewhere.

It's working well now.

Thanks,
Todd

Revision history for this message
Mario Limonciello (superm1) wrote :

I'm glad that fixed it, now lets hopefully try to figure out why that was causing a bug in the first place so that we can try to avoid it for future users.

What version of lirc-modules-source did you have installed? This should be in the logs in /var/log/dpkg.log or /var/log/apt/. Do you remember at what point you installed it? Was it before this newer kernel got installed?

affects: linux (Ubuntu) → lirc (Ubuntu)
Revision history for this message
Todd Chisholm (todd-chisholm) wrote :
Revision history for this message
Todd Chisholm (todd-chisholm) wrote :
Revision history for this message
Todd Chisholm (todd-chisholm) wrote :
Revision history for this message
Todd Chisholm (todd-chisholm) wrote :
Revision history for this message
Todd Chisholm (todd-chisholm) wrote :

I've attached the logs - this is a pretty new install, only a couple of weeks old.

Thanks,
Todd

Revision history for this message
Matt Rice (junk-mattrice) wrote :

I hope this is the same bug that I'm having, it doesn't go away with or without lirc-modules-source installed. As suggested this may be a kernel issue?

I'm having the same issue with the new kernel, it is a new install and I've been banging my head on this for 2 days.

The kernel won't load(build?) the module I need: lirc_atiusb

The symptoms are similar to his issue: [url]http://old.nabble.com/atiusb-module-does-not--build-with-kernel-2.6.35-td29254059.html[/url]

except that after looking at the code it doesn't seem that is the same solution, but I can't be sure.

I have two machines with the same install(kernel) and the bug is replicable by simply installing lirc and trying to insert lirc_atiusb
sudo apt-get lirc
sudo modprobe lirc_atiusb
results:
WARNING: All config files need .conf: /etc/modprobe.d/lirc-blacklist, it will be ignored in a future release.
FATAL: Module lirc_atiusb not found

This is obvious, but if I edit my hardware.conf to include the module and try to restart lirc (sudo /etc/init.d/lirc restart) i receive this error:
Unable toload LIRC kernel modules. Verify your selected kernel modules in /etc/lirc/hardware.conf

and dmesg outputs
[38999.024638] lirc_atiusb: disagrees about version of symbol lirc_register_driver
[38999.024643] lirc_atiusb: Unknown symbol lirc_register_driver (err -22)
[39066.058431] lirc_atiusb: disagrees about version of symbol lirc_register_driver
[39066.058436] lirc_atiusb: Unknown symbol lirc_register_driver (err -22)

Not sure what else youmight need

Revision history for this message
Matt Rice (junk-mattrice) wrote :

I added a new bug with the attache apport details here:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/660601

Revision history for this message
enb (elitenoobboy) wrote :

On one of my machines, maverick, lirc works just fine after I did a dpkg-reconfigure lirc. On the other, also maverick, with the same microsoft mce remote and receiver, it treats it as a keyboard (the volume keys adjust the volume without lirc running). Not even copying the config files from the working machine will get it to work.
Could this be related to this bug? On the machine on which the remote works, there is no lirc0 in /dev, however, the hardware.conf in /etc/lirc/ says "REMOTE_DEVICE="/dev/lirc0""?

Changed in lirc (Ubuntu Maverick):
status: New → Confirmed
description: updated
tags: added: regression-release
removed: regression-potential
Revision history for this message
Kimmo Huoman (kipenroskaposti) wrote :

http://ubuntuforums.org/showpost.php?p=9984844&postcount=4

the instructions in this post worked for me, got my system working fully with option 2.

Revision history for this message
Kimmo Huoman (kipenroskaposti) wrote :

Just tested with completely new system in VirtualBox, first installed 9.04 (the install what my system is updated from originally) and updated to 10.04 and then to 10.10.
It seems like the new kernel in 10.10 indeed causes the problem by using modules in kernel itself as opposed to modules before. Both, the module "lirc_mceusb" and plain "mceusb" show up on "lsmod | grep mceusb", so it seems like it loads both the old and new modules. The same thing happens with "lirc-modules-source" installed and removed.

Brad Figg (brad-figg)
tags: added: bios-amd-powernow
Revision history for this message
Julien Valgrès (julien-valgres) wrote :

Hello, i don't know if your problem can have a link with my problem:

https://bugs.launchpad.net/ubuntu/+source/lirc/+bug/311890

i have it87 driver loading but not working, irw crash

Revision history for this message
Angus Kerr (angus-tropical) wrote :

Hi

I have just encountered the same problem after installing the DKMS modules lirc-modules-source (v 0.8.7-0ubuntu4.1)

I have a double whammy now, because the default kernel 2.6.38-8 and 2.6.38.11 does not have lirc_i2c driver installed which I need to get my remote to work, and the following info is quoted from the lirc project:

[quote] lirc-0.8.7 has been tested with kernel versions up to 2.6.35. Older versions should also work. 2.4.x kernels are not supported anymore, but chances are good that it's still working. The last release officially supporting 2.4.x was 0.8.2. Please don't report problems with compilation on 2.4.x kernels. 2.2.x kernels are not supported anymore.
From 2.6.36 on all LIRC kernel drivers are already included in the kernel. There has been a slight interface change in the LIRC ioctls that will affect 64-bit kernels. For recent kernels please only use 0.9.0 which is compatilbe with the in-kernel drivers.[/quote]

So the old stale package is still in the repository, even though it is not compatible with the new in-kernel drivers.

Revision history for this message
Jarod Wilson (jarod-wilsonet) wrote :

If I'm thinking clearly, the 0.8.7-0ubuntu4.1 package has the requisite ioctl patches to work just fine with the in-kernel lirc drivers. And lirc_i2c is dead, its functionality is entirely replaced by the in-kernel ir-kbd-i2c driver. And lirc-modules-source should not be used. Ever. Its been removed from this distro.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in lirc (Ubuntu):
status: New → Confirmed
Revision history for this message
Steve Langasek (vorlon) wrote :

lirc-modules-source has been dropped in later releases, so this bug is now resolved.

Changed in lirc (Ubuntu):
status: Confirmed → Fix Released
Changed in lirc (Ubuntu Maverick):
status: Confirmed → Won't Fix
To post a comment you must log in.