LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices



Reply
 
Search this Thread
Old 12-01-2006, 06:56 AM   #1
cement_head
Member
 
Registered: Mar 2006
Location: Oxford, OH, USA
Distribution: Ubuntu 10.04.1 LTS (Lucid Lynx)
Posts: 36

Rep: Reputation: 15
Unhappy Hibernate/PowerOff Problem Dell i8100 (Ubuntu DD)


I'm having issues with the hibernate function (Suspend-to-DISK) with Ubuntu 6.06.1 LTS (Dapper Drake) on a Dell Inspiron 8100 laptop. I'm using 512MB RAM and have a 1.44 GB SWAP partition. I have a nVIDIA GeForceGo2 16 MB GPU and I am using the 1.0-8776 nvidia binary drivers that are available in the Ubuntu restricted (non-free) repositories. I need to use this video driver as I use this laptop for presentations (Twinview) and molecular modelling (openGL).

Suspend (Suspend-to-RAM) via ACPI state S3 works very very and can be done endlessly. Hibernate is almost working; but I'd like to get Hibernate to work as it won't use any power. When I choose Hibernate, the machine "ejects" the PCMCIA card (wireless) and begins to save the machine state to the swap partition (I think); then the video card, sound card and HDD stop running and just when I expect the power to go off (via the power indicator light) it doesn't. It just hangs. The machine requires a hard shutdown (hold the power button for 5 seconds) and then a hard restart. During the restart, the machine does a clean boot, but behaves as if it's trying to come out of hibernation, with programs that were open during the hibernation initialisation also open upon the reboot. My gut feeling is that I need to tweak the halt/poweroff commands to somehow kill the juice, or rather to finish the hibernation process.

I've been through the Ubuntu forums and the Launchpad bug reports, but don't seem to have found a solution. Any ideas would be appreciated. My other solution (less attractive) is to compile my kernel with the SoftwareSuspend2 patch. This is a bit beyond me and I've never done it, and don't know whether I can use the nVIDIA binary drivers with a patched kernel. If I could just find the right hack for the stock hibernation, I'd be in better shape.

CH
 
Old 12-02-2006, 12:17 AM   #2
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
See the following:

http://ubuntuforums.org/archive/index.php/t-79295.html
http://www.nvnews.net/vbulletin/showthread.php?p=813302

They should be helpful.
 
Old 12-02-2006, 09:09 AM   #3
cement_head
Member
 
Registered: Mar 2006
Location: Oxford, OH, USA
Distribution: Ubuntu 10.04.1 LTS (Lucid Lynx)
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Charred
See the following:


They should be helpful.

I was kinda hoping to just tweak the existing hibernate script, rather than installing and patching ther kernel.

- CH
 
Old 12-06-2006, 04:40 PM   #4
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
Let me see what I can dig up; I have to reconfigure practically my whole system again anyway (never repartition while ill, bad things happen).

In the meantime, go back to X's stock nv driver and see if hibernate works. If it does, the problem's with nvidia's driver, which is a bit touchy where the gf2go is concerned.
 
Old 12-08-2006, 02:45 PM   #5
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
Please post your shutdown script.
 
Old 12-08-2006, 03:18 PM   #6
cement_head
Member
 
Registered: Mar 2006
Location: Oxford, OH, USA
Distribution: Ubuntu 10.04.1 LTS (Lucid Lynx)
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Charred
Please post your shutdown script.

do you want the hibernate script? I'm not sure where I'd find the shutdown script.

Here's the hibernate.conf script:

Code:
# Example hibernate.conf file. Adapt to your own tastes.
# Options are not case sensitive.
# 
# Run "hibernate -h" for help on the configuration items.

##############################################################################
### Choose your Suspend method. You currently have 3 choices:
###
###    suspend2            Software Suspend 2 (requires kernel patches from
###                        http://www.suspend2.net/)
###
###    sysfs_power_state   Uses /sys/power/state to suspend (activates pmdisk
###                        on kernels < 2.6.8, or vanilla swsusp otherwise).
###
###    acpi_sleep          Uses /proc/acpi/sleep to activate swsusp, or other
###                        ACPI sleep state supported by your machine.
###
##############################################################################

### suspend2 (for Software Suspend 2)
# UseSuspend2 yes
# Reboot no
# EnableEscape yes
# DefaultConsoleLevel 1
# Compressor lzf
# Encryptor none
# ImageSizeLimit 200
## useful for initrd usage:
# SuspendDevice swap:/dev/hda2
## Powerdown method - 3 for suspend-to-RAM, 4 for ACPI S4 sleep, 5 for poweroff
# PowerdownMethod 5
## Any other /proc/software_suspend setting can be set like so:
# ProcSetting expected_compression 50
## Or traditionally like this:
# Suspend2AllSettings 0 0 2056 65535 5
## Or even from the results of hibernate --save-settings with this:
# Suspend2AllSettingsFile /etc/hibernate/suspend-settings.conf
## For filewriter:
# FilewriterLocation /suspend_file 1000
# VerifyFilewriterResume2 yes
# ProcSetting userui_program /usr/local/sbin/suspend2ui_text

### sysfs_power_state
## To use /sys/power/state to suspend your machine (which may offer
## suspend-to-RAM, suspend-to-disk, standby, etc) comment out all the options
## above for Software Suspend 2, below for acpi_sleep, and uncomment this line.
## You may replace mem with any one of the states from "cat /sys/power/state"
# UseSysfsPowerState disk
# PowerdownMethod shutdown

### acpi_sleep
## To use ACPI to suspend your machine (via /proc/acpi/sleep), comment out
## all the options above for Software Suspend 2 and sysfs, and uncomment this
## line. The number refers to the ACPI sleep state - 3 is suspend-to-RAM and
## 4 is suspend-to-disk.
UseACPISleep 4

##############################################################################
### Some global settings
##############################################################################

Verbosity 2
LogFile /var/log/hibernate.log
LogVerbosity 2
AlwaysForce yes
AlwaysKill yes
# HibernateVT 15
Distribution debian
# XDisplay :0

##############################################################################
### Scriptlets
###   Scriptlets provide support for doing all sorts of things before and after
###   suspending. The defaults settings here should work for most people, but
###   you may wish to edit these to taste. Consult "hibernate -h" for help on
###   the configuration settings.
##############################################################################

### bootsplash
## If you use bootsplash, also enabling SwitchToTextMode is recommended if
## you use X, otherwise you may end up with a garbled X display.
# Bootsplash on
# BootsplashConfig /etc/bootsplash/default/config/bootsplash-1024x768.cfg

### clock
SaveClock restore-only

### devices
# IncompatibleDevices /dev/dsp /dev/video*

### diskcache
# DisableWriteCacheOn /dev/hda

### fbsplash (enable SwitchToTextMode if you use this)
# FBSplash on
# FBSplashTheme suspend2

### filesystems
# Unmount /nfsshare /windows /mnt/sambaserver
# UnmountFSTypes smbfs nfs
# UnmountGraceTime 1
# Mount /windows

### grub
# ChangeGrubMenu yes
# GrubMenuFile /boot/grub/menu.lst
# AlternateGrubMenuFile /boot/grub/menu-suspended.lst
# BackupGrubMenuFile /boot/grub/menu.lst.hibernate.bak

### hardware_tweaks
# IbmAcpi yes
# RadeonTool yes

### lilo
# EnsureLILOResumes yes

### lock (generally you only want one of the following options)
# LockConsoleAs root
# LockXScreenSaver yes
# LockKDE yes
# LockXLock yes
# LockXAutoLock yes

### misclaunch
# OnSuspend 20 echo "Good night!"
# OnResume 20 echo "Good morning!"

### modules
# UnloadModules snd_via82cxxx usb-ohci
# UnloadAllModules yes
UnloadBlacklistedModules yes
# LoadModules auto
LoadModulesFromFile /etc/modules

### modules-gentoo
# GentooModulesAutoload yes

### network
# DownInterfaces eth0
# UpInterfaces auto

### pcmcia
EjectCards yes

### programs
# IncompatiblePrograms xmms

### services
# RestartServices postfix
# StopServices alsasound
# StartServices aumix

### vbetool
EnableVbetool yes
RestoreVbeStateFrom /var/lib/vbetool/vbestate
VbetoolPost yes
RestoreVCSAData yes

### xhacks
SwitchToTextMode yes
UseDummyXServer yes

### xstatus
## This can be set to gnome, kde or x:
# XStatus gnome
# XSuspendText Preparing to suspend...
# XResumeText Resuming from suspend...
## When using XStatus x, and you have xosd installed:
# XosdSettings --font -misc-fixed-medium-r-semicondensed--*-120-*-*-c-*-*-* --colour=Green --shadow 1 --pos bottom --align center --offset 50
 
Old 12-08-2006, 05:35 PM   #7
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
OK. This line:
Quote:
LogFile /var/log/hibernate.log
is what I was looking for.

What does this file say?

Also, I see you're using the script from suspend2. I think that's an old script because it says it calls on /proc/acpi/sleep, which I believe has been deprecated (although I will admit that I'm playing catch-up here) in favor of /sys/power/state. Check and make sure your system has /proc/acpi/sleep, and update to the newer suspend2 if necessary.

Let me know.
 
Old 12-08-2006, 06:49 PM   #8
cement_head
Member
 
Registered: Mar 2006
Location: Oxford, OH, USA
Distribution: Ubuntu 10.04.1 LTS (Lucid Lynx)
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Charred
OK. This line: is what I was looking for.

What does this file say?

Also, I see you're using the script from suspend2. I think that's an old script because it says it calls on /proc/acpi/sleep, which I believe has been deprecated (although I will admit that I'm playing catch-up here) in favor of /sys/power/state. Check and make sure your system has /proc/acpi/sleep, and update to the newer suspend2 if necessary.

Let me know.
There is no hibernate log file...which is weird. How do I force hibernate to create it?
 
Old 12-08-2006, 08:54 PM   #9
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
It's just the two of us talking here, you don't need to quote me every time you reply.

To make the log file run
Code:
touch /var/log/hibernate.log
Then give hibernation a shot. If it doesn't log enough info, changing "LogVerbosity" from 3-7 will increase the log output.

Also, try setting "UseACPISleep " to 5. To quote the HOWTO:
Quote:
powerdown_method

Use your machine's ACPI implementation to put the machine to sleep in one of 3 ways. Entering 3 into here will make the machine enter S3 (suspend-to-RAM) after writing the image to disk. This allows for a faster resume under normal circumstances, but no losses if your battery should run out or for any other reason suspend-to-RAM should not wake up. Entering 4 will use the machine's S4 state - this may result in a faster resume, as many of the usual BIOS checks may be skipped. Entering 5 will powerdown the machine as per usual.
Hopefully this will make some difference.
 
Old 12-09-2006, 07:50 AM   #10
cement_head
Member
 
Registered: Mar 2006
Location: Oxford, OH, USA
Distribution: Ubuntu 10.04.1 LTS (Lucid Lynx)
Posts: 36

Original Poster
Rep: Reputation: 15
Okay, some progress...

Here's the hibernate log file from Dec 2:

Code:
Starting suspend at Sat Dec 2 15:09:24 EST 2006
hibernate: [01] Executing CheckLastResume ... 
hibernate: [01] Executing CheckRunlevel ... 
hibernate: [01] Executing LockFileGet ... 
hibernate: [01] Executing NewKernelFileCheck ... 
hibernate: [10] Executing EnsureSysfsPowerStateCapable ... 
hibernate: [11] Executing XHacksSuspendHook1 ... 
hibernate: [89] Executing SaveKernelModprobe ... 
hibernate: [91] Executing ModulesUnloadBlacklist ... 
Some modules failed to unload: nvidia snd_maestro3
hibernate: Aborting suspend due to errors in ModulesUnloadBlacklist (use --force to override).
hibernate: [90] Executing ModulesLoad ... 
hibernate: [89] Executing RestoreKernelModprobe ... 
hibernate: [85] Executing XHacksResumeHook2 ... 
hibernate: [70] Executing ClockRestore ... 
hibernate: [70] Executing ClockRestore ... 
hibernate: [11] Executing XHacksResumeHook1 ... 
hibernate: [01] Executing NoteLastResume ... 
hibernate: [01] Executing LockFilePut ... 
Resumed at Sat Dec 2 15:09:27 EST 2006
So looks as if the nvidia module (graphics) and the sound drivers didn't unload...which they do during SUSPEND-to-RAM.

The Hibernate from lst time didn't log, set the verbosity too high; 4 is highest, so I'll retry that now and post the log file.
 
Old 12-10-2006, 08:08 AM   #11
cement_head
Member
 
Registered: Mar 2006
Location: Oxford, OH, USA
Distribution: Ubuntu 10.04.1 LTS (Lucid Lynx)
Posts: 36

Original Poster
Rep: Reputation: 15
Okay,

I think that hibernate log was created by SuspendSoftware2 when I tried a dagobah kernel (http://www.ucc.asn.au/~dagobah/dapper-kernels/) which ended up breaking my X server and a lot of other stuff. (I removed it and got the machine back to fully functional)

Anyway, hibernate doesn't seem to be generating a log - which would be the first step to properly troubleshooting this issue.

I'll check this out and get back to this thread.

- CH

P.S. ACPI S5 didn't fix the issue, and using "UseSysfsPowerState disk; PowerdownMethod shutdown" didn't fix hibernate either

Last edited by cement_head; 12-10-2006 at 08:09 AM.
 
Old 12-11-2006, 04:49 PM   #12
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
Perhaps it would be a good idea for you to start at the beginning and outline the steps you took to get both suspend and hibernate working.
 
Old 12-11-2006, 08:42 PM   #13
cement_head
Member
 
Registered: Mar 2006
Location: Oxford, OH, USA
Distribution: Ubuntu 10.04.1 LTS (Lucid Lynx)
Posts: 36

Original Poster
Rep: Reputation: 15
Unhappy

Okay.

Suspend and Hibernate did not work initally.

I have the 1.0-8776 binary nVIDIA driver installed. I need to use Twinview and OpenGL; so I need this driver.

To make Suspend (Suspend-to-RAM) work I added

Code:
Options  "NvAGP"  "1"
Options  "VBERestore" "True"
to the xorg.conf file.

I also added the "nvidia" term (module) to the blacklisted modules list.


I have never been able to get Hibernate (Suspend-to-DISK) to work

I've tried many tweaks of the hibernate script, but never got it to work.

I tried to use a SoftwareSuspend2 patched kernel (available from the Dagobah repos). This kernel (2.6.15-26-686) broke my X server. I spent a few days tring to get the Dagobah (Suspend2 enabled) working with my X server and I just gave up on it and uninstalled it and returned my machine to it's pre-dagobah state (suspend working, hibernate not).

-CH
 
Old 12-11-2006, 09:45 PM   #14
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
This is unusual for my experience. The last time I configured my system, suspend gave me no end of troubles, but hibernate worked easily.

Let's start with the basics:

check /boot for a file called config. If it's there, run
Quote:
grep CONFIG_SOFTWARE_SUSPEND /boot/config
If it's not, look for /proc/config.gz, which will be a gzipped version of the kernel config file, or /usr/src/linux/.config, and grep one of them. We're looking for grep to return CONFIG_SOFTWARE_SUSPEND=y.

Look for a /var/log/suspend*.log or a /var/log/hibernate*.log, as well as a /var/lib/suspend*-state as well.

Are you hibernating to your swap partition, a swap file, or a "dedicated" hibernate partition?

See http://www.columbia.edu/~ariel/acpi/...suspend_to_ram for more (scroll down to ch.11) for more.

Last edited by Charred; 12-11-2006 at 09:47 PM.
 
Old 12-12-2006, 06:26 AM   #15
cement_head
Member
 
Registered: Mar 2006
Location: Oxford, OH, USA
Distribution: Ubuntu 10.04.1 LTS (Lucid Lynx)
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Charred
This is unusual for my experience. The last time I configured my system, suspend gave me no end of troubles, but hibernate worked easily.

Let's start with the basics:

check /boot for a file called config. If it's there, run If it's not, look for /proc/config.gz, which will be a gzipped version of the kernel config file, or /usr/src/linux/.config, and grep one of them. We're looking for grep to return CONFIG_SOFTWARE_SUSPEND=y.

Look for a /var/log/suspend*.log or a /var/log/hibernate*.log, as well as a /var/lib/suspend*-state as well.

Are you hibernating to your swap partition, a swap file, or a "dedicated" hibernate partition?

See http://www.columbia.edu/~ariel/acpi/...suspend_to_ram for more (scroll down to ch.11) for more.
------------------------------------------------
No config file in /grub.

But;

Code:
grep CONFIG_SOFTWARE_SUSPEND /usr/src/linux-headers-2.6.15-27-686/.config
CONFIG_SOFTWARE_SUSPEND=y
------------------------------------------------
Logs:

No logs of suspend*.log, or suspend*-state.log.

Three hibernate logs, (hibernate.log [empty]; hibernate.log.1 [empty]; hibernate.log.2 [Dec 2 entry, posted above])

No other logs.

------------------------------------------------

I think I'm suspending to the swap; although nothing in the messages.log indicated that the machine is looking for a resume file. I do not see the
Code:
swsusp:  Error -6 check for resume file
message.

-CH
 
  


Reply

Tags
acpi, hibernate, inspiron


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
hibernate ubuntu alaios Ubuntu 15 05-11-2010 09:09 AM
Hibernate not working on ubuntu anymore herd Ubuntu 3 04-27-2006 01:22 PM
ACPI hibernate mode (linux 2.4.22, Mandrake 9.2, Dell Inspiron 1100) arvind_s Linux - Laptop and Netbook 0 12-14-2004 04:04 AM
Dell i8100 Dual Monitors jmoschetti45 Linux - Laptop and Netbook 0 11-24-2004 10:23 AM
RH9 in Dell I8100 in module drive? ziggie216 Linux - Laptop and Netbook 1 02-24-2004 06:05 PM


All times are GMT -5. The time now is 07:25 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration