Page 1 of 1

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

Posted: Sat Nov 23, 2024 1:35 am
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


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

Posted: Sat Nov 23, 2024 7:53 am
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.


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

Posted: Sat Nov 23, 2024 4:23 pm
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.


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

Posted: Sun Nov 24, 2024 3:06 am
by superchook

Thanks for the above posts. I have not been able to get the OS to show the correct time yet because I have not been able to get a terminal with administration privileges.
I plan to spend some time using the USB as is forgetting about the displayed time for now. I am only playing with Vanilla Dpup to see what it has to offer.
I will stick with my current OS for day to day use.

cheers,
Ken