3

i'm using ASUS K501U with Ubuntu 14.04 LTS and Gnome-shell 3.10.4, The screen brightness works only from settings, i tried that, but it disabled all my fn keys:

In the terminal:
sudo gedit /etc/default/grub
Change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="
Then, save the file.
sudo update-grub
Restart computer.

help me, please?

2

1 Answer 1

2

On Ubuntu with Unity desktop environment, one can use qdbus to issue some of the system commands via dbus service, and there are two commands for increasing and decreasing brightness.

For increasing ,

qdbus org.gnome.SettingsDaemon.Power  /org/gnome/SettingsDaemon/Power org.gnome.SettingsDaemon.Power.Screen.StepUp

and for decreasing

qdbus org.gnome.SettingsDaemon.Power  /org/gnome/SettingsDaemon/Power org.gnome.SettingsDaemon.Power.Screen.StepDown

These commands can be bound to keyboard shortcuts for convenience. Go to System-Settings -> Keyboard -> Shortcuts -> Custom Shortcuts , click on + icon to add new shortcut.

A popup will appear, and add one of the commands above. In the screenshot you can see me adding the step-down command

enter image description here

Once you click apply, you will see a new entry added to the list. You can click on the Disabled text, and it will wait for you to press the key combination you want to correspond to this command.

enter image description here

I've set mine to Alt+Shift+Arrow Down for decreasing brightness. Feel free to select your own combination.

2
  • Serg, thank you very much. Do you know if is it a way to display percentage of changed brightness, linke changes of sound? Aug 19, 2016 at 10:01
  • @BreahnaDavid Yes , there is , but it would require putting together a small script. Another way, would be via brightness indicator that displays percentage in top panel. Actually, I'm currently working on an indicator like that , but with a few extra features, I should bring it to completion in a week or so. Please leave me a message if you'd be interested in that Aug 19, 2016 at 10:30

Not the answer you're looking for? Browse other questions tagged or ask your own question.