Go Back   nV News Forums > Linux Support Forums > NVIDIA FreeBSD

Newegg Daily Deals

Reply
 
Thread Tools
Old 10-01-08, 11:22 AM   #1
zBeeble42
Registered User
 
Join Date: Feb 2008
Posts: 40
Default Understanding. Maybe.

I think I "understand" why my 8700M-SLI is stuck in 170Mhz mode. I was checking nvidia-settings after upgrading from 177.76 to 177.78 (nothing changed, see my 177.76 report) and I noticed that the PowerMiser Monitor screen of GPU-0 (and GPU-1) indicated that it thought we were on battery. This seems to disable (greyed out) they 275Mhz and 625Mhz options.

This might be progress. How does the driver know it's on battery? We're most certainly not on battery. The APM/ACPI dock tools seem to know that AC is connected.

Checking sysctl,

hw.acpi.acline: 1
hw.acpi.battery.life: 100
hw.acpi.battery.time: -1
hw.acpi.battery.state: 0
hw.acpi.battery.units: 1

Is this possibly an easy fix --- make the driver correctly detect power?
zBeeble42 is offline   Reply With Quote
Old 10-01-08, 11:41 AM   #2
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Understanding. Maybe.

There's a good chance that there's code missing to properly detect the AC state on FreeBSD. I think on Linux, the X driver gets this information via various pseudo file systems. I'll take a closer look.
zander is offline   Reply With Quote
Old 10-04-08, 01:46 PM   #3
HenryHu
Registered User
 
Join Date: Aug 2008
Posts: 24
Default Re: Understanding. Maybe.

Mine is also telling me "Battery", but if I ran something using GPU much, it would switch to higher levels such as 500/700MHz.
HenryHu is offline   Reply With Quote
Old 11-08-08, 08:30 AM   #4
busbus
Registered User
 
Join Date: Nov 2008
Posts: 24
Default Re: Understanding. Maybe.

i had the battery issues before aswell. check your acpi if it does its job correctly, that corrected it for me. it didnt fix the powermizer issue though.
busbus is offline   Reply With Quote
Old 11-10-08, 01:07 PM   #5
zBeeble42
Registered User
 
Join Date: Feb 2008
Posts: 40
Default Re: Understanding. Maybe.

I just checked. hw.acpi.acline gives "1" for when AC is available and "0" for when it is not. This does work correctly. I don't know where to look in linprocfs to know if it parrot's the setting correctly.

From my observation of the notebook in windows mode, I strongly suspect that the reason it sticks to 150Mhz mode on battery is that the battery system can't power the cards at higher frequencies.

Anyways... zander: thanks for looking at this --- it's one of the largest gnats in my enjoment of this laptop .
zBeeble42 is offline   Reply With Quote
Old 11-10-08, 08:29 PM   #6
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Understanding. Maybe.

The ACPI power state detection/reporting problem should be resolved in the next BETA driver release. Let me know if you continue to see the stuck-in-low-perf-state problem (I don't believe the AC power state detection bug was responsible for it, but the next BETA will have numerous other fixes).
zander is offline   Reply With Quote
Old 11-11-08, 12:07 PM   #7
zBeeble42
Registered User
 
Join Date: Feb 2008
Posts: 40
Default Re: Understanding. Maybe.

excellent... how long till we see that?
zBeeble42 is offline   Reply With Quote
Old 11-11-08, 01:46 PM   #8
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Understanding. Maybe.

As always, I can't provide a date, but I expect said BETA release to become available very soon.
zander is offline   Reply With Quote

Old 11-14-08, 01:55 PM   #9
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Understanding. Maybe.

Please see http://www.nvnews.net/vbulletin/showthread.php?t=123092.
zander is offline   Reply With Quote
Old 12-04-08, 07: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
Old 12-07-08, 12:29 AM   #11
tut
Registered User
 
tut's Avatar
 
Join Date: Dec 2008
Location: Kyiv/Ukraine
Posts: 13
Exclamation Re: Power source detection

Quote:
Originally Posted by tut View Post
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.
zander, I've found following line in 'nvidia_drv.so' file:
Code:
!system=ACPI subsystem=ACAD type=\_SB_.AC__ notify=%x
It seems you are using wrong pattern. Look at following messages on my notebook:
Code:
!system=ACPI subsystem=ACAD type=\_SB_.PCI0.AC0_ notify=0x00
!system=ACPI subsystem=ACAD type=\_SB_.PCI0.AC0_ notify=0x01
I'm not sure you should do hardcoded 'type' parameter matching, numbers may vary. And as I wrote before the best method is in powerd.c implementation.
__________________
[nvidia-driver-180.16 @ FreeBSD 7.1-PRERELEASE @ GeForce Go 6100]
tut is offline   Reply With Quote
Old 12-07-08, 02:06 AM   #12
tut
Registered User
 
tut's Avatar
 
Join Date: Dec 2008
Location: Kyiv/Ukraine
Posts: 13
Lightbulb [WORKAROUND] Power source detection

I was right. Have just replaced
Code:
!system=ACPI subsystem=ACAD type=\_SB_.AC__ notify=%x
with
Code:
!system=ACPI subsystem=ACAD type=%*s notify=%x
in 'nvidia_drv.so' binary using hex editor and voilą - it works:
Code:
[battery] $ sysctl hw.acpi.acline; nvidia-settings -q GPUPowerSource -t
hw.acpi.acline: 0
1

[AC] $ sysctl hw.acpi.acline; nvidia-settings -q GPUPowerSource -t
hw.acpi.acline: 1
0
__________________
[nvidia-driver-180.16 @ FreeBSD 7.1-PRERELEASE @ GeForce Go 6100]
tut is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Understanding the Bulldozer Architecture through the LINPACK Benchmark News Archived News Items 0 06-26-12 12:30 PM
understanding /etc/X11/XF86Config(-4) bigredlinux NVIDIA Linux 10 10-05-02 03:51 PM
Understanding CineFX - MUCH more than the R300 Uttar Rumor Mill 68 10-02-02 02:02 AM

All times are GMT -5. The time now is 09:29 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2014, nV News.