LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 01-20-2005, 12:23 PM   #1
anandj
Member
 
Registered: May 2004
Distribution: Fedora Core 4
Posts: 92

Rep: Reputation: 15
FC2: suspend-to-ram changes clock?


Hello

I have a Dell Inspiron 1100 laptop and I run FC2 on
it.
The suspend-to-ram feature never used to work and i
was told (on Dell forums) this is due to some problem
with the BIOS on this particular machine.

However when I recently updated the kernel on this
machine (using yum) to 2.6.10-1.9_FC2 suddenly (to my
delight) the suspend-to-ram feature has started
working. What I mean by that is, when I close the lid,
X shuts down, the network shutsdown and the machine
enters a power-save mode and when I open the lid,
everything is restored back to the state it was. The
only problem is, when everything is restored back, I
find that the clock has been messed up and it now
shows a time which is couple of hours _ahead_ of what
it should be. I don't understand why this happens.
When ever this happens, I restart ntpd and that sets
the time back to the correct time.

My question is this: is there a way to prevent this
from happening. Even if I cannot prevent this from
happening, is there a way I can have the machine
automatically restart ntpd when its restoring the
network and other settings when its waking up.
I don't even know what script the suspend-to-ram
functions runs when the machine wakes up.

Any help given will be appreciated.
Thanks!
 
Old 01-20-2005, 03:50 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"The only problem is, when everything is restored back, I
find that the clock has been messed up and it now
shows a time which is couple of hours _ahead_ of what
it should be. "

By any chance is the time being reset to Greenwich time?

-------------------------
Steve Stites
 
Old 01-20-2005, 08:31 PM   #3
anandj
Member
 
Registered: May 2004
Distribution: Fedora Core 4
Posts: 92

Original Poster
Rep: Reputation: 15
Quote:
By any chance is the time being reset to Greenwich time?
Thats a good suggestion.. however, the amount of time discrepancy seems to depend on how long the machine was in the sleep state.

Any other thoughts?
regards
 
Old 01-21-2005, 12:42 AM   #4
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
I have a similar problem when I do suspend to disk on my sony vaio s260 -- the time stays where it was when it suspended.

My friend with the same laptop encounteres the same problem as I do.

--Shade
 
Old 01-28-2005, 08:01 AM   #5
anandj
Member
 
Registered: May 2004
Distribution: Fedora Core 4
Posts: 92

Original Poster
Rep: Reputation: 15
I can understand if the time doesn't change when the laptop is in the
sleep mode.
For me the time moves ahead!
I really don't understand it!
 
Old 02-26-2005, 11:58 AM   #6
geomatt
Member
 
Registered: Mar 2004
Location: PA
Distribution: Slackware 12.0
Posts: 315

Rep: Reputation: 30
I've been havinng the same problem with my IBM thinkpad R40. My clock is set ahead - the longer I have the lid shut the greater the discrepancy. Is this an apm issue by any chance? Did any of you guys figure it out? I have a script that I run as a cron job to fix the time, but it only runs every hour. I could just manually run it when waking the laptop up, but it would also be nice to fix the problem.

Regards,
-geomatt
 
Old 03-01-2005, 05:01 PM   #7
anandj
Member
 
Registered: May 2004
Distribution: Fedora Core 4
Posts: 92

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by geomatt
Is this an apm issue by any chance?
-geomatt
My laptop uses acpi. So, no, its not an APM issue.
I still have that problem. I can't figure out which script is controlling this sleep/wake-up behaviour.
Once we have that, we can always add lines in that script making it copy the hardware time onto system time.
 
Old 03-02-2005, 09:51 AM   #8
geomatt
Member
 
Registered: Mar 2004
Location: PA
Distribution: Slackware 12.0
Posts: 315

Rep: Reputation: 30
Quote:
I can't figure out which script is controlling this sleep/wake-up behaviour.
Did you have a look in /var/log/acipd? That should tell you what is happening in response to what acpi events. I've just switched to acpi and used that info to actually get it to work on my machine.

Regards,
-geo
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Another suspend-to-RAM problem coldsalmon Linux - Laptop and Netbook 16 08-14-2006 09:57 PM
Suspend to RAM/HD question Lake-end Linux - Laptop and Netbook 6 07-05-2005 01:10 AM
suspend to ram works at last!!!! jwn7 Linux - Laptop and Netbook 4 03-31-2005 06:42 AM
Suspend to RAM in LInuX enigma82 Linux - Hardware 7 09-29-2004 04:28 AM
apm --suspend changes clock time. unholy Linux - Laptop and Netbook 3 10-09-2003 10:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 06:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration