Bug 210263 - brightness device returns ENXIO (?) on brightness restore at boot, with bootoption "quiet"
Summary: brightness device returns ENXIO (?) on brightness restore at boot, with booto...
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(DRI - non Intel) (show other bugs)
Hardware: x86-64 Linux
: P1 normal
Assignee: drivers_video-dri
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-18 22:33 UTC by Fabian
Modified: 2021-07-29 13:23 UTC (History)
3 users (show)

See Also:
Kernel Version: 5.9.8
Tree: Mainline
Regression: No


Attachments
dmesg (81.49 KB, text/plain)
2020-11-18 22:33 UTC, Fabian
Details

Description Fabian 2020-11-18 22:33:02 UTC
Created attachment 293729 [details]
dmesg

Following: https://github.com/systemd/systemd/issues/17645

If I set kernel boot option "quiet", systemd fails to restore brightness level with error

Failed to start Load/Save Screen Backlight Brightness of backlight:amdgpu_bl0.

At boot.

full journal output is: 

journalctl -b -1 -u systemd-backlight@backlight:amdgpu_bl0.service
-- Logs begin at Thu 2020-09-17 08:15:00 CEST, end at Tue 2020-11-17 14:19:18 CET. --
Nov 17 14:15:15 frigg systemd[1]: Starting Load/Save Screen Backlight Brightness of backlight:amdgpu_bl0...
Nov 17 14:15:15 frigg systemd-backlight[325]: amdgpu_bl0: Failed to write system 'brightness' attribute: No such device or address
Nov 17 14:15:15 frigg systemd[1]: systemd-backlight@backlight:amdgpu_bl0.service: Main process exited, code=exited, status=1/FAILURE
Nov 17 14:15:15 frigg systemd[1]: systemd-backlight@backlight:amdgpu_bl0.service: Failed with result 'exit-code'.
Nov 17 14:15:15 frigg systemd[1]: Failed to start Load/Save Screen Backlight Brightness of backlight:amdgpu_bl0.


This is an AMD Renoir system, with AMD Ryzen 5 4500U APU,

This happens only, if I set 'quiet' as boot option. If I remove it, brightness restore works fine.

If I boot with quiet set, after login I can do 

systemctl start systemd-backlight@backlight:amdgpu_bl0.service

And it will successfully restore my brightness level.
Comment 1 ninelore 2021-02-02 11:32:39 UTC
Can confirm this with a Ryzen 7 4800H. Any news on this?
Comment 2 ninelore 2021-02-10 11:19:12 UTC
I just found out that this Issue does NOT occur when you additionally add the fbcon=nodefer kernel parameter.
Comment 3 Fabian 2021-02-10 16:10:11 UTC
(In reply to ninelore from comment #2)
> I just found out that this Issue does NOT occur when you additionally add
> the fbcon=nodefer kernel parameter.

This workaround works for me too.
Comment 4 Jonas Platte 2021-07-29 13:23:20 UTC
Workaround works for me too, on a Lenovo Ideapad 530S-14ARR with an AMD Ryzen 2500U. I also set acpi_backlight=vendor to fix the same error message for backlight:acpi_video1. (No idea why it tries to restore backlight brightness twice)

Note You need to log in before you can comment on or make changes to this bug.