primr
Posts: 40
Joined: Sun Sep 23, 2012 2:45 pm
Location: 105 Cherokee Dr Richboro PA USA
Contact: AOL

RTC support

Wed May 25, 2016 6:42 pm

How do I setup up RTC for the Raspberrypi?
I have the RTC module

Rich Prim

User avatar
Jednorozec
Posts: 809
Joined: Sun Nov 24, 2013 2:17 pm
Location: Deposit, NY

Re: RTC support

Wed May 25, 2016 6:55 pm

I hate it when all of the search engines are down.
http://www.raspberrypi-spy.co.uk/2015/0 ... pberry-pi/
The most important leg of a three legged stool is the one that's missing.
It's called thinking. Why don't you try it sometime?

gordon77
Posts: 5120
Joined: Sun Aug 05, 2012 3:12 pm

Re: RTC support

Wed May 25, 2016 7:16 pm

I think the above link will work for wheezy but not Jessie.

Here's what I did with my ds1307, l found it on this forum somewhere.

add dtoverlay=i2c-rtc,ds1307 to /boot/config.txt

in /lib/udev/hwclock-set put # in front of these lines
if [-e /run/systemd/system ]; then
exit
fi

and the 2 lines containing --systz

reboot your pi

set the clock with sudo date -s "9 jan 2016 09:12:00"
using the correct date and time
sudo hwclock -w
sudo hwclock -r

blaablaaguy
Posts: 623
Joined: Sun Sep 27, 2015 3:26 pm

Re: RTC support

Wed May 25, 2016 7:38 pm

primr wrote:How do I setup up RTC for the Raspberrypi?
I have the RTC module

Rich Prim
Model number?
This signature intentionally left blank.

primr
Posts: 40
Joined: Sun Sep 23, 2012 2:45 pm
Location: 105 Cherokee Dr Richboro PA USA
Contact: AOL

Re: RTC support

Wed May 25, 2016 8:09 pm

Thank you, I will try your procedure.

Rich Prim

geoffr
Posts: 89
Joined: Wed Aug 22, 2012 11:25 am
Location: Melbourne, VIC

Re: RTC support

Wed May 25, 2016 9:50 pm

There was a recent post where someone had put together a service using systemd:

viewtopic.php?f=63&t=147450&p=970370&hi ... ub#p970370

I haven't looked at this one yet, but it certainly looks worth a glance.

DirkS
Posts: 10388
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: RTC support

Thu May 26, 2016 1:54 am

geoffr wrote:There was a recent post where someone had put together a service using systemd:

viewtopic.php?f=63&t=147450&p=970370&hi ... ub#p970370

I haven't looked at this one yet, but it certainly looks worth a glance.
It really adds nothing. Or I should say: it adds too much.
Make sure you read all the comments.

Return to “General discussion”