"I'd thought you'd never ask" (C) Can you give this walkthrough a shot? https://github.com/networkupstools/nut/wiki/Building-NUT-for-in%E2%80%90place-upgrades-or-non%E2%80%90disruptive-tests Jim On Mon, Apr 24, 2023 at 8:00?PM gene heskett <gheskett at shentel.net> wrote:> On 4/24/23 13:12, Greg Troxel wrote: > > gene heskett <gheskett at shentel.net> writes: > > > >> Jim, would an upgrade to the install on my rpi4b running a medium > >> sized 80+ yo lathe give me better control over a: > >> device.mfr: CPS > >> device.model: CP625HGa > >> device.type: ups > >> driver.name: usbhid-ups > >> driver.parameter.offdelay: 120 > >> where that offdelay seems hard coded. The 625WA rating could run that > >> pi for t least an hour, but it chops it off in 2 minutes. > >> currently running 2.7.4 on raspios buster. > > > > I think nut only works with lathes made after 1969 :-) > > > > But seriously, a lot has been fixed/added since 2.7.4. > > nut-2.7.4 on the pi looks like it must have been from a gzip, so its not > precious. > > So how about the rest of a git clone commandline for the latest? My pi > can build it and keep it up to date then as it has a complete build > system on it, builds its own pre-emt-realtime kernels AND linuxcnc. > > > > As I understand it, offdelay is about the time delta from telling the > > ups to shut down until it kills power, so the OS can sync disks. I have > > a 90s UPS with a 10s delay and nut does not try to shut down until I get > > a lowbattery indication, so I get 30 minutes of runtime with graceful > > stop, vs maybe 40-something without nut to empty/hard-off. > > > > Is your UPS shutting down without nut telling it to? > > . > > Cheers, Gene Heskett. > -- > "There are four boxes to be used in defense of liberty: > soap, ballot, jury, and ammo. Please use in that order." > -Ed Howdershelt (Author, 1940) > If we desire respect for the law, we must first make the law respectable. > - Louis D. Brandeis > Genes Web page <http://geneslinuxbox.net:6309/> > > > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser at alioth-lists.debian.net > https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20230424/1b58cf7f/attachment.htm>
On 4/24/23 14:05, Jim Klimov wrote:> "I'd thought you'd never ask" (C) >Well, since the Kohler starts in about 5 seconds, this is just keeping me out of the bars. :o)>> Can you give this walkthrough a shot? > https://github.com/networkupstools/nut/wiki/Building-NUT-for-in%E2%80%90place-upgrades-or-non%E2%80%90disruptive-tests >In progress Jim. Back later with results.> Jim > > On Mon, Apr 24, 2023 at 8:00?PM gene heskett <gheskett at shentel.net> wrote: > >> On 4/24/23 13:12, Greg Troxel wrote: >>> gene heskett <gheskett at shentel.net> writes: >>> >>>> Jim, would an upgrade to the install on my rpi4b running a medium >>>> sized 80+ yo lathe give me better control over a: >>>> device.mfr: CPS >>>> device.model: CP625HGa >>>> device.type: ups >>>> driver.name: usbhid-ups >>>> driver.parameter.offdelay: 120 >>>> where that offdelay seems hard coded. The 625WA rating could run that >>>> pi for t least an hour, but it chops it off in 2 minutes. >>>> currently running 2.7.4 on raspios buster. >>> >>> I think nut only works with lathes made after 1969 :-) >>> >>> But seriously, a lot has been fixed/added since 2.7.4. >> >> nut-2.7.4 on the pi looks like it must have been from a gzip, so its not >> precious. >> >> So how about the rest of a git clone commandline for the latest? My pi >> can build it and keep it up to date then as it has a complete build >> system on it, builds its own pre-emt-realtime kernels AND linuxcnc. >>> >>> As I understand it, offdelay is about the time delta from telling the >>> ups to shut down until it kills power, so the OS can sync disks. I have >>> a 90s UPS with a 10s delay and nut does not try to shut down until I get >>> a lowbattery indication, so I get 30 minutes of runtime with graceful >>> stop, vs maybe 40-something without nut to empty/hard-off. >>> >>> Is your UPS shutting down without nut telling it to? >>> . >> >> Cheers, Gene Heskett. >> -- >> "There are four boxes to be used in defense of liberty: >> soap, ballot, jury, and ammo. Please use in that order." >> -Ed Howdershelt (Author, 1940) >> If we desire respect for the law, we must first make the law respectable. >> - Louis D. Brandeis >> Genes Web page <http://geneslinuxbox.net:6309/> >> >> >> _______________________________________________ >> Nut-upsuser mailing list >> Nut-upsuser at alioth-lists.debian.net >> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser >> >Cheers, Gene Heskett. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/>
On 4/24/23 14:05, Jim Klimov wrote:> "I'd thought you'd never ask" (C) > > Can you give this walkthrough a shot? > https://github.com/networkupstools/nut/wiki/Building-NUT-for-in%E2%80%90place-upgrades-or-non%E2%80%90disruptive-tests > > Jim >I used this section of that link to build the new one: This goes similar to usual build and install from Git: :; cd /tmp :; git clone https://github.com/networkupstools/nut :; cd nut :; ./autogen.sh :; ./configure --enable-inplace-runtime # --maybe-some-other-options :; make -j 4 all && make -j 4 check && sudo make install configure was very noisy but no show-stoppers Stopped it all before the install, and had to sudo systemctl reload-daemons and now on restart, get pi at rpi4:/media/pi/workspace/nut $ sudo /etc/init.d/nut-server start [ ok ] Starting nut-server (via systemctl): nut-server.service. pi at rpi4:/media/pi/workspace/nut $ sudo /etc/init.d/nut-client start [ ok ] Starting nut-client (via systemctl): nut-client.service. pi at rpi4:/media/pi/workspace/nut $ sudo /etc/init.d/ups-monitor start pi at rpi4:/media/pi/workspace/nut $ upsc myups Error: Connection failure: Connection refused I did a sudo cp -R /etc/nut to /etc/nut-bak so I've got all the old config I hope. Whats next? And thanks Jim. take care & stay well. [...] Cheers, Gene Heskett. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/>