Skip to contentSkip to conversation

System time compensation after suspend

DISCUSSION Alvaro Lopes 4 participants 5 messages Jul 16, 2003 3 messages not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

Hello all

Is there any way of compensating system time after a suspend (3)?

This was what happened to me: entered state 3 yesterday by 7h30 PM, and resumed it today at 11h AM, but system time was still 7h30.

Álvaro Lopes

-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0

#2 lore raw
In reply to a message not in the archive
Quoted 1 line · Alvaro Lopes

Is there any way of compensating system time after a suspend (3)?

This is not ACPI specific question, but the answer is hwclock. The real answer is to use the suspend.sh from the acpi download page at sf.net. which makes it for you.

Gavriel

-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0

#3 lore raw
In reply to a message not in the archive
Quoted 6 lines · Alvaro Lopes [[email protected]] wrote:

Hello all

Is there any way of compensating system time after a suspend (3)?

This was what happened to me: entered state 3 yesterday by 7h30 PM, and resumed it today at 11h AM, but system time was still 7h30.

Isn't it the old chestnut, run hwclock --hctosys in the resume script?

Faye

Signature · 15 lines
Faye Pearson,
Covert Development
ClaraNET Ltd.       Tel 020 7903 3000

Comparing information and knowledge is like asking whether the fatness of a
pig is more or less green than the designated hitter rule."
-- David Guaspari



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
#4 lore raw
In reply to a message not in the archive
Quoted 1 line

Is there any way of compensating system time after a suspend (3)?

Run "hwclock --hctosys" after returning.

Markus

Signature · 11 lines
__________________    /"\
Markus Gaugusch       \ /    ASCII Ribbon Campaign
[email protected]     X     Against HTML Mail
                      / \


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
#7 lore raw
In reply to a message not in the archive
Quoted 5 lines · Michael Frank

hwclock --hctosys

How does S3 work on your machine?

Pretty well. It's a Toshiba Satellite S1410. The only drawback (I use the proprietary nvidia drivers) is having to switch to console before suspend, otherwise the display goes completly nuts.

Álvaro

Quoted 5 lines

Regards
Michael

-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0