https://bugs.kde.org/show_bug.cgi?id=491605

            Bug ID: 491605
           Summary: backlighthelper.brightness display probe fails on
                    Wayland
    Classification: Plasma
           Product: Powerdevil
           Version: 6.1.4
          Platform: openSUSE
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: plasma-b...@kde.org
          Reporter: debayansutradh...@gmail.com
                CC: m...@ratijas.tk, natalie_clar...@yahoo.de
  Target Milestone: ---

Created attachment 172529
  --> https://bugs.kde.org/attachment.cgi?id=172529&action=edit
sudo journalctl --boot (after applying delay)

SUMMARY

Sometimes, the `org.kde.powerdevil.backlighthelper.brightness` display probe
fails on Nvidia cards + Wayland, hence preventing the user to set monitor
brightness from the plasma taskbar applet.

The frequency is random, which makes me think there is some race condition or
similar situation. On X11, however, this issue is non existent and the display
brightness feature always works.

I am able to workaround the issue by adding a slight delay of 3 seconds in
powerdevil service:

override.conf:

```
   
/home/rnayabed/.config/systemd/user/plasma-powerdevil.service.d/.#override.conf7e6e1614f2ba2121
 
### Editing
/home/rnayabed/.config/systemd/user/plasma-powerdevil.service.d/override.conf
### Anything between here and the comment below will become the contents of the
drop-in file

[Service]
ExecStartPre=/bin/sleep 3
Environment="QT_LOGGING_RULES=org.kde.powerdevil=true"

### Edits below this comment will be discarded


### /usr/lib/systemd/user/plasma-powerdevil.service
# [Unit]
# Description=Powerdevil
# PartOf=graphical-session.target
# After=plasma-core.target
# 
# [Service]
# ExecStart=/usr/libexec/org_kde_powerdevil
# Type=dbus
# BusName=org.kde.Solid.PowerManagement
# TimeoutStopSec=5sec
# Slice=background.slice
# Restart=on-failure
```

I have attached full system logs with and without the delay:






STEPS TO REPRODUCE
1. Enable wayland

OBSERVED RESULT
The brightness mod feature is not shown when using wayland at random times.

EXPECTED RESULT
The brightness feature should work in wayland at all times

SOFTWARE/OS VERSIONS
Linux: 6.10.3-1-default
openSUSE snapshot: 20240808
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
GPU: Nvidia RTX 3060 w/ proprietary drivers 550.100

I am using a desktop PC with LG IPS 1080p monitor (22mp68vq) over HDMI.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to