LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-27-2013, 10:36 AM   #1
rupeshforu
Member
 
Registered: Dec 2012
Posts: 97

Rep: Reputation: Disabled
About hibernating the Debian wheezy system


Sir I am using Debian wheezy stable AMD64bit version. Can you please suggest how to hibernate my system. Is there any gui to perform the hibernation. Can we configure the system to go into hibernation after specified amount of time as in windows OS if yes so please suggest the procedure.


Regards,
Rupesh.
 
Old 05-27-2013, 10:47 AM   #2
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,349

Rep: Reputation: 225Reputation: 225Reputation: 225
Assuming you're using GNOME 3 (default), add the "Alternative Status Menu" extension:
https://extensions.gnome.org/extensi...e-status-menu/

Quote:
Can we configure the system to go into hibernation after specified amount of time as in windows OS if yes so please suggest the procedure.
Sure. This might depends on your hardware (and choice of drivers) as well though.
Does it work at all?

Last edited by jens; 05-27-2013 at 10:55 AM.
 
Old 05-27-2013, 10:57 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,942

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by rupeshforu View Post
Sir I am using Debian wheezy stable AMD64bit version. Can you please suggest how to hibernate my system. Is there any gui to perform the hibernation. Can we configure the system to go into hibernation after specified amount of time as in windows OS if yes so please suggest the procedure.
AGAIN, since you have ignored these things in several of your other posts:
  • THERE ARE NOT JUST SIRS ON THIS SITE. Starting off every post with "Sir" isn't a good idea.
  • PLEASE try to look things up on your own first
  • PLEASE provide details
You don't say what kind of hardware you're using, and if you had just put "debian wheezy hibernate" into Google, you'd have (amazingly!) pulled up lots, alot of which is from the Debian wiki:
http://forums.debian.net/viewtopic.p...61384&start=15
http://packages.debian.org/wheezy/hibernate
http://wiki.debian.org/Suspend

Yes, there are GUI's for it, but (again), you provide no details like which desktop environment (KDE? Gnome? Other?) that you're using, so we can't tell you if there's an applet/plasmoid/whatever for your environment, or where to look.
 
Old 05-27-2013, 11:11 AM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
I'm not sure what "hibernate" means (when not applied to bears). Is that the same as "Lock Screen"? You need to enter your password to unlock it. If it is then with KDE 4.8.4 you just right-click on the desktop and a menu appears. You can then click on the "Lock Screen" item which has a beautiful picture of a lock to its left.
jdk
 
Old 05-27-2013, 11:26 AM   #5
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,349

Rep: Reputation: 225Reputation: 225Reputation: 225
Quote:
Originally Posted by jdkaye View Post
I'm not sure what "hibernate" means (when not applied to bears). Is that the same as "Lock Screen"?
No. It unloads all unneeded modules while saving its state in RAM (or your drive).
Whether it's useful depends on your hardware.

PS: With systemd you can just do:
# systemctl suspend
# systemctl hibernate
# systemctl hybrid-sleep

pm-utils is mostly used (as a backend) with other init systems.

Last edited by jens; 05-27-2013 at 11:39 AM.
 
Old 05-27-2013, 12:42 PM   #6
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Thanks Jens. I never heard of it probably because I never used it probably because I never needed it.
ciao,
jdk
 
Old 05-27-2013, 01:25 PM   #7
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,008

Rep: Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621
Coincidentally I just decided to play with hibernate on my system today and found this guide to be very helpful:
http://chriseiffel.com/everything-li...11-04-mint-11/
Other guides seem to overcomplicate things when for me at least it was a simple matter of:
Create swap partition larger than RAM (It could be the same, but I decided larger for the time being).
Set entry in fstab to mount UUID of swap partition as swap.
Turn on swapping.
Add a resume line to grub using UUID of swap partition.
Add a resume file in /etc/initramfs-tools/confd pointing to the UUID of the swap partition and run update-initramfs.
Now I can (just about) hibernate my machine.
(I still have the problem that my machine doesn't shutdown properly on hibernate so I need to press the power button but that's likely due to one of my external drives being a little faulty or something. Resume works properly, however.)

Last edited by 273; 05-27-2013 at 01:27 PM.
 
Old 05-27-2013, 01:27 PM   #8
rupeshforu
Member
 
Registered: Dec 2012
Posts: 97

Original Poster
Rep: Reputation: Disabled
I am providing my hardware details below
AMD FX 4100 64bit CPU
Gigabyte 78lmt s2p motherboard
8GB DDR3 RAM
500GB harddisk of which I have dedicated 300GB to root partition and 8GB for swap partition


I want to use all the desktops available in wheezy stable and so I want to know whether any GUI utilities are available for commonly used desktops like gnome,kde,lxde etc.,

I recently heard about s2disk can anyone explain about it.
 
Old 05-27-2013, 01:33 PM   #9
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,008

Rep: Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621
I'm not sure I understand what your problem is?
If you have a swap partition and you did a normal desktop install of Debian as far as I know your system will be set up to be able to hibernate already. If it is then to hibernate your machine you just go to the session menu (where you can log out) and select the hibernate option instead. If there is no option for that then you perhaps need to change some settings in your DE.
If hibernate isn't set up then see the link in my previous post for some tips.
Once you have hibernate working through the session menu then you can take a look at things like hibernating when idle for a period of time. That's not something I've looked into though I have to admit.

Last edited by 273; 05-27-2013 at 01:34 PM. Reason: typos
 
Old 05-27-2013, 01:38 PM   #10
rupeshforu
Member
 
Registered: Dec 2012
Posts: 97

Original Poster
Rep: Reputation: Disabled
I am new to hibernate concept in Linux so I need detailed description about it.
 
Old 05-27-2013, 01:43 PM   #11
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,008

Rep: Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621
I suggest you read all the links suggested and try to understand as much as you can, then perhaps ask here if you're not sure.
In short hibernating goes like this:
Save contents of RAM into swap file or partition.
Shut down computer.
Then waking it up goes like:
Boot kernel.
Copy contents of swap into RAM.
It really is as simple, and as complicated, as that.
 
Old 05-27-2013, 02:43 PM   #12
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,349

Rep: Reputation: 225Reputation: 225Reputation: 225
Quote:
Originally Posted by rupeshforu View Post
I am providing my hardware details below
AMD FX 4100 64bit CPU
Gigabyte 78lmt s2p motherboard
8GB DDR3 RAM
500GB harddisk of which I have dedicated 300GB to root partition and 8GB for swap partition
There's little benefit in revoking from sata only.
If it's meant to be a "security/stability" buffer, make your swap twice as big.


Quote:
Originally Posted by rupeshforu View Post
I recently heard about s2disk can anyone explain about it.
It's no more than yet an other wrapper for existing Linux stuff using either your kernel or/and uswsusp (provivdes the ram part in user space).

s2disk => saves the state of your system to disk (not RAM) and powers off.

s2ram => suspends it to ram. (not recommended, full loss of power will cause it to lose data)

s2both => saves the state to disk and suspends it to ram, no need to power off.

Last edited by jens; 05-28-2013 at 09:56 AM.
 
Old 05-28-2013, 10:47 AM   #13
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,349

Rep: Reputation: 225Reputation: 225Reputation: 225
Quote:
Originally Posted by 273 View Post
It really is as simple, and as complicated, as that.
Correct me if I'm wrong, but isn't the default in Windows (laptops) more like s2both instead of just s2disk?
 
Old 05-28-2013, 10:53 AM   #14
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,008

Rep: Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621
Quote:
Originally Posted by jens View Post
Correct me if I'm wrong, but isn't the default in Windows (laptops) more like s2both instead of just s2disk?
I'm not sure on Windows any more -- I haven't owned a Windows machine for a long time so I've not played with it at all.
 
  


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] Normal user can't access Iceweasel after system upgrade. Debian Wheezy. keithostertag Linux - Software 7 03-24-2013 03:59 PM
unable to login to system using gdm3 in debian wheezy( testing ) rupeshforu Linux - Hardware 0 01-03-2013 08:44 AM
[SOLVED] Debian Wheezy default init system. Knightron Debian 6 10-29-2012 06:05 AM
LXer: Repartitioning my Debian Wheezy system to make more room LXer Syndicated Linux News 0 09-25-2012 03:11 AM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration