Sorry, correct link is as follows (but you've probably seen the page anyway):<br><a href="http://tutanhamon.com.ua/technovodstvo/NVIDIA-UNIX-driver/" target="_blank">http://tutanhamon.com.ua/technovodstvo/NVIDIA-UNIX-driver/</a><br>
<br>
The nvidia-packaged nvidia-settings has the exact same output, as you expected (also when querying GPUCurrentPerfLevel and GPUCurrentClockFreqs).<br><br>I was surprised earlier to find "nvidia-settings -q GPUPowerSource -t" did list the computer as being on battery power. This was after resuming from standby on battery power. After plugging it back in to a power source, it didn't immediately say the laptop had changed to AC power, but coming back perhaps half an hour later it did, so it appears it <i>is</i> detecting changes in power source, but not for several minutes at least (when tested on openSUSE it was immediate).<br>
<br>I have also noticed KDE's battery meter is often completely wrong, but that's probably totally unrelated. /sys/class/power_supply/AC/online changes immediately in response to disconnecting/connecting the power supply, as well as the tp_smapi interface.<br>
<br>Cheers,<br>Diggory<br>
<br><div class="gmail_quote">On 6 June 2011 19:55, Andreas Beckmann <span dir="ltr"><<a href="mailto:debian@abeckmann.de" target="_blank">debian@abeckmann.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

On 2011-06-06 16:16, Diggory Hardy wrote:<br>
> Package: nvidia-glx<br>
> Version: 270.41.19-1<br>
> Severity: normal<br>
><br>
> I have set up nvidia's PowerMizer to use different profiles on mains<br>
> and battery power as documented at<br>
> <a href="http://tutanhamon.com.a/technovodstvo/NVIDIA-UNIX-driver/" target="_blank">http://tutanhamon.com.a/technovodstvo/NVIDIA-UNIX-driver/</a> , however<br>
incorrect URL<br>
<br>
> according to nvidia-settings the laptop is always on mains power, even<br>
> when it's actually running off the battery:<br>
><br>
>> $ nvidia-settings -q GPUPowerSource -t<br>
>> 0<br>
<br>
I get the same result on my laptop using 270.41.06 driver and several<br>
versions of nvidia-settings. But I never looked at this before, so I<br>
can't say whether this was working with older releases.<br>
Eventually a driver problem.<br>
<br>
> I noticed that OpenSUSE running on the same laptop detects the power<br>
> source correctly, so might this have something to do withpackaging?<br>
<br>
I don't think so. But as the nvidia-settings package is built from free<br>
source code, you might want to try the binary built by nvidia. Download<br>
the driver *.run file from<br>
<a href="ftp://download.nvidia.com/XFree86/Linux-x86_64/" target="_blank">ftp://download.nvidia.com/XFree86/Linux-x86_64/</a> to a temporary directory<br>
and run it with the --extract-only command line option so that it does<br>
not start the installer. The nvidia-settings binary can be found in the<br>
root of the tree that is being extracted. Switch to that directory and run<br>
    ./nvidia-settings -q GPUPowerSource -t<br>
<br>
> Looks like I have 260.19.44 installed on openSUSE and 270.41.19 on<br>
> this debian system.<br>
<br>
Downgrading to 260.xx does not work due to missing support for Xorg<br>
1.10, but eventually you could try the newer driver from experimental<br>
(275.xx) and see if this was fixed.<br>
<br>
A quick search in the NVIDIA forum found the following threads:<br>
<a href="http://www.nvnews.net/vbulletin/showthread.php?t=133555" target="_blank">http://www.nvnews.net/vbulletin/showthread.php?t=133555</a><br>
<a href="http://www.nvnews.net/vbulletin/showthread.php?t=136245" target="_blank">http://www.nvnews.net/vbulletin/showthread.php?t=136245</a><br>
<font color="#888888"><br>
<br>
Andreas<br>
</font></blockquote></div><br>