Sony Laptop ACPI performance switch
benötigt (in meinem Fall) mindestens kernel-3.10 script für acpid
/etc/acpi/events/sony
event=sony.* action=/etc/acpi/actions/sony-laptop.sh %e
alle sony-events abfangen und script ausführen
/etc/acpi/actions/sony-laptop.sh
#!/bin/bash # ACPI action script to switch powerlevel on sony-laptops # ONLY TESTED ON SVS13A1C5E # # rellig@minad.de # # check the switch status if [ $3 == "00000003" ] ; then if [ $4 == "00000000" ] ; then echo "performance" > /sys/devices/platform/sony-laptop/thermal_control elif [ $4 == "00000001" ] ; then echo "silent" > /sys/devices/platform/sony-laptop/thermal_control fi # handle different buttons - in this case zoom-in and zoom-out to switch balanced and performance when in speed-mode # in my case the status reported from the gfx_switch are flipped, so stamina means speed elif [ $3 == "00000001" ] ; then perflvl=$(</sys/devices/platform/sony-laptop/gfx_switch_status) if [[ $4 == "00000014" && $perflvl == "stamina" ]] ; then echo "balanced" > /sys/devices/platform/sony-laptop/thermal_control elif [[ $4 == "00000015" && $perflvl == "stamina" ]] ; then echo "performance" > /sys/devices/platform/sony-laptop/thermal_control else logger "ACPI event unhandled: $*" fi else logger "ACPI event unhandled: $*" fi
chmod +x nicht vergessen.