Update on screen brightness handling for Wayland

Martin Graesslin mgraesslin at kde.org
Wed Aug 26 07:47:11 UTC 2015


Hi all,

at Akademy we discussed some plans on how to handle screen brightness on 
Wayland. Unfortunately I must say that this doesn't work at all as we imagined 
:-(

I had a look at what Weston is doing for brightness. It uses a forked 
"libbacklight" which internally interacts with the sysfs brighness helpers.

I integrated this into KWin and tried to change backlight. But this obviously 
did not work as only root user is allowed to write to the sysfs file. I then 
tried to open it with the logind wrapper, but logind doesn't have support for 
this kind of files, so that unfortunately doesn't work either.

And here, poor fool, I stand once more, no wiser than I was before. We have a 
file only root can write to, but we are not root. Adding a KAuth helper to 
KWin would not gain us anything compared to having it in powerdevil.

So I suggest that we drop the idea that KWin is responsible for backlight and 
move this feature completely to powerdevil and use the KAuth helper.

Cheers
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20150826/5198de94/attachment-0001.sig>


More information about the Plasma-devel mailing list