Results 1 to 9 of 9

Thread: clock/time wrong while hwclock output is correct

  1. #1
    Join Date
    Nov 2005
    Location
    Kerala,India
    Beans
    534
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Post {SOLVED}clock/time wrong while hwclock output is correct

    Hello ,
    I am on 9.04 jaunty Ubuntu(Gnome).I am facing this issue of wrong time everytime I reboot the machine.
    No UTC for India.but the current time shown in Gnome-Panel clock-applet is : 4:12PM May 22.This is wrong.
    While ,hwclock output shows the correct time!.Why is it So?
    Code:
    root@sher:~# hwclock --show
    Fri 22 May 2009 09:43:20 PM IST  -0.990445 seconds
    Even if I do a " hwclock --hctosys " ,next reboot and the time shown in Gnome Panel may be wrong.
    Any Fix?
    BTW ,here is the content of /etc/default/rcS for My System:
    Code:
    #
    # /etc/default/rcS
    #
    # Default settings for the scripts in /etc/rcS.d/
    #
    # For information about these variables see the rcS(5) manual page.
    #
    # This file belongs to the "initscripts" package.
    
    TMPTIME=0
    SULOGIN=no
    DELAYLOGIN=no
    UTC=no
    VERBOSE=no
    FSCKFIX=no
    RAMRUN=yes
    RAMLOCK=yes
    Last edited by deepclutch; May 22nd, 2009 at 08:24 PM. Reason: solved

  2. #2
    Join Date
    Apr 2009
    Beans
    11
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: clock/time wrong while hwclock output is correct

    I might have had the same problem once. I had set gmt_time in the preferences of the clock in the configuration editor set to true.

  3. #3
    Join Date
    Nov 2005
    Location
    Kerala,India
    Beans
    534
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: clock/time wrong while hwclock output is correct

    @Shukuyir:that's the same ,it enables UTC time.you can do it via /etc/default/rcS file.

  4. #4
    Join Date
    Apr 2009
    Beans
    11
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: clock/time wrong while hwclock output is correct

    The file /etc/default/rcS on mine has "UTC" set to "yes" but have got the setting "gmt_time" of the clock preferences set to false
    Last edited by Shukuyir; May 22nd, 2009 at 05:43 PM.

  5. #5
    Join Date
    Nov 2005
    Location
    Kerala,India
    Beans
    534
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: clock/time wrong while hwclock output is correct

    while I don't want UTC =YES .

  6. #6
    Join Date
    Nov 2005
    Location
    Kerala,India
    Beans
    534
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: clock/time wrong while hwclock output is correct

    atlast solved.the problem happened because I pulled util-linux-2.15 from debian ,which included /etc/init.d/hwclockfirst.sh -I removed that script .now using util-linux,udev,libblkid,initramfs-tools from ubuntu karmic repo.this solved.

  7. #7
    Join Date
    Mar 2006
    Location
    Kiruna, Sweden
    Beans
    73
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: clock/time wrong while hwclock output is correct

    How did you change? I have the same problem but do not have an /etc/init.d/hwclockfirst.sh -I what i could se. When i sudo hwclock -r it tell me i got "util-linux-ng 2.16".

    How did you change to util-linux?
    Motherboard: Asus P5W DH Deluxe | Graphic card: Ati Radeon 1950 pro | Wifi: RTL8187

  8. #8
    Join Date
    Nov 2005
    Location
    New York, USA
    Beans
    1,223
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: clock/time wrong while hwclock output is correct

    I had all kinds of crazy time problems in one of my computers. Turned out the time was set wrong in BIOS. Make sure it's correct there. Many BIOS use 24 hour time, so make sure it's set correctly, 14:00 if you want 2:00 PM for example.

    Also, make sure your mobo battery is good. One of the signs of a failing battery is clock weirdness.
    Using Ubuntu since Warty Warthog (4.10)
    32 bit 5.04>5.10>6.06>6.10>7.04>7.10>8.04>8.10>9.04>9.10
    64 bit 9.10 upgraded to 10.04>10.10>11.04>11.10>12.04>14.04

  9. #9
    Join Date
    Mar 2006
    Location
    Kiruna, Sweden
    Beans
    73
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: clock/time wrong while hwclock output is correct

    Quote Originally Posted by mgmiller View Post
    I had all kinds of crazy time problems in one of my computers. Turned out the time was set wrong in BIOS. Make sure it's correct there. Many BIOS use 24 hour time, so make sure it's set correctly, 14:00 if you want 2:00 PM for example.

    Also, make sure your mobo battery is good. One of the signs of a failing battery is clock weirdness.
    Thanks for the quick reply. As the hwclock is correct and a hwclock -s corrects the time.. but then it drift off again. I do not think the fault is the battery. My bios clock is correct.
    Last edited by revoltism; October 26th, 2009 at 02:00 AM.
    Motherboard: Asus P5W DH Deluxe | Graphic card: Ati Radeon 1950 pro | Wifi: RTL8187

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •