Version von Set Hardware Clock vom Fr, 10/20/2023 - 15:40

Durch die Versionierung lassen sich die Unterschiede zwischen verschiedenen Versionen eines Beitrags verfolgen.

This wiki shows how to set the Hardware Clock via Command-Line. On systems with Libreboot the CMOS config is hardcoded. However, it is possible to set the Hardware Clock with the utility hwclock easily and without the need to reboot.

hwclock is a tool for accessing the Hardware Clock. You can display the current time, set the Hardware Clock to a specified time, set the Hardware Clock to the System Time, and set the System Time from the Hardware Clock. This Wiki covers only two functions of hwclock, how to set the Hardware Clock to the current System Time and display the current time.

Set the System Time

Before using hwclock, make sure you set the right system time with 'timedatectl'. Open a terminal and run:

 timedatectl set-time "2012-10-30 18:17:16"
The time may be specified in this format: "YEAR-MONTH-DAY HOUR-MINUTE-SECOND"

The show the results, run:

 timedatectl

Write System Time to Hardware Clock

Run the following command to set the Hardware Clock to the current System Time:

 sudo hwclock -w
To see the results, run:
 sudo hwclock -r
That's all. You can now reboot your Computer and the hwclock shows the correct time.

Versionen

10/20/2023 - 15:40
knife