LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Cannot suspendo to RAM nor disk on Dell Inspiron 1525 (https://www.linuxquestions.org/questions/slackware-14/cannot-suspendo-to-ram-nor-disk-on-dell-inspiron-1525-a-778025/)

Geriao 12-25-2009 07:20 AM

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?

raju.mopidevi 12-25-2009 08:25 AM

Quote:

Originally Posted by Geriao (Post 3804310)
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 ....

raju.mopidevi 12-25-2009 08:34 AM

Quote:

Originally Posted by Geriao (Post 3804310)
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

~sHyLoCk~ 12-25-2009 08:39 AM

Quote:

Originally Posted by raju.mopidevi (Post 3804363)
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

Geriao 12-25-2009 09:01 AM

Quote:

Originally Posted by raju.mopidevi (Post 3804355)
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?

Geriao 12-25-2009 09:08 AM

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.

~sHyLoCk~ 12-25-2009 09:16 AM

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.

~sHyLoCk~ 12-25-2009 09:18 AM

Quote:

Originally Posted by Geriao (Post 3804384)
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

Geriao 12-25-2009 01:29 PM

Quote:

Originally Posted by ~sHyLoCk~ (Post 3804389)
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~!

piratesmack 12-25-2009 01:58 PM

Quote:

Originally Posted by raju.mopidevi (Post 3804355)
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

Geriao 12-25-2009 02:56 PM

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...

DonnieP 12-25-2009 05:18 PM

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.

Geriao 12-26-2009 06:41 AM

Quote:

Originally Posted by DonnieP (Post 3804679)
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...

Geriao 12-28-2009 01:23 PM

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...

Geriao 12-29-2009 07:12 AM

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...


All times are GMT -5. The time now is 01:53 AM.