Ntpd and HARDWARECLOCK setting in rc.conf

Hi guys!
Yesterday I installed the NTP daemon to keep my clock in sync. I followed the Arch wiki [wiki]http://wiki.archlinux.org/index.php/NTP[/wiki] and installed the ntp package. The ntp daemon is running fine but I have a question regarding the HARDWARECLOCK setting in rc.conf. According to the wiki the correct setting is something else than "UTC" or "localtime" so I set it to "ntp". Unfortunately this sets my clock 2 hours ahead (UTC + 4) of the real time every time I reboot or start my computer. The hardware clock shows the correct time though (my local time, UTC + 2). Of course the ntp daemon will adjust the time after a few minutes but it's a little annoying.  I have tried deleting /var/lib/hwclock/adjtime with no difference. If I set HARDWARECLOCK to "localtime" everything is working fine and both clocks show the same time but I don't know which consequences that may have. Do you have any advice?

Leonid.I wrote:
berbae wrote:So definitely the adjtime cron.hourly script is really harmless to the ntpd daemon as it doesn't even touch to the hardware clock.
Well, it would be totally pointless, if it did. In fact, the hardware clock is only needed when you start the system, in order to synchronize the kernel clock. As long as the system is running, nothing should query the hardware clock.
Actually, I don't understand what do you guys mean by "hardware clock in UTC"? I thought hwclock has no format, it is how we understand it, what matters...
Also, what is the particular advantage of using NTPD over OpenNTPD? The latter is opensource and developed by OpenBSD project, and works out of the box -- I haven't even seen the wiki about it.
the hardware clock (BIOS clock) has time in UTC or localtime - a *nix OS will use UTC by default, windows uses localtime by default, hence the reason for the setting (people who dual boot); it's not a format difference, both UTC and localtime are the same format, but localtime is local time and UTC is universal coordinated time
OpenNTPD is called Open due to the roots in OpenBSD - ntpd is of course open source too and it's the standard linux ntp daemon
ntpd is the status quo ntp service (like bind is to DNS) - it has lots of features (therefore lots of code) so it's not as light on resources as it could be and it can be confusing for some users to configure
ntpd is designed for the super precise accuracy needed by some companies or projects (tiny fractions of a second) and OpenNTPD's goal is security and low resource use; less code == more security (the security aspect is the same thing the whole OpenBSD project focuses on)
I think the main feature difference is that ntp handles drift and OpenNTPD just ignores it
Last edited by thestinger (2010-04-21 01:18:03)

Similar Messages

  • Using ntpd and ntpdate

    I've decided to setup my system using ntpd. So I used the wiki to do so
    http://wiki.archlinux.org/index.php/Ntpd#ntpd
    and I've modified ntp.conf and so forth and added ntpd and ntpdate to my daemons. Everything seems to be running fine but at boot I see that the ntp-client writes fail at startup and I can't figure out why. I've looked in daemon.log but I can't find anything wrong. If I issue the command ntpdate I get
    [af@andre ~]$ sudo /usr/bin/ntpdate 0.dk.pool.ntp.org
    28 Mar 11:57:27 ntpdate[2443]: the NTP socket is in use, exiting
    WHAT AM I doing wrong?

    fettouhi wrote:
    Meyithi wrote:
    Do not background ntpdate, because it uses the same port as ntpd and will prevent it from starting.
    Could it be this?
    I'm not doing that. Here is my daemon list from rc.conf
    DAEMONS=(syslog-ng !network netfs crond alsa dbus hal networkmanager ntpd ufw cups avahi-daemon samba)
    Regards
    André
    Well, if ntpd is using the port, manually running ntpdate will fail because ntpd is using the port.  Either run ntpdate before ntpd or as poster above said stop ntpd before running ntpdate.
    Last edited by Meyithi (2010-03-28 12:44:00)

  • Can't properly set up xorg.conf or 10-monitor.conf

    Hi.
    I would like to ask for Your help. I need someone with greater knowledge over Arch than i have. I have problem with either xorg.conf or 10-monitor.conf. As a matter of fact, now xorg.conf is deprecated so more important is 10-monitor conf.
    I have nvidia GTX260 card with newest nvidia drivers. I have 2 DVI's on this card, for an exmaple: DVI-0 nad DVI-1. I would like to use them both using dvi-to-hdmi connector on each of them in order to use my 27 LCD monitor and 40 TV, both with hdmi cable plugged into dvi-hdmi connector and to my graphic card.
    I can't solve my problem. Don't know what to do in order to having both screen working. If my 27 inch LCD monitor is connected by DVI-DSUB connector, i have signal on screen. If i plug it by dvi-hdmi connector, than i have screen, singal, picture during boot, but GUI won't load, it stays on "running user interface" or something similar. It is because of my settings in 10-monitor.conf. Here is my setup of 10-monitor.conf
    # nvidia-xconfig: X configuration file generated by nvidia-xconfig
    # nvidia-xconfig: version 331.20 (buildmeister@swio-display-x64-rhel04-06) Wed Oct 30 18:38:00 PDT 2013
    Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0"
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Mouse0" "CorePointer"
    Option "Xinerama" "0"
    EndSection
    Section "Files"
    EndSection
    Section "InputDevice"
    # generated from default
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "no"
    Option "ZAxisMapping" "4 5"
    EndSection
    Section "InputDevice"
    # generated from default
    Identifier "Keyboard0"
    Driver "kbd"
    EndSection
    Section "Monitor"
    Identifier "DVI-D-1"
    VendorName "HP"
    ModelName "Hp2228H"
    HorizSync 28.0 - 33.0
    VertRefresh 43.0 - 72.0
    Option "ignore" "true"
    Option "DPMS"
    Option "ignore" "true"
    EndSection
    Section "Monitor"
    Identifier "DVI-D-0"
    Option "ignore" "true"
    EndSection
    Section "Monitor"
    Identifier "Unknown-0"
    Option "ignore" "true"
    EndSection
    Section "Monitor"
    Identifier "unknown-1"
    VendorName "LG"
    ModelName "LG Electronics 2D FHD LG TV 27MA73D-PZ"
    HorizSync 30.0 - 83.0
    VertRefresh 56.0 - 75.0
    Option "DPMS"
    Option "Enable" "true"
    EndSection
    Section "Monitor"
    Identifier "TV-0"
    Option "ignore" "true"
    EndSection
    #Section "Monitor"
    # Identifier "Monitor0"
    # VendorName "Unknown"
    # ModelName "Unknown"
    # HorizSync 28.0 - 33.0
    # VertRefresh 43.0-72.0
    # Option "DPMS"
    #EndSection
    Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    Option "TripleBuffer" "1"
    Option "ConnedtedMonitor" "DFP"
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    As you can see, there are few section named monitor because Arch detects with nvidia drivers, that i have few screens attached, while i haven't. If i change monitor sections than i could have random switching off signal/screen, and either can have pictrure or don't at all, wither with good 19x12 resolution, or changed for a different, streched to right and i can't log in, and change it eithere.
    So, i would like to have what i discribed on top. Could somebody point me in good direction? I tried to generate xorg.conf using nvdia-xcofig, than i applied it to 10-monitor.conf but after reboot i got stuck at "running user interface" or gui, there was no KDE greeting login screen - in my opinion because 10-monitor.conf can't detect that screen is attached by dvi-hdmi connector (detect ok with dvi-dsub and my setting of 10-monitor.conf above). So what to do in order to Arch detects dvi-hdmi connector and detects that i have screen in order to being found and in order to log in into login screen?
    When i renamed 10-monitor.conf to 10-monitor.conf.bak and rebooted, i get past "running user interface" or logins screen, i have purple-blue kde greeting and could log in but resolution was stretched on right side and i have only "left side" of screen, so i didn't see login "propmt", or login window, and couldn't log in. Tried to kill x and resuming kdm.service but it won't work. Don't see login window on blue-purple loging screen.
    I would like to get past this, would like to use dvi-hdmi connector on my 27 LCD monitor, and being able to use the same dvi-hdmi connector for my 40 TV and use them both. Could somebody help me? What do change in 10-monitor.conf, what to add, what to remove? I'm using now only 27 LCD monitor trough dvi-dsub because i can log into login window because it is in the center of the screen, not stretched to righ on dvi-hdmi connector.
    It is not fault of the connectors, i tried on Windows and it Works. Want do have it on Arch because i dont use Windows very often.
    Help [:|]

    Heh, i found something so stupid about Arch that i can't believe it. In fact, i'm not able to change it.
    I had two screen connected to my new graphic card, i moved from GTX260 to GTX660. One flat panel, LG 27 inch, was connected troug one of the DVI (DVI-I-1) and 40 TV was connected trough second DVI (DVI-D-0). What i found? Well, as a matter of fact, this new graphic has booting sequence order regarding working outs during boot. On HDMI out and on DVI-I-1 when booting there is signal and screen. On DVI-D-0 during booting sequence there is no singal, singnal comes up at login prompt of Windows or Arch. Ok, can live with that.
    There is one that i can't. If i want to have working setup of my 27 + 40 flat panels, i have to have 27 connected trough hdmi out, 40 trough something other. I'm not able to have 27 connected to DVI-I-1 and 40 TV to DVI-D-0 because during booting sequence, when there is low resolution, i have screen and singal on 27 flat panel, but when there should come up kde welcome login screen, i don't have it. It stays at terminal, when i see info "sterting upser graphic mode". That's strange! The only way to have booting sequence on 27, and also singal/screen after booting sequence of 27 is to have connected 27 flat panel to hdmi out, not DVI-I-1! Why? Don't know but Arch doesen't want to work that way, no matter what i put in 10-monitor.conf. Tried the same on Windows, no matter which out is being used (hdmi or DVI-I-1), during booting sequence there is singal/screen/picture and after it i can normally log into Windows. In case of Arch, i can't.
    Don't know. I would show my 10-monitor.conf:
    nvidia-settings: X configuration file generated by nvidia-settings
    # nvidia-settings: version 334.21 (buildmeister@swio-display-x64-rhel04-13) Thu Feb 27 14:33:33 PST 2014
    Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0" 0 0
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Mouse0" "CorePointer"
    Option "Xinerama" "0"
    EndSection
    Section "Files"
    EndSection
    Section "InputDevice"
    # generated from default
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "no"
    Option "ZAxisMapping" "4 5"
    EndSection
    Section "InputDevice"
    # generated from default
    Identifier "Keyboard0"
    Driver "kbd"
    EndSection
    Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier "Monitor0"
    VendorName "Unknown"
    ModelName "LG Electronics 2D FHD LG TV"
    HorizSync 30.0 - 83.0
    VertRefresh 56.0 - 75.0
    Option "DPMS"
    EndSection
    Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce GTX 660"
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    Option "Stereo" "0"
    Option "nvidiaXineramaInfoOrder" "DFP-3"
    Option "metamodes" "HDMI-0: 1920x1080 +0+0, DVI-D-0: 1920x1080 +0+0"
    Option "SLI" "Off"
    Option "MultiGPU" "Off"
    Option "BaseMosaic" "off"
    SubSection "Display"
    Depth 24
    EndSubSection
    EndSection
    I wan't to have both flat panels on DVI outs because i need hdmi for something other. Is there a way to solve it? Strange is that with provided resolution, vertical and horizontal frequencies, on hdmi out i can boot, i can log into Arch (while my other screen is being found, and also i see picture on login screen) but when i use both of DVI outs, i see booting sequences, and than Arch informs me that has started graphic user mode...but it stays at this black screen. What's more strange is that if i delete 10-monitor.conf, connect my 27 LCD to DVI-D-0, and TV to DVI-I-1, than i see booting on Toshiba 40 TV, don't see it on LG 27, after log in i can set proper resoluton for 27 LG, have both screen working, but if i save this settings in 10-monitor.conf, after reboot...the same thing, stays at message that Arch started graphical user mode.
    Don't know what's going on. Can somebody check my xorg? Point me? Maybe xinerama is at fault? I want my LG 27 to be cloned on 40 TV.
    In big shortcut: during boot on DVI-I-1 i have signal, can't log into gui mode, stays at mentioned screen with info that it started graphic user mode. What to do, or what to put into 10-monitor.conf?
    Last edited by firekage (2014-03-09 00:54:45)

  • KDE, ntpd and drag&drop issues

    Hi,
    I use KDE and when I install ntpd (the problem disappears when I remove it) and I want to drag something (like windows), the dragging procedure starts after 5-6 seconds, so I have to hold the mouse in the position for 5-6 seconds. (it also happens when I try to select text).
    Do you have encountered such a problem? Do you know how to fix the problem?
    -nwxxeh

    ewaller wrote:
    Weird. 
    Okay, so when kde and ntp are installed, and ntpd is running, where are your processors spending their time?  Use htop, or whatever that process monitor thing in KDE is called to find out what, if anything is sucking up processor cycles.  Let us know.
    Everything seems normal to me (htop).
    Also, it happens on XFCE and Gnome, so it may be X11 issue.
    Also, when I have ntp and timezone set to GMT+2, when I reboot my time sets to GMT+4 (not timezone, just time)...

  • I forgot the administrator password for my mac and cant set a new one without it how can i set a new one

    i forgot the administrator password for my mac and cant set a new one without it how can i set a new one

    Reset Password 10.7, 10.8...
    http://reviews.cnet.com/8301-13727_7-20087723-263/how-to-run-the-password-reset- utility-in-os-x-10.7-lion/

  • When I open a raw file (NEF Nikon 7100)  and apply setting then click save, I get an error ( could not complete your request because of a program error ). Ideas?

    when I open a raw file (NEF Nikon 7100)  and apply setting then click save, I get an error ( could not complete your request because of a program error ). Ideas?

    Oh, dear.
    If you use PSE as your external editor for iphoto, you need to save the images back to iphoto by using Save, not Save As and not changing anything like the name or format that would bring up the Save As window. (You may need to adjust the editor prefs>saving files>on first save to save over existing.)
    OR you can export the photos from iphoto to the desktop, use file>open in the editor and then change whatever you want and either import the saved image to the organizer or import it back to iphoto as a new file. What you are doing is extremely risky, particularly to the iphoto library which you may easily damage by your workflow.
    I would start the organizer holding down the shift key, then create a new catalog and switch to the new one. Then try opening the editor without opening an image and see if you get any farther.
    PSE and iphoto are not designed to be used as you've been doing. You are trying to write to the iphoto library from outside iphoto, which is the fastest known way to corrupt the library and lose all your photos.

  • Hi i got a new airport express for christmas and i set it up as per instructions ,i even give a static ip and wpa2 security ..the problem is is when i come to want to use it it says its not on my network and a orange triangle shows .when i reboot it works

    hi i got a new airport express for christmas and i set it up as per instructions ,i even give a static ip and wpa2 security ..the problem is is when i come to want to use it it says its not on my network and a orange triangle shows .when i reboot it works..then if i leave it a while and try iy agian its disapeared of my network...i have a bt hub 3 ....any help please ..im not sure if itsa faulty express

    I really don't have an answer for that one. I guess that while trying to get things working correctly, I would use the most basic monitor I had which in your case would be the Eizon using the Thunderbolt port and adaptor.
    When you boot into Safe Mode the startup is quite slow, but you should get the Apple logo and then the spinning gear below it (release the SHIFT key when it appears.) Then after a little more time you should see a gray progress bar appear below the spinning gear. When that disappears the computer will startup to a login screen.

  • Can you save your own theme and button set up so I can use the same format

    Can you save your own theme and button set up, so I can use this same format for similar content. I want to keep the button content and the theme the same without having to create it everytime? I am trying to streamline the process for multiple dvd's with the same menu and buttons but different content. Does that make sense?

    I am only new to this caper too, but I am pretty sure you can save a theme as a favourite by pressing the "save theme as favourite" button under file. If you have edited an existing theme but don't want to lose it, make sure you untick the replace existing button.

  • Jabber 9.2 and StartCallWithVideo set to false not taking

    The StartCallWithVideo option doesn't seem to working in Jabber 9.2 (tried 9.2.0 and 9.2.2). Tried false and FALSE for value.
    The jabber-config file downloads fine and has all the settings below on PC and the DockedWindow is not visible so the settings are working, but the calls start with video still and on the Jabber GUI under call section the start calls with video is selected.
    When I make call to someone else it starts with video unless I manually set to not start calls with video.
    Not finding any bugs on this.
    Anyone seen this before or know how to get it working if it isn't a bug?
    <?xml version="1.0" encoding="utf-8"?>
    <config version="1.0">
    <Client>
    </Client>
    <Directory>
      <DirectoryServerType>UDS</DirectoryServerType>
    </Directory>
    <Options>
      <StartCallWithVideo>FALSE</StartCallWithVideo>
      <Start_Client_On_Start_OS>true</Start_Client_On_Start_OS>
      <DockedWindowVisible>FALSE</DockedWindowVisible>
      </Options>
    <Policies>
    <Screen_Capture_Enabled>true</Screen_Capture_Enabled>
      <File_Transfer_Enabled>true</File_Transfer_Enabled>
      <Disallowed_File_Transfer_Types>.exe;.msi;.rar;.zip;.mp3</Disallowed_File_Transfer_Types>
      <Video_Disabled>false</Video_Disabled>
    </Policies>
    </config>

    Anyone have fix to this issue with IM&P 9.1.1, I have UC Service profile setup right and the setting set to false and my client is getting current XML file but still starts calls with video. I've tried both upper case and lower case for the false value. Other settings from my jabber-config file are working just fine. 
    FALSE
    I've been thru the links above and documentation again but not seeing a option anywhere on CUCM UC profile pages or IM&P to disable this.

  • I am trying to setup Microsoft office mail and need assistance  - I am receiving the error, unable to find server and DNS setting in the Network

    I am trying to setup Microsoft office mail and need assistance  - I am receiving the error, unable to find server and DNS setting in the Network

    Which version of OSX and what email provider are you using.

  • In osx 10.8.2, how do I maintain two Bluetooth devices (mouse and head-set) connected at the same time?

    I want to use both a Bluetooth mouse and head-set at the same time, is that possible?

    Thank PapaSmurf (?)
    My problem was that in Sound settings was not indicated the Head-Set device, although existing, but BoomDevice, that greatly enhances the sound level. So what I had to do was first change from BoomDevice to the Head-Set, and then I changed down to Internal speaker and then again chose BoomDevice. That way, I could turn off the Head-Set without getting the error message, and yet maintain the internal speaker through the BoomDevice.
    I had a feeling that I had to do something with the sound settings and your reply made me experiment and succeed! Thanks once again!

  • I am running OS10.6.8 and have a mail box duplication. I use gmail and when I open my mail I have both the Apple Mail and another set of boxes for Gmail. Both get all mail and when I delete from one, it deletes from the other. How can I get rid of the dup

    I am running OS10.6.8 and have a mail box duplication. I use gmail and when I open my mail I have both the Apple Mail and another set of boxes for Gmail. Both get all mail and when I delete from one, it deletes from the other. How can I get rid of the dup

    Hi,
    According to your descriptioin, I don't think this is system problem, it should be Intel driver problem. It would be contact Intel to confirm this issue whether this is their driver problem.
    Roger Lu
    TechNet Community Support

  • How do I remove an unwanted toolbar?  I added a radio station to my ibook and it set up its own toolbar so when I go to Safari I have to use it.  It involves using Bing for everything as well.  It's very annoying and I want to remove it.

    How do I remove an unwanted toolbar?  I added a radio station to my ibook and it set up its own toolbar so when I go to Safari I have to use it.  It involves using Bing for everything as well.  It's very annoying and I want to remove it.  I can't just type in a URL and have it go to the site.  It takes me to all of Bing's choices.  Also, when it anticipates what I'm typing (incorrectly) and I have to delete it's guesses all the time.  Can anyone help?

    Have you looked at Safari's menu bar > view> toolbars to see if it can be unchecked from there,also see if there is a button to collapse the toolbar on the bar itself.

  • My iPad, Macbook and Apple TV are all set up with the same iCloud email address.  I bought the iPhone 6 and accidentally set the iCloud up with a different email.  My phone will not let me change the email address to be the same as my other devices,

    My iPad, Macbook and Apple TV are all set up with the same iCloud email address.  I bought the iPhone 6 and accidentally set the iCloud up with a different email.  My phone will not let me change the email address to be the same as my other devices, it tells me that email is already being used. How do I delete the iPhones iCloud account and reinstall it to match my other devices.

    Yes it will, just sign out, then sign back in with the correct address.
    Settings>iCloud>Sign Out.

  • I shared an ipod 5th generation with my ex partner and she set it up with her email and password. how can i change it for my password and email address so that i can wipe it and start again?

    i shared an ipod 5th gen with my ex partner and she set it up with her email and password. i have the ipod now but no password and would like to put it on my email and password so that i can wipe it clean and start again, any ideas?

    The iPod isn't tied to an Apple ID, but is likely tied to an iTunes library. If you want to set it up as a new iPod (as if you were just pulling it out of the box), restore it to factory settings in iTunes.
    Restoring iPod to factory settings
    B-rock

Maybe you are looking for