LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 08-16-2008, 04:14 AM   #1
El Nigromante
Member
 
Registered: Aug 2008
Distribution: Slackware 12.2, Slackware 13.0
Posts: 40

Rep: Reputation: 17
Question NVidia proprietary driver + suspend to ram (Slackware 12.1)


Hello, Slackware beings:

I have just installed Slackware 12.1 in my desktop machine and everything seems to work fine (I had to add hd?=noprobe at kernel boot, for my SATA drives). I use a console login (runlevel 3).

Well, the fact is I have a NVidia card (NVidia 8400 GS), so installed proprietary NVidia drivers too (NVIDIA-Linux-x86-173.14.12-pkg1.run): KDE runs fine...

But my "problem" is with suspend to ram:

- I have tried the following methods:

* s2ram (suspend package from slacky.eu)
* pm-suspend (pm-utils package from slacky.eu)
* plain "echo -n mem > /sys/power/state"

- (A) In console mode, no X server running, the system suspends and resumes, but the screen is not restored. I can type commands (for an example "halt" to stop the machine).
No options/quirks work with above methods. The card seems to ignore them.

- (B) On the other hand, if X server is running (example, started my KDE session with startx), I can suspend to ram with the simple "echo -n mem > /sys/power/state": the screen is restored correctly on resume.

In fact, in case (A) after resume, if I blindly type "startx", the X server starts correctly, the screen is restored, and have KDE as usual. If I switch to console (ctrl+alt+Fwhatever) the screen goes blank again (although bash is still functional as before). If I switch back to KDE, the screen goes ok again... and so forever.

Thus, the point is the X server "knows" how to cleanly restore the screen after a suspend resume.


My question is: how could I reproduce those actions performed by X server, in order to create a script to suspend from console (without X)?


Thank you.


NOTE: I have reproduced this behaviour in my old Debian Lenny installation too. I was not aware of it until now (I always suspended from gnome).

NOTE 2: I have not tested suspend to disk (aka hibernate) yet.
 
Old 08-17-2008, 06:10 AM   #2
skog
Member
 
Registered: Sep 2003
Location: TX
Distribution: slackware
Posts: 301

Rep: Reputation: 30
are you using fbconsole or vesafb console? a high-rez command line? do you have something like this "vga=791" in your /boot/grub/menu.lst or /etc/lilo.conf?
 
Old 08-17-2008, 07:50 PM   #3
El Nigromante
Member
 
Registered: Aug 2008
Distribution: Slackware 12.2, Slackware 13.0
Posts: 40

Original Poster
Rep: Reputation: 17
Yes, I have vga=788 (800x600). I also have tried with vga=0 and with no success.

With X server running there's no problem with framebuffer, the screen is correctly restored. Problem comes when X server is not running.
 
Old 10-14-2008, 08:02 PM   #4
luismanson
LQ Newbie
 
Registered: Feb 2008
Posts: 8

Rep: Reputation: 0
same here... any progress ??
Video: nvidia 7150m
i only found something... i did not used startx, but just X (but did not see anything...) and also read the logs over SSH
normaly the X shows a zeiko display detected, but if i start without X and make a suspend to ram, when it comes back (with no video at all) X logs shows no display detected...and is uses a CRT.... ??
 
Old 10-14-2008, 09:02 PM   #5
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
I had similar results:

https://www.linuxquestions.org/quest...ml#post3299192
 
Old 10-15-2008, 12:06 PM   #6
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,485

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
From /usr/doc/NVIDIA_GLX-1.0/html/chapter-18.html
Quote:
Chapter 18. Configuring a Notebook
Installation and configuration
Installation and configuration of the NVIDIA Linux Driver Set on a notebook is the same as for any desktop environment, with a few additions, as described below.
Power Management
All notebook NVIDIA GPUs support power management, both S3 (also known as "Standby" or "Suspend to RAM") and S4 (also known as "Hibernate", "Suspend to Disk" or "SWSUSP"). Power management is system-specific and is dependent upon all the components in the system; some systems may be more problematic than other systems.
...
In many cases, suspending and/or resuming will fail. As mentioned above, this functionality is very system-specific. There are still many cases that are problematic. Here are some tips that may help:
In some cases, hibernation can have bad interactions with the PCI Express bus clocks, which can lead to system hangs when entering hibernation. This issue is still being investigated, but a known workaround is to leave an OpenGL application running when hibernating.
It does not really help you, but at least you know that the issue is real and has been investigated.
 
Old 10-15-2008, 12:16 PM   #7
robel
Member
 
Registered: Oct 2008
Location: Norway
Distribution: Slackware
Posts: 61

Rep: Reputation: 15
I had to do this in rc.local:

echo 3 > /proc/sys/kernel/acpi_video_flags

The computer is a laptop. If it doesn't work try another number, or ask somebody what the number means... I don't know. ;-)
 
  


Reply

Tags
nvidia, suspend


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
slackware + suspend-to-ram? janhe Slackware 7 07-05-2007 11:05 AM
LXer: NVIDIA Proprietary Linux Display Driver 1.0-9755 LXer Syndicated Linux News 0 03-09-2007 07:17 PM
does the vesa console framebuffer driver conflict with the proprietary nvidia driver? mr.v. Linux - Hardware 2 01-28-2007 07:51 AM
Nvidia driver not working properlly when resuming S3 suspend. redarrow Linux - Hardware 2 01-15-2007 10:08 AM
cant suspend to disk with nvidia driver loaded qwijibow Linux - General 13 01-12-2005 03:45 PM


All times are GMT -5. The time now is 08:48 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration