public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nigel Cunningham <nigel@nigel.suspend2.net>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: hibernate/suspend-to-disk: to turn power or not?
Date: Thu, 31 Jan 2008 10:58:59 +1100	[thread overview]
Message-ID: <47A10F43.4030300@nigel.suspend2.net> (raw)
In-Reply-To: <47A10A4F.3060203@msgid.tls.msk.ru>

Hi Michael.

Michael Tokarev wrote:
> Nigel Cunningham wrote:
> []
>> That should be doable. How is your UPS connected? Presumably, with some
>> modifications to the appropriate driver, we could send the commands when
>> we're ready to shutdown. It would probably be useful whether or not your
>> hibernating (if not, sending the commands could always be made an option).
> 
> You mean adding stuff to some KERNEL driver?  Like to a serial driver if
> the UPS is connected to a COM-port??
> 
> I'm afraid either I don't understand what you're talking about here, or,
> if I got you right, that YOU don't understand what you're talking about...
> 
> Come on, teaching kernel about various idiotic UPSes out there is more
> than insane... ;)

I wasn't meaning the kernel should have to know about various idiotic 
UPSses (yes, I've got experience with them too, so I understand what 
you're talking about there). What I was thinking was that maybe it might 
be possible to give the kernel some simple (configurable) string to send 
out the UPS port when it's time to power off. Of course you're going to 
point out that a simple string won't do in every case (though I think it 
would do for at least some of the idiotic UPS ones).

I was just wondering aloud if there was a simpler way, but on further 
reflection, I guess there's no way around it. Whether this is done with 
kexec, uswsusp or TuxOnIce, it's going to involve creating (TuxOnIce / 
kexec ) or extending a userspace (uswsusp) binary that's got to somehow 
interface with the driver and get the job done.

Nigel

      reply	other threads:[~2008-01-30 23:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-30 19:18 hibernate/suspend-to-disk: to turn power or not? Michael Tokarev
2008-01-30 20:12 ` Bruno Prémont
2008-01-30 21:03   ` Michael Tokarev
2008-01-30 21:11 ` Rafael J. Wysocki
2008-01-30 23:30   ` Michael Tokarev
2008-01-31 14:40     ` Pavel Machek
2008-02-01  7:17       ` Michael Tokarev
2008-02-01 11:35         ` Rafael J. Wysocki
2008-07-13 23:26       ` David Fries
2008-07-14  5:43         ` Pavel Machek
2008-01-30 21:25 ` Nigel Cunningham
2008-01-30 23:37   ` Michael Tokarev
2008-01-30 23:58     ` Nigel Cunningham [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=47A10F43.4030300@nigel.suspend2.net \
    --to=nigel@nigel.suspend2.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mjt@tls.msk.ru \
    /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