On 2019-04-14 02:28 PM, James Knott wrote:
Done that. When I run apctest, with apcupsd stopped and monitor stopped, I get:
2019-04-14 16:27:32 apctest 3.14.14 (31 May 2016) suse Checking configuration ... sharenet.type = Network & ShareUPS Disabled cable.type = Custom Cable Smart mode.type = APC Smart UPS (any) apctest FATAL ERROR in apctest.c at line 313 Unable to create UPS lock file. If apcupsd or apctest is already running, please stop it and run this program again. apctest error termination completed I have only ever seen that with apcupsd already running; fire up htop to check this, and if it is, kill it and try running apctest again. (NOTE: I tried stopping my running instance in YaST, and for some reason that didn't work -- just gave me "will stop" instead of "active". The daemon was still running.) Your output should look like this:
~ # apctest 2019-04-14 14:46:29 apctest 3.14.14 (31 May 2016) suse Checking configuration ... sharenet.type = Network & ShareUPS Disabled cable.type = USB Cable mode.type = USB UPS Driver Setting up the port ... Doing prep_device() ... You are using a USB cable type, so I'm entering USB test mode Hello, this is the apcupsd Cable Test program. This part of apctest is for testing USB UPSes. Getting UPS capabilities...SUCCESS Please select the function you want to perform. 1) Test kill UPS power 2) Perform self-test 3) Read last self-test result 4) View/Change battery date 5) View manufacturing date 6) View/Change alarm behavior 7) View/Change sensitivity 8) View/Change low transfer voltage 9) View/Change high transfer voltage 10) Perform battery calibration 11) Test alarm 12) View/Change self-test interval Q) Quit Select function number: -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org