-

CommentStreams:B72153af153695d4351d84e9344d4b0b

From Geekworm Wiki
Jump to navigation Jump to search

I have no batteries yet...

and the shutdown/power off scripts are not working... also the hold button (safe shutdown / reboot) is not working. I bought two of these and neither works... So am I doing something wrong or without batteries the whole save shutdown/reboot does not work???

Also when i run dmesg

[ 71.742836] rtc-ds1307 1-0068: registered as rtc0 [ 71.742986] i2c i2c-1: new_device: Instantiated device ds1307 at 0x68 [ 72.512899] i2c i2c-1: Failed to register i2c client ds1307 at 0x68 (-16)

if I look in the syslog I get:

Jul 31 16:03:35 Wasp kernel: [ 71.742836] rtc-ds1307 1-0068: registered as rtc0 Jul 31 16:03:35 Wasp kernel: [ 71.742986] i2c i2c-1: new_device: Instantiated device ds1307 at 0x68 Jan 1 01:01:19 Wasp rc.local[783]: /etc/rc.local: 23: echo: echo: I/O error Jan 1 01:01:19 Wasp kernel: [ 72.512899] i2c i2c-1: Failed to register i2c client ds1307 at 0x68 (-16) Jan 1 01:01:19 Wasp systemd[1]: rc-local.service: Control process exited, code=exited, status=1/FAILURE Jan 1 01:01:19 Wasp systemd[1]: rc-local.service: Failed with result 'exit-code'. Jan 1 01:01:19 Wasp systemd[1]: Failed to start /etc/rc.local Compatibility.

It will not happen with the first reboot after running x720.sh, but all other reboots after it you get that error (raspberry pi buster & stretch tested)... not that the hwclock isn't working... also is this because there are not batteries?

Anyway I use domoticz for my home automation... here is my script to get the battery capacity into it...

https://github.com/Tristan79/x720_domoticz