Bug 196051 - Since kernel 4.10 a serial lirc device is undetectable
Summary: Since kernel 4.10 a serial lirc device is undetectable
Status: NEW
Alias: None
Product: Other
Classification: Unclassified
Component: Other (show other bugs)
Hardware: x86-64 Linux
: P1 normal
Assignee: other_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-13 07:37 UTC by john
Modified: 2017-08-24 15:10 UTC (History)
2 users (show)

See Also:
Kernel Version: Serial lirc device not recognized with kernel 4.10.0-21.14 amd64
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Apport output (546.56 KB, text/plain)
2017-06-13 07:37 UTC, john
Details

Description john 2017-06-13 07:37:25 UTC
Created attachment 256973 [details]
Apport output

After upgrading to kernel 4.10.0-21.14 serial lirc device (ir receiver) is not recognized.
(Using Ubuntu 16.04 x64)

Output of "dmesg |grep lirc" is:

[ 4.764264] lirc_dev: IR Remote Control driver registered, major 241

After downgrading to kernel 4.8.0-53.56 the output is:

[ 7.556620] lirc_dev: IR Remote Control driver registered, major 241
[ 7.561157] lirc_serial: module is from the staging directory, the quality is unknown, you have been warned.
[ 8.524847] lirc_serial lirc_serial.0: auto-detected active low receiver
[ 8.524947] lirc_serial lirc_serial.0: lirc_dev: driver lirc_serial registered at minor = 0

and ir receiver is functional.

Packages involved in this bug:

linux-headers-4.10.0-21
linux-headers-4.10.0-21-generic
linux-image-4.10.0-21-generic
linux-image-extra-4.10.0-21-generic
linux-signed-image-4.10.0-21-generic

Same bug if I use kernel 4.12-rc4.

bug initially reported at https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1694023

---
ApportVersion: 2.20.1-0ubuntu2.6
Architecture: amd64
CurrentDesktop: Unity
DistroRelease: Ubuntu 16.04
HibernationDevice: RESUME=UUID=ab23670d-098a-40d3-897c-85b65467931e
InstallationDate: Installed on 2016-04-30 (391 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
IwConfig:
 eno1 no wireless extensions.

 lo no wireless extensions.

 tun0 no wireless extensions.
MachineType: Gigabyte Technology Co., Ltd. Z87X-D3H
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.10.0-21-generic.efi.signed root=UUID=7fd251b0-4c84-4c4e-8a0e-04f0ce4200f5 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 4.10.0-21.23~16.04.1-generic 4.10.11
RelatedPackageVersions:
 linux-restricted-modules-4.10.0-21-generic N/A
 linux-backports-modules-4.10.0-21-generic N/A
 linux-firmware 1.157.10
RfKill:

Tags: xenial
Uname: Linux 4.10.0-21-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 08/25/2014
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: F9
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: Z87X-D3H-CF
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrF9:bd08/25/2014:svnGigabyteTechnologyCo.,Ltd.:pnZ87X-D3H:pvrTobefilledbyO.E.M.:rvnGigabyteTechnologyCo.,Ltd.:rnZ87X-D3H-CF:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.name: Z87X-D3H
dmi.product.version: To be filled by O.E.M.
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
Comment 1 Sean Young 2017-08-24 14:06:05 UTC
lirc_serial was ported to rc-core and renamed serial_ir in v4.10.

Please look for the different name.
Comment 2 john 2017-08-24 14:19:44 UTC
Bug is still reproduced for kernel 4.11.0-14-generic x86_64
Comment 3 Sean Young 2017-08-24 14:26:03 UTC
have you tried:

modprobe serial_ir
Comment 4 john 2017-08-24 14:47:37 UTC
(In reply to Sean Young from comment #1)
> lirc_serial was ported to rc-core and renamed serial_ir in v4.10.
> 
> Please look for the different name.

After having a look at /lib/modules/4.11.0-14-generic/kernel/drivers/media/rc/serial_ir.ko I noticed that it was referring to linux-hwe-edge-tools-4.11.0-14.

I installed this package and its dependencies (libdw1 (0.165-3ubuntu1) and linux-tools-common (4.4.0-92.115)) and the serial lirc device is now recognized and functional.

Please note that these packages were not needed with kernel 4.8.
Comment 5 Sean Young 2017-08-24 15:02:27 UTC
linux-tools-common and libdw1 are unrelated to serial_ir.ko.

How does it refer to linux-hwe-edge-tools?
Comment 6 john 2017-08-24 15:10:32 UTC
(In reply to Sean Young from comment #5)
> linux-tools-common and libdw1 are unrelated to serial_ir.ko.
> 
> How does it refer to linux-hwe-edge-tools?

I did a "gedit /lib/modules/4.11.0-14-generic/kernel/drivers/media/rc/serial_ir.ko"
and line 63 is "\00\00\00\00/build/linux-hwe-edge-HLHSbp/linux-hwe-edge-4.11.0/drivers/media/rc/serial_ir.c\00low\00high\00Serial IR type home-brew\00Serial IR type IRdeo\00Serial IR type IRdeo remote\00Serial IR type AnimaX\00Serial IR type IgorPlug\00serial_ir/input0\00serial_ir\00rc-rc6-mce\00IRQ %d busy"

Then I installed this package and dependencies, rebooted and everything came back to normal.

Note You need to log in before you can comment on or make changes to this bug.