#! /bin/sh ### BEGIN INIT INFO # Provides: nvidiaoff # Required-Start: $local_fs $syslog # Required-Stop: $local_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Disables/Enables the NVidia graphics card on a Dell Vostro 3300 ### END INIT INFO . /lib/lsb/init-functions set -e case "$1" in start) echo '\_SB.PCI0.P0P1.PEGP._OFF' > /proc/acpi/call ;; stop) echo '\_SB.PCI0.P0P1.PEGP._ON' > /proc/acpi/call ;; *) echo '\_SB.PCI0.P0P1.PEGP._OFF' > /proc/acpi/call N=/etc/init.d/nvidiaoff echo "Usage: $N {start|stop}\nBy default, 'start' is executed.\n" >&2 exit 1 ;; esac exit 0