[beagleboard] RE: how can we tell system to shutdown on a power fail, using systemd and apcid

2018-02-26 Thread evilwulfie
seems they omitted the "AC" interrupt in the patch

https://patchwork.kernel.org/patch/9782813/

therefore the system will not power down on power fail like it used to













-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/2213774c-f903-8720-deb6-2c1c437f9d91%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] RE: how can we tell system to shutdown on a power fail, using systemd and apcid

2018-02-25 Thread evilwulfie
uname -r
4.4.12-ti-r31

ls /sys/firmware/devicetree/base/ocp/i2c@44e0b000/tps@24/

compatible  interrupt-parent  interrupts  linux,phandle  name  phandle
reg  regulators  ti,pmic-shutdown-controller



uname -r
4.14.20-ti-r36
ls /sys/firmware/devicetree/base/ocp/i2c@44e0b000/tps@24/

charger  compatible  #interrupt-cells  interrupt-controller
interrupt-parent  interrupts  name  phandle  pwrbutton  reg  regulators
ti,pmic-shutdown-controller

seems they added "charger" and "pwrbutton" directorys


 more
/sys/firmware/devicetree/base/ocp/i2c@44e0b000/tps@24/charger/interrupt-names
USB


No "AC" ?
It seems that "AC" has been left out so we cannot get a power fail response?

Will do more testing tomorrow powering off USB using battery backup to
see if the BBG shuts down.

Sure be nice to know







-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/57b12f7f-e5d4-594e-3a8e-9301d5bee2b8%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] RE: how can we tell system to shutdown on a power fail, using systemd and apcid

2018-02-25 Thread evilwulfie

I think i see something interesting
they did some changes to the dt for the pmic
https://patchwork.kernel.org/patch/9771235/
some of the comments deal with interrupts
seems the one that is missing or not handled is "AC"
or something needs to be written to handle "AC" now
I read something about breaking out the power button interrupt
in some other verbage today
as with the old kernel PB and AC fail did the same thing
but to get AC fail to trigger a power off you needed apcid
or at least it did not shut down till you installed acpid

This is deeply buried in kernel land. might need to monitor
a PG signal from the power supply and act on it with APCID
till this is resolved

At least if you do that you can set an interrupt with a powerfail gpio
and write an APCID handler












-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/6e4248fd-a87d-d38e-fed6-340d5a8ef4b9%40gmail.com.
For more options, visit https://groups.google.com/d/optout.