[Nut-upsuser] Can't connect to UPS [mustek] (megatec-mustek): No such file or directory
NUT recently stopped working on my debian. I'm not sure which upgrade broke it. ups.conf: [mustek] driver = megatec port = /dev/ttyS0 desc = mustek ups # upsd - Network UPS Tools upsd 2.4.1 listen_add: added ::1:3493 listen_add: added 127.0.0.1:3493 setuptcp: try to bind to 127.0.0.1 port 3493 listening on 127.0.0.1 port 3493 setuptcp: try to bind to ::1 port 3493 listening on ::1 port 3493 Can't connect to UPS [mustek] (megatec-mustek): No such file or directory # strace -f upsd [...] connect(6, {sa_family=AF_FILE, path=megatec-mustek}, 110) = -1 ENOENT (No such file or directory) Where is megatec-mustek file? Regards, Vedran ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
[Nut-upsuser] Belkin support?
Greetings; I have the newest nut (nut-2.2.2-4.fc10.i386) from fedora 10 repos) installed and this ups (from lsusb -vv): Bus 001 Device 006: ID 050d:0751 Belkin Components Device Descriptor: bLength18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x050d Belkin Components idProduct 0x0751 bcdDevice0.01 iManufacturer 4 iProduct 20 Belkin UPS -- As nut comes totally non-configured, is there an instructional web page?, or can someone please tell me how to make this combo work with linux? Thank you -- Cheers, Gene There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. -Ed Howdershelt (Author) The NRA is offering FREE Associate memberships to anyone who wants them. https://www.nrahq.org/nrabonus/accept-membership.asp Of course power tools and alcohol don't mix. Everyone knows power tools aren't soluble in alcohol... -- Crazy Nigel ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] Belkin support?
On Sun, May 31, 2009 at 19:26, Gene Heskett gene.hesk...@gmail.com wrote: Greetings; I have the newest nut (nut-2.2.2-4.fc10.i386) from fedora 10 repos) installed and this ups (from lsusb -vv): Note that 2.2.2 is over a year old. 2.4.1 is the latest version. If you run into any problems expect to be advised to upgrade. As nut comes totally non-configured, is there an instructional web page?, or can someone please tell me how to make this combo work with linux? http://www.networkupstools.org/, and the man pages ;) -- Please keep list traffic on the list. Rob MacGregor Whoever fights monsters should see to it that in the process he doesn't become a monster. Friedrich Nietzsche ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] Belkin support?
On 05/31/2009 09:26 PM, Gene Heskett wrote: Greetings; I have the newest nut (nut-2.2.2-4.fc10.i386) from fedora 10 repos) installed and this ups (from lsusb -vv): Bus 001 Device 006: ID 050d:0751 Belkin Components Device Descriptor: bLength18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x050d Belkin Components idProduct 0x0751 bcdDevice0.01 iManufacturer 4 iProduct 20 Belkin UPS -- As nut comes totally non-configured, is there an instructional web page?, or can someone please tell me how to make this combo work with linux? you'll need to tweak the files existing in /etc/ups ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] Belkin support?
On May 31, 2009, at 2:26 PM, Gene Heskett wrote: I have the newest nut (nut-2.2.2-4.fc10.i386) from fedora 10 repos) installed and this ups (from lsusb -vv): Bus 001 Device 006: ID 050d:0751 Belkin Components Hi Gene, This device should be supported by the usbhid-ups driver. Usually you would look this up in the data/drivers.list file, but it doesn't look like the lsusb output is terribly helpful for that (Belkin seems to change the underlying hardware while keeping the model name the same). Which model do you have? The NUT README file, while not specific to Fedora, should have the rest of the info needed to set this up. (Perhaps someone with Fedora 10 experience can suggest whether the classic driver or the HAL driver would be better.) If I had to guess, I'd say the README is in / usr/share/doc/nut. - Charles ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] Belkin support?
On Sunday 31 May 2009, Rob MacGregor wrote: On Sun, May 31, 2009 at 19:26, Gene Heskett gene.hesk...@gmail.com wrote: Greetings; I have the newest nut (nut-2.2.2-4.fc10.i386) from fedora 10 repos) installed and this ups (from lsusb -vv): Note that 2.2.2 is over a year old. 2.4.1 is the latest version. If you run into any problems expect to be advised to upgrade. I'll take that up with Rahul. If that's the case, I am not allergic to building from the tarball, some of the stuff I run here straight from the tarball, like the kernel is 2.6.30-rc7, and amanda is from yesterdays snapshot of what will become amanda-2.6.2 in a few months. However, I have no clue if I have a problem because I can't get it to run at all. [r...@coyote amanda]# service ups start Starting UPS driver controller:[FAILED] Starting upsd: [ OK ] Starting UPS monitor (master): [FAILED] So I need help from square one. Would a tarball build be preferable in this case? As nut comes totally non-configured, is there an instructional web page?, or can someone please tell me how to make this combo work with linux? http://www.networkupstools.org/, and the man pages ;) Those I have been looking at, intermittently. Too many trees, can't see the forest. :) -- Cheers, Gene There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. -Ed Howdershelt (Author) The NRA is offering FREE Associate memberships to anyone who wants them. https://www.nrahq.org/nrabonus/accept-membership.asp I got this powdered water -- now I don't know what to add. -- Steven Wright ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] Belkin support?
On May 31, 2009, at 9:42 PM, Gene Heskett wrote: On Sunday 31 May 2009, Rob MacGregor wrote: On Sun, May 31, 2009 at 19:26, Gene Heskett gene.hesk...@gmail.com wrote: Greetings; I have the newest nut (nut-2.2.2-4.fc10.i386) from fedora 10 repos) installed and this ups (from lsusb -vv): Note that 2.2.2 is over a year old. 2.4.1 is the latest version. If you run into any problems expect to be advised to upgrade. I'll take that up with Rahul. If that's the case, I am not allergic to building from the tarball, some of the stuff I run here straight from the tarball, like the kernel is 2.6.30-rc7, and amanda is from yesterdays snapshot of what will become amanda-2.6.2 in a few months. Sorry to jump in on Rob's reply, but one thing with NUT (like the kernel, but more so) is that it is tied into things like the system's shutdown procedure. It is harder to set that up from scratch than it is to attempt to work with the packages you already have. Another compromise would be to see if there is a newer SRPM on RawHide (or whatever they're calling that these days). (In this particular case, I don't see any usbhid-ups driver-side differences between v2.2.2 and v2.4.1, besides a refactoring in how the USB IDs are matched, so upgrading may not solve anything by itself.) However, I have no clue if I have a problem because I can't get it to run at all. [r...@coyote amanda]# service ups start Starting UPS driver controller:[FAILED] The UPS driver controller is what should be starting usbhid-ups. Can you post your /etc/nut/ups.conf file? Starting upsd: [ OK ] Starting UPS monitor (master): [FAILED] upsmon wants to talk to the driver through upsd, so this may be fixed by the driver issue. ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] Belkin support?
On May 31, 2009, at 10:17 PM, Gene Heskett wrote: On Sunday 31 May 2009, Charles Lepple wrote: On May 31, 2009, at 2:26 PM, Gene Heskett wrote: I have the newest nut (nut-2.2.2-4.fc10.i386) from fedora 10 repos) installed and this ups (from lsusb -vv): Bus 001 Device 006: ID 050d:0751 Belkin Components Hi Gene, This device should be supported by the usbhid-ups driver. That seems not to be part of the 2.6.30-rcX kernels. The current .config has: CONFIG_USB_HID=y CONFIG_USB_HIDDEV=y CONFIG_HID_BELKIN=y I should have been more specific - usbhid-ups is a user-mode driver in NUT. It uses libusb to kick the kernel's USB HID driver off of the device, and it uses /dev/bus/usb (I forget the kernel driver name) to speak the HID protocol. I can probably dig out anything else that might be helpful. Usually you would look this up in the data/drivers.list file, but it doesn't look like the lsusb output is terribly helpful for that (Belkin seems to change the underlying hardware while keeping the model name the same). Which model do you have? The NUT README file, while not specific to Fedora, should have the rest of the info needed to set this up. (Perhaps someone with Fedora 10 experience can suggest whether the classic driver or the HAL driver would be better.) If I had to guess, I'd say the README is in / usr/share/doc/nut. - Charles It might help, if it was there: [r...@coyote ~]# locate 'nut/README' [r...@coyote ~]# [r...@coyote ~]# cd `locate 'nut/'` [r...@coyote cur]# ls 1243795177.4479.gANVC:2,RS 1243799859.4479.0TdwL 1243813905.4479.2izhm [r...@coyote cur]# pwd /root/Mail/nut/cur [r...@coyote cur]# I don't believe it exists in the rpms. Next? Sounds to me like a bug in the package. We're trying to overhaul the documentation, so the website is a little behind. But this should apply: http://www.networkupstools.org/doc/2.2.0/README.html (please keep the list CC'd via reply-all - thanks!) ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] Belkin support?
On May 31, 2009, at 10:36 PM, Gene Heskett wrote: [myups] driver = mydriver port = /dev/ttyS1 cable = 1234 desc = A POS Belkin # # To find out if your driver supports any extra settings, start it with # the -h option and/or read the driver's documentation. - I now see the port is wrong, and should probably be /dev/ttyUSB1, as zero is busy here, with heyu. However, fixing that makes zero difference. Actually, for the usbhid-ups driver (with only one UPS on a machine), / etc/nut/boils down to: ### [myups] driver = usbhid-ups port = auto desc = Whatever floats your boat ### port does not matter here, it just has to be something (the Linux / dev/bus/usb addresses change based on what order things are plugged in, as well as the kernel version and phase of the moon). The key to your setup is specifying usbhid-ups as the driver name. Out of curiosity, do you get any more detail from 'lsusb -vv' if you run it as root? ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser