Skip to content

Instantly share code, notes, and snippets.

@chilyashev
Forked from Thermionix/gist:2715786
Created September 28, 2023 06:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chilyashev/7215af24601f619f3ef6b1b2e6265951 to your computer and use it in GitHub Desktop.
Save chilyashev/7215af24601f619f3ef6b1b2e6265951 to your computer and use it in GitHub Desktop.
APC SC1000 UPS apcupsd usb serial adapter configuration
# use lsusb to find the details of the serial adapter to create a udev rule
~$ lsusb | grep Serial
Bus 003 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
# based on the output from lsusb add a rule to /etc/udev/rules.d/local.rules
~$ cat /etc/udev/rules.d/local.rules
#Bus 004 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port"
ENV{ID_BUS}=="usb", ENV{ID_VENDOR_ID}=="067b", ENV{ID_MODEL_ID}=="2303", SYMLINK+="apc-usb"
##########
# set /etc/apcupsd.conf to use the new device
~$ head /etc/apcupsd.conf
UPSCABLE smart
UPSTYPE apcsmart
DEVICE /dev/apc-usb
##########
# After a reboot check the status of the UPS using
~$ sudo apcaccess status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment