SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to install a Mustek PowerMust 1060 UPS in Slackware without success. It have a USB port to control it but I don't what port it is.
Until now I did this:
Code:
$lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 005: ID 1058:1010 Western Digital Technologies, Inc.
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 005: ID 0665:5161 Cypress Semiconductor USB to Serial
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 002: ID 046d:c061 Logitech, Inc. RX1500 Laser Mouse
Code:
$dmesg | grep usb
usb 7-1: new low speed USB device using uhci_hcd and address 5
usb 7-1: New USB device found, idVendor=0665, idProduct=5161
usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 7-1: Product: USB to Serial
usb 7-1: Manufacturer: Cypress Semiconductor
generic-usb 0003:0665:5161.0005: hiddev96,hidraw1: USB HID v1.00 Device [Cypress Semiconductor USB to Serial] on usb-0000:00:1d.1-1/input0
I'm trying configure NUT without success because I don't know the port and the driver too.
I already tried the UPS software to linux. It is a .bin file and give me error on install. I think it is because don't support Slackware or it is a 32 bits software.
Looks like the UPS uses a USB->Serial chip. The device name will probably be /dev/ttyUSB0.
I don't have much experience configuring NUT, but try the megatec driver. If you need more information, take a look at the NUT website. There seems to be a lot of information there. http://www.networkupstools.org/doc/
[mustek]
driver = blazer_usb
port = auto
desc = "Mustek Yukai Power Plus 1060"
The result is
Code:
$sh /etc/rc.d/rc.ups start
Network UPS Tools - UPS driver controller 2.4.3
Network UPS Tools - Megatec/Q1 protocol USB driver 0.03 (2.4.3)
libusb couldn't open USB device /dev/bus/usb/001/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/002/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/002/002: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/003/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/004/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/005/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/006/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/007/001: Permission denied.
libusb requires write access to USB device nodes.
Supported UPS detected with mustek protocol
Vendor information unavailable
Battery runtime will not be calculated (runtimecal not set)
Network UPS Tools upsd 2.4.3
stat /etc/nut/upsd.conf: No such file or directory
After reading lots of howtos and README of NUT...etc.. I have this in /etc/udev/rules.d/99-usb-ups.rules
Code:
# This file is generated and installed by the Network UPS Tools package.
ACTION!="add", GOTO="nut-usbups_rules_end"
SUBSYSTEM=="usb_device", GOTO="nut-usbups_rules_real"
SUBSYSTEM=="usb", GOTO="nut-usbups_rules_real"
BUS!="usb", GOTO="nut-usbups_rules_end"
LABEL="nut-usbups_rules_real"
# Mustek Powermust - blazer_usb
ATTR{idVendor}=="0665", ATTR{idProduct}=="5161", MODE="664", GROUP="@RUN_AS_GROUP@"
LABEL="nut-usbups_rules_end"
And this on /etc/nut/ups.conf
Code:
[mustek]
driver = blazer_usb
port = auto
desc = "Mustek Yukai Power Plus 1060"
Finally I get this
Code:
# sh /etc/rc.d/rc.ups start
Network UPS Tools - UPS driver controller 2.4.3
Network UPS Tools - Megatec/Q1 protocol USB driver 0.03 (2.4.3)
libusb couldn't open USB device /dev/bus/usb/001/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/002/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/002/002: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/003/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/004/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/005/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/006/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/007/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/007/002: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/008/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/008/002: Permission denied.
libusb requires write access to USB device nodes.
No supported devices found. Please check your device availability with 'lsusb'
and make sure you have an up-to-date version of NUT. If this does not help,
try running the driver with at least 'subdriver', 'vendorid' and 'productid'
options specified. Please refer to the man page for details about these options
(man 8 blazer).
Driver failed to start (exit status=1)
Now I don't know what do get this thing working...
If you have NUT running as root, you shouldn't need any udev rules for the usb device. You just need to make sure that it exists. From your first post, it looks like the USB device is a USB-to-serial. I recommend that you remove any custom udev rules, reboot, connect the UPS, and run "ls -al /dev/ttyUSB*". This will confirm that the UPS device shows up as a usb-to-serial device, and named ttyUSB0 or ttyUSB1.
Once you have confirmed the device is /dev/ttyUSB0, try using this as your ups.conf:
Code:
[Mustek]
driver = megatec
port = /dev/ttyUSB0
You can also try the megatec_usb or blazer_usb drivers, but the majority of Mustek devices fall under the megatec driver.
Last edited by granth; 12-11-2010 at 09:00 PM.
Reason: typo
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.