FS#39327 - [systemd] restores backlight to zero if computer was shutdown when screen is off

Attached to Project: Arch Linux
Opened by Auguste Pop (Auguste) - Tuesday, 11 March 2014, 01:43 GMT
Last edited by Dave Reisner (falconindy) - Wednesday, 12 March 2014, 15:47 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Dave Reisner (falconindy)
Tom Gundersen (tomegun)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Since version 210, systemd restores backlight to zero if the computer was previously shutdown in a state that the backlight is off due to screensaver or something alike.

Additional info:
* package version(s)
210-3
* config and/or log files etc.
n/a

Steps to reproduce:
I often run some long calculations at night and then use sudo poweroff to shutdown the computer when it is done. Of course, the user I am using has NOPASSWD setting for poweroff in /etc/sudoers.

The problem is, normally, the sceen is off when the poweroff occurs. This makes the new systemd restoring backlight to zero when I turn on the computer the next time.

There is of course a simple workaround, namely to turn on the screen before poweroff. But I still think this is a bug in systemd.
This task depends upon

Closed by  Dave Reisner (falconindy)
Wednesday, 12 March 2014, 15:47 GMT
Reason for closing:  Upstream
Additional comments about closing:  http://cgit.freedesktop.org/systemd/syst emd/commit/?id=7b909d7
Comment by Dave Reisner (falconindy) - Tuesday, 11 March 2014, 20:51 GMT
This was recently discussed upstream. IIRC, the proposed solution was to ignore the backlight value if it was below some absolute value or under some percentage of the maximum. You also have the option of adding systemd.restore_state=0 to your kernel command line (as per systemd-backlight(8)) if you want to avoid this behavior.
Comment by Dave Reisner (falconindy) - Tuesday, 11 March 2014, 20:53 GMT Comment by Dave Reisner (falconindy) - Wednesday, 12 March 2014, 15:47 GMT
Fixed upstream: http://cgit.freedesktop.org/systemd/systemd/commit/?id=7b909d7

I will not be backporting this.

Loading...