Emnasut
Member
- Joined
- Apr 26, 2010
- Messages
- 357
So I wanted to adjust how Fn+U and Fn+I (brightness up and down) work. I found the scripts on /usr/pandora/scripts and edited op_bright_down.sh, mainly adjusting the values of brightness which are set to prevent flickering and make it dim faster. In the final if-clause where it checks if the lowest value is reached I added the line:
Now if I run the script:
it works as intended, that is the brightness gows down and at the lowest value a message pops up.
The problem is, it doesn't work by using Fn+U. The script seems to be called as the brightness doesn't get as low as before, but there ist not notification and it seems to be a bit different than calling the script directly. Also happens afer a reboot.
Then I used Settings -> Keyboard -> Application Shortcuts to map the script op_wifi.sh to SHIFT+CTRL+W so I could toggle Wifi without the menu. In this case, *only* the message pops up, saying "WLAN is being enabled..." (or disabled, depending on the state), but Wifi never actually does get enabled.
I used sudo showkey to get the keycodes of Fn+U:
And Fn+I:
But according to xmodmap -pke:
So... I really have no idea what to try next... Anyone got an idea?
Code:
notify-send -u normal "Display" "Minimum Brightness reached."
Now if I run the script:
Code:
sudo op_bright_down.sh
it works as intended, that is the brightness gows down and at the lowest value a message pops up.
The problem is, it doesn't work by using Fn+U. The script seems to be called as the brightness doesn't get as low as before, but there ist not notification and it seems to be a bit different than calling the script directly. Also happens afer a reboot.
Then I used Settings -> Keyboard -> Application Shortcuts to map the script op_wifi.sh to SHIFT+CTRL+W so I could toggle Wifi without the menu. In this case, *only* the message pops up, saying "WLAN is being enabled..." (or disabled, depending on the state), but Wifi never actually does get enabled.
I used sudo showkey to get the keycodes of Fn+U:
Code:
keycode 0 press
keycode 1 release
keycode 96 release
And Fn+I:
Code:
keycode 0 press
keycode 1 release
keycode 97 release
But according to xmodmap -pke:
Code:
keycode 96 = F12 NoSymbol F12
keycode 97 =
So... I really have no idea what to try next... Anyone got an idea?