View Single Post
Old 12-04-08, 06:36 PM   #10
tut
Registered User
 
tut's Avatar
 
Join Date: Dec 2008
Location: Kyiv/Ukraine
Posts: 13
Exclamation Power source detection

Quote:
Originally Posted by zander View Post
I tried 180.06 and 180.11 also. It doesn't work on my notebook:
  • Hardware GeForce Go 6100
  • OS FreeBSD 7.1-PRERELEASE
  • X xorg-7.3_2
  • Driver nvidia-driver-180.11
Code:
[battery] $ sysctl hw.acpi.acline; nvidia-settings -q GPUPowerSource -t
hw.acpi.acline: 0
0

[AC] $ sysctl hw.acpi.acline; nvidia-settings -q GPUPowerSource -t
hw.acpi.acline: 1
0
BTW, you can find proper power source detection example in src/usr.sbin/powerd/powerd.c - see 'acline_init' and 'acline_read' functions. Note that sometimes ACPI may be absent or disabled because of broken BIOS so power source detection using APM is preferable in the case.
__________________
[nvidia-driver-180.16 @ FreeBSD 7.1-PRERELEASE @ GeForce Go 6100]
tut is offline   Reply With Quote