Registered Member
|
I have several brightness devices:
KDE uses "/sys/devices/pci0000:00/0000:00:02.0/backlight/acpi_video1/brightness" (when I adjust brightness via kde power manager /sys/devices/pci0000:00/0000:00:02.0/backlight/acpi_video1/brightness changes its content from 0 to 99). But my real brightness device is /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-LVDS-1/intel_backlight/brightness (now I can manualy change brightness using echo VALUE > /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-LVDS-1/intel_backlight/brightness). How to choose brightness device in kde? |
Administrator
|
Are both "acpi_video1" and "intel_backlight" present in /sys/class/backlight?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Yes
|
Administrator
|
Can you please check the content of the file "type" in each one of those directories?
It will be either "raw", "firmware" or "platform".
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
/sys/class/backlight/acpi_video0/type firmware /sys/class/backlight/acpi_video1/type firmware /sys/class/backlight/intel_backlight/type raw |
Administrator
|
I'm afraid the raw device, intel_backlight, will never be used by KDE Power Management, as it is coded to prefer firmware devices, followed by platform ones before falling back to raw devices finally. This behaviour is unconfigurable i'm afraid - and for security reasons it cannot be made configurable (in order to manipulate files in /sys, a special helper is used which executes using root privileges - being able to control which file it writes as a user would represent a privilege escalation vulnerability).
I'm not sure if it is possible to make the acpi_video* devices disappear unfortunately. Your only other option would be to self-compile KDE Workspace with alterations made to change the preference order to prefer raw devices first.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Thank you for your answer. Now I use this shell script:
|
Administrator
|
You also might want to report this incorrect behaviour to the Intel graphics driver developers, so this issue can be corrected properly.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Hello, it has been a while but I just came across this very issue. If I use the brightness adjustment buttons in KDE on my ASUS Zenbook UM425IA(using an AMD 4500U) it will also choose the wrong device. In my case a raw and a platform device are available. It is indeed preferring the platform device(going by me monitoring the brightness file while changing brightness), is there still no way to adjust this? Would it be possible to compile powerdevil to fix this? It seems like a pretty trivial change even if it might not otherwise be great for security, it's fine for me: https://github.com/KDE/powerdevil/blob/ ... er.cpp#L92
EDIT: Got it. This only happened to me after fixing a problem with systemd's backlight service not correctly being started. I fixed that by setting "acpi_backlight=vendor" in the kernel command line, but this apparently was not correct. While it fixed the systemd issue, it cause the KDE issue. The option that is now working for both is "acpi_backlight=video". |
Registered Member
|
There is a 'Widget' that allowed me to adjust brightness on my Dell touchscreen All-In-One, it is called something like "Battery and brightness control". Can't tell you the exact name of that widget but searching what I put in quotations should bring it up when adding a widget. Hopefully this will work for you as well.
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]