View Single Post
Old 04-09-08, 04:10 PM   #6
NvFuchs
Registered Fox
 
NvFuchs's Avatar
 
Join Date: Oct 2007
Location: Confoederatio Helvetica
Posts: 530
Default Re: Alternative to PerfLevelSrc (specifically for 8400M GS)

Why not using the proc interface?

Code:
while true; do
    
    powerstate=`cat /proc/acpi/ac_adapter/AC/state | awk '{print $2}'`
    
    if [ $powerstate = "on-line"  ]; then
       nvidia-settings -q all > /dev/null
    fi
    sleep 25;
done
Afaik it is +- the same on different hardware,
or you can check for yourself with cat ...

Fuchs
NvFuchs is offline   Reply With Quote