Comment 1 for bug 232464

Revision history for this message
Petr Menšík (pihhan) wrote : Re: Make script for changing backlight using xbacklight

i managed to make it work using some similar scripts in screenblank.sh. This way it does work as expected. I changed /etc/acpi/event/sony-brightness-down to call /etc/acpi/xbacklight-down.sh as action and similar with brightness-up. Also i changed event line, as my model reports actions using SNC and not SPIC. So i modified it to:

/etc/acpi/event/sony-brightness-down:
event=sony/hotkey (SPIC|SNC) 00000001 00000011
action=/etc/acpi/xbacklight-up.sh

Problem is i believe in not generic scripts. Many models have same hotkeys IDs (provided using SNC maybe, but ids are the same), it might need autodetection in script or manual type specification somewhere for generic and always working scripts for VAIOs. My script is working for me, but for Nvidia based models wont work.