1 |
On Thursday 30 June 2005 20:18, Ward Poelmans wrote: |
2 |
> Benjamin Fritzsche wrote: |
3 |
> > On Wednesday 29 June 2005 21:33, Ward Poelmans wrote: |
4 |
> >>Hi all, |
5 |
> >> |
6 |
> >>I've got my laptop for some time now ( a Dell Inspiron 8600 ) |
7 |
> >>and i want to try hibernation support. I've already discovered |
8 |
> >>the hibernation-script and swsusp2. I've have a vanilla kernel |
9 |
> >>that works with swsusp2 but that's only S5 and i would like to |
10 |
> >>get S3 en S4 also to work. What do i need to use for that ? |
11 |
> >>Have you got any experience, advice, hints how to get this to |
12 |
> >>work ? |
13 |
> >> |
14 |
> >>Thanks |
15 |
> >> Ward |
16 |
> > |
17 |
> > Hi ! |
18 |
> > |
19 |
> > I´ve got the same machine. S3 and S4 work here. forget swsusp2. it only |
20 |
> > makes things complicated. use the swsusp which is already in the standard |
21 |
> > kernel. |
22 |
> > |
23 |
> > On my machine both S3 and S4 work pretty much out of the box. Only |
24 |
> > configuration is editing the config files hibernate.conf and ram.conf |
25 |
> > in /etc/hibernate. |
26 |
> > |
27 |
> > Only thing I had to change there is the vbetool option (vbetool on) to |
28 |
> > get my Video card (ATI 9600) reactivated after suspending. You might have |
29 |
> > to try different settings in that section. And figure out if there are |
30 |
> > any modules which need to be unloaded/reloaded. In my case its |
31 |
> > ndiswrapper and the USB Stuff. |
32 |
> > And of course don´t forget to emerge vbetool. |
33 |
> |
34 |
> Well, i did what you told me and compiled swsusp in the kernel and |
35 |
> made an usbcore module. S5 works just fine but |
36 |
> with S3 it goes down as it should but it doesn't come |
37 |
> back up. The screen stays black but i hear my hard disk |
38 |
> come up again. I tried with EnableVbetool and VbetoolPost |
39 |
> enable but it didn't help. |
40 |
> Did you changed anytime in ram.conf ? |
41 |
> |
42 |
> |
43 |
> Greetz, |
44 |
> |
45 |
> Ward |
46 |
|
47 |
|
48 |
Only Thing I did is Enable vbetool. And Switch to text mode. |
49 |
|
50 |
And I don´t Use a framebuffer on the console. only plain text mode. Maybe |
51 |
Radeonfb is confusing your videocard? have you got an ATI card? Do you use |
52 |
Firewire? I don´t but I´ve heard it can cause problems, so unload those |
53 |
modules aswell if they are loaded. |
54 |
|
55 |
By the way: Im using vanilla-kernel-2.6.12.1, but it works here since 2.6.10 |
56 |
if I remember correctly. |
57 |
|
58 |
Also test If its only the video card that doesn´t work by blindly going to VT1 |
59 |
(Ctrl-Alt-F1) and blindly logging in as root and issueing halt. If the system |
60 |
goes down you can be pretty sure its only the Videocard. |
61 |
|
62 |
And in case it helps, heres my complete ram.conf (if you use it add all USB |
63 |
modules to BlacklistedModules): |
64 |
|
65 |
# Example ram.conf file for suspending to RAM. Adapt to your own tastes. |
66 |
# Options are not case sensitive. |
67 |
# |
68 |
# Run "hibernate -h" for help on the configuration items. |
69 |
|
70 |
### sysfs_power_state |
71 |
UseSysfsPowerState mem |
72 |
|
73 |
############################################################################## |
74 |
### Some global settings |
75 |
############################################################################## |
76 |
|
77 |
Verbosity 0 |
78 |
LogFile /var/log/hibernate.log |
79 |
LogVerbosity 1 |
80 |
# AlwaysForce yes |
81 |
# AlwaysKill yes |
82 |
# HibernateVT 15 |
83 |
# Distribution debian (not required - autodetection should work) |
84 |
# XDisplay :0 |
85 |
|
86 |
############################################################################## |
87 |
### Scriptlets |
88 |
### Scriptlets provide support for doing all sorts of things before and |
89 |
after |
90 |
### suspending. The defaults settings here should work for most people, but |
91 |
### you may wish to edit these to taste. Consult "hibernate -h" for help on |
92 |
### the configuration settings. |
93 |
############################################################################## |
94 |
|
95 |
### bootsplash |
96 |
## If you use bootsplash, also enabling SwitchToTextMode is recommended if |
97 |
## you use X, otherwise you may end up with a garbled X display. |
98 |
# Bootsplash on |
99 |
# BootsplashConfig /etc/bootsplash/default/config/bootsplash-1024x768.cfg |
100 |
|
101 |
### clock |
102 |
SaveClock restore-only |
103 |
|
104 |
### devices |
105 |
# IncompatibleDevices /dev/dsp /dev/video* |
106 |
|
107 |
### diskcache |
108 |
# DisableWriteCacheOn /dev/hda |
109 |
|
110 |
### fbsplash (enable SwitchToTextMode if you use this) |
111 |
# FBSplash on |
112 |
# FBSplashTheme suspend2 |
113 |
|
114 |
### filesystems |
115 |
Unmount /mnt/smb /mnt/exth1 /mnt/exthd3 |
116 |
# UnmountFSTypes smbfs nfs |
117 |
# UnmountGraceTime 1 |
118 |
# Mount /windows |
119 |
|
120 |
### grub |
121 |
# ChangeGrubMenu yes |
122 |
# GrubMenuFile /boot/grub/menu.lst |
123 |
# AlternateGrubMenuFile /boot/grub/menu-suspended.lst |
124 |
# BackupGrubMenuFile /boot/grub/menu.lst.hibernate.bak |
125 |
|
126 |
### hardware_tweaks |
127 |
# IbmAcpi yes |
128 |
# RadeonTool yes |
129 |
|
130 |
### lilo |
131 |
# EnsureLILOResumes yes |
132 |
|
133 |
### lock (generally you only want one of the following options) |
134 |
# LockConsoleAs root |
135 |
# LockXScreenSaver yes |
136 |
# LockKDE yes |
137 |
|
138 |
### misclaunch |
139 |
# OnSuspend 20 echo "Good night!" |
140 |
# OnResume 20 echo "Good morning!" |
141 |
|
142 |
### modules |
143 |
# UnloadModules snd_via82cxxx usb-ohci |
144 |
# UnloadAllModules yes |
145 |
UnloadBlacklistedModules yes |
146 |
LoadModules auto |
147 |
# LoadModulesFromFile /etc/modules |
148 |
|
149 |
### modules-gentoo |
150 |
GentooModulesAutoload yes |
151 |
|
152 |
### network |
153 |
# DownInterfaces eth0 |
154 |
# UpInterfaces auto |
155 |
|
156 |
### programs |
157 |
# IncompatiblePrograms xmms |
158 |
|
159 |
### services |
160 |
RestartServices net.wlan0 |
161 |
# StopServices alsasound |
162 |
# StartServices aumix |
163 |
|
164 |
### vbetool |
165 |
EnableVbetool yes |
166 |
# RestoreVbeStateFrom /var/lib/vbetool/vbestate |
167 |
# VbetoolPost yes |
168 |
|
169 |
### xhacks |
170 |
SwitchToTextMode yes |
171 |
# UseDummyXServer yes |
172 |
|
173 |
### xstatus |
174 |
## This can be set to gnome, kde or x: |
175 |
# XStatus gnome |
176 |
# XSuspendText Preparing to suspend... |
177 |
# XResumeText Resuming from suspend... |
178 |
## When using XStatus x, and you have xosd installed: |
179 |
# XosdSettings --font -misc-fixed-medium-r-semicondensed--*-120-*-*-c-*-*-* |
180 |
# --colour=Green --shadow 1 --pos bottom --align center --offset 50 |
181 |
|
182 |
|
183 |
Hope it helps. |
184 |
Benny |
185 |
|
186 |
-- |
187 |
gentoo-laptop@g.o mailing list |