Quote:
Originally Posted by zander
|
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.