Форум русскоязычного сообщества Ubuntu


Хотите сделать посильный вклад в развитие Ubuntu и русскоязычного сообщества?
Помогите нам с документацией!

Автор Тема: Обновление времени в БИОСе  (Прочитано 1172 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн girolamo.savonarola

  • Автор темы
  • Новичок
  • *
  • Сообщений: 17
    • Просмотр профиля
Обновление времени в БИОСе
« : 02 Августа 2008, 15:42:00 »
Здравствуйте. У меня в Линуксе правильное время (свереннное по NTP), а в БИОСе - нет. Можно ли как-нибудь обновить время из консоли?

Оффлайн girolamo.savonarola

  • Автор темы
  • Новичок
  • *
  • Сообщений: 17
    • Просмотр профиля
Re: Обновление времени в БИОСе
« Ответ #1 : 03 Августа 2008, 10:15:51 »
Забугорные товарищи подсказали:
hwclock --systohcили
hwclock -wМожет еще кому пригодится...

Оффлайн vitorg

  • Участник
  • *
  • Сообщений: 165
    • Просмотр профиля
Re: Обновление времени в БИОСе
« Ответ #2 : 03 Августа 2008, 13:27:35 »
Рекомендую внимательно почитать man:
Цитировать
Automatic Hardware Clock Synchronization By the Kernel
       You should be aware of another way that the Hardware Clock is kept synchronized in some systems.  The Linux kernel has a mode wherein it copies the System  Time
       to  the  Hardware Clock every 11 minutes.  This is a good mode to use when you are using something sophisticated like ntp to keep your System Time synchronized.
       (ntp is a way to keep your System Time synchronized either to a time server somewhere on the network or to a radio clock hooked up  to  your  system.   See  RFC
       1305).

       This mode (we’ll call it "11 minute mode") is off until something turns it on.  The ntp daemon xntpd is one thing that turns it on.  You can turn it off by run‐
       ning anything, including hwclock --hctosys, that sets the System Time the old fashioned way.

       To see if it is on or off, use the command adjtimex --print and look at the value of "status".  If the "64" bit of this number (expressed in binary) equal to 0,
       11 minute mode is on.  Otherwise, it is off.

       If  your  system  runs  with  11  minute  mode on, don’t use hwclock --adjust or hwclock --hctosys.  You’ll just make a mess.  It is acceptable to use a hwclock
       --hctosys at startup time to get a reasonable System Time until your system is able to set the System Time from the external source and start 11 minute mode.

Вкратце, говорится о том, что обычно если включена синхронизация с ntp-серверами, то каждые 11 минут системное время и так записывается в аппаратные часы.
Ноутбук Panasonic CF-Y7 + Ubuntu 9.04

 

Страница сгенерирована за 0.021 секунд. Запросов: 19.