#!/bin/bash # This script should contain the command(s) nessesary to switch off the # nVidia card. # As an example i've included the script for the Asus machines.. # Please note that the acpi_call module is need for these operations: # # http://linux-hybrid-graphics.blogspot.com/2010/07/using-acpicall-module-to-switch-onoff.html # # calls originally for Asus 1215N by Pete Eberlein # modified by Thomas Krutz to fix fullspeed fanspeed issue on Asus K53SV-family rmmod nvidia if lsmod | grep -q nvidia; then echo "Error: could not unload nvidia module, leaving card turned on" exit fi modprobe acpi_call if ! lsmod | grep -q acpi_call; then echo "Error: acpi_call module not loaded" exit fi acpi_call () { echo "$*" > /proc/acpi/call result=$(cat /proc/acpi/call) case "$result" in Error*) echo "Disabling nVidia Card failed ($result)." ;; *) echo "Disabling nVidia Card Succeded." ;; esac } echo _DSM $(acpi_call "\_SB.PCI0.PEGR.GFX0._DSM" \ "{0xF8,0xD8,0x86,0xA4,0xDA,0x0B,0x1B,0x47," \ "0xA7,0x2B,0x60,0x42,0xA6,0xB5,0xBE,0xE0}" \ "0x100 0x1A {0x1,0x0,0x0,0x3}") # ok to turn off: Buffer {0x59 0x0 0x0 0x11} # is already off: Buffer {0x41 0x0 0x0 0x11} echo _PS3 $(acpi_call "\_SB.PCI0.PEGR.GFX0._PS3") echo DGPS $(acpi_call "\_SB.PCI0.PEGR.GFX0.DGPS")