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

Newegg Daily Deals

Reply
 
Thread Tools
Old 04-08-06, 01:25 PM   #1
chrisjones05107
Registered User
 
Join Date: May 2004
Location: Cambridge, UK
Posts: 24
Default 1.0-8756 and suspend

Hi,

I was very pleased to see that suspend was supposed to work with the new 1.0-8756 drivers, however, I am having some problems getting them to run on fedora core 5 and on my dell 8600 (geforce fx go 5650).

If I try with the default nvidia xorg settings (I'm using the livna rpms for FC5, which create a default xorg.conf) the system spends fine (for s3 and s4) however, when it comes back up the X is blank.

I HAVE managed to get them to run, but only if I disable AGP completely with

Option "NvAgp" "0"

and only for suspend to disk (s4), and of course, losing agp in the process.

Whilst I'm already grateful this works, if I read the README section

http://download.nvidia.com/XFree86/L...ppendix-q.html

I get the impression I have have more luck if I used

Option "NvAgp" "1"

to enable NVIDIA's NvAGP instead of AGPGART. However, I cannot seem to get this working. In my system logs I see

NVRM: not using NVAGP, an AGPGART backend is loaded!

How can I figure out whats load AGPGART before the nvidia drivers go a look in ?

If I read

http://download.nvidia.com/XFree86/L...ppendix-f.html

that says the AGPGART needs to be built as a module and not directly into the kernel - Does anyone know what happens in the FC5 kernels (I currently have 2.6.16-1.2080_FC5)

Finally, I cannot get suspend-to-ram to work at all (which is the one I REALLY want... ) Any suggestions here. It strange, since the readme suggest S3 suspend should have better support.

thanks in advance for any suggestions

Chris
chrisjones05107 is offline   Reply With Quote
Old 04-08-06, 03:34 PM   #2
SaTaN0rX
Registered User
 
Join Date: Apr 2005
Posts: 86
Default Re: 1.0-8756 and suspend

hi,
i have no clue about FC, but:

a) do
# lsmod | grep agp

an my sytem, this gives:
ali_agp 6464 0
amd64_agp 11652 1
agpgart 29596 3 nvidia,ali_agp,amd64_agp

so amd64_agp and ali_agp are candidates. (on my box). YMMV, but dell afaik uses an intel chipset, so the module will be named intel_agp or the like.

b) kill X
c) do
# rmmod intel_agp
d) restart X, and see if NvAGP works

if it does, a possibility to prevent this module from loading is to delete it:
# rm /lib/modules/`uname -r`/kernel/drivers/char/agp/intel-agp.ko
maybe there exist better ways to prevent modules from loading on fedora, but again:
i don't have a clue about fedora.
SaTaN0rX is offline   Reply With Quote
Old 04-08-06, 04:08 PM   #3
netllama
NVIDIA Corporation
 
Join Date: Dec 2004
Posts: 8,763
Default Re: 1.0-8756 and suspend

FC4 compiled agp support into its kernels. I don't have an FC5 system handy at the moment, but I'd be surprised if that behavior had changed since FC4.

Thanks,
Lonni
netllama is offline   Reply With Quote
Old 04-08-06, 05:19 PM   #4
chrisjones05107
Registered User
 
Join Date: May 2004
Location: Cambridge, UK
Posts: 24
Default Re: 1.0-8756 and suspend

Following a suggestion from the fedora mailing list I tried booting with the "agp=off" option, since the FC kernels are compiled with agpgart built in.
With this, AGPGART is not loaded and the NvAGP module starts fine and suspend-to-disk works together with AGP support. Thanks NVIDIA.

Unfortunately suspend-to-ram still results in a blank screen on resume...

Chris
chrisjones05107 is offline   Reply With Quote
Old 04-09-06, 06:08 PM   #5
sarah
Registered User
 
Join Date: Jun 2004
Posts: 4
Default Re: 1.0-8756 and suspend

Chris-

Thanks for the agp=off trick. It does indeed get around the problem of agpgart being statically compiled into the kernel. I've never seen that parameter documented anywhere.

To possibly fix your suspend-to-ram problem, try this (it worked for me).

In the /etc/pm/functions-nvidia script, comment out the line that says "/usr/sbin/vbetool post" so that part of the file looks like this:

resume_video()
{
(
### /usr/sbin/vbetool post
/usr/sbin/vbetool dpms on
/usr/sbin/vbetool vbestate restore < /var/run/vbestate
) >/dev/null 2>&1
}

This change (plus the agp=off switch) allows me to use the official fedora kernels and the livna nvidia modules. I no longer have the blank display after suspend/restore. Before, I had to manually recompile the kernel to make agpgart a module. Then, of course, I couldn't use the livna modules.
sarah is offline   Reply With Quote
Old 04-10-06, 06:01 AM   #6
chrisjones05107
Registered User
 
Join Date: May 2004
Location: Cambridge, UK
Posts: 24
Default Re: 1.0-8756 and suspend

Quote:
Originally Posted by sarah
Thanks for the agp=off trick. It does indeed get around the problem of agpgart being statically compiled into the kernel. I've never seen that parameter documented anywhere.
I also had no idea about that option until someone suggested it. I also asked the same question on the fedora list; Are all these X=Y kernel options documentated anyway. Its seems not really

Quote:
Originally Posted by sarah
To possibly fix your suspend-to-ram problem, try this (it worked for me).

In the /etc/pm/functions-nvidia script, comment out the line that says "/usr/sbin/vbetool post" so that part of the file looks like this:

resume_video()
{
(
### /usr/sbin/vbetool post
/usr/sbin/vbetool dpms on
/usr/sbin/vbetool vbestate restore < /var/run/vbestate
) >/dev/null 2>&1
}

This change (plus the agp=off switch) allows me to use the official fedora kernels and the livna nvidia modules. I no longer have the blank display after suspend/restore. Before, I had to manually recompile the kernel to make agpgart a module. Then, of course, I couldn't use the livna modules.
I think I tried this yesterday. For me, it did allow suspend to ram to work, but then subsequent suspend-to-disk's failed, with the message

/usr/sbin/pm-suspend: line 23: echo: write error: Resource temporarily
unavailable

I'm not infront of the machine right now though, so cannot test again. I will do this evening.

Chris
chrisjones05107 is offline   Reply With Quote
Old 04-12-06, 01:58 PM   #7
kai4785
Registered User
 
Join Date: Jan 2006
Posts: 3
Default Re: 1.0-8756 and suspend

I am also having lots of problems getting NvAGP turned on. Some of what you've mentioned, I've already tried.

I have also posted this exact message over here:
http://forums.fedoraforum.org/forum/...d.php?t=104522
I wasn't able to find a similar thread over there, but here's as far as I've gotten.

I'll show below that I follow the steps I'm given, but get only half way.

http://www.redhat.com/archives/fedor.../msg02039.html

This thread had me edit my /etc/grub.conf, and append agp=off to the end of it, like this:

kernel /vmlinuz-2.6.16-1.2080_FC5 ro root=LABEL=/1 agp=off

This turns off my agpgart driver (I assume) so I can then enable my NvAGP driver. I check this by typing:

Code:
#cat /proc/driver/nvidia/agp/status
Status:          Disabled

AGP initialization failed, please check the ouput
of the 'dmesg' command and/or your system log file
for additional information on this problem.
This looks like it's supposed to now. From here, I should be able to edit my xorg.conf file, and add the line
Option "NvAGP" "integer"
http://www.nvidia.com/object/linux_readme_install.html says:
Option "NvAgp" "0" ... disables AGP support
Option "NvAgp" "1" ... use NVAGP, if possible
Option "NvAgp" "2" ... use AGPGART, if possible
So I set it like this:
Code:
Section "Device"
        Identifier  "Videocard0"
        Driver      "nvidia"
        VendorName  "Videocard vendor"
        BoardName   "nVidia Corporation NV43 [GeForce 6600/GeForce 6600 GT]"
        Option      "NvAGP" "1"
EndSection
Everything up to this point seems to be the same as other people have done. At this point, I should be able to just restart X and have the NvAGP working properly. My /proc/driver/nvidia/agp/stats doesn't change at all. Still says Disabled. This leads me to believe that I somehow do not have NvAGP available to use. Also, here are my log files AFTER I've turned agp=off in my grub.conf file:

Code:
#dmesg | grep -i agp
Kernel command line: ro root=LABEL=/1 agp=off

#cat /var/log/messages | grep -i agp
Apr 12 07:46:40 gamer kernel: Kernel command line: ro root=LABEL=/1 agp=off

(Of course, there's lots more from previous boots, but they aren't relevant since the change hadn't been made yet)

#cat /var/log/Xorg.0.log | grep WW
(WW) NVIDIA(0): No size information available in CRT-0's EDID; cannot compute
(WW) NVIDIA(0):     DPI from EDID.
(WW) NVIDIA(0): Option "SecurityTypes" is not used
(WW) NVIDIA(0): Option "UserPasswdVerifier" is not used
(WW) NVIDIA(0): Option "PasswordFile" is not used
(WW) NVIDIA(0): Option "httpd" is not used
(WW) NVIDIA(0): Option "httpport" is not used

#cat /var/log/Xorg.0.log | grep EE
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(II) Loading extension MIT-SCREEN-SAVER

#cat /var/log/Xorg.0.log | grep -i agp
(**) NVIDIA(0): Option "NvAGP" "1"
(**) NVIDIA(0): Use of NVIDIA internal AGP requested

#lsmod | grep -i agp
This gives me no output at all.
Here's my system information.
Fedora Core 5
2.6.16-1.2080_FC5
kmod-nvidia-1.0.8756-1.2.6.16_1.2080_FC5 <--- install through my livna yum repo.
Nvidia GeForce 6600GT (AGP)
Host bridge: VIA Technologies, Inc. VT8375 [KM266/KL266]
Athlon XP 2400+

Where am I going wrong?
kai4785 is offline   Reply With Quote
Old 04-12-06, 03:28 PM   #8
chrisjones05107
Registered User
 
Join Date: May 2004
Location: Cambridge, UK
Posts: 24
Default Re: 1.0-8756 and suspend

k
chrisjones05107 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


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


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