How to change Vanilla Dpup to accept a UTC hardware clock?

Moderators: dimkr, Forum moderators

Post Reply
superchook
Posts: 49
Joined: Mon Dec 23, 2019 9:57 pm
Location: Sydney, Australia
Has thanked: 15 times
Been thanked: 3 times

How to change Vanilla Dpup to accept a UTC hardware clock?

Post by superchook »

This may have been covered before but I could not see it.
What I have done so far.
1) Downloaded vanilladpup-11.0.199-labwc-uefi.img.gz to this computer which is running Fatdog64-903 and has its hardware clock set to UTC.
2) Extracted vanilladpup-11.0.199-labwc-uefi.img and dd it to an 8 GB USB stick using the command
dd if=Ken/Puppy/vanilladpup/vanilladpup-11.0.199-labwc-uefi.img of=/dev/sdb
3) Rebooted the computer using F12 to get a screen offering several boot choices from different devices and using either BIOS or uefi.
4) Selected the USB stick created above and uefi booting.
The system boots to clean desktop with some icons at the top.
The time (in the correct UTC) is displayed in the bottom right corner.
Clicking either the bottom left corner or right clicking anywhere on the desktop shows a menu and you can navigate to setup. There is a way to set up your timezone and also your locale but I have not been able to find a way to let the system know that the hardware clock is running UTC.
I found a terminal using one of the icons at the top of the screen and tried hwclock -u but received an error message that hwclock could not be found. Is there another command that I should use?

cheers,
Ken

dimkr
Posts: 2425
Joined: Wed Dec 30, 2020 6:14 pm
Has thanked: 53 times
Been thanked: 1202 times

Re: How to change Vanilla Dpup to accept a UTC hardware clock?

Post by dimkr »

You can add -u to this line in /etc/rc.d/rc.sysinit.

connman sets the clock using NTP when you go online, so you don't really need to do this: the init script synchronizes the software clock against the hardware clock (assuming local time) only for the clock to show the correct time (for most users) until internet connectivity is established. In addition, it doesn't alter the hardware clock on NTP synchronization, to prevent conflicts with other operating systems on the same computer, which may use a mix of UTC and local time.

d-pupp
Posts: 339
Joined: Tue Nov 22, 2022 9:11 pm
Location: Canada
Has thanked: 192 times
Been thanked: 52 times

Re: How to change Vanilla Dpup to accept a UTC hardware clock?

Post by d-pupp »

@superchook

You can still access the hwclock from busybox as the root user.
Open spacefm Open a root terminal type the password

Code: Select all

busybox hwclock

This is how I check the time on the hardware clock. I had a dead battery and every time I shut it off it went back to 2009.

Post Reply

Return to “Vanilla Dpup”