Brightness controls stop working after a while

Hi, I am running Tumbleweed with Plasma on an AMD Asus laptop. The brightness keys have always worked fine. Recently (since a few weeks) I’ve noticed that my brightness keys sometimes suddenly stop working, and the only way to fix them is to reboot the computer. To add some detail:

  • I boot my computer and log into Plasma. The brightness keys and the brightness slider in the “Brightness and color” applet I have in my Plasma panel work fine
  • I do my stuff and at some point they break. The slider in the applet also stops working
  • I was not able to identify a usage pattern that leads to their breakage
  • I can still, of course, control the backlight writing the desired value into /sys/class/backlight/amdgpu_bl1/brightness
  • I found some relevant errors in the journalctl log, together with a bad crash which I am not sure is related to my problem: openSUSE Paste

What is going on? Shall I file a bug report to openSUSE, or KDE, or…?
Thanks!

@Tomoms Hi, that looks like the amdgpu brightness is fighting with the powerdevil thing (I don’t use Plasma).

I’ve seen a similar issue with acpi brightness fighting with another brightness control service. If you run journalctl -b | grep brightness what does this look like?

@malcolmlewis

I only see one line:

dic 24 11:48:26 m3502qa kernel: amdgpu 0000:03:00.0: amdgpu: [drm] Using custom brightness curve

@Tomoms so something is talking to the driver… There should be more backlight entries?

What about journalctl -b -1 | grep bright to look at the previous boot log. You might have to just use journalctl -b abd peruse, or open a terminal and run journalctl -f to follow the log and whn the issue appears have a look at what the system is doing to stop the control from working.

@malcolmlewis
Hi, looking at the previous boot log I only see the same single line I’ve already posted. Today I’ve noticed that the breakage does seem to occur after resuming from suspend and/or waking up from lockscreen (i.e. lifting the laptop lid up). I cannot remember clearly, but I have the feeling that yesterday and the other times I faced this issue, it also arose after waking/resuming the laptop. I will use your command to monitor the log in the next few days. Thank you for your help and I wish you a merry Christmas if you celebrate!

@malcolmlewis
After further investigation, brightness controls break exactly when the stacktrace I have already linked is printed to journalctl: https://paste.opensuse.org/pastes/b1959bccc282

@Tomoms I suspect a bug report, that looks like a Polkit issue so start here; https://en.opensuse.org/openSUSE:Submitting_bug_reports

Hi, just FYI, this is a polkit 126 bug: https://bugzilla.opensuse.org/show_bug.cgi?id=1255815
It’ll be fixed when 127 lands in TW.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.