FS#41580 - [linux] Backlight control failure on linux 3.16
Attached to Project:
Arch Linux
Opened by Martin Roth (Captain_Rage) - Saturday, 16 August 2014, 22:39 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 01 October 2017, 15:48 GMT
Opened by Martin Roth (Captain_Rage) - Saturday, 16 August 2014, 22:39 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 01 October 2017, 15:48 GMT
|
Details
Description:
Upon booting the follwing message appears: [FAILED] Failed to start Load/Save Screen Backlight Brightness of backlight:acpi_video0 See 'systemctl status systemd-backlight@backlight:acpi_video0.service' for details. Controlling the brightness via hotkeys doesn't work anymore. Related: https://bugzilla.redhat.com/show_bug.cgi?id=1062638 Additional info: * package version(s) * config and/or log files etc. Steps to reproduce: Boot the system using systemd. |
This task depends upon
strace /usr/lib/systemd/systemd-backlight load backlight:acpi_video0 &>strace.log
And attach the log file.
Doesn't seem at all related to the linked bug since the included work from Zbigniew is included as of v214.
● systemd-backlight@backlight:acpi_video.service - Load/Save Screen Backlight Brightness of backlight:acpi_video
Loaded: loaded (/usr/lib/systemd/system/systemd-backlight@.service; static)
Active: inactive (dead)
Docs: man:systemd-backlight@.service(8)
The only thing I'm sure about is that it was working before some update and that I haven't fiddled with anything. I'm not sure what conclusion to make from this command, but hopefully it is helpful.
When on battery, however, the backlight seems to not be on at all as it is dimmed extremely dark.
However, I did not see any failures from the systemd unit:
[root@workhorse ~]# systemctl status systemd-backlight@*
● systemd-backlight@backlight:intel_backlight.service - Load/Save Screen Backlight Brightness of backlight:intel_backlight
Loaded: loaded (/usr/lib/systemd/system/systemd-backlight@.service; static)
Active: active (exited) since Fri 2014-08-22 16:58:04 EDT; 10min ago
Docs: man:systemd-backlight@.service(8)
Process: 325 ExecStart=/usr/lib/systemd/systemd-backlight load %i (code=exited, status=0/SUCCESS)
Main PID: 325 (code=exited, status=0/SUCCESS)
Aug 22 16:58:04 workhorse systemd[1]: Started Load/Save Screen Backlight Brightness of backlight:intel_backlight.
Hardware:
[root@workhorse ~]# lspci | egrep -i 'vga|display'
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Mars [Radeon HD 8670A/8670M/8750M] (rev ff)
No failed systemd services at all, actually..
I am attaching an strace.log in the event it helps, but being that the service unit starts successfully but the *behaviour* is b0rk3n, I'm not certain it will help.
It's also a possibility that it's failing (or just not enabled) for the Radeon "Display controller" but the VGA controller is working okay, and it never attempts to load the Radeon backlighting.
However, this is a clear regression- this was working just fine before an upgrade. List of package activity that could have caused this (as they were all installed/removed/upgraded between known states of working vs. non-working) is also attached.
pkg.activity.txt (15.9 KiB)
Martin, can you do the following for me and paste it?
for i in $(pacman -Qqs '(^|-)ati') linux ; do pacman -Qi ${i} | egrep '^Name|^Version|^Install Date' ; echo ; done
(if you're wary about pasting one-liners from strangers on the intarwebz, mine looks like this:
[bts@workhorse ~]$ for i in $(pacman -Qqs '(^|-)ati') linux ; do pacman -Qi ${i} | egrep '^Name|^Version|^Install Date' ; echo ; done
Name : ati-dri
Version : 10.2.6-1
Install Date : Thu 21 Aug 2014 09:15:38 PM EDT
Name : xf86-video-ati
Version : 1:7.4.0-3
Install Date : Thu 21 Aug 2014 09:21:22 PM EDT
Name : linux
Version : 3.16.1-1
Install Date : Thu 21 Aug 2014 09:19:25 PM EDT
)
All three packages were upgraded (for me) during the same upgrade run, and definitely falls into the range of time between reboots (as noted in the package list at https://bugs.archlinux.org/task/41580?getfile=12125 ) in which the issue came up. I'd like to see if you would have better luck noticing which package was the closest to about when you first noticed this issue.
What's stranger, to me, is that I don't see ANY backlight device for ATI/AMD devices (acpi_video0), only Intel (intel_backlight) despite me apparently having both (per my lspci output above).
If you can give the same lspci output I did (lspci | egrep -i 'vga|display'), I'd be curious to see that as well.
Dave- can you provide any input or perspective on what is/might be happening here? Should an upstream bug be filed?
> Dave- can you provide any input or perspective on what is/might be happening here? Should an upstream bug be filed?
Seems like something changed in the kernel. Not much for Arch to do. If you want to file a bug report, I'd suggest bisecting it to the broken commit first.
CRIMINY, you're right. Sorry; that one must have slipped in there. Fixed.
"Seems like something changed in the kernel. Not much for Arch to do. If you want to file a bug report, I'd suggest bisecting it to the broken commit first."
Yeah, I'm going through the commits now between 15.5 and 16.1. I'll pop back in if I find anything.
Name : ati-dri
Version : 10.2.6-1
Install Date : Fri 22 Aug 2014 02:34:28 AM CEST
Name : lib32-ati-dri
Version : 10.2.6-1
Install Date : Fri 22 Aug 2014 02:34:31 AM CEST
Name : xf86-video-ati
Version : 1:7.4.0-3
Install Date : Wed 06 Aug 2014 11:33:12 AM CEST
Name : linux
Version : 3.16.1-1
Install Date : Thu 14 Aug 2014 06:08:33 PM CEST
I haven't tried downgrading the kernel. Doing so might be an easy way rule out that it's a problem with another package.
Sounds great, Brent! Good luck and report if you find anything!
If you can downgrade (note that it's not officially supported, BUT possible. Before doing so, please read https://wiki.archlinux.org/index.php/Downgrading_packages and https://wiki.archlinux.org/index.php/Arch_Rollback_Machine) while I look over the commits to the kernel, that'd be a HUGE help (as bisecting can be a somewhat tedious process).
If you're on x86_64, you can use this package: http://seblu.net/a/arm/2014/08/12/core/os/x86_64/linux-3.15.8-1-x86_64.pkg.tar.xz
If you're on i686, you can use this package: http://seblu.net/a/arm/2014/08/12/core/os/i686/linux-3.15.8-1-i686.pkg.tar.xz
Here's the result:
751109aad5834375ca9ed0dcfcd85a00cbf872b5 is the first bad commit
commit 751109aad5834375ca9ed0dcfcd85a00cbf872b5
Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Date: Thu Jun 5 22:47:35 2014 +0200
ACPI / video: Change the default for video.use_native_backlight to 1
Now that we're hoping to have resolved all of the problems with
video.use_native_backlight=1, make that the default at last.
Link: http://marc.info/?l=linux-acpi&m=139716088401106&w=2
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
:040000 040000 d8f9ae057c052cd94f1adcfc0b298db2c728a315 933b38080034b141fc0c31f54f38f5b232f69c17 M drivers
And here's the full log:
[bts@workhorse linux-git]$ git bisect log
git bisect start
# bad: [19583ca584d6f574384e17fe7613dfaeadcdc4a6] Linux 3.16
git bisect bad 19583ca584d6f574384e17fe7613dfaeadcdc4a6
# good: [fad01e866afdbe01a1f3ec06a39c3a8b9e197014] Linux 3.15-rc8
git bisect good fad01e866afdbe01a1f3ec06a39c3a8b9e197014
# good: [7b215de3d0abbc4f6daf2efd19e8809af0564490] Merge branch 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux into next
git bisect good 7b215de3d0abbc4f6daf2efd19e8809af0564490
# bad: [0430e49b6e7c6b5e076be8fefdee089958c9adad] ima: introduce ima_kernel_read()
git bisect bad 0430e49b6e7c6b5e076be8fefdee089958c9adad
# good: [2937f5efa5754754daf46de745f67350f7f06ec2] Merge branch 'for_linus' of git://cavan.codon.org.uk/platform-drivers-x86
git bisect good 2937f5efa5754754daf46de745f67350f7f06ec2
# good: [bc1dfff04a5d4064ba0db1fab13f84ab4f333d2b] Merge branch 'drm-nouveau-next' of git://anongit.freedesktop.org/git/nouveau/linux-2.6 into drm-next
git bisect good bc1dfff04a5d4064ba0db1fab13f84ab4f333d2b
# good: [412dd3a6daf0cadce1b2d6a34fa3713f40255579] Merge tag 'xfs-for-linus-3.16-rc1' of git://oss.sgi.com/xfs/xfs
git bisect good 412dd3a6daf0cadce1b2d6a34fa3713f40255579
# good: [c31c24b8251fd44962a9b0bf82c770653bf07f6e] Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
git bisect good c31c24b8251fd44962a9b0bf82c770653bf07f6e
# good: [16b9057804c02e2d351e9c8f606e909b43cbd9e7] Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
git bisect good 16b9057804c02e2d351e9c8f606e909b43cbd9e7
# bad: [19c1940feab777bb037c665a09f495d08a6c4e6c] Merge tag 'pm+acpi-3.16-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
git bisect bad 19c1940feab777bb037c665a09f495d08a6c4e6c
# good: [af76004cf8b4f368583bda22d7e348e40a338b91] Merge tag 'backlight-for-linus-3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight
git bisect good af76004cf8b4f368583bda22d7e348e40a338b91
# bad: [589e18a973bd6bb8abd2c6d4d8a1dcf5ae1dff61] Merge branch 'pm-cpufreq'
git bisect bad 589e18a973bd6bb8abd2c6d4d8a1dcf5ae1dff61
# good: [830bcac4e483d347087ed51eed564d1467e1e363] cpufreq: intel_pstate: Remove duplicate CPU ID check
git bisect good 830bcac4e483d347087ed51eed564d1467e1e363
# good: [9d674f2107b7dc801db9780f5f6b645f4905372f] Merge branch 'acpi-hotplug'
git bisect good 9d674f2107b7dc801db9780f5f6b645f4905372f
# bad: [de815a6d00da0f8a59e8aebf8efe12e289552a8f] Merge branches 'acpi-general' and 'acpi-video'
git bisect bad de815a6d00da0f8a59e8aebf8efe12e289552a8f
# good: [a4714a898e85205e1118ec923cde43d88eb105f6] ACPI: Fix bug when ACPI reset register is implemented in system memory
git bisect good a4714a898e85205e1118ec923cde43d88eb105f6
# bad: [751109aad5834375ca9ed0dcfcd85a00cbf872b5] ACPI / video: Change the default for video.use_native_backlight to 1
git bisect bad 751109aad5834375ca9ed0dcfcd85a00cbf872b5
# first bad commit: [751109aad5834375ca9ed0dcfcd85a00cbf872b5] ACPI / video: Change the default for video.use_native_backlight to 1
I'll see if I can test against the 3.17 branch to see if it still persists.
But yeah, the above should be the patch that's causing this particular issue.
Do the arch maintainers report bugs upstream?
https://bugzilla.kernel.org/show_bug.cgi?id=84221
I'd open a new ticket at bugzilla.kernel.org and reference my bug (linked above) as well as the one I reference in that bug (84221). It'll also help to provide a dmidecode output since you'll probably be asked for it.
As for it only happening sometimes, can you confirm that:
1.) You are using the same kernel version every boot, and
2.) It happens truly at random and can't be reproduced at will (i.e. it occurs if you boot without A/C plugged in, but does not occur if you boot with A/C plugged in, etc.)
if it indeed can't be reproduced at-will, it might be a recent software update, so check your pacman logs and see what was installed/upgraded since the issue first started happening.
Upstream found a fix and should have a patch in one of the releases for 3.18 to fix the issues I was having with this (probably 3.18.2 if I had to guess).
Arch linux full updated.
Acpi is instaled and I have the package samsung-laptop instaled too, but removing it do not change anything.
journalctl -xb shows the line below:
Dez 22 19:29:00 archnote systemd-backlight[24269]: Failed to get backlight or LED device 'backlight:acpi_video0': No such file or directory
Maybe we will have some look with the 3.18.2 release.
Thanks.
lspci.log (1.7 KiB)
systemd-backlight.txt (1.3 KiB)