Bug 433019 - Changing brightness has no effect on actual screen brightness
Summary: Changing brightness has no effect on actual screen brightness
Status: RESOLVED DOWNSTREAM
Alias: None
Product: Powerdevil
Classification: Plasma
Component: general (show other bugs)
Version: 5.21.0
Platform: Neon Linux
: NOR major
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2021-02-16 18:06 UTC by jmeron1991
Modified: 2021-02-16 22:28 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jmeron1991 2021-02-16 18:06:52 UTC
SUMMARY
Changing the brightness on the battery applet or fn-keys doesn't change the screen brightness.

Using xrandr works, but that seems to be a gamma change and not a change in the backlight.

STEPS TO REPRODUCE
1. Start plasma
2. Change brightness

OBSERVED RESULT
No change in actual screen brightness

EXPECTED RESULT
Change in actual screen brightness


SOFTWARE/OS VERSIONS

Linux/KDE Plasma: KDE neon 5.21
(available in About System)
KDE Plasma Version: 5.21.0
KDE Frameworks Version: 5.79.0
Qt Version: 5.12.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-02-16 18:41:11 UTC
Can't reproduce on openSUSE Tumbleweed with Plasma 5.21; works for me.
Comment 2 Kai Uwe Broulik 2021-02-16 18:48:54 UTC
Hmm could that be fallout from removing xrandr brightness?

Can you provide the output of $ ls /sys/class/backlight/
Comment 3 jmeron1991 2021-02-16 21:05:56 UTC
ls /sys/class/backlight/

gives a directory called:

acpi_video0
Comment 4 Kai Uwe Broulik 2021-02-16 21:15:22 UTC
Okay, so that is the fallback driver I think, can you check the contents of "brightness" and "max_brightness" in that folder?

Also, when you echo into brightness, does it change? e.g.

echo 5 | sudo tee /sys/class/backlight/acpi_video0/brightness
Comment 5 jmeron1991 2021-02-16 21:24:46 UTC
cat /sys/class/backlight/acpi_video0/brightness
0

cat /sys/class/backlight/acpi_video0/max_brightness
100


echo 5 | sudo tee ls /sys/class/backlight/acpi_video0/brightness
changes the file, but has no effect on screen brightness
Comment 6 Kai Uwe Broulik 2021-02-16 21:34:00 UTC
So then there's not much Plasma can do unfortunately. What GPU is this? Perhaps report a kernel or driver bug.
Comment 7 jmeron1991 2021-02-16 21:38:25 UTC
I use an Nvidia 650m

But it worked before the update to plasma 5.21 earlier today.
Comment 8 Kai Uwe Broulik 2021-02-16 21:40:46 UTC
We removed the xrandr code path (which xrandr probably uses) for codd maintenance and because it wouldn't work on wayland anyway, sorry.
Comment 9 jmeron1991 2021-02-16 22:03:56 UTC
I found a solution by editing /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to 

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video.use_native_backlight=1"

and updating grub
Comment 10 Kai Uwe Broulik 2021-02-16 22:28:54 UTC
Glad you found a solution and sorry for the trouble but sometimes we gotta clean up our codebase to make it more maintainable and future-proof