Permalink
Browse files

adding new method for Acer 5742G

  • Loading branch information...
1 parent d64a9e2 commit 9c5dc8fe1cdcd0d3e6c838df95681b541520c5b5 @avilella avilella committed Jun 25, 2011
Showing with 49 additions and 0 deletions.
  1. +49 −0 test_off.sh
View
@@ -0,0 +1,49 @@
+#!/bin/bash
+
+if lsmod | grep -q acpi_call; then
+methods="
+\_SB.PCI0.P0P1.VGA._OFF
+\_SB.PCI0.P0P2.VGA._OFF
+\_SB_.PCI0.OVGA.ATPX
+\_SB_.PCI0.OVGA.XTPX
+\_SB.PCI0.P0P3.PEGP._OFF
+\_SB.PCI0.P0P2.PEGP._OFF
+\_SB.PCI0.P0P1.PEGP._OFF
+\_SB.PCI0.MXR0.MXM0._OFF
+\_SB.PCI0.PEG1.GFX0._OFF
+\_SB.PCI0.PEG0.GFX0.DOFF
+\_SB.PCI0.PEG1.GFX0.DOFF
+\_SB.PCI0.PEG0.PEGP._OFF
+\_SB.PCI0.XVR0.Z01I.DGOF
+\_SB.PCI0.PEGR.GFX0._OFF
+\_SB.PCI0.PEG.VID._OFF
+\_SB.PCI0.PEG0.VID._OFF
+\_SB.PCI0.P0P2.DGPU._OFF
+\_SB.PCI0.P0P4.DGPU.DOFF
+\_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
+\_SB.PCI0.P0P2.NVID._OFF
+\_SB.PCI0.P0P2.VGA.PX02
+"
+
+ for m in $methods; do
+echo -n "Trying $m: "
+ echo $m > /proc/acpi/call
+ result=$(cat /proc/acpi/call)
+ case "$result" in
+ Error*)
+ echo "failed"
+ ;;
+ *)
+ echo "works!"
+ break
+ ;;
+ esac
+done
+else
+echo 'The acpi_call module is not loaded'
+ exit 1
+fi

0 comments on commit 9c5dc8f

Please sign in to comment.