Bug 470362

Summary: Cannot adjust the display brightness via Battery applet
Product: [KDE Neon] neon Reporter: Patrick Silva <bugseforuns>
Component: Packages Unstable EditionAssignee: Neon Bugs <neon-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: carlosd.kde, djmenig, jr, kde, kde, me, nate, neon-bugs, sitter
Priority: NOR Keywords: qt6
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Patrick Silva 2023-05-28 12:08:39 UTC
STEPS TO REPRODUCE
1. use Plasma on a laptop
2. try to adjust the display brightness via Battery applet in the system tray
3. 

OBSERVED RESULT
no effect when we change the "Display brightness" slider. The display brightness changes as expected if we use the special keyboard keys instead.

EXPECTED RESULT
we can adjust the display brightness via Battery applet

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.240.0
Qt Version: 6.5.0
Graphics Platform: Wayland
Comment 1 Nate Graham 2023-06-03 18:08:07 UTC
Works for me. Do you have a second screen attached? If so, it might be Bug 469895, which was just fixed recently.

If not, please kill plasmashell, run it in a terminal window, reproduce the bug, and then paste the terminal output.
Comment 2 Patrick Silva 2023-06-03 18:10:45 UTC
No external screen here. There is no output in Konsole after reproducing the bug.
Comment 3 David Edmundson 2023-06-06 18:30:36 UTC
Also works for me, is this is a self-built setup installing somewhere other than /usr
Comment 4 Patrick Silva 2023-06-06 18:53:47 UTC
All packages were installed from neon repositories. Also I noticed that the power management of the screen is not working,
and "Switch off after" option is no longer available in "Energy Saving" KCM.
Comment 5 Patrick Silva 2023-06-06 19:11:49 UTC
I have just noticed that the power management of the screen works on X11. But the display brightness adjustment is not working on X11 too.
Comment 6 Bug Janitor Service 2023-06-21 03:45:11 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Patrick Silva 2023-06-21 13:11:07 UTC
The requested info was provided.
Comment 8 Nate Graham 2023-06-21 15:04:00 UTC
Heard that this was broken for David Redondo too, who's using Neon Unstable. But it's working for me and Justin Zobel, and Justin has stuff installed from packaging rather than built from source--just in Fedora, and not Neon. It points to a Neon packaging bug; moving there.
Comment 9 Jonathan Riddell 2023-06-21 15:08:58 UTC
Works for me using neon unstable build 4:5.27.5+p22.04+tunstable+git20230612.0243-0
I'm upgrading now to today's build...
Comment 10 Jonathan Riddell 2023-06-29 09:32:51 UTC
Works fine with neon powerdevil 4:5.27.6+p22.04+tunstable+git20230628.0304-0
Comment 11 Jonathan Riddell 2023-06-29 09:44:19 UTC
This might be due to kded6 overlapping with kded5, try

apt install --reinstall kf6-kded6

and log out and in
Comment 12 Patrick Silva 2023-06-29 13:02:20 UTC
Here is the output on my system:

$ sudo apt install --reinstall kf6-kded6
[sudo] password for myuser: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package kf6-kded6
Comment 13 Carlos De Maine 2023-07-04 05:44:09 UTC
apt install --reinstall kf6-kded
Comment 14 Patrick Silva 2023-07-04 12:31:17 UTC
Reinstalled kf6-kded package and the bug persists after logout and login.
Comment 15 Carlos De Maine 2023-07-10 02:51:55 UTC
work fine for me here on wayland with intel_backlight.  what does 
`
ls -ls /sys/class/backlight/
` 
produce?
Comment 16 Patrick Silva 2023-07-10 04:13:08 UTC
$ ls -ls /sys/class/backlight/
total 0
0 lrwxrwxrwx 1 root root 0 jul 10 01:09 intel_backlight -> ../../devices/pci0000:00/0000:00:02.0/drm/card0/card0-LVDS-1/intel_backlight
Comment 17 Carlos De Maine 2023-07-10 06:43:52 UTC
looks fine.  what about - ls -ls /sys/class/backlight/intel_backlight/
Comment 18 Patrick Silva 2023-07-10 11:45:46 UTC
$ ls -ls /sys/class/backlight/intel_backlight/
total 0
0 -r--r--r-- 1 root root 4096 jul 10 08:45 actual_brightness
0 -rw-r--r-- 1 root root 4096 jul 10 08:45 bl_power
0 -rw-r--r-- 1 root root 4096 jul 10 08:37 brightness
0 lrwxrwxrwx 1 root root    0 jul 10 08:37 device -> ../../card0-LVDS-1
0 -r--r--r-- 1 root root 4096 jul 10 08:37 max_brightness
0 drwxr-xr-x 2 root root    0 jul 10 08:45 power
0 -r--r--r-- 1 root root 4096 jul 10 08:45 scale
0 lrwxrwxrwx 1 root root    0 jul 10 08:36 subsystem -> ../../../../../../../class/backlight
0 -r--r--r-- 1 root root 4096 jul 10 08:37 type
0 -rw-r--r-- 1 root root 4096 jul 10 08:36 uevent
Comment 19 Carlos De Maine 2023-07-11 00:51:00 UTC
also looks fine.  are there any error in the journal for powerdevil or kernel stuff?
Comment 20 Patrick Silva 2023-07-11 01:50:59 UTC
journal and dmesg logs do not print anything.
Comment 21 Patrick Silva 2023-07-26 13:37:29 UTC
(In reply to Patrick Silva from comment #4)
> All packages were installed from neon repositories. Also I noticed that the
> power management of the screen is not working,
> and "Switch off after" option is no longer available in "Energy Saving" KCM.

Currently the power management of the screen works  and "Switch off after" option is available, but the bug with the applet persists.
Comment 22 djmenig 2023-08-20 19:59:57 UTC
I can confirm. 

The display brightness slider within the battery and brightness applet has no effect; however, adjusting the brightness level is possible by navigating to system settings-->Power Management-->Energy Saving, adjusting the Screen brightness level, and clicking Apply.

Current System Software Versions:
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.240.0
Qt Version: 6.6.0
Kernel Version: 6.2.0-26-generic (64-bit)
Graphics Platform: Wayland
Comment 23 Patrick Silva 2023-09-13 19:42:33 UTC
I can't reproduce on neon unstable after today's updates.