LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 10-03-2008, 12:36 PM   #16
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546

I experimented some more with this suspend to ram business. I noticed some strange things.

If I am in X/KDE, in a Konsole session, use the chvt idea as many people have suggested, and then as root run my suspend shell script, when the screen resumes the Konsole screen fills with a bunch of carriage returns.

I discovered the chvt idea is unnecessary on my box anyway. Without that command I witness no spurious or additional carriage returns. I don't know why this idea is routinely suggested.

At one point in the tests all of my KDE hotkeys failed. I had to exit and restart X/KDE to restore the hotkeys. I could not repeat the problem, however.

If I suspend to ram from any non-X console session, the screen display does not restore. If I have an X session running, I can toggle to that session with Alt-F7 and all is well.

However, if no X is running and I suspend to ram, I cannot toggle to any console screen and see an actual display. I cannot blindly type startx and get a screen. Everything stays blank.

I found many online references about blank screen problems but found no solutions. The problem is not the nvidia drivers because the blank screen problem occurs without running X.

The only time I experienced no screen problems was while in X, not running chvt, and suspending to ram from a konsole session or the KDE Run command (using kdesu). Then the screen restored normally.

As an idea, I read that when restoring a suspend session, automatically running the screen saver lock might be a good precaution. I tried that at the end of the script (kdesktop_lock --forcelock). That did not work well because the shell script is run as root but the KDE session is owned by a normal user. Two different passwords. I then tried the screen saver lock using the sudo -u command and my login name. That did not work well either because when the screen saver ran I received a bunch of DCOP error messages.

Conclusion: wonderful possibilities but a lot of work remains to get suspend to ram to function smoothly.
 
  


Reply



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
LXer: State by state, Microsoft responds to creeping threat LXer Syndicated Linux News 0 05-01-2007 07:16 AM
How To Make update2date Automatically Update JustinK101 Linux - Software 2 03-09-2007 06:29 PM
make xmms play CD automatically grapier Linux - Software 8 08-25-2006 02:20 AM
Make Samba start automatically? anti.corp Arch 2 02-12-2006 11:59 AM
How do I automatically make a ssh key? cereal83 Linux - Security 11 09-20-2005 02:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:21 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration