* [gentoo-user] Machine reboots immediately when suspended-to-disk
@ 2009-10-21 0:14 waltdnes
2009-10-21 0:54 ` Albert Hopkins
0 siblings, 1 reply; 7+ messages in thread
From: waltdnes @ 2009-10-21 0:14 UTC (permalink / raw
To: Gentoo Users List
I've enabled suspend-to-disk in the kernel. When I issue the command
"echo disk > /sys/power/state", it suspends but *IMMEDIATELY* reboots
and comes back up again. The session restores properly from the swap
drive, so at least that part works. What can I do to keep it sleeping
until I power up again?
The major non-standard items with my system are that
1) I've set the short button-press on the power-button as a panic escape
to kick me to VT1, rather than reboot.
2) I've disabled {CTRL-ALT-DEL}, because I've hit it once too often at
home after becoming used to it on Windows at work... grrrrr
A relatively minor nuisance is due to the fact I combine "vga=6" in
/etc/lilo.conf with "CONSOLEFONT="lat1-10"" in /etc/conf.d/consolefont.
"vga=6" defaults to 8-pixel-high font on 640 pixels across by 480 pixels
high. This gives 60 rows of text, but is unreadable. Switching over to
a 10-pixel-high font gives a nicer, more readable, 48-row display.
After coming back from its very short suspend, the machine comes back
up with a 640 pixel x 480 scanline display as per "vga=6". It also
remembers that I have 48 lines on my text consoles. But it gives the
full 60 row display, with the bottom dozen rows not being used. I can
straighten this out by manually issuing the command...
"setfont /usr/share/consolefonts/lat1-10". Is there a script file that
can be set up to execute only after a resume?
--
Walter Dnes <waltdnes@waltdnes.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Machine reboots immediately when suspended-to-disk
2009-10-21 0:14 [gentoo-user] Machine reboots immediately when suspended-to-disk waltdnes
@ 2009-10-21 0:54 ` Albert Hopkins
2009-10-21 11:46 ` Mick
2009-10-21 21:22 ` waltdnes
0 siblings, 2 replies; 7+ messages in thread
From: Albert Hopkins @ 2009-10-21 0:54 UTC (permalink / raw
To: gentoo-user
On Tue, 2009-10-20 at 20:14 -0400, waltdnes@waltdnes.org wrote:
> I've enabled suspend-to-disk in the kernel. When I issue the
> command
> "echo disk > /sys/power/state", it suspends but *IMMEDIATELY* reboots
> and comes back up again. The session restores properly from the swap
> drive, so at least that part works. What can I do to keep it sleeping
> until I power up again?
Ok I'm going to address this issue. You specified multiple issues in
your email. I think it's better to split each issue into its own
posting. It's simpler easier to work with one problem at a time and
also replies to postings on different issues don't get all garbled
up/confusing in archive searches.
Ok the echo trick isn't the recommended way to suspend to disk. A
better way is to use "pm-hibernate --quirks" (pm-hibernate is from the
pm-utils packages). The --quirks option will try to handle any, well,
quirks that are known with your hardware. echo'ing to /sys/power/state
is a little more low-level and could be iffy on some types of hardware.
You should also check dmesg. More than likely there is a kernel error
that explains why it failed to suspend completely.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Machine reboots immediately when suspended-to-disk
2009-10-21 0:54 ` Albert Hopkins
@ 2009-10-21 11:46 ` Mick
2009-10-21 21:22 ` waltdnes
1 sibling, 0 replies; 7+ messages in thread
From: Mick @ 2009-10-21 11:46 UTC (permalink / raw
To: gentoo-user
2009/10/21 Albert Hopkins <marduk@letterboxes.org>:
> On Tue, 2009-10-20 at 20:14 -0400, waltdnes@waltdnes.org wrote:
>> I've enabled suspend-to-disk in the kernel. When I issue the
>> command
>> "echo disk > /sys/power/state", it suspends but *IMMEDIATELY* reboots
>> and comes back up again. The session restores properly from the swap
>> drive, so at least that part works. What can I do to keep it sleeping
>> until I power up again?
>
> Ok I'm going to address this issue. You specified multiple issues in
> your email. I think it's better to split each issue into its own
> posting. It's simpler easier to work with one problem at a time and
> also replies to postings on different issues don't get all garbled
> up/confusing in archive searches.
>
> Ok the echo trick isn't the recommended way to suspend to disk. A
> better way is to use "pm-hibernate --quirks" (pm-hibernate is from the
> pm-utils packages). The --quirks option will try to handle any, well,
> quirks that are known with your hardware. echo'ing to /sys/power/state
> is a little more low-level and could be iffy on some types of hardware.
>
> You should also check dmesg. More than likely there is a kernel error
> that explains why it failed to suspend completely.
Or use hibernate -v4 from a root terminal to see any error messages.
--
Regards,
Mick
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Machine reboots immediately when suspended-to-disk
2009-10-21 0:54 ` Albert Hopkins
2009-10-21 11:46 ` Mick
@ 2009-10-21 21:22 ` waltdnes
2009-10-23 8:04 ` [gentoo-user] " Peter Weilbacher
1 sibling, 1 reply; 7+ messages in thread
From: waltdnes @ 2009-10-21 21:22 UTC (permalink / raw
To: gentoo-user
On Tue, Oct 20, 2009 at 08:54:02PM -0400, Albert Hopkins wrote
> Ok the echo trick isn't the recommended way to suspend to disk. A
> better way is to use "pm-hibernate --quirks" (pm-hibernate is from the
> pm-utils packages). The --quirks option will try to handle any, well,
> quirks that are known with your hardware. echo'ing to /sys/power/state
> is a little more low-level and could be iffy on some types of hardware.
I ended up emerging hibernate-script and it runs great. I added a few
tweaks to hibernate.conf. Here's what it looks like...
TryMethod disk.conf
Distribution gentoo
OnResume 00 setfont lat1-10
DownInterfaces auto
UpInterfaces auto
UseSysfsPowerState disk
PowerdownMethod shutdown
As for pm-utils...
<RANT>
Why the bleep can't some programmers go to the bathroom without invoking
hal and dbus? They're hard-coded dependancies for pm-utils. I've
managed to keep hal and dbus (and java and pam) off my machine, and will
continue doing so. If I had a bunch of money lying around, I'd hire some
programmers to seriously slim down Firefox while I was at it. There is
no reason a browser should need an SQL database.
</RANT>
> You should also check dmesg. More than likely there is a kernel error
> that explains why it failed to suspend completely.
Nothing obvious in dmesg when I tried manually shutting down. The
listing showed the system shutting down, and then starting up. No
warnings, let alone errors.
--
Walter Dnes <waltdnes@waltdnes.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gentoo-user] Re: Machine reboots immediately when suspended-to-disk
2009-10-21 21:22 ` waltdnes
@ 2009-10-23 8:04 ` Peter Weilbacher
2009-10-24 1:37 ` waltdnes
0 siblings, 1 reply; 7+ messages in thread
From: Peter Weilbacher @ 2009-10-23 8:04 UTC (permalink / raw
To: gentoo-user
On 21.10.2009 23:22, waltdnes@waltdnes.org wrote:
> If I had a bunch of money lying around, I'd hire some
> programmers to seriously slim down Firefox while I was at it. There is
> no reason a browser should need an SQL database.
How would you do history searches without a database? On Linux using SQLite
in Firefox actually slimmed down the browser code (compared to the version
that still used mork), as it uses the system version for the database.
P.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Re: Machine reboots immediately when suspended-to-disk
2009-10-23 8:04 ` [gentoo-user] " Peter Weilbacher
@ 2009-10-24 1:37 ` waltdnes
2009-10-24 19:10 ` Peter Weilbacher
0 siblings, 1 reply; 7+ messages in thread
From: waltdnes @ 2009-10-24 1:37 UTC (permalink / raw
To: gentoo-user
On Fri, Oct 23, 2009 at 10:04:52AM +0200, Peter Weilbacher wrote
> How would you do history searches without a database?
If you don't know how, I suggest checking the Firefox 2.x code. It
worked somehow.
> On Linux using SQLite in Firefox actually slimmed down the browser
> code (compared to the version that still used mork), as it uses the
> system version for the database.
Yeah sure, just like ie.exe isn't bloated. Mind you, the "system
libraries" that ie.exe calls are another story. BTW, "the system
version" was never on my system until FF3. That's a very transparent
shell game.
--
Walter Dnes <waltdnes@waltdnes.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gentoo-user] Re: Machine reboots immediately when suspended-to-disk
2009-10-24 1:37 ` waltdnes
@ 2009-10-24 19:10 ` Peter Weilbacher
0 siblings, 0 replies; 7+ messages in thread
From: Peter Weilbacher @ 2009-10-24 19:10 UTC (permalink / raw
To: gentoo-user
On 24.10.2009 03:37, waltdnes@waltdnes.org wrote:
> On Fri, Oct 23, 2009 at 10:04:52AM +0200, Peter Weilbacher wrote
>
>> How would you do history searches without a database?
>
> If you don't know how, I suggest checking the Firefox 2.x code. It
> worked somehow.
Yeah, I am reading the sources daily and have done so for several years
nw. FF 2.x used a different database. One which was far less efficient,
more crash prone, and has been unmaintained for several years before.
>> On Linux using SQLite in Firefox actually slimmed down the browser
>> code (compared to the version that still used mork), as it uses the
>> system version for the database.
>
> Yeah sure, just like ie.exe isn't bloated. Mind you, the "system
> libraries" that ie.exe calls are another story.
OK, so you are just screaming without having any clue.
P.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-10-24 19:11 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-21 0:14 [gentoo-user] Machine reboots immediately when suspended-to-disk waltdnes
2009-10-21 0:54 ` Albert Hopkins
2009-10-21 11:46 ` Mick
2009-10-21 21:22 ` waltdnes
2009-10-23 8:04 ` [gentoo-user] " Peter Weilbacher
2009-10-24 1:37 ` waltdnes
2009-10-24 19:10 ` Peter Weilbacher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox