Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hibernate-ram on Toshiba 2450 [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
fedorko
n00b
n00b


Joined: 12 May 2002
Posts: 14
Location: Chicago, IL

PostPosted: Fri Jul 21, 2006 11:49 pm    Post subject: hibernate-ram on Toshiba 2450 [SOLVED] Reply with quote

Hi,
I'm having a weird problem with hibernate-ram
When I do hibernate-ram the laptop seems to hibernate properly- everything shuts off anf the power diode is slowly blinking (like I expect from windoze)

When I hit the power button the X comes back quickly I can run things in the gnome-terminal that was left open etc. I get a popup that 'gnome-volume-control quit unexpectedly.
Than after 10-15s the screen goes black. Disk activity continues for few more seconds and than computer just shuts off.
I compiled kernel without the fb support because initially X would come back and after 10-15s the screen would go in a random color pattern after which the computer would shut off - so I thought the fb was the problem but no.

The laptop is a Toshiba Satellite 2450 with Pentium4, nvidia 420 Go (I use nvidia's 1.0-8762 driver directly downloaded from nvidia)
I tried SwitchToTextMode yes and no with no difference
One thing I had to do is comment nvidia out of the blacklisted-modules because it didn't want to unload

I paste in my ram.conf.
Please let me know if I'm not providing any relevant info.
Code:

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

### sysfs_power_state
UseSysfsPowerState mem

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

Verbosity 0
LogFile /var/log/hibernate.log
LogVerbosity 1
# AlwaysForce yes
# AlwaysKill yes
# HibernateVT 15
Distribution gentoo
# 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
Unmount /win
Mount /win
# 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 no

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



thanks a lot,
Wojtek Fedorko[/quote]


Last edited by fedorko on Mon Jul 24, 2006 1:29 am; edited 1 time in total
Back to top
View user's profile Send private message
fedorko
n00b
n00b


Joined: 12 May 2002
Posts: 14
Location: Chicago, IL

PostPosted: Sat Jul 22, 2006 12:00 am    Post subject: Reply with quote

Oh my kernel is linux-2.6.16-gentoo-r12

if it's any help I paste the /var/log/hibernate.log snip


Code:

Starting suspend at Fri Jul 21 18:29:24 CDT 2006
hibernate-ram: [01] Executing CheckLastResume ...
hibernate-ram: [01] Executing LockFileGet ...
hibernate-ram: [01] Executing NewKernelFileCheck ...
hibernate-ram: [10] Executing EnsureSysfsPowerStateCapable ...
hibernate-ram: [11] Executing XHacksSuspendHook1 ...
hibernate-ram: [50] Executing FilesystemsUnmount ...
hibernate-ram: [89] Executing SaveKernelModprobe ...
hibernate-ram: [91] Executing ModulesUnloadBlacklist ...
hibernate-ram: [93] Executing DiskCacheDisable ...
hibernate-ram: Disabling disk cache on /dev/hda
hibernate-ram: [95] Executing XHacksSuspendHook2 ...
hibernate-ram: [97] Executing VbetoolSaveState ...
'vbetool' utility not found. Vbetool disabled.
hibernate-ram: [99] Executing DoSysfsPowerStateSuspend ...
hibernate-ram: Activating sysfs power state mem ...
hibernate-ram: [97] Executing VbetoolRestoreState ...
hibernate-ram: [93] Executing DiskCacheEnable ...
hibernate-ram: Enabling disk cache on /dev/hda
hibernate-ram: [91] Executing GentooModulesAutoload ...
Loading modules listed /etc/modules.autoload.d/kernel-2.6
Loading ath_pci
Loading nvidia
hibernate-ram: [90] Executing ModulesLoad ...
hibernate-ram: [89] Executing RestoreKernelModprobe ...
hibernate-ram: [85] Executing XHacksResumeHook2 ...
hibernate-ram: [70] Executing ClockRestore ...
hibernate-ram: [50] Executing FilesystemsMount ...
Mounting /win ...
hibernate-ram: [11] Executing XHacksResumeHook1 ...
hibernate-ram: [01] Executing NoteLastResume ...
hibernate-ram: [01] Executing LockFilePut ...
Resumed at Fri Jul 21 18:29:50 CDT 2006
Back to top
View user's profile Send private message
fedorko
n00b
n00b


Joined: 12 May 2002
Posts: 14
Location: Chicago, IL

PostPosted: Sat Jul 22, 2006 1:33 am    Post subject: Reply with quote

Ok I just tried it from console without starting x at all
It goes to sleep - it comes back, but than few seconds later I see:
INIT: sending processes the KILL signal
...
and the thing shuts down!
What's up with this?

any ideas?
Wojtek
Back to top
View user's profile Send private message
juangamnik
n00b
n00b


Joined: 10 May 2005
Posts: 17

PostPosted: Sat Jul 22, 2006 10:10 pm    Post subject: Reply with quote

try to add acpid to the restarted services in ram.conf. When you press your Power button, in order to wake up your notebook, the acpid service recognizes this event and shuts down your laptop. If that doesn't work try to add

Code:
OnSuspend 10 /etc/init.d/acpid stop
OnResume 10 /etc/init.d/acpid start


perhaps you got an answer for my problem? I've posted it here: https://forums.gentoo.org/viewtopic-t-482112.html
Back to top
View user's profile Send private message
fedorko
n00b
n00b


Joined: 12 May 2002
Posts: 14
Location: Chicago, IL

PostPosted: Mon Jul 24, 2006 1:28 am    Post subject: Reply with quote

Thanks! It worked!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum