Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old May 30th, 2009   #1
keithpeter
A Carafe of Ubuntu
 
keithpeter's Avatar
 
Join Date: May 2005
Location: Birmingham UK
My beans are hidden!
Ubuntu 9.04 Jaunty Jackalope
Minimum needed for hibernate and suspend

Hello all

I've installed stock Ubuntu 9.04 onto an old laptop. Hibernate and suspend are working fine when I set the appropriate settings in the gnome power manager.

I'd like to use much lighter software on this 256Mb ram laptop (standing memory use is 90 to 100 Mb and I'm going into swap when running any applications).

What is the minimum I need to get hibernate on close lid and suspend working? How do I find out what packages are needed over a cli install? Do I need gdm and the gnome power management stuff?

Thanks
__________________
Aleutia E2 (500MHz VIA Eden processor with 1 Gb Ram) Debian Squeeze, SLIM, fluxbox
Asus 1000 EeePC Ubuntu 9.04
IBM T42, 1Gb Ram, Ubuntu 9.10 stock install
keithpeter is offline   Reply With Quote
Old May 30th, 2009   #2
ugm6hr
Chai anyone?
 
ugm6hr's Avatar
 
Join Date: Apr 2006
Location: UK
Beans: 6,058
Ubuntu 9.04 Jaunty Jackalope
Send a message via Yahoo to ugm6hr
Re: Minimum needed for hibernate and suspend

For suspend to RAM, 1.5x RAM is recommended for swap. Hibernation should work with anything, since it hibernates to your HD (not RAM / swap).

No packages are needed over a cli install; it will work just fine (as a cli linux distro).

If you want a stripped-down Gnome, then see http://distrowatch.com/weekly.php?is...081215#feature
It is designed for Intrepid, but should apply to Jaunty too.

If you actually want something lighter, try LXDE: http://ubuntu-lxde.wikidot.com/

Or XFCE (sudo apt-get install xfce4)
__________________
Beginners: Enter Code entries in Terminal | Wifi help? | Multimedia | How to get help here | Enable Repos
My sites: Lightweight LXDE-Ubuntu | FreeNAS Home Server| DropBox

If you are a beginner - look at the Start here sticky in the Absolute Beginners Forum
Get Ubuntu
ugm6hr is offline   Reply With Quote
Old May 30th, 2009   #3
keithpeter
A Carafe of Ubuntu
 
keithpeter's Avatar
 
Join Date: May 2005
Location: Birmingham UK
My beans are hidden!
Ubuntu 9.04 Jaunty Jackalope
Re: Minimum needed for hibernate and suspend

Quote:
Originally Posted by ugm6hr View Post
No packages are needed over a cli install; it will work just fine (as a cli linux distro).
Thanks for this reply, reassuring. Is there anything I have to do to 'enable' hibernation on a bare CLI install?

The stock Ubuntu with the full Gnome desktop has hibernate switched off in the power settings. I'm therefore assuming that I have to tell a CLI installation to catch the lid closing event and to hibernate.

LXDE is great, and I'm quite into dwm as well.
__________________
Aleutia E2 (500MHz VIA Eden processor with 1 Gb Ram) Debian Squeeze, SLIM, fluxbox
Asus 1000 EeePC Ubuntu 9.04
IBM T42, 1Gb Ram, Ubuntu 9.10 stock install
keithpeter is offline   Reply With Quote
Old May 30th, 2009   #4
kerry_s
WTF?
 
Join Date: Jul 2006
Location: Lost!
Beans: 7,155
Re: Minimum needed for hibernate and suspend

Code:
sudo apt-get install pm-utils uswsusp acpi-support
kerry_s is offline   Reply With Quote
Old May 30th, 2009   #5
keithpeter
A Carafe of Ubuntu
 
keithpeter's Avatar
 
Join Date: May 2005
Location: Birmingham UK
My beans are hidden!
Ubuntu 9.04 Jaunty Jackalope
Re: Minimum needed for hibernate and suspend

Quote:
Originally Posted by kerry_s View Post
Code:
sudo apt-get install pm-utils uswsusp acpi-support
Thanks once again kerry_s. I'll read the man pages once I do a clean CLI install so I know how to enable hibernation.
__________________
Aleutia E2 (500MHz VIA Eden processor with 1 Gb Ram) Debian Squeeze, SLIM, fluxbox
Asus 1000 EeePC Ubuntu 9.04
IBM T42, 1Gb Ram, Ubuntu 9.10 stock install
keithpeter is offline   Reply With Quote
Old May 30th, 2009   #6
keithpeter
A Carafe of Ubuntu
 
keithpeter's Avatar
 
Join Date: May 2005
Location: Birmingham UK
My beans are hidden!
Ubuntu 9.04 Jaunty Jackalope
Re: Minimum needed for hibernate and suspend

Hello All

CLI install from the netinstall cd image for 9.04 Jaunty, then, as suggested by kerri_s

Code:
sudo aptitude install pm-utils uswsusp acpi-support
and I can hibernate and resume using

Code:
sudo /etc/acpi/hibernate.sh
Resume gives lots of errors about fans not found &c. This works both at CLI and in a terminal under dwm.

The thread at

http://ubuntuforums.org/showthread.php?t=813387

made me aware of a package called powermanagement-interface. Installing that means I can issue a command in a terminal
(not sudo) under dwm thus 'pmi action hibernate' and the laptop does and then resumes without any errors.

Same command at the CLI prompt before startx results in errors like

Code:
Error org.freedesktop.Hal.Device.PermissionDeniedByPolicy...
Now: how on earth do I 'catch' the laptop lid closing event and use that to issue the 'pmi action hibernate' command? Any pointers welcome.
__________________
Aleutia E2 (500MHz VIA Eden processor with 1 Gb Ram) Debian Squeeze, SLIM, fluxbox
Asus 1000 EeePC Ubuntu 9.04
IBM T42, 1Gb Ram, Ubuntu 9.10 stock install
keithpeter is offline   Reply With Quote
Old May 30th, 2009   #7
niteshifter
Dipped in Ubuntu
 
niteshifter's Avatar
 
Join Date: Feb 2007
Location: /dev/random
Beans: 647
Ubuntu 8.04 Hardy Heron
Re: Minimum needed for hibernate and suspend

Quote:
Originally Posted by ugm6hr View Post
For suspend to RAM, 1.5x RAM is recommended for swap. Hibernation should work with anything, since it hibernates to your HD (not RAM / swap).
Eh what? I believe that you have that backwards: Suspend (CPU to idle, RAM remains powered up so that contents are preserved, ACPI state S3) requires nothing from the HD. Hibernate needs someplace to write RAM to, either a dedicated swap partition or a swap file as the machine is fully powered down in this state (ACPI state S4).
__________________
Main system: Dell 1420n - C2D T5250, 4GB RAM, 120GB SATA. Ubuntu 8.04.3.
Assorted VMs (via VBox). Favorites: Fedora, FreeBSD, Solaris.
niteshifter is offline   Reply With Quote
Old May 30th, 2009   #8
kerry_s
WTF?
 
Join Date: Jul 2006
Location: Lost!
Beans: 7,155
Re: Minimum needed for hibernate and suspend

Quote:
Originally Posted by keithpeter View Post
Hello All

CLI install from the netinstall cd image for 9.04 Jaunty, then, as suggested by kerri_s

Code:
sudo aptitude install pm-utils uswsusp acpi-support
and I can hibernate and resume using

Code:
sudo /etc/acpi/hibernate.sh
Resume gives lots of errors about fans not found &c. This works both at CLI and in a terminal under dwm.

The thread at

http://ubuntuforums.org/showthread.php?t=813387

made me aware of a package called powermanagement-interface. Installing that means I can issue a command in a terminal
(not sudo) under dwm thus 'pmi action hibernate' and the laptop does and then resumes without any errors.

Same command at the CLI prompt before startx results in errors like

Code:
Error org.freedesktop.Hal.Device.PermissionDeniedByPolicy...
Now: how on earth do I 'catch' the laptop lid closing event and use that to issue the 'pmi action hibernate' command? Any pointers welcome.
the acpi thing, in /etc/default/acpid uncomment:
MODULES="all"

the hal thing, stupid policykit requires a login manager or it can't tell you logged in. the work around i use is to add a line in /etc/PolicyKit/PolicyKit.conf the line is "<return result="yes"/>" what it does it tell it yes to everything,after that you should have no more hal/policykit problems. here's what mine looks like, i still do it even though i don't have problems, it's a "just in case".

Code:
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->

<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">

<!-- See the manual page PolicyKit.conf(5) for file format -->

<config version="0.1">
  <return result="yes"/>
</config>
kerry_s is offline   Reply With Quote

Bookmarks

Tags
hibernation, low memory, ubuntu

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:26 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry