[Bug 954588] New: After upgrade to kernel-default 4.3.0 rotation and ambient brightness sensors stopped working
http://bugzilla.opensuse.org/show_bug.cgi?id=954588 Bug ID: 954588 Summary: After upgrade to kernel-default 4.3.0 rotation and ambient brightness sensors stopped working Classification: openSUSE Product: openSUSE Tumbleweed Version: 2015* Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel Assignee: kernel-maintainers@forge.provo.novell.com Reporter: badshah400@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Since TW recently got the kernel 4.3.0 update, the rotation and brightness sensors on my laptop stopped working. Until kernel 4.2.4, using the software from https://github.com/hadess/iio-sensor-proxy allowed the screen to automatically rotate depending on the panel orientation and allowed the brightness of the screen to be automatically adjusted depending on ambient light. All this stopped as soon as the update to kernel 4.3.0 was done. In fact if I boot into the 4.2.4 kernel, the sensors still work. It seems like there was a regression in the iio subsystem going from 4.2.x to 4.3.0. Happy to provide logs as required. For now, an initial discussion is also available at the iio-sensor-proxy upstream: https://github.com/hadess/iio-sensor-proxy/issues/55 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=954588 http://bugzilla.opensuse.org/show_bug.cgi?id=954588#c1 Takashi Iwai <tiwai@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |badshah400@gmail.com, | |tiwai@suse.com Flags| |needinfo?(badshah400@gmail. | |com) --- Comment #1 from Takashi Iwai <tiwai@suse.com> --- Which driver is related exactly? There are lots of changes in IIO area. Also please give the kernel messages (dmesg output) from both 4.2.4 and 4.3 kernels. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=954588 http://bugzilla.opensuse.org/show_bug.cgi?id=954588#c2 --- Comment #2 from Atri Bhattacharya <badshah400@gmail.com> --- Created attachment 655511 --> http://bugzilla.opensuse.org/attachment.cgi?id=655511&action=edit dmesg output from kernel 4.2.4 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=954588 http://bugzilla.opensuse.org/show_bug.cgi?id=954588#c3 --- Comment #3 from Atri Bhattacharya <badshah400@gmail.com> --- Created attachment 655512 --> http://bugzilla.opensuse.org/attachment.cgi?id=655512&action=edit dmesg output from kernel 4.3.0 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=954588 http://bugzilla.opensuse.org/show_bug.cgi?id=954588#c4 Atri Bhattacharya <badshah400@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(badshah400@gmail. | |com) | --- Comment #4 from Atri Bhattacharya <badshah400@gmail.com> --- Created attachment 655513 --> http://bugzilla.opensuse.org/attachment.cgi?id=655513&action=edit Details of hardware from YaST's Hardware module I don't exactly know which driver, but I hope this will be of help. If you can suggest how to figure out which driver is responsible for the sensors, I can be more precise. Thanks for your prompt response. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=954588 http://bugzilla.opensuse.org/show_bug.cgi?id=954588#c5 Takashi Iwai <tiwai@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|kernel-maintainers@forge.pr |jkosina@suse.com |ovo.novell.com | --- Comment #5 from Takashi Iwai <tiwai@suse.com> --- Thanks. The hid-sensors-* drivers seem corresponding. Through a quick glance, however, I couldn't find any obvious changes in these drivers between 4.2 and 4.3. So, a breakage came likely from another part of the kernel. In anyway, I reassign this to Jiri, who has certainly a better clue. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=954588 http://bugzilla.opensuse.org/show_bug.cgi?id=954588#c6 --- Comment #6 from Atri Bhattacharya <badshah400@gmail.com> --- Just in case this might be useful, using the tool G_MESSAGES_DEBUG=all /usr/sbin/iio-sensor-proxy running as root (frm https://github.com/hadess/iio-sensor-proxy ), when using the kernel 4.2.4 I see output like: ---------------------------------------------------------- ** (process:17505): DEBUG: Found als at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200041.8.auto/iio:device2 ** (process:17505): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200041.8.auto/iio:device2 of type ambient light sensor at IIO Buffer Light sensor ** (process:17505): DEBUG: Found accel_3d at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200073.1.auto/iio:device0 ** (process:17505): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200073.1.auto/iio:device0 of type accelerometer at IIO Buffer accelerometer ** (process:17505): DEBUG: Found magn_3d at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200083.3.auto/iio:device1 ** (process:17505): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200083.3.auto/iio:device1 of type compass at IIO Buffer Compass ** (process:17505): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200073.1.auto/trigger0 ** (process:17505): DEBUG: Got type for in_accel_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:17505): DEBUG: Got type for in_accel_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:17505): DEBUG: Got type for in_accel_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:17505): DEBUG: Built channel array for in_accel_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:17505): DEBUG: Built channel array for in_accel_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:17505): DEBUG: Built channel array for in_accel_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:17505): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200041.8.auto/trigger2 ** (process:17505): DEBUG: Got type for in_intensity_both: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0 ** (process:17505): DEBUG: Built channel array for in_intensity_both: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0 ** (process:17505): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200083.3.auto/trigger1 ** (process:17505): DEBUG: Got type for in_magn_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:17505): DEBUG: Got type for in_magn_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:17505): DEBUG: Got type for in_magn_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:17505): DEBUG: Got type for in_rot_from_north_magnetic_tilt_comp: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:17505): DEBUG: Built channel array for in_magn_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:17505): DEBUG: Built channel array for in_magn_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:17505): DEBUG: Built channel array for in_magn_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:17505): DEBUG: Built channel array for in_rot_from_north_magnetic_tilt_comp: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:17505): DEBUG: Handling driver refcounting method 'ClaimLight' for ambient light sensor device ** (process:17505): DEBUG: Handling driver refcounting method 'ClaimAccelerometer' for accelerometer device ** (process:17505): DEBUG: No new data available ** (process:17505): DEBUG: Read from IIO: 8, -964, -308 ** (process:17505): DEBUG: Accel sent by driver (quirk applied): 0, 9, -3 ** (process:17505): DEBUG: Emitted orientation changed: from undefined to normal ** (process:17505): DEBUG: No new data available ** (process:17505): DEBUG: Read from IIO: 3, -963, -308 ** (process:17505): DEBUG: Accel sent by driver (quirk applied): 0, 9, -3 ** (process:17505): DEBUG: No new data available ** (process:17505): DEBUG: Read from IIO: 5, -963, -321 ** (process:17505): DEBUG: Accel sent by driver (quirk applied): 0, 9, -3 ** (process:17505): DEBUG: No new data available ---------------------------------------------------------- while using 4.3.0 I see, instead, ---------------------------------------------------------- ** (process:2088): DEBUG: Found als at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200041.8.auto/iio:device0 ** (process:2088): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200041.8.auto/iio:device0 of type ambient light sensor at IIO Buffer Light sensor ** (process:2088): DEBUG: Found accel_3d at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200073.1.auto/iio:device1 ** (process:2088): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200073.1.auto/iio:device1 of type accelerometer at IIO Buffer accelerometer ** (process:2088): DEBUG: Found magn_3d at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200083.3.auto/iio:device5 ** (process:2088): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200083.3.auto/iio:device5 of type compass at IIO Buffer Compass ** (process:2088): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200073.1.auto/trigger1 ** (process:2088): DEBUG: Got type for in_accel_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:2088): DEBUG: Got type for in_accel_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:2088): DEBUG: Got type for in_accel_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:2088): DEBUG: Built channel array for in_accel_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:2088): DEBUG: Built channel array for in_accel_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:2088): DEBUG: Built channel array for in_accel_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:2088): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200041.8.auto/trigger0 ** (process:2088): DEBUG: Got type for in_intensity_both: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0 ** (process:2088): DEBUG: Built channel array for in_intensity_both: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0 ** (process:2088): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200083.3.auto/trigger5 ** (process:2088): DEBUG: Got type for in_magn_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:2088): DEBUG: Got type for in_magn_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:2088): DEBUG: Got type for in_magn_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:2088): DEBUG: Got type for in_rot_from_north_magnetic_tilt_comp: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:2088): DEBUG: Built channel array for in_magn_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:2088): DEBUG: Built channel array for in_magn_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:2088): DEBUG: Built channel array for in_magn_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:2088): DEBUG: Built channel array for in_rot_from_north_magnetic_tilt_comp: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:2088): DEBUG: Handling driver refcounting method 'ClaimLight' for ambient light sensor device ** (process:2088): DEBUG: Handling driver refcounting method 'ClaimAccelerometer' for accelerometer device ** (process:2088): DEBUG: No new data available ** (process:2088): DEBUG: No new data available ** (process:2088): DEBUG: No new data available ** (process:2088): DEBUG: No new data available ** (process:2088): DEBUG: No new data available ** (process:2088): DEBUG: No new data available ** (process:2088): DEBUG: No new data available ** (process:2088): DEBUG: No new data available ** (process:2088): DEBUG: No new data available --------------------------------------------------------- and so on. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=954588 http://bugzilla.opensuse.org/show_bug.cgi?id=954588#c7 --- Comment #7 from Atri Bhattacharya <badshah400@gmail.com> --- Any info? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=954588 Bjørn Lie <zaitor@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zaitor@opensuse.org -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=954588 http://bugzilla.opensuse.org/show_bug.cgi?id=954588#c8 Braden Kelley <redbmk@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |redbmk@gmail.com --- Comment #8 from Braden Kelley <redbmk@gmail.com> --- For a bit of extra info, it looks like waking up from suspend causes the sensors to work properly in 4.3.3, but it will not work before that after a boot. There is some extra logging info in https://github.com/hadess/iio-sensor-proxy/issues/66. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=954588 http://bugzilla.opensuse.org/show_bug.cgi?id=954588#c9 Karl Cheng <qantas94heavy@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |qantas94heavy@gmail.com Resolution|--- |FIXED --- Comment #9 from Karl Cheng <qantas94heavy@gmail.com> --- Fixed upstream and backported to openSUSE Leap/TW. Upstream: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?i... 42.2: https://kernel.suse.com/cgit/kernel/commit/?h=openSUSE-42.2&id=1d7e8cf01e2ed35ccded43b46a01c72ea29e9f15 -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com