So whenever I hit my dim/brighten keys on the keyboard, a notification bubble pops up with the screen brightness. All that's fine, but I would like to be able to change how much the brightness changes with each key press.
For example, right now it takes just 5 presses to go from the completely dark to the brightest setting. However, I know from the "Brightness/Lock" setting that the screen is capable of much smaller intervals than this.
Is there a way to change how much the brightness jumps each time the keys are pressed?
Best Answer
Since you haven't specified which desktop environment you use, I'll provide some KDE-specific details as well.
I've just updated KDE to 4.9.2 and met with the same inconvenience. I decided to dig into the code, and here are my conclusions:
/sys/class/backlight/*your_backlight_type*/
. Here's what it looks like for me: Two files are relevant for us now:brightness
andmax_brightness
. And here's how they can be used: First command lets you determine the maximum brightness you can set (the minimum is always zero). Second one lets you know what value the actual brightness is set to. And with the third you can set it to any value you desire in the range of[0; max_brightness]
.KDE's KRunner still has the freedom to set any brightness level. Press Alt-F2 and type:
KDE's keyboard
Brightness Up
andBrightness Down
key handling code has increment value of 10% hard-coded. Hence, unless you want to mess with building KDE from sources, there's nothing you can do with it.KDE's BatteryMonitor plasmoid has its own brightness control, whose increment is also hard-coded as 10%, but now we're lucky enough, since it is written in QML:
and change the step size to what you desire. After relogin you'll see the change.$ sudo nano /usr/share/kde4/apps/plasma/plasmoids/battery/contents/ui/PopupDialog.qml
(upd: in KDE 4.11 it has been moved toBrightnessItem.qml
), navigate to section that looks like