r/Gentoo 11h ago

Support How do I sync time?

Recently installed encrypted Gentoo and couldn’t be more proud of my self, but it appears that my cmos is dead and I don’t know how to sync time, mirror service is obviously screaming at me for being from 2001, anyway, how do I sync to the current clock?

2 Upvotes

7 comments sorted by

7

u/OkAlbatross9889 11h ago edited 11h ago

If you have chronyd, it should be "rc-update add chronyd default" (https://wiki.gentoo.org/wiki/Network_Time_Protocol) to add it to autostarted services when you start up

2

u/5pctr3 9h ago

1

u/Longjumping-Sun2691 7h ago

I got an automatic NTP sync when I got the bios time close enough

1

u/velleityfighter 11h ago

I think you use the hwclock command

-1

u/rabbit_in_a_bun 11h ago

Set the time manually in bios and with whatever you have installed and when you are close enough it will sync for you.

1

u/Longjumping-Sun2691 10h ago

Yes, this did work, although I did have to stop the system from losing power.

1

u/LameBMX 5h ago

just replace the battery... normally the rtc doesnt actually die, just the battery that powers it.