Skip to content

Commit

Permalink
new possible method from lenovo t500
Browse files Browse the repository at this point in the history
  • Loading branch information
avilella committed Oct 14, 2010
1 parent 4b5b787 commit 4da10f9
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions test_off.sh
Expand Up @@ -16,18 +16,24 @@ if lsmod | grep -q acpi_call; then
\_SB.PCI0.P0P2.DGPU._OFF
\_SB.PCI0.IXVE.IGPU.DGOF
\_SB.PCI0.RP00.VGA._PS3
\_SB.PCI0.RP00.VGA.P3MO
\_SB.PCI0.GFX0.DSM._T_0
\_SB.PCI0.LPC.EC.PUBS._OFF
"

for m in $methods; do
echo -n "Trying $m: "
echo $m > /proc/acpi/call
result=$(cat /proc/acpi/call)
if [ $result = "ok" ]; then
case "$result" in
Error*)
echo "failed"
;;
*)
echo "works!"
break
elif [ $result = "failed" ]; then
echo "failed"
fi
;;
esac
done
else
echo 'The acpi_call module is not loaded'
Expand Down

0 comments on commit 4da10f9

Please sign in to comment.