LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-28-2005, 01:56 AM   #1
brokenflea
Member
 
Registered: Nov 2003
Distribution: Slackware 11.0, FreeBSD
Posts: 284

Rep: Reputation: 30
Time changes when notebook goes into suspend


i'm currently running slack 10.1 (kernel 2.6.10) on an ibm thinkpad. everything's working perfect except when i put the notebook into standby (using kde, under the klaptop icon on the panel) and when i bring the notebook out of standy my time changes. sometimes there's a difference of 30 minutes during the same day, but sometimes it can also show a difference of about one full day. i was wondering if there's any other way i could maintain the correct time using ntp or if there's a fix for this.

thanks for any advice.
 
Old 05-28-2005, 01:59 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Odd problem there.

The problem could be coming from some failure for the computer to save the system time to the hardware clock.

As a temporary work around, as you suggested, you could update the time over the network regularly.

On my system, I have this script in /etc/cron.hourly:

Code:
# Script to sync system time over the Internet
netdate time.datum.com
Now, you may have to change that address based on your location. A Google search should help you find you closest time server.

Here is a guide, which also contains a more advanced script than I suggested:

System Clock Mini-HOWTO
 
Old 05-28-2005, 03:56 PM   #3
brokenflea
Member
 
Registered: Nov 2003
Distribution: Slackware 11.0, FreeBSD
Posts: 284

Original Poster
Rep: Reputation: 30
thanks a bunch! i was wanting to use something like ntp but didn't know how to set it up. this is easier than that. thanks again.
 
Old 05-28-2005, 08:24 PM   #4
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Rep: Reputation: 47
When your motherboard RTC battery (usually a small nickel sized watch battery) starts going dead it messes around with your system time when the pc is off. Do you notice a time difference when you power down? I'm not sure if your pc uses that RTC battery in suspend.

I also have my laptop go into suspend, but I set it up that way in the BIOS. My laptop goes into suspend after 5 minutes of inactivity (the fan doesn't need to cool anything and shuts down-an LED blinks indicating it's in this powersaving mode) from the command line (not in KDE). I haven't noticed a time difference when in suspend...but I just replaced my RTC battery a couple of months ago (they usually last a couple years).

If you do, it's easily fixed by buying a battery at Radio Shack....I swapped my Compaq Presario laptop's battery so quick that I didn't lose any settings in my BIOS-I would write the settings down first....just in case.

All you need is a phillips head screw driver-goto IBM's site for the exact location of the RTC on your laptop. Mine was under the laptop keyboard-taking it apart can be tricky. Just write down the size of the battery and goto Radio Shack. I got mine for $3.50.

NOTE: PCs and static electricity don't mix-do your pc hardware work on a carpet free surface and touch a metal object before you put your hands inside of your pc!

Last edited by linuxhippy; 05-28-2005 at 08:44 PM.
 
  


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
Notebook won't suspend rwillard Linux - Newbie 7 05-24-2005 11:04 AM
PC notebook or Mac Notebook? thebover Linux - General 8 10-08-2004 03:02 AM
apm --suspend changes clock time. unholy Linux - Laptop and Netbook 3 10-09-2003 10:39 PM
First time with anything linux, need help with KDS notebook with pcmcia wireless NIC. sman789 Linux - Wireless Networking 3 07-07-2003 10:07 PM
System time goes stray on notebook Tinkster Linux - Hardware 2 02-25-2003 02:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:41 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