On Wed, Aug 10, 2016 at 12:29 PM, <bmell...@gmail.com> wrote:

> Hello John,
>
> I've read through this thread and am very interested in solving this
> problem (with your help) and posting the solution if  successful. My goal
> is to switch to battery power without a shut down when AC power is removed.
> Currently, the kernel treats the removal of AC power as if the power button
> is pressed and a clean shut-down is issued. I'm using Mentorel's Beaglebone 
> uSomIQ
> v4 <http://www.mentorel.com/product/usomiq-bbb>  which is a ruggedized
> version of the BBB and have installed the 3.8.18-bone79 kernel and running
> Debian 11.
>
> Where can I find the code you posted that needs to be modified?
> Specifically:
>
> if (int_reg & TPS65217_INT_ACI) {
> /* Handle AC power status change */
> dev_dbg(tps->dev, "AC power status change\n");
> /* Press KEY_POWER when AC not present */
> input_report_key(tps->pwr_but, KEY_POWER,
> ~status_reg & TPS65217_STATUS_ACPWR);
> input_sync(tps->pwr_but);
> }
>

https://github.com/beagleboard/linux/tree/3.8

https://github.com/beagleboard/linux/blob/698027482f34f2559d648a2994df98b6a98873ab/drivers/mfd/tps65217.c#L169-L203

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

Reply via email to