LinuxQuestions.org
Register a domain and help support LQ
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 02-25-2013, 04:23 PM   #1
daf1kpp
LQ Newbie
 
Registered: Feb 2013
Posts: 16

Rep: Reputation: Disabled
Red face HIbernation not working


Hi, I have been doing like it's writen right here http://docs.slackware.com/howtos:sla...in:hibernation

All my partitions are primary so as far as I understod I should only add
append=" resume=/dev/sda1"
to my lilo.conf file.

My /etc/lilo.conf look like this after modification:

Quote:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
# Append any additional kernel parameters:
append=" vt.default_utf8=0"
boot = /dev/sda

# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
bitmap = /boot/slack.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
bmp-colors = 255,0,255,0,255,0
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many
# entries must be in the first column before the next begins to
# be used. We don't specify it here, as there's just one column.
bmp-table = 60,6,1,16
# Timer location x, timer location y, foreground color,
# background color, shadow color.
bmp-timer = 65,27,0,255

# Standard menu.
# Or, you can comment out the bitmap menu above and
# use a boot message with the standard menu:
#message = /boot/boot_message.txt

# Wait until the timeout to boot (if commented out, boot the
# first entry immediately):
prompt
# Timeout before the first entry boots.
# This is given in tenths of a second, so 600 for every minute:
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# Normal VGA console
vga = normal
# Ask for video mode at boot (time out to normal in 30s)
#vga = ask
# VESA framebuffer console @ 1024x768x64k
#vga=791
# VESA framebuffer console @ 1024x768x32k
#vga=790
# VESA framebuffer console @ 1024x768x256
#vga=773
# VESA framebuffer console @ 800x600x64k
#vga=788
# VESA framebuffer console @ 800x600x32k
#vga=787
# VESA framebuffer console @ 800x600x256
#vga=771
# VESA framebuffer console @ 640x480x64k
#vga=785
# VESA framebuffer console @ 640x480x32k
#vga=784
# VESA framebuffer console @ 640x480x256
#vga=769
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda2
label = Slack
append=" resume=/dev/sda1"
read-only
# Linux bootable partition config ends
I have added only the line like:
Quote:
append=" resume=/dev/sda1"
My swapPartition > my ram size.

My partitions:
/dev/sda1 ; primary; swap
/dev/sda2 ; primary; ext4, root ("/")
/dev/sda3 ; primary; ext4, ("/home")


I use KDE and turn on hibernation by clicking "HIBERNATE" in menu.
After I want to resume i click power on button, LILO starts I choose my linux system and click enter, slackware boots up and its like new session - not resuming my old one.

Why is it happening like that ?
 
Old 02-25-2013, 04:33 PM   #2
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 324

Rep: Reputation: 49
You don't want any spaces, like this;

Code:
append="resume=/dev/sda1"
don't forget to run 'lilo' after any changes.
 
Old 02-25-2013, 04:38 PM   #3
zasavage
Member
 
Registered: Sep 2010
Location: Bloemfontein , South Africa
Distribution: Slackware 13.37 and Slackware 14
Posts: 193

Rep: Reputation: 6
This is my lilo.conf

I agree with Bazzaah that you must remove the leading space
I use append="quit fastboot resume=/dev/sda3"

# Linux bootable partition config begins
image = /boot/vmlinuz-generic-3.7.1
initrd = /boot/initrd.gz
root = /dev/sda1
label = Slackware
read-only
append="quit fastboot resume=/dev/sda3"
# Linux bootable partition config ends

Regards
lawrence
 
Old 02-25-2013, 04:53 PM   #4
daf1kpp
LQ Newbie
 
Registered: Feb 2013
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Bazzaah View Post
You don't want any spaces, like this;

Code:
append="resume=/dev/sda1"
don't forget to run 'lilo' after any changes.
What do you mean by "run 'lilo' after any changes" ? Do you mean to restart linux first to let lilo gain new configuration and then do hibernate ?


Thank you and @zasavage for anwsering my question.
 
Old 02-25-2013, 05:01 PM   #5
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 324

Rep: Reputation: 49
Quote:
Originally Posted by daf1kpp View Post
What do you mean by "run 'lilo' after any changes" ? Do you mean to restart linux first to let lilo gain new configuration and then do hibernate ?


Thank you and @zasavage for anwsering my question.
Sorry, I should have been a bit clearer. What I mean is that you need to run the command lilo as root so that lilo accepts the changes that you've made in lilo.conf.

Hope that helps you get the problem sorted!
 
Old 02-25-2013, 05:02 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,579
Blog Entries: 2

Rep: Reputation: 4036Reputation: 4036Reputation: 4036Reputation: 4036Reputation: 4036Reputation: 4036Reputation: 4036Reputation: 4036Reputation: 4036Reputation: 4036Reputation: 4036
Quote:
Originally Posted by daf1kpp View Post
What do you mean by "run 'lilo' after any changes" ? Do you mean to restart linux first to let lilo gain new configuration and then do hibernate ?
Any time you make a change to /etc/lilo.conf you have to run the command
Code:
lilo
as root afterwards to make the bootloader aware of the changes. After you have done that hibernate the system and wake it up again, it should work now, since I assume that not running lilo was the problem here.
 
Old 02-25-2013, 06:29 PM   #7
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo
Posts: 153

Rep: Reputation: 21
Quote:
Originally Posted by Bazzaah View Post
You don't want any spaces, like this;

Code:
append="resume=/dev/sda1"
Thanks for noticing. I wrote that article on SlackDocs, but never tried 'simple' hibernating (I use full disk encryption with LVM) and I wasn't sure if the resume line is correct. Updating article right now.
 
Old 02-25-2013, 08:20 PM   #8
gabytf
Member
 
Registered: Jun 2010
Location: Kota Kinabalu, Sabah, Malaysia
Distribution: Slackware64 14, -current
Posts: 163

Rep: Reputation: 1
I have been trying to hibernate, this time works.
Thank you.

Edit: But i find that i am having problem if i put to "Sleep", it could't wake my monitor from sleep!!! what's the remedy?

Last edited by gabytf; 02-25-2013 at 08:27 PM.
 
Old 02-26-2013, 03:36 PM   #9
zasavage
Member
 
Registered: Sep 2010
Location: Bloemfontein , South Africa
Distribution: Slackware 13.37 and Slackware 14
Posts: 193

Rep: Reputation: 6
@gabytf

I also had a similar problem with suspend to disk working but sleep not !

I had to update my bios , and everything is ok now
I would be interested to know the motherboard you have ?

regards

Lawrence
 
Old 02-26-2013, 07:46 PM   #10
gabytf
Member
 
Registered: Jun 2010
Location: Kota Kinabalu, Sabah, Malaysia
Distribution: Slackware64 14, -current
Posts: 163

Rep: Reputation: 1
@ zasavage

i am with :

CPU: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
Display: NVIDIA(R) GeForce(R) GT 640
Monitor: DELL IN2030M 20"W HD Monitor with LED

Thanks!

Last edited by gabytf; 02-26-2013 at 07:47 PM.
 
Old 02-28-2013, 02:38 PM   #11
daf1kpp
LQ Newbie
 
Registered: Feb 2013
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yenn View Post
Thanks for noticing. I wrote that article on SlackDocs, but never tried 'simple' hibernating (I use full disk encryption with LVM) and I wasn't sure if the resume line is correct. Updating article right now.
Is disk encryption and LVM connected ? By LVM you mean that you use extended partition, not primary, right ?

I want to use true crypt encryption too, how about LILO in this case ?
 
Old 03-01-2013, 06:48 AM   #12
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo
Posts: 153

Rep: Reputation: 21
Quote:
Originally Posted by daf1kpp View Post
Is disk encryption and LVM connected ? By LVM you mean that you use extended partition, not primary, right ?
No, they are independent.

Linux LVM stands for Logical Volume Manager, don't confuse it with disk partitions. In LVM you use physical partition, it doesn't matter if primary or logical, as container in which you can create as many Logical Volumes (LV) as you want (and partition can store). Think of them as dynamic partitions, which can be created, resized, deleted, moved from one LVM container to another on the fly without touching partition table.

For example: If you are running out of space on home LV, just expand it and you can continue working in virtually no time. In case of physical partitions, you would have to shutdown OS, recreate/modify entire partition table and hope that nothing broke, data remained intact, etc.

Of course you can just encrypt you physical partitions, but basic idea behind full disk encryption is to hide as many information as possible. If you have several encrypted partitions, anyone can guest your system layout (and therefore it's purpose) just by looking at partition table and sizes of these partitions. With LVM only visible information is that you have one small partition (for /boot) and rest of disk encrypted on second partition.

Sure, one would guess that since there is linux kernel on first partition, you probably have linux OS on the second partition, but who really knows? There could be anything.

If you are interested in this setup, read README_CRYPT.TXT - especially part Combining LUKS and LVM.

Quote:
Originally Posted by daf1kpp View Post
I want to use true crypt encryption too, how about LILO in this case ?
Do you mean TrueCrypt, disk encryption software, or full disk encryption with linux tools? If the first I can't help you, because I never tried TrueCrypt and I suggest to start another thread. If the second, I would point you to SlackDocs http://docs.slackware.com/howtos:sla...in:hibernation. If anything is not clear or something is missing, feel free to ask.

Last edited by yenn; 03-01-2013 at 06:52 AM. Reason: typo
 
  


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
[SOLVED] Hibernation and suspend has stopped working. Arcosanti Slackware 3 02-24-2013 04:14 PM
Touchpad not working after resuming back from suspend/hibernation nelufarup Fedora 3 02-19-2010 04:10 PM
fritz! isdn pcmci card not working after hibernation/standby on suse 10 gematipa Suse/Novell 0 01-05-2006 07:55 AM
Hibernation jfranks214 Linux - Laptop and Netbook 2 08-15-2004 12:50 PM
Hibernation (Oh no - not again...) Napper Mandriva 9 06-23-2004 08:41 AM


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