My solution was easier i thought.

Uninstall acpid
william@beaglebone:~$ cat /proc/interrupts
           CPU0
 . . .
197:          1      INTC   7 Level     tps65217
. . .

Then when a battery is connected to the board through the 4 test points,
and the board loses DC input, or the power button is cycles this file:

william@beaglebone:~$ cat /proc/irq/197/spurious
count 0
unhandled 0
last_unhandled 0 ms

count will increment.

However I've not yet tested this on a 3.8.x kernel. But at one point I did
have this working on a 4.x image. I have not tested recently however(
within the last few months ). At least one caveat that I can think of off
hand however. The irq number changes from system to system. So additional
string parsing would have to be done to find the actual file
programmatically. But not impossible.

On Wed, Aug 10, 2016 at 1:39 PM, Robert Nelson <robertcnel...@gmail.com>
wrote:

> On Wed, Aug 10, 2016 at 3:34 PM, Bolek Mellerowicz <bmell...@gmail.com>
> wrote:
> > Hi Robert,
> >
> > Thank you for the links. I think I may need a bit of guidance:
> >
> > 1) Since I was not able to locate the tps65217.c file on my BBB
> > (3.8.13-bone79), am I supposed to modify the code in the second link you
> > provided and then compile and deploy the driver on to my existing kernel?
> >
> > 2) Will I need to build and download a new kernel using your first link?
> If
> > so, would I lose my own files and third party libraries that are
> currently
> > on my existing kernel?
> >
> > Btw, I found this pdf explaining how to build the kernel and how to
> build &
> > deploy drivers.
>
> Correct, it's a "built-in" kernel module, so if you want to modify it,
> you'll have to rebuild the kernel..
>
> Regards,
>
> --
> Robert Nelson
> https://rcn-ee.com/
>
> --
> 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/CAOCHtYheMTtCe4Hc4iEOu_49%3DHKsEGM1ROg2P5p0bMqtB80C8Q%
> 40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CALHSORreFoAkLPyWO-nMYQWGRLPNRSxUPSi%3DadRMqytFTr4_3A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to