Re: Hibernation reboot loop

2018-08-06 Thread Oliver Jan Krylow
Probably an oversight. You could probably make a fairly simple diff to do what you wanted though. Looks like apmd.c:147 has code to extract out the ac state. You could duplicate that below, in the for (;;) loop body in main - get ac state before determining if 'autoaction' should actually call s

Re: Hibernation reboot loop

2018-07-29 Thread Mike Larkin
On Sat, Jul 28, 2018 at 08:30:36PM +0200, Oliver Jan Krylow wrote: > Hello List! > > I have apmd configured with flags "-A -Z10 -t60" on a Thinkpad x230. > > When the machine hits <10% battery it hibernates (as it should). > I then attach the AC and boot up again. > The bsd.booted kernel boots up