LinuxQuestions.org
Help answer threads with 0 replies.
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 12-25-2009, 07:20 AM   #1
Geriao
Member
 
Registered: Dec 2009
Distribution: Ubuntu Karmic Koala, Slackware 13.0
Posts: 66

Rep: Reputation: 17
Cannot suspendo to RAM nor disk on Dell Inspiron 1525


I use KDE as the windows manager, and I noticed that it doesn't suspend the session to disk nor ram.
I tried to configure all profiles in Power Saving to suspend to disk or ram when the lid is closed, but it just locks the screen. If I press the sleep button (Fn+ "Moon symbol"), it does not either. The same if I try to suspend using the Kickoff -> Leave -> Suspend to RAM/Disk.

How can I fix this?

Thanks in advance!



Also, a small off topic question: When I'm using Slackware (like now), my posts indicate just that I posted using "linux", instead of showing the blue S "linuxslackware"... How do I change this?

Last edited by Geriao; 12-25-2009 at 07:23 AM.
 
Old 12-25-2009, 08:25 AM   #2
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
Quote:
Originally Posted by Geriao View Post
my posts indicate just that I posted using "linux", instead of showing the blue S "linuxslackware"... How do I change this?
If you are using firefox then type "about:config" in your address bar.

gives a warning ....continue.

in filter type useragent

change the value Firefox/3.. to Slackware/Firefox ....
 
1 members found this post helpful.
Old 12-25-2009, 08:34 AM   #3
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
Quote:
Originally Posted by Geriao View Post
I use KDE as the windows manager, and I noticed that it doesn't suspend the session to disk nor ram.
use /usr/sbin/s2ram from super user mode
 
Old 12-25-2009, 08:39 AM   #4
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by raju.mopidevi View Post
use /usr/sbin/s2ram from super user mode
s2disk is not there by default, but you can install it. However, pm-utils work just fine.

@ Geriao

Do you have a swap partition?
Try in your lilo.conf after kernel line:
Code:
append = "resume=/dev/hdaN"
When /dev/hda7 is your swap partition.

Then re-run /sbin/lilo
 
Old 12-25-2009, 09:01 AM   #5
Geriao
Member
 
Registered: Dec 2009
Distribution: Ubuntu Karmic Koala, Slackware 13.0
Posts: 66

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by raju.mopidevi View Post
If you are using firefox then type "about:config" in your address bar.

gives a warning ....continue.

in filter type useragent

change the value Firefox/3.. to Slackware/Firefox ....
Thanks! I just did that... This is the first post so let's see...



Quote:
Quote:
Originally Posted by Geriao View Post
I use KDE as the windows manager, and I noticed that it doesn't suspend the session to disk nor ram.
use /usr/sbin/s2ram from super user mode
I just checked it, it seems that this program/script is not present on that folder.


Quote:
Do you have a swap partition?
Try in your lilo.conf after kernel line:
Code:

append = "resume=/dev/hdaN"

When /dev/hda7 is your swap partition.

Then re-run /sbin/lilo
I do have, and it seems that it's being used (when I use "cat /proc/swaps" it appears).
I use GRUB2 as a bootloader (because Ubuntu was there before Slack), and it auto-probeb Slack and made an entry (does not chainload LiLo). Should I edit the grub configuration?
And by after kernel line you mean the line just after
Code:
# Start LILO global section
# Append any additional kernel parameters:
right?
There's already an append line there:
Code:
append=" vt.default_utf8=0"
I can put the "resume" line just after that, right?
 
Old 12-25-2009, 09:08 AM   #6
Geriao
Member
 
Registered: Dec 2009
Distribution: Ubuntu Karmic Koala, Slackware 13.0
Posts: 66

Original Poster
Rep: Reputation: 17
It worked (the user agent thing)! Thanks, raju.mopidevi!

A thing I just thought... Should the account I'm using, which is a normal and sudoer user account belong to an specific group, like power, plugdev...? Where can I check the special permission each group has? I tried to look into the shadow file, but there's no apparent info on that there... The plugdev group, for instance, isn't even listed there.
 
Old 12-25-2009, 09:16 AM   #7
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
I think you chainload to Slack from Grub2 right? So changing grub config won't help, just put that append line in lilo.conf like for me it's:

Quote:
image = /boot/vmlinuz-2.6.32.2-shy
root = /dev/hda2
label = Linux
append = "resume=/dev/hda7 quiet splash"
read-only
Then you need to re-run lilo for the changes to take effect.
 
Old 12-25-2009, 09:18 AM   #8
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by Geriao View Post
It worked (the user agent thing)! Thanks, raju.mopidevi!

A thing I just thought... Should the account I'm using, which is a normal and sudoer user account belong to an specific group, like power, plugdev...? Where can I check the special permission each group has? I tried to look into the shadow file, but there's no apparent info on that there... The plugdev group, for instance, isn't even listed there.
Didn't you use useradd script to add user? Anyways, add yourself to these groups:

Code:
users floppy audio video cdrom plugdev power netdev
You can see the groups in /etc/group
 
Old 12-25-2009, 01:29 PM   #9
Geriao
Member
 
Registered: Dec 2009
Distribution: Ubuntu Karmic Koala, Slackware 13.0
Posts: 66

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by ~sHyLoCk~ View Post
I think you chainload to Slack from Grub2 right? So changing grub config won't help, just put that append line in lilo.conf like for me it's:



Then you need to re-run lilo for the changes to take effect.
Actually, Grub2 loads the Slack kernel directly (no chainloading; I never see the lilo splash screen). And about the existing append line in my lilo.conf, is there any problem adding another append line? Should it be

Code:
append = "resume=/dev/hda7 quiet splash"
append=" vt.default_utf8=0"
or

Code:
append=" vt.default_utf8=0 resume=/dev/hda7 quiet splash "
?


About the accounts, I used useradd (or adduser, can't remember) to create it... But I didn't add it to any groups other than users, so I was trying to add it after creation. I edited the /etc/group thru /usr/sbin/vigr and added myself. It seems the gpasswd works too. Thanks, ~sHyLoCk~!
 
Old 12-25-2009, 01:58 PM   #10
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by raju.mopidevi View Post
If you are using firefox then type "about:config" in your address bar.

gives a warning ....continue.

in filter type useragent

change the value Firefox/3.. to Slackware/Firefox ....
Thanks
 
Old 12-25-2009, 02:56 PM   #11
Geriao
Member
 
Registered: Dec 2009
Distribution: Ubuntu Karmic Koala, Slackware 13.0
Posts: 66

Original Poster
Rep: Reputation: 17
I'm not quite sure about what I did, but now I can suspend to RAM! I believe it's because I added my user account to the "power" group (I added it to plugdev also), then rebooted.

Code:
gpasswd -a username power
Guess it's solved! I will try later to suspend to disk...
 
Old 12-25-2009, 05:18 PM   #12
DonnieP
Member
 
Registered: Jan 2008
Location: Richmond, VA USA
Distribution: Slackware
Posts: 144

Rep: Reputation: 29
Quote:
now I can suspend to RAM
Exactly. The instructions you were getting about swap and lilo had to do with suspend to disk . . . not ram.
 
Old 12-26-2009, 06:41 AM   #13
Geriao
Member
 
Registered: Dec 2009
Distribution: Ubuntu Karmic Koala, Slackware 13.0
Posts: 66

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by DonnieP View Post
Exactly. The instructions you were getting about swap and lilo had to do with suspend to disk . . . not ram.
Yet I couldn't suspend to RAM either. I still have to try to suspend to disk...
 
Old 12-28-2009, 01:23 PM   #14
Geriao
Member
 
Registered: Dec 2009
Distribution: Ubuntu Karmic Koala, Slackware 13.0
Posts: 66

Original Poster
Rep: Reputation: 17
I tried to suspend to disk, the laptop indeed turns off, but when I try to load it again, it seems that it's a new session. I guess I will need to add this append line to grub, or add a custom entry to chainload lilo...
 
Old 12-29-2009, 07:12 AM   #15
Geriao
Member
 
Registered: Dec 2009
Distribution: Ubuntu Karmic Koala, Slackware 13.0
Posts: 66

Original Poster
Rep: Reputation: 17
Now I chainload lilo from grub... The display is greatly improved! Before it was like if the resolution was very low... Now I get a much bigger resolution.
I checked both grub.cfg and lilo.conf, both seem to use "vga = 773", but grub doesn't work for some reason... Oh well!
I'll try to suspend now, after adding the resume parameter...
 
  


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
RedHat 3/4 not detecting Dell Inspiron 1525 Sata Hard Disk sunilkr2k1 Linux - Hardware 3 01-20-2009 03:22 AM
RHEL 5 and Dell Inspiron 1525 john_galt Linux - Laptop and Netbook 11 11-28-2008 10:43 AM
dell inspiron 1525 wireless Maha1980 Linux - Networking 3 04-24-2008 05:43 PM
Dell Inspiron 1525 watcher69b Linux - Laptop and Netbook 1 04-12-2008 07:44 AM

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

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