You are not logged in.
Pages: 1
I've followed most everything on here http://www.linux.it/~malattia/wiki/inde … ony-laptop and my fn keys/brightness still do not work they way that this wiki implies they should. I'm on a sony vgn-fs740w and sony_laptop loads nicely, /sys/class/backlight/sony/ is apparently the way it should be. I edited my Xorg.conf as it suggests. Any assistance? Everything I can find myself on this issue is kinda outdated.
Offline
I copied the acpi events scripts from a ubuntu installation. You can change it manually by replacing the number in sys/class/backlight/sony/backlight
This is what the script does.
Here are the scripts.
this is /etc/acpi/events/sony-brightness-down
# /etc/acpi/events/sony-brightness-down
event=sony/hotkey SPIC 00000001 00000010
action=/etc/acpi/sonybright.sh down
this is /etc/acpi/events/sony-brightness-up
# /etc/acpi/events/sony-brightness-up
event=sony/hotkey SPIC 00000001 00000011
action=/etc/acpi/sonybright.sh up
this is /etc/acpi/sonybright.sh
#!/bin/bash
BRIGHTNESS=$(cat /sys/class/backlight/sony/actual_brightness)
if [ "$BRIGHTNESS" -gt 8 ]; then
BRIGHTNESS=1
fi
if [ "x$1" = "xdown" ]; then
if [ "x$BRIGHTNESS" != "x1" ]; then
BRIGHTNESS=$(( $BRIGHTNESS - 1 ))
echo $BRIGHTNESS > /sys/class/backlight/sony/brightness
else
[ -x /usr/bin/spicctrl ] && /usr/bin/spicctrl -b 0
fi
# Recent nvidia Sonys have ACPI methods that do nothing. Thanks, Sony.
[ -x /usr/bin/smartdimmer ] && smartdimmer -d 2>/dev/null
elif [ "x$1" = "xup" ]; then
if [ "x$BRIGHTNESS" != "x8" ]; then
BRIGHTNESS=$(( $BRIGHTNESS + 1 ))
echo $BRIGHTNESS > /sys/class/backlight/sony/brightness
fi
[ -x /usr/bin/smartdimmer ] && smartdimmer -i 2>/dev/null
else
echo >&2 Unknown argument $1
fi
Offline
Pages: 1