Thread: upd0 disappears
View Single Post
  #1   (View Single Post)  
Old 15th June 2018
beavers beavers is offline
Shell Scout
 
Join Date: Nov 2017
Posts: 85
Default upd0 disappears

I'm trying to configure sensorsd(8) to shutdown when my UPS loses power, but I'm having trouble with upd(4). Initially upd0 was disappearing at random, but that was resolved by enabling the "legacy USB" setting in the BIOS.

However, now upd0 disappears when I pull the UPS's power cable to simulate an outage, and it doesn't come back when AC is restored. Is there something I can do to re-detect the ups? (besides rebooting...)

$ dmesg | grep -B 2 upd
Code:
uhidev0 at uhub1 port 2 configuration 1 interface 0 "CPS LX1500GU" rev 2.00/2.00 addr 2
uhidev0: iclass 3/0, 28 report ids
upd0 at uhidev0
$ sysctl -a | grep upd
Code:
hw.sensors.upd0.indicator0=Off (Charging), OK
hw.sensors.upd0.indicator1=Off (Discharging), OK
hw.sensors.upd0.indicator2=On (ACPresent), OK
hw.sensors.upd0.indicator3=Off (Overload), OK
hw.sensors.upd0.percent0=100.00% (RemainingCapacity), OK
hw.sensors.upd0.percent1=100.00% (FullChargeCapacity), OK
hw.sensors.upd0.timedelta0=4950.000000 secs (RunTimeToEmpty), OK
Reply With Quote