Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Needless routines on Rpi (RTC, TZ) #71

Closed
jvonau opened this issue Jun 28, 2017 · 9 comments
Closed

Needless routines on Rpi (RTC, TZ) #71

jvonau opened this issue Jun 28, 2017 · 9 comments

Comments

@jvonau
Copy link
Contributor

jvonau commented Jun 28, 2017

In 92-rtc-i2c.rules the program being called is hwclock which is part of the util-linux package. The chrony and ntp packages are intended to be server packages but function as clients also(1). Both, more or less, do the same thing but are mutually exclusive to each other as servers. The ntpdate package is a client only package but you have to add ntp-pool files, while systemd provides timedatectl which uses chrony under the hood.(2) I'll bet timedatectl is already present in raspbian and other distros but requires configuring before timedatectl will work correctly.

Record rtc time in UTC: timedatectl set-local-rtc 0 This sets the third line of /etc/adjtime to UTC
Set the local timezone: timedatectl set-timezone 'local TZ' This sets up /etc/localtime to be a symlink to /usr/share/zoneinfo/'local TZ' Need if /etc/localtime does not exist.
Enable updating upon reboot: systemctl enable systemd-timedated
For immediate updating: systemctl start systemd-timedated

  1. https://chrony.tuxfamily.org/comparison.html
  2. https://manpages.debian.org/jessie/systemd/timedatectl.1.en.html
@jvonau
Copy link
Contributor Author

jvonau commented Jul 2, 2017

iiab_TZ can set the timezone in roles/2-common/tasks/main.yml

@holta
Copy link
Member

holta commented Aug 27, 2017

@jvonau @tim-moody is this issue coming together for IIAB 6.4 in coming weeks?

(FWIW budget-sensitive a.k.a. poor folks are using RTC's less and less, on the RPi Zero hardware especially...not that we want to abandon support for RTC's of course...even if their use is very rare)

@jvonau
Copy link
Contributor Author

jvonau commented Aug 27, 2017

I'm loosing interest in fix the mess.

@holta
Copy link
Member

holta commented Aug 27, 2017

I'm loosing interest in fix the mess.

I hear you!

@tim-moody & @georgejhunt please close and/or advise next steps.

@jvonau jvonau closed this as completed Sep 5, 2017
@jvonau jvonau reopened this Sep 22, 2017
@jvonau
Copy link
Contributor Author

jvonau commented Sep 22, 2017

Original idea #116 Speed up in console and runtags
#271 #279 closed replaced by #303 part of #267

@tim-moody
Copy link
Contributor

which PR has the change to 92-rtc-i2c.rules?

@holta holta added this to the 6.5 milestone Sep 22, 2017
@jvonau
Copy link
Contributor Author

jvonau commented Sep 22, 2017

@tim-moody None yet, needs discussion but there are 2 stanza that do the same thing for 92-rtc-i2c.rules

@holta holta changed the title Needless routines on Rpi Needless routines on Rpi (RTC, TZ) Oct 3, 2017
@holta
Copy link
Member

holta commented Oct 25, 2017

I'll defer this to our IIAB 6.6 Milestone, if there are no objections?

(Or does someone want to close / resolve / put this to rest for IIAB 6.5, as Feature Freeze approaches in 5 days?)

@holta holta modified the milestones: 6.5-OctNov, 6.6-DecJan Oct 25, 2017
holta added a commit that referenced this issue Apr 5, 2018
@holta
Copy link
Member

holta commented Jul 18, 2018

@jvonau am moving this to our IIAB 6.7 milestone, assuming it cannot happen of IIAB 6.6's July 31 target.

Or worst case, should this be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants