Bug 1412860
| Summary: | lirc no longer works after update from Fedora 23 to Fedora 25 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Erik Sejr <hpx> |
| Component: | kernel | Assignee: | Kernel Maintainer List <kernel-maint> |
| Status: | CLOSED INSUFFICIENT_DATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 25 | CC: | cz172638, gansalmon, ichavero, itamar, jonathan, kernel-maint, madhu.chinakonda, mchehab |
| Target Milestone: | --- | Flags: | jforbes:
needinfo?
|
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-04-28 17:04:01 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Erik Sejr
2017-01-13 00:47:51 UTC
Some additional info: The issue may be limited to ioctl() calls on the block device. The lircd "Warning: can't get exclusive access to events coming from `/dev/lirc0' interface" message is a result of a failed EVIOCGRAB ioctl() call on the block device. The mode2 error is a result of a failed LIRC_GET_REC_MODE ioctl() call on the block device. When using cat or hexdump raw data can be obtained when a button on the remote is pressed: hexdump /dev/lirc0 0000000 83b2 0001 0096 0100 ffff 00ff 83b2 0001 But the reads seem to be too short or incomplete in some cases (much less data then expected). Built 4.4.0 vanilla kernel from source: # uname -a Linux xxx.domain.com 4.4.0Lirc+ #1 SMP Fri Jan 13 10:43:53 EST 2017 x86_64 x86_ Retested: # mode2 --raw -d /dev/lirc0 Using raw access on device /dev/lirc0 Using device: /dev/input/event0 Warning: Running as root. # mode2 --raw -d /dev/lirc1 Using raw access on device /dev/lirc1 Using device: /dev/input/event0 Warning: Running as root. # /usr/sbin/lircd -d /dev/lirc0 --pidfile=/run/lirc/lircd0.pid -o /var/run/lirc/lircd0 --nodaemon /etc/lirc/lircd.conf.mceusb lircd-0.9.4c[2007]: Info: lircd: Opening log, level: Info lircd-0.9.4c[2007]: Notice: Running as user lirc lircd-0.9.4c[2007]: Info: Using remote: mceusb. lircd-0.9.4c[2007]: Info: Using remote: mceusb_hauppauge. lircd-0.9.4c[2007]: Info: Using remote: vista_mce. lircd-0.9.4c[2007]: Notice: lircd(default) ready, using /var/run/lirc/lircd0 # irw /var/run/lirc/lircd0 000000037ff07bde 00 KEY_RIGHT mceusb 000000037ff07bde 00 KEY_RIGHT mceusb 000000037ff07bdf 00 KEY_LEFT mceusb 000000037ff07bdf 00 KEY_LEFT mceusb 000000037ff07be0 00 KEY_DOWN mceusb 000000037ff07be0 00 KEY_DOWN mceusb 000000037ff07be1 00 KEY_UP mceusb 000000037ff07be1 00 KEY_UP mceusb 000000037ff07be1 00 KEY_UP mceusb 000000037ff07bdf 00 KEY_LEFT mceusb 000000037ff07bde 00 KEY_RIGHT mceusb Please note that I did have to make one minor config change to get this to work - changing the driver from "devinput" to "default" in lirc_options.conf I will try to build vanilla kernels up to 4.9 to see when it fails. After testing a number of Kernels, this issue with mode2 and the LIRC_GET_REC_MODE ioctl seems to have been introduced in 4.8+. 4.7 and below do not exhibit this problem, 4.8 and 4.9 do. I did not test 4.10. Under any of the kernels starting at 4.4 (including the Fedora one), lirc only works with the "default" driver. The devinput driver always fails with the above error. *********** MASS BUG UPDATE ************** We apologize for the inconvenience. There is a large number of bugs to go through and several of them have gone stale. Due to this, we are doing a mass bug update across all of the Fedora 25 kernel bugs. Fedora 25 has now been rebased to 4.10.9-200.fc25. Please test this kernel update (or newer) and let us know if you issue has been resolved or if it is still present with the newer kernel. If you have moved on to Fedora 26, and are still experiencing this issue, please change the version to Fedora 26. If you experience different issues, please open a new bug report for those. *********** MASS BUG UPDATE ************** This bug is being closed with INSUFFICIENT_DATA as there has not been a response in 2 weeks. If you are still experiencing this issue, please reopen and attach the relevant data from the latest kernel you are running and any data that might have been requested previously. |