On Tuesday, 6 December 2016 21:57:29 CET David C. Rankin wrote: > All, > > Plasma/fw5 key-stroke handler is properly monitoring the 'function-F9' and > 'function-F10' keys for backlight control (brightness down/up). However, > when using the nvidia driver, the keystrokes are translated into updating > the following in sysfs: > > /sys/class/backlight/acpi_video0/brightness > > instead of > > /sys/class/backlight/nvidia_backlight/brightness > > Setting the first (range 0-20) has no effect on backlight and must be > translated to a range of 0-127 for the nvidia setting. Where would I look in > the source code to find what is handling the brightness function keys? > kdelibs? kdebase?
Heya, You might want to have a look at the Powerdevil sources, e.g.: powerdevil.git:daemon/backends/upower/backlighthelper.cpp [1] Hope that helps, Kevin [1] https://cgit.kde.org/powerdevil.git/tree/daemon/backends/upower/ backlighthelper.cpp -- Kevin Funk | kf...@kde.org | http://kfunk.org
signature.asc
Description: This is a digitally signed message part.