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

Newegg Daily Deals

Reply
 
Thread Tools
Old 03-19-05, 04:04 PM   #1
Druker
Registered User
 
Join Date: Jun 2004
Posts: 36
Default power management: driver ver. 7167

latest (7167) nVIDIA driver works correct with suspend-to-ram or suspend-to-disk only with AGP disabled:
Code:
[alex@barracuda ~]cat /proc/driver/nvidia/agp/status
Status:          Disabled
When AGP is enabled system fails to resume.
Druker is offline   Reply With Quote
Old 03-20-05, 06:23 AM   #2
Druker
Registered User
 
Join Date: Jun 2004
Posts: 36
Default Re: power management: driver ver. 7167

Forgot to mention - kernel 2.6.11, hardware - Toshiba Satellite Pro M30-701
Druker is offline   Reply With Quote
Old 03-20-05, 06:35 AM   #3
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: power management: driver ver. 7167

When you're using AGP, are you using the NvAGP or the Linux AGPGART AGP driver? The former may work better (see (app-s) APPENDIX S: POWER MANAGEMENT SUPPORT in the README).
zander is offline   Reply With Quote
Old 03-21-05, 01:05 AM   #4
Druker
Registered User
 
Join Date: Jun 2004
Posts: 36
Default Re: power management: driver ver. 7167

Hello Zander,

when AGP is enabled it uses AGPGART kernel module. I couldn't manage to use nVIDIA's AGP driver, nor with "NvAGP" "1" neither with "NvAGP" "3". Will try STR/STD with nVIDIA's AGP code and post here shortly. In both cases (AGP enabled/disabled) agpgart and intel_agp modules are loaded:
Code:
[alex@barracuda ~]lsmod
Module                  Size  Used by
...
intel_agp              23452  1
agpgart                35112  2 nvidia,intel_agp
...
Anyway, I didn't notice any speed degradation with AGP disabled - glxgears show around 110 FPS (as if AGP is enabled) and flyingtoasters screensaver works as usual.
Druker is offline   Reply With Quote
Old 03-21-05, 01:25 AM   #5
Druker
Registered User
 
Join Date: Jun 2004
Posts: 36
Default Re: power management: driver ver. 7167

I managed to enable nVIDIA's AGP driver - just removed intel-agp.ko in /lib/modules/`uname -r`/kernel/drivers/char/agp:
Code:
[alex@barracuda ~]cat /proc/driver/nvidia/agp/status
Status:          Enabled
Driver:          NVIDIA
AGP Rate:        4x
Fast Writes:     Disabled
SBA:             Disabled
[alex@barracuda ~]
With nVIDIA AGP enabled STR/STD work good, now I will try to enable fast writes and check power mgmt again. My card says it doesn't support SBA:
Code:
[alex@barracuda ~]cat /proc/driver/nvidia/agp/card
Fast Writes:     Supported
SBA:             Not Supported
AGP Rates:       4x 2x 1x
Registers:       0x1f000017:0x1f000104
[alex@barracuda ~]
but if I enable it explicitly it says that it is supported then. Does FXGo5200 support SBA anyway?
Druker is offline   Reply With Quote
Old 03-21-05, 01:37 AM   #6
Druker
Registered User
 
Join Date: Jun 2004
Posts: 36
Default Re: power management: driver ver. 7167

With fast writes enabled STR/STD also work as expected:
Code:
[alex@barracuda ~]cat /proc/driver/nvidia/agp/status
Status:          Enabled
Driver:          NVIDIA
AGP Rate:        4x
Fast Writes:     Enabled
SBA:             Disabled
[alex@barracuda ~]
So, the final solution is:
1. enable modular support for AGP in kernel (Device drivers --> Character devices --> /dev/agpgart support), do NOT enable intel AGP support (Intel 440LX/BX/GX, I8xx and E7x05 ...)
- or -
make sure you have only agpgart.ko module in /lib/modules/`uname -r`/kernel/drivers/char/agp:
Code:
[alex@barracuda ~]l /lib/modules/2.6.11-M30-701/kernel/drivers/char/agp/
итого 84
drwxr-xr-x  2 root root  4096 2005-03-21 09:17 ./
drwxr-xr-x  6 root root  4096 2005-03-21 09:11 ../
-rw-r--r--  1 root root 41698 2005-03-16 18:28 agpgart.ko
[alex@barracuda ~]
2. put this string in your modprobe.conf[.local]:
options nvidia NVreg_Mobile=2 NVreg_SoftEDIDs=0 NVreg_EnableAGPSBA=0 NVreg_EnableAGPFW=1
3. check your XFree86.conf or xorg.conf in /etc/X11 to have the following:
Code:
Section "Screen"
    ...
    Option "NvAGP" "1"
    ...
EndSection
4. reboot and check whether your setup correct:
Code:
[alex@barracuda ~]cat /proc/driver/nvidia/agp/status
Status:          Enabled
Driver:          NVIDIA
AGP Rate:        4x
Fast Writes:     Enabled
SBA:             Disabled
[alex@barracuda ~]
Now suspend to RAM or to disk and check dmesg after resume:
Code:
Linux agpgart interface v0.100 (c) Dave Jones
nvidia: module license 'NVIDIA' taints kernel.
ACPI: PCI Interrupt Link [LNKG] enabled at IRQ 10
PCI: setting IRQ 10 as level-triggered
ACPI: PCI interrupt 0000:01:00.0[A] -> GSI 10 (level, low) -> IRQ 10
NVRM: loading NVIDIA Linux x86 NVIDIA Kernel Module  1.0-7167  Fri Feb 25 09:08:22 PST 2005
Stopping tasks: ========================|
NVRM: RmPowerManagement: 3
Back to C!
PCI: Setting latency timer of device 0000:00:1d.0 to 64
PCI: Setting latency timer of device 0000:00:1d.1 to 64
PCI: cache line size of 32 is not supported by device 0000:00:1d.7
ehci_hcd 0000:00:1d.7: USB 2.0 restarted, EHCI 1.00, driver 10 Dec 2004
ACPI: PCI interrupt 0000:00:1f.1[A] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI interrupt 0000:00:1f.5[b] -> GSI 4 (level, low) -> IRQ 4
PCI: Setting latency timer of device 0000:00:1f.5 to 64
ACPI: PCI interrupt 0000:00:1f.6[b] -> GSI 4 (level, low) -> IRQ 4
PCI: Setting latency timer of device 0000:00:1f.6 to 64
NVRM: RmPowerManagement: 4
PCI: Enabling device 0000:02:07.0 (0000 -> 0002)
ACPI: PCI interrupt 0000:02:07.0[A] -> GSI 3 (level, low) -> IRQ 3
e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
PCI: Enabling device 0000:02:0a.0 (0000 -> 0002)
ACPI: PCI interrupt 0000:02:0a.0[A] -> GSI 11 (level, low) -> IRQ 11
Restarting tasks...<6>usb 3-1: USB disconnect, address 2
 done
usb 3-1: new low speed USB device using uhci_hcd and address 3
input: USB HID v1.10 Mouse [Logitech USB Optical Mouse] on usb-0000:00:1d.1-1
Tested on Toshiba Satellite Pro M30, GeForce FX 5200 Go.
PS: Good job nVIDIA!

Last edited by Druker; 03-21-05 at 01:57 AM.
Druker is offline   Reply With Quote
Old 03-24-05, 10:32 AM   #7
ftucky
Registered User
 
Join Date: Mar 2005
Posts: 3
Default Re: power management: driver ver. 7167

Hi all,

With a Dell Precision M70, BIOS A01

Kernel 2.6.11.5
APM disabled (No APM Bios anyway)
ACPI enabled.

QuadroFX GO1400, PCI-Express (So, no AGP should be envolved)
Still set NvAgp to 0 in XF86Config, just in case.

When suspending to RAM, system fails to resume.
It starts to, printing 'Linu' , 'Back to C'.
The LCD aspect changes (looks like the video driver tries and fails to restore its state)
Then the system hangs.
Amazingly, Fn-F2 which should turn bluetooth on/off still works
(at least, the blue LED toggles), but with a 2 to 3 second delay !
As if the CPU/Bus/something was overloaded to death.

Furthermore :
* agpgart module is not loaded
* things are fine when nvidia module is not loaded.
* Suspend to RAM seems to work with the vesa driver, but I cannot reach the desired resolution (1680x1050)
* Getting rid of modules (tg3, ehci-hcd) sharing the IRQ (11 in my case) does not change anything


Apart from this, everything's fine,
but not being able to suspend a laptop ...

Thanks for your help,
cheers

Jean-Jacques.
ftucky is offline   Reply With Quote
Old 03-25-05, 01:24 AM   #8
Druker
Registered User
 
Join Date: Jun 2004
Posts: 36
Default Re: power management: driver ver. 7167

Hi ftucky,

please post lsmod output here as well as cat /proc/interrupts and contents of every file in /proc/driver/nvidia/. Also provide your xorg.conf.
Druker is offline   Reply With Quote

Old 03-25-05, 02:11 AM   #9
ftucky
Registered User
 
Join Date: Mar 2005
Posts: 3
Default Re: power management: driver ver. 7167

Hi Druker,

Well no much information there :
Code:
[ftucky@acidcloridrix ~]$ cat /proc/interrupts
           CPU0
  0:   54788191          XT-PIC  timer
  1:      13287          XT-PIC  i8042
  2:          0          XT-PIC  cascade
  7:        192          XT-PIC  parport0
  8:          1          XT-PIC  rtc
  9:          4          XT-PIC  acpi
 11:    4022347          XT-PIC  ehci_hcd, eth0, nvidia
 12:        133          XT-PIC  i8042
 14:     388058          XT-PIC  ide0
NMI:          0
ERR:          2

Code:
[ftucky@acidcloridrix ~]$ lsmod
Module                  Size  Used by
soundcore               8992  -
nvidia               3915936  -
md5                     3808  -
ipv6                  256704  -
8250                   23364  -
serial_core            21600  -
parport_pc             27620  -
lp                     12136  -
parport                36320  -
autofs4                18884  -
tg3                    88800  -
iptable_filter          2752  -
ip_tables              19600  -
microcode               5920  -
usbhid                 26880  -
ehci_hcd               31872  -
usbcore               118024  -
ext3                  139432  -
jbd                    56120  -

XF86Config.txt attached.

Thanks,
-JJ
Attached Files
File Type: txt XF86Config.txt (2.6 KB, 161 views)
ftucky is offline   Reply With Quote
Old 03-25-05, 09:50 AM   #10
Druker
Registered User
 
Join Date: Jun 2004
Posts: 36
Default Re: power management: driver ver. 7167

Jean-Jacques,

try to comment out the following from your XF86Config:
Code:
...
	Load  "dri"
...
Section "DRI"
	Group        0
	Mode         0666
EndSection
nVIDIA's driver does not require this. Also please find by xorg.conf attached for reference.
Attached Files
File Type: txt xorg.conf.txt (5.4 KB, 180 views)
Druker is offline   Reply With Quote
Old 03-25-05, 11:39 AM   #11
ftucky
Registered User
 
Join Date: Mar 2005
Posts: 3
Default Re: power management: driver ver. 7167

Nope ! This does not change anything.
Thanks for the tip anyway.
-JJ
ftucky is offline   Reply With Quote
Old 08-22-05, 06:13 AM   #12
scismondo
Registered User
 
Join Date: May 2004
Posts: 1
Default Re: power management: driver ver. 7167

Quote:
Originally Posted by Druker
With fast writes enabled STR/STD also work as expected:

So, the final solution is:
1. enable modular support for AGP in kernel (Device drivers --> Character devices --> /dev/agpgart support), do NOT enable intel AGP support (Intel 440LX/BX/GX, I8xx and E7x05 ...)
- or -
make sure you have only agpgart.ko module in /lib/modules/`uname -r`/kernel/drivers/char/agp:

2. put this string in your modprobe.conf[.local]:
options nvidia NVreg_Mobile=2 NVreg_SoftEDIDs=0 NVreg_EnableAGPSBA=0 NVreg_EnableAGPFW=1
3. check your XFree86.conf or xorg.conf in /etc/X11 to have the following:

4. reboot and check whether your setup correct:

Now suspend to RAM or to disk and check dmesg after resume:
THANKS! I now have a working suspend-to-disk on my Toshiba 2100 Pro (using Nvidia's 7676 driver). Suspend-to-ram still doesn't work but I don't think it's nvidia-related, cause it seems that the laptop doesn't wake up at all.

Seb.
scismondo 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
Getting the proprietary nvidia driver to run with Debian 3.0 r0 (woody) Katchina404 NVIDIA Linux 9 01-12-03 09:49 AM
Nvidia Driver causes crash on Standby/Suspend dasher NVIDIA Linux 5 09-16-02 06:57 PM
Power Management (XP) Iron1384 Microsoft Windows XP And Vista 6 08-22-02 02:29 PM

All times are GMT -5. The time now is 01:24 AM.


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