[systemd-bugs] [Bug 79159] New: Systemd sets wrong screen brightness resuming from suspend on Optimus enabled laptop
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri May 23 16:52:52 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=79159
Priority: medium
Bug ID: 79159
Assignee: systemd-bugs at lists.freedesktop.org
Summary: Systemd sets wrong screen brightness resuming from
suspend on Optimus enabled laptop
QA Contact: systemd-bugs at lists.freedesktop.org
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: poeticrpm at gmail.com
Hardware: x86-64 (AMD64)
Status: NEW
Version: unspecified
Component: general
Product: systemd
On systems with only one graphics card (or with Optimus disabled in BIOS),
systemd works correctly: whatever the screen brightness when suspend is
initiated is the screen brightness that is set upon resuming from suspend.
If the system has Optimus enabled however, resuming from suspend always sets
the backlight to 100%. This is because systemd is apparently looking at the
wrong device in /sys/class/backlight (the device of the nvidia card, not the
intel card which controls the backlight).
Consider the following contents of /sys/class/backlight on a system with
Optimus disabled:
$ ls /sys/class/backlight
acpi_video0 intel_backlight
Now consider the results of a system with Optimus enabled:
$ ls /sys/class/backlight
acpi_video0 acpi_video1 intel_backlight
In the second case, if I manually:
echo "50" > /sys/class/backlight/acpi_video1/brightness
the laptop will resume from suspend with 50% screen brightness (regardless of
what the brightness is actually set at).
I believe the solution is to have either a config option in logind.conf for
which device to use in /sys/class/backlight, or for systemd to determine this
automatically.
Information:
Lenovo Thinkpad T530
EFI setup
Arch Linux (64bit) (Fully up to date as of this posting)
systemd version: 212 (or: 212-3 in the Arch repos)
lspci | grep "VGA" (Optimus enabled)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor
Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [NVS 5400M] (rev
a1)
I am not sure whether this is a regression or if it has just never came up- I
only recently starting using Optimus (having disabled it via BIOS before) so..
If you need any other information, just ask :)
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140523/56e79746/attachment.html>
More information about the systemd-bugs
mailing list