View Single Post
Old 08-21-08, 10:48 AM   #5
NvFuchs
Registered Fox
 
NvFuchs's Avatar
 
Join Date: Oct 2007
Location: Confoederatio Helvetica
Posts: 530
Default Re: How to disable powermizer?

This

Code:
#!/bin/sh

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
should be distribution independent, and by removing the powerstate, if and fi line it should keep powermizer on the highest level, independent of the power state of the notebook.

Another possibility would be to use the module parameters, that'd be the more clean solution. However, it is not as flexible as the solution posted above.

Fuchs
NvFuchs is offline   Reply With Quote