mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: dean gaudet <dean@arctic.org>
Cc: kernel list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] off-by-1 in kernel/power/main.c
Date: Tue, 25 Apr 2006 23:46:13 +0200	[thread overview]
Message-ID: <20060425214613.GF6379@elf.ucw.cz> (raw)
In-Reply-To: <Pine.LNX.4.64.0604251413430.10855@twinlark.arctic.org>

Hi!

> > > > Valid way to power off machine is by shutdown -o now, and there's a
> > > > syscall to do that. It should not be done by /sys/power/state.
> > > 
> > > hey... my shutdown doesn't have a -o option... where can i find that?
> > 
> > Not sure where I got it, because _my_ shutdown does not have -o,
> > either. Sorry. It has 
> > 
> >        -P     Halt action is to turn off the power.
> > 
> > however. Plus there's a syscall you can use...
> 
> "shutdown -hP now" just causes the machine to power off... i need it to go 
> into S5 -- because it'll only respond to wake-on-lan from S5.  it doesn't 
> respond to WOL after a "shutdown -hP now"...
> 
> ironically the off-by-1 bug let me get into S5... and i thought i had my 
> code working.
> 
> so what i'm really curious about now is the Right Way to go into S5...
> 
> somehow with fc4 "shutdown -h now" put it in S5, but with debian it 
> doesn't... and i haven't figured out yet where the fedora/debian 
> kernel/sysvinit patches differ on this behaviour.

There should not be any difference between S5 and poweroff...

Well, probably driver calls are different in regular case and your
"hacked up" one. Try to find the one that matters...
								Pavel
-- 
Thanks for all the (sleeping) penguins.

      reply	other threads:[~2006-04-25 21:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-22  4:05 dean gaudet
2006-04-22 21:37 ` Pavel Machek
     [not found]   ` <Pine.LNX.4.64.0604231958020.22072@twinlark.arctic.org>
2006-04-24  7:57     ` Pavel Machek
2006-04-25 21:38       ` dean gaudet
2006-04-25 21:46         ` Pavel Machek [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060425214613.GF6379@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=dean@arctic.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®