Re: ampd(8) -Z option

2019-08-11 Thread Walter Alejandro Iglesias
Jan Stary wrote: > Eventualy it does suspend, but much later than > when the battery life goes below the specified value. Doing more testing I noticed the same. For example, with these options: # apmd -d -t 60 -z It took *5* minutes to suspend the machine. In my first tests I passed bigger

Re: ampd(8) -Z option

2019-08-09 Thread Jan Stary
On Aug 04 17:33:41, w...@roquesor.com wrote: > Now I gave a try to the apmd(8) -Z option but, so far, I couldn't make > it work in a reliable way. I added to rc.conf.local: > > apmd_flags="-A -Z 20" > > But, after doing some tests, sometimes it works, other it seems like > it's totally

Re: ampd(8) -Z option

2019-08-04 Thread Edgar Pettijohn
On Aug 4, 2019 12:10 PM, Walter Alejandro Iglesias wrote: > > Hi Edgar, > > On Sun, Aug 04, 2019 at 11:43:19AM -0500, Edgar Pettijohn wrote: > > On Sun, Aug 04, 2019 at 05:33:41PM +0200, Walter Alejandro Iglesias wrote: > > > Hello, > > > > > > Since years I've been using a shell script of

Re: ampd(8) -Z option

2019-08-04 Thread Walter Alejandro Iglesias
Hi Edgar, On Sun, Aug 04, 2019 at 11:43:19AM -0500, Edgar Pettijohn wrote: > On Sun, Aug 04, 2019 at 05:33:41PM +0200, Walter Alejandro Iglesias wrote: > > Hello, > > > > Since years I've been using a shell script of mine to shutdown my laptop > > when battery is critical. Convenient because I

Re: ampd(8) -Z option

2019-08-04 Thread Bryan Wright
I’ve also wrestled with this same issue and am eager to hear the responses. I did have much better results after adding -t 60 to my flags. I suspect my not exactly new x220’s battery was going from my given percentage to zero in less time than the default polling time of 10mins. I’m

Re: ampd(8) -Z option

2019-08-04 Thread Edgar Pettijohn
On Sun, Aug 04, 2019 at 05:33:41PM +0200, Walter Alejandro Iglesias wrote: > Hello, > > Since years I've been using a shell script of mine to shutdown my laptop > when battery is critical. Convenient because I made it portable among > unix-like systems. In the case of OpenBSD the script asks

ampd(8) -Z option

2019-08-04 Thread Walter Alejandro Iglesias
Hello, Since years I've been using a shell script of mine to shutdown my laptop when battery is critical. Convenient because I made it portable among unix-like systems. In the case of OpenBSD the script asks battery and AC status to apm(4). Now I gave a try to the apmd(8) -Z option but, so