Re: hibernate/suspend-to-disk: to turn power or not?

2008-02-01 Thread Rafael J. Wysocki
On Friday, 1 of February 2008, Michael Tokarev wrote: > Pavel Machek wrote: > [] > >> I'm looking at the uswsusp source (while the kernel compiles), > >> and have a question here. Is it possible to call some external > >> application (typically a shell script) to do the final work after > >> when

Re: hibernate/suspend-to-disk: to turn power or not?

2008-02-01 Thread Rafael J. Wysocki
On Friday, 1 of February 2008, Michael Tokarev wrote: Pavel Machek wrote: [] I'm looking at the uswsusp source (while the kernel compiles), and have a question here. Is it possible to call some external application (typically a shell script) to do the final work after when the image has

Re: hibernate/suspend-to-disk: to turn power or not?

2008-01-31 Thread Michael Tokarev
Pavel Machek wrote: [] >> I'm looking at the uswsusp source (while the kernel compiles), >> and have a question here. Is it possible to call some external >> application (typically a shell script) to do the final work after >> when the image has been written? I mean in principle - I >>

Re: hibernate/suspend-to-disk: to turn power or not?

2008-01-31 Thread Pavel Machek
Hi! > o 2.6.24 kernel fails to suspend properly. It "saves pages", >prints "Suspending console", when prints "Sl" and nothing >more happens. At this time, I can manually poweroff the >machine, and resume works. The same happens when running >32bits or 64bits kernel (it's an

Re: hibernate/suspend-to-disk: to turn power or not?

2008-01-31 Thread Pavel Machek
Hi! o 2.6.24 kernel fails to suspend properly. It saves pages, prints Suspending console, when prints Sl and nothing more happens. At this time, I can manually poweroff the machine, and resume works. The same happens when running 32bits or 64bits kernel (it's an amd x2-64

Re: hibernate/suspend-to-disk: to turn power or not?

2008-01-31 Thread Michael Tokarev
Pavel Machek wrote: [] I'm looking at the uswsusp source (while the kernel compiles), and have a question here. Is it possible to call some external application (typically a shell script) to do the final work after when the image has been written? I mean in principle - I understand there

Re: hibernate/suspend-to-disk: to turn power or not?

2008-01-30 Thread Nigel Cunningham
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

Re: hibernate/suspend-to-disk: to turn power or not?

2008-01-30 Thread Michael Tokarev
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

Re: hibernate/suspend-to-disk: to turn power or not?

2008-01-30 Thread Michael Tokarev
Rafael J. Wysocki wrote: > On Wednesday, 30 of January 2008, Michael Tokarev wrote: >> I'm trying to "glue" hibernation and UPS control >> together, and have a question. [] > If your box hibernates and resumes correctly in the shutdown mode (ie. Ohh-well.. :) I was thinking about more or less

Re: hibernate/suspend-to-disk: to turn power or not?

2008-01-30 Thread Nigel Cunningham
Hi. Michael Tokarev wrote: I'm trying to "glue" hibernation and UPS control together, and have a question. When the system power comes off an UPS (Uninterruptable Power Supply I mean), it's probably a good idea to turn the UPS off when shutting the system down or hibernating. Even with

Re: hibernate/suspend-to-disk: to turn power or not?

2008-01-30 Thread Rafael J. Wysocki
On Wednesday, 30 of January 2008, Michael Tokarev wrote: > I'm trying to "glue" hibernation and UPS control > together, and have a question. > > When the system power comes off an UPS (Uninterruptable > Power Supply I mean), it's probably a good idea to turn > the UPS off when shutting the system

Re: hibernate/suspend-to-disk: to turn power or not?

2008-01-30 Thread Michael Tokarev
Bruno Prémont wrote: > On Wednesday 30 January 2008 20:18:40 you wrote: >> I'm trying to "glue" hibernation and UPS control >> together, and have a question. >> >> When the system power comes off an UPS (Uninterruptable >> Power Supply I mean), it's probably a good idea to turn >> the UPS off when

Re: hibernate/suspend-to-disk: to turn power or not?

2008-01-30 Thread Bruno Prémont
On Wednesday 30 January 2008 20:18:40 you wrote: > I'm trying to "glue" hibernation and UPS control > together, and have a question. > > When the system power comes off an UPS (Uninterruptable > Power Supply I mean), it's probably a good idea to turn > the UPS off when shutting the system down or

hibernate/suspend-to-disk: to turn power or not?

2008-01-30 Thread Michael Tokarev
I'm trying to "glue" hibernation and UPS control together, and have a question. When the system power comes off an UPS (Uninterruptable Power Supply I mean), it's probably a good idea to turn the UPS off when shutting the system down or hibernating. Even with shutdown (not related to

hibernate/suspend-to-disk: to turn power or not?

2008-01-30 Thread Michael Tokarev
I'm trying to glue hibernation and UPS control together, and have a question. When the system power comes off an UPS (Uninterruptable Power Supply I mean), it's probably a good idea to turn the UPS off when shutting the system down or hibernating. Even with shutdown (not related to hibernating)

Re: hibernate/suspend-to-disk: to turn power or not?

2008-01-30 Thread Bruno Prémont
On Wednesday 30 January 2008 20:18:40 you wrote: I'm trying to glue hibernation and UPS control together, and have a question. When the system power comes off an UPS (Uninterruptable Power Supply I mean), it's probably a good idea to turn the UPS off when shutting the system down or

Re: hibernate/suspend-to-disk: to turn power or not?

2008-01-30 Thread Michael Tokarev
Bruno Prémont wrote: On Wednesday 30 January 2008 20:18:40 you wrote: I'm trying to glue hibernation and UPS control together, and have a question. When the system power comes off an UPS (Uninterruptable Power Supply I mean), it's probably a good idea to turn the UPS off when shutting the

Re: hibernate/suspend-to-disk: to turn power or not?

2008-01-30 Thread Rafael J. Wysocki
On Wednesday, 30 of January 2008, Michael Tokarev wrote: I'm trying to glue hibernation and UPS control together, and have a question. When the system power comes off an UPS (Uninterruptable Power Supply I mean), it's probably a good idea to turn the UPS off when shutting the system down or

Re: hibernate/suspend-to-disk: to turn power or not?

2008-01-30 Thread Nigel Cunningham
Hi. Michael Tokarev wrote: I'm trying to glue hibernation and UPS control together, and have a question. When the system power comes off an UPS (Uninterruptable Power Supply I mean), it's probably a good idea to turn the UPS off when shutting the system down or hibernating. Even with shutdown

Re: hibernate/suspend-to-disk: to turn power or not?

2008-01-30 Thread Michael Tokarev
Rafael J. Wysocki wrote: On Wednesday, 30 of January 2008, Michael Tokarev wrote: I'm trying to glue hibernation and UPS control together, and have a question. [] If your box hibernates and resumes correctly in the shutdown mode (ie. Ohh-well.. :) I was thinking about more or less general

Re: hibernate/suspend-to-disk: to turn power or not?

2008-01-30 Thread Michael Tokarev
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

Re: hibernate/suspend-to-disk: to turn power or not?

2008-01-30 Thread Nigel Cunningham
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