LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-03-2006, 08:28 PM   #1
Nikon01
Member
 
Registered: Jul 2003
Distribution: Slackware 10.0
Posts: 196

Rep: Reputation: 30
Slack 10.0 + Dell Latitude C810 = :(


Well for the most part I've gotten everything running groovy but I have a HUGE problem. Whenever I'm in X and I shut the laptop and then open it up I can't get the display back to the desktop. Its all working just fine and so long as I leave up the logout prompt I'm fine but I would like the ability to close my laptop in X.

I've turned off ALL BIOS options on suspend or anything that looked like it might effect it and yet it still happens. Any clues as to how I should go about fixing this? I've tried a new kernel but that didn't help.

Thanks in advance to all help recieved
 
Old 05-03-2006, 09:34 PM   #2
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
This is my current project, unfortunately, I just embarked on it today.

Have you tried the Suspend2 patch? IMHO, if you can't suspend to ram, hibernation is the next best thing.

Hmmm...are you using Nvidia's proprietary driver? From what I understand, it's not exactly fond of resuming from suspension.
 
Old 05-03-2006, 09:54 PM   #3
Nikon01
Member
 
Registered: Jul 2003
Distribution: Slackware 10.0
Posts: 196

Original Poster
Rep: Reputation: 30
I'm using the drivers that came w/ xorg. Would using the nvidia drivers from nvidia solve this? If not I'd rather keep it the way it is

The problem isn't from suspend I don't think cuz I turned it off and whenever I close the laptop it still does it. Unless I'm out of X then it works. Let me know.

Thanks for the reply btw.
 
Old 05-03-2006, 10:29 PM   #4
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
No problem.

In my experience, Nvidia's drivers can be a bit...picky. I try to get things working with the "nv" driver before I try to get them to work with the proprietary driver (long story short, leave it how it is).

I believe I read somewhere yesterday about sysvinit needing a patch before it will S2R properly in X, I'm trying to find it right now (I think it was in the kernel Documentation files).
 
Old 05-17-2006, 11:09 PM   #5
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
Sorry about the delay; I'm a bit sick, so things kinda fall apart on me every so often now.

I've been able to suspend to ram (from the command line, I haven't configed the LID event to do anything yet) using Suspend2's ram.conf file. The only problems I'm having are the screen doesn't shut off when I suspend to ram, and X crashes after I resume.

I'm pretty sure that X is crashing because of some incompatible apps I have running in XFCE, but I can't swear to anything. I'll try it in Gnome or KDE later.

As I said earlier, I think you should try using Suspend2; you can config it to use Suspend2's scriptlets, /sys/power/state, or even /proc/acpi/sleep (depricated) if you want.

Oh, that article I read about sysVinit needing to be patched? I never did find it again, but I think it was old old old.
 
Old 05-21-2006, 12:20 AM   #6
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
OK, I've got it working, here's what I did:

1- D/L and install Suspend2 kernel patch, recompile kernel.
2- D/L and install hibernate scripts for Suspend2

Follow the directions on their HOWTO page and wiki.

3- D/L and install VBEtool (you can get a tgz from LinuxPackages).

4- Edit /etc/hibernate/ram.conf to read:
Code:
UseSysfsPowerState mem
PowerDownMethod platform
Verbosity 0
LogFile /var/log/hibernate.log
LogVerbosity 1
Distribution slackware
SaveClock restore-only
UnloadBlacklistedModules yes
LoadModules auto
EjectCards yes
EnableVbetool yes
VbetoolPost yes
RestoreVCSAData yes
SwitchToTextMode yes
UseDummyXServer yes
XStatus x
5- Add the following option to your xorg.conf:
Code:
(blahblahblah)
Section "Device"
(blahblahblah)
Option    "VBERestore" "true"
(blahblahblah)
EndSection
6- Create the following file as /etc/acpi/events/lid:
Code:
event=button/lid
action=/etc/acpi/lid.sh
7- Create the following file as /etc/acpi/lid.sh:
Code:
#!/bin/sh
if [ ! "$( cat /var/run/lid | grep up )" == "hibernate" ]; then
    echo hibernate > /var/run/lid
    /path/to/hibernate -F /etc/hibernate/ram.conf
fi
and then run
Code:
chmod +x /etc/acpi/lid.sh
to make the script executable.

YMMV.

Edit:
I haven't tried this with Nvidia's proprietary driver yet.

Last edited by Charred; 05-21-2006 at 06:15 PM.
 
  


Reply


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
Dell Latitude C600 Al_Khidr Linux - Software 3 09-17-2005 11:12 PM
latitude dell 800 v2010 Linux - Laptop and Netbook 0 02-18-2005 06:15 PM
Slackware 10 on dell latitude!! dave25 Linux - Laptop and Netbook 3 12-19-2004 10:53 AM
A Dell Latitude, some advice. Tarts General 5 10-10-2003 09:31 AM
Install on a Dell Latitude Cp StudlyDego73 Linux - Hardware 3 04-03-2002 08:35 PM

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

All times are GMT -5. The time now is 01:27 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