Gentoo Forums
Gentoo Forums
Quick Search: in
Software Suspend2 && Nvidia AGP?
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Headhunter123
Guru
Guru


Joined: 19 Oct 2002
Posts: 509

PostPosted: Fri Jul 15, 2005 10:08 pm    Post subject: Software Suspend2 && Nvidia AGP? Reply with quote

Hi!

I got software suspend2 working quite easily but, as reported by other users,
it doesn't work with agp enabled and the nvidia driver.
On the other hand, somebody released a patch to the nvidia driver which should make
it work, or not..

The question is if it *is* possible to do hibernate+nvidia+agp?
As far as I understand it's not possible, can you confirm that?
Thanks for help!

Ps.:
I have no internet at home atm, so I can only answer some days later..
Back to top
View user's profile Send private message
baeksu
Guru
Guru


Joined: 26 Sep 2004
Posts: 583
Location: Seoul, Korea

PostPosted: Tue Jul 19, 2005 8:11 am    Post subject: Re: Software Suspend2 && Nvidia AGP? Reply with quote

Headhunter123 wrote:
Hi!

I got software suspend2 working quite easily but, as reported by other users,
it doesn't work with agp enabled and the nvidia driver.
On the other hand, somebody released a patch to the nvidia driver which should make
it work, or not..

The question is if it *is* possible to do hibernate+nvidia+agp?
As far as I understand it's not possible, can you confirm that?
Thanks for help!

Ps.:
I have no internet at home atm, so I can only answer some days later..


Is there any reason you need the agp (I'm guessing you mean the kernel's in-built agp)?

If it's just the nvidia-kernel you mean, I've had it working on all of the current nvidia drivers from portage (except 6629, which needed an additional patch to work).

Are you having problems resuming?
_________________
Gnome:
1. A legendary being.
2. A never ending quest to make unix friendly to people who don't want unix and excruciating for those that do.
Back to top
View user's profile Send private message
Headhunter123
Guru
Guru


Joined: 19 Oct 2002
Posts: 509

PostPosted: Tue Jul 19, 2005 8:14 am    Post subject: Reply with quote

Hello!

Thanks for your reply :)

I have AGP support enabled in the kernel and when I hibernate my PC from xorg
it starts dead on resume (weird graphics, keyboard dead..)
Exiting xorg before hibernating does the trick, but this sucks.

Now I've seen ppl patching the nvidia drivers to properly resume on some kind of
Powersaving signal, but you need to disable AGP for that and/or set NV_AGP in your
xorg.conf and all in all this got me really confused..

I need AGP for games of course, so I don#t want to do hibernating wo. agp/xorg support.
Again my question, is nvidia+hibernate+agp possible :) ?

Thanks again *
Back to top
View user's profile Send private message
raf
Apprentice
Apprentice


Joined: 16 Jan 2005
Posts: 158

PostPosted: Tue Jul 19, 2005 10:19 am    Post subject: Reply with quote

Hi,

I use suspend to ram (STR) which works fine for me. I did not compile AGP support into the kernel (not even as a module) and use the nvidia AGP support instead set in xorg.conf:
Code:
Option      "NvAGP" "1"

My AGP is reported as on:
Code:
root@raf>cat /proc/driver/nvidia/agp/status
Status:          Enabled
Driver:          NVIDIA
AGP Rate:        4x
Fast Writes:     Enabled
SBA:             Enabled

BTW:The hibernate-script never worked for me. I ended up doing a bit of reading and writing one myself (which I have included at the end of this post). Basically I stop some of the services, unload all usb modules, and use acpi to sleep.


MY QUESTIONS:
1) When I resume my screen starts off grey and turns white (kinda scary), but when I switch to vc1 and right away back to vc7 everything is fine. I've been doing this for months but would like to fix this.

2) Any version of nvidia higher then 7174 does not allow me to wake up from STR. The screen just stays black and I have to power down. Any idea what has changed from 7174 upwards? Anyone have the same issue?

Code:
#!/bin/sh
# Script to place the laptop in sleep mode


###############################################################################
# VARIABLES AND DEFINITIONS
###############################################################################

LOG="/var/log/sleep.log"
echo "`date`" > $LOG



###############################################################################
# FUNCTIONS
###############################################################################

# Checks the return status of last command and exits on error
errorTest(){
if [ $? -ne 0 ]; then
   /etc/init.d/autofs start
   echo "==> ERROR: Terminating" >> $LOG
   exit
fi
}



###############################################################################
# UNLOAD TROUBLE MODULES
###############################################################################

# Must stop autofs as it hogs modules. Autofs should release them all if they   were not in use. This is something we will check for next.
/etc/init.d/autofs stop


# We unload all trouble modules and check if any caused an error. If they did,  we log and exit. The modules that HAVE been unloaded will be loaded by the      kernel anyways so it should not matter that we unloaded some modules already.

modprobe -r ntfs 2>> $LOG
errorTest $?

modprobe -r vfat 2>> $LOG
errorTest $?

modprobe -r fat 2>> $LOG
errorTest $?

modprobe -r uhci_hcd 2>> $LOG
errorTest $?

modprobe -r ehci_hcd 2>> $LOG
errorTest $?



###############################################################################
# PREPARE FOR SLEEP
###############################################################################

# Write buffers to disk
sync

# Store clock
hwclock --systohc

# Turn monitor off
/usr/bin/xset dpms force off



###############################################################################
# ENTER SEEP STATE
###############################################################################
echo 3 > /proc/acpi/sleep



###############################################################################
# RESUME/RELOAD EVERYTHING AFTER WAKEUP
###############################################################################

# Turn monitor on
/usr/bin/xset dpms force on

# Read clock
hwclock --hctosys

# Load modules
modprobe uhci_hcd
modprobe ehci_hcd

# Start autofs
/etc/init.d/autofs start

_________________
-Raf
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum