Interestingly, on my xenial system (now running 4.4.0-36):
bladernr@galactica:~$ ll /sys/bus/usb/drivers
total 0
drwxr-xr-x 2 root root 0 Sep  7 10:20 hub
drwxr-xr-x 2 root root 0 Sep  7 10:20 uas
drwxr-xr-x 2 root root 0 Sep  7 10:20 usb
drwxr-xr-x 2 root root 0 Sep  7 10:21 usbfs
drwxr-xr-x 2 root root 0 Sep  7 10:20 usbhid
drwxr-xr-x 2 root root 0 Sep  7 10:20 usb-storage
bladernr@galactica:~$ ll /sys/bus/usb/drivers/usbfs/
total 0
--w------- 1 root root 4096 Sep  7 10:21 bind
lrwxrwxrwx 1 root root    0 Sep  7 10:21 module -> ../../../../module/usbcore
-rw-r--r-- 1 root root 4096 Sep  7 10:21 new_id
-rw-r--r-- 1 root root 4096 Sep  7 10:21 remove_id
--w------- 1 root root 4096 Sep  7 10:21 uevent
--w------- 1 root root 4096 Sep  7 10:21 unbind

I looked at apcupsd.com and there is a newer version of the daemon and tools 
out:
https://sourceforge.net/projects/apcupsd/files/apcupsd%20-%20Stable/3.14.14/


and after compiling and installing them, they appear to work without this issue:
bladernr@galactica:~/development/apcupsd-3.14.14$ sudo /sbin/apctest


2016-09-07 10:41:19 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 ...
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:

So looks like the resolution here is to update apcupsd in Ubuntu to the
latest version

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1549576

Title:
  ERR=Bad file descriptor when running apctest

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apcupsd/+bug/1549576/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to