After the startup on the resume the Display gets locked and it cannot be changed through the function keys so I have found a solution to change the brightness via Fn-keys but I don’t know how to do it using gnome power manager. So below are the set of codes which will allow you to change the brightness using the brightness keys.
You will have to create the files “tosh-brightness-down” and “tosh-brightness-up” in /etc/acpi/events you can do this by using sudo <and the editor of your choice or the one which you like.
Code for “tosh-brightness-down”:
Code:
event=hkey VALZ 00000001 00000140
action=/etc/acpi/tosh-brn-down.sh
Code for “tosh-brightness-up”:
Code:
event=hkey VALZ 00000001 00000141
action=/etc/acpi/tosh-brn-up.sh
Now you have to add the following to file to etc/acpi/(the parent directory of the previous files)
Tosh-brn-down-sh:
Code:
#!/bin/sh
test -f /usr/share/acpi-support/key-constants || exit 0
. /usr/share/acpi-support/key-constants
DeviceConfig
toshset -bl on
Tosh-brn-up-sh(it is similar to the above file but it will be better if we keep both the files seperate):
Code:
#!/bin/sh
test -f /usr/share/acpi-support/key-constants || exit 0
. /usr/share/acpi-support/key-constants
DeviceConfig
toshset -bl on
Using this set of codes your Fn keys will be working if anyone knows any better trick or solution then let me know about it.
Bookmarks