[Apcupsd-users] Not sure which device to use
Brought to you by:
adk0212
|
From: John O. <jn...@gm...> - 2026-01-23 22:25:19
|
I just installed apcupsd on my Ubunty 24.04.3 laptop. apcaccess returns
results. If I stop apcupsd and run apctest, I get
2026-01-23 15:00:57 apctest 3.14.14 (31 May 2016) debian
Checking configuration ...
sharenet.type = Network & ShareUPS Disabled
cable.type = USB Cable
mode.type = USB UPS Driver
Setting up the port ...
apctest FATAL ERROR in apctest.c at line 319
Unable to open UPS device.
If apcupsd or apctest is already running,
please stop it and run this program again.
apctest error termination completed
dmesg says:
[109090.765376] usb 3-3.4.3: new full-speed USB device number 14 using
xhci_hcd
[109090.904893] usb 3-3.4.3: New USB device found, idVendor=051d,
idProduct=0002, bcdDevice= 0.90
[109090.904905] usb 3-3.4.3: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[109090.904909] usb 3-3.4.3: Product: Back-UPS XS 1500M FW:947.d10 .D USB
FW:d10
[109090.904913] usb 3-3.4.3: Manufacturer: American Power Conversion
[109090.904915] usb 3-3.4.3: SerialNumber: 3B2037X70339
[109090.913843] hid-generic 0003:051D:0002.0008: hiddev1,hidraw3: USB HID
v1.00 Device [American Power Conversion Back-UPS XS 1500M FW:947.d10 .D USB
FW:d10 ] on usb-0000:00:14.0-3.4.3/input0
It appears in lsusb:
Bus 003 Device 014: ID 051d:0002 American Power Conversion Uninterruptible
Power Supply
And when apcupsd is running, after a minute communication is lost:
root@magpie:~# systemctl status apcupsd
● apcupsd.service - UPS power management daemon
Loaded: loaded (/usr/lib/systemd/system/apcupsd.service; enabled;
preset: enabled)
Active: active (running) since Fri 2026-01-23 15:14:04 MST; 1min 28s
ago
Docs: man:apcupsd(8)
Process: 365824 ExecStartPre=/lib/apcupsd/prestart (code=exited,
status=0/SUCCESS)
Process: 365828 ExecStart=/sbin/apcupsd (code=exited, status=0/SUCCESS)
Main PID: 365830 (apcupsd)
Tasks: 4 (limit: 18567)
Memory: 488.0K (peak: 2.3M)
CPU: 56ms
CGroup: /system.slice/apcupsd.service
└─365830 /sbin/apcupsd
Jan 23 15:14:04 magpie systemd[1]: Starting apcupsd.service - UPS power
management daemon...
Jan 23 15:14:04 magpie systemd[1]: apcupsd.service: Can't open PID file
/run/apcupsd.pid (yet?) >
Jan 23 15:14:04 magpie apcupsd[365830]: apcupsd 3.14.14 (31 May 2016)
debian startup succeeded
Jan 23 15:14:04 magpie apcupsd[365830]: NIS server startup succeeded
Jan 23 15:14:04 magpie systemd[1]: Started apcupsd.service - UPS power
management daemon.
Jan 23 15:15:16 magpie apcupsd[365830]: Communications with UPS lost.
root@magpie:~# ls -lZ /var/run/apcupsd.pid
-rw-r--r-- 1 root root ? 7 Jan 23 15:14 /var/run/apcupsd.pid
There are no recent denials in auditd.log, nor in /var/log/syslog
How do I tell what TTY it wants?
|