skip to content

Gentoo Clock Problem

On one of my Gentoo systems, the system date was off by 5 hours and some minutes. Adjusting the system date was only valid during that one boot up session. After the system was rebooted, the system date was off by 5+ hours again. Here is the fix:

# date MMDDHHMM
# hwclock -w
# rm /etc/adjtime
#
hwclock -w

The command hwclock -w returned an error message "select() to /dev/rtc to wait for clock tick timed out". This would be the reason that the system refused the system date changes.

To fix that, edit /etc/conf.d/clock, and set:

CLOCK="local"
CLOCK_OPTS="--directisa" 

Then restart the clock service:

# /etc/init.d/clock restart

Check the system date now and see that your system is on the new time.

Comments

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.
Powered by Drupal.