FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 01-01-2011, 08:57 PM
Mick
 
Default UPS driver error

Hi All,

I have a iDowell UPS with a USB connection which I'm trying to
configure with Gentoo. This UPS works fine with the default settings
in WinXP and apparently with AppleMac boxen which it is marketed for:

http://store.apple.com/uk/product/TR423ZM/A

This is what it shows in dmesg:

usb 3-2: New USB device found, idVendor=075d, idProduct=0300
usb 3-2: New USB device strings: Mfr=3, Product=1, SerialNumber=2
usb 3-2: Product: iBox
usb 3-2: Manufacturer: iDowell
usb 3-2: SerialNumber: 00000001
generic-usb 0003:075D:0300.0002: hidraw1: USB HID v1.10 Device
[iDowell iBox] on usb-0000:00:1d.1-2/input0

I've added this udev rule in

# iDowell iBox USB
ATTR{idVendor}=="075d", ATTR{idProduct}=="0300", MODE="664", GROUP="nut"

and have defined this UPS and driver in /etc/nut/ups.conf:

[iDowell]
driver = usbhid-ups
port = auto
vendorid = 075d
desc = "iBox by iDowell"

However, the driver does not seem to recognise the device:

# /etc/init.d/upsd restart
* Starting upsd ...
Network UPS Tools upsd 2.4.3
listening on 127.0.0.1 port 3493
Can't connect to UPS [iDowell] (usbhid-ups-iDowell): No such file or directory
allowfrom in upsd.users is no longer used [ ok ]

and

# /etc/init.d/upsdrv start
* Starting UPS drivers ...
Network UPS Tools - UPS driver controller 2.4.3
Network UPS Tools - Generic HID driver 0.34 (2.4.3)
USB communication driver 0.31
No matching HID UPS found
Driver failed to start (exit status=1)
* Failed to start UPS drivers! [ !! ]

I have noticed that dmesg continuously fills up with messages like:

usb 3-2: USB disconnect, address 116
usb 3-2: new low speed USB device using uhci_hcd and address 117
usb 3-2: New USB device found, idVendor=075d, idProduct=0300
usb 3-2: New USB device strings: Mfr=3, Product=1, SerialNumber=2
usb 3-2: Product: iBox
usb 3-2: Manufacturer: iDowell
usb 3-2: SerialNumber: 00000001
generic-usb 0003:075D:0300.005C: hidraw1: USB HID v1.10 Device
[iDowell iBox] on usb-0000:00:1d.1-2/input0
usb 3-2: USB disconnect, address 117
usb 3-2: new low speed USB device using uhci_hcd and address 118
usb 3-2: New USB device found, idVendor=075d, idProduct=0300
usb 3-2: New USB device strings: Mfr=3, Product=1, SerialNumber=2
usb 3-2: Product: iBox
usb 3-2: Manufacturer: iDowell
usb 3-2: SerialNumber: 00000001
generic-usb 0003:075D:0300.005D: hidraw1: USB HID v1.10 Device
[iDowell iBox] on usb-0000:00:1d.1-2/input0

I do not know why it keeps disconnecting and reconnecting getting a
new address every time.

Any ideas what else I could try?
--
Regards,
Mick
 
Old 01-02-2011, 08:42 AM
Francesco Talamona
 
Default UPS driver error

On Saturday 01 January 2011, Mick wrote:
> Hi All,
>
> I have a iDowell UPS with a USB connection which I'm trying to
> configure with Gentoo. This UPS works fine with the default settings
> in WinXP and apparently with AppleMac boxen which it is marketed for:
>
> http://store.apple.com/uk/product/TR423ZM/A
>
> This is what it shows in dmesg:
>
> usb 3-2: New USB device found, idVendor=075d, idProduct=0300
> usb 3-2: New USB device strings: Mfr=3, Product=1, SerialNumber=2
> usb 3-2: Product: iBox
> usb 3-2: Manufacturer: iDowell
> usb 3-2: SerialNumber: 00000001
> generic-usb 0003:075D:0300.0002: hidraw1: USB HID v1.10 Device
> [iDowell iBox] on usb-0000:00:1d.1-2/input0
>
> I've added this udev rule in
>
> # iDowell iBox USB
> ATTR{idVendor}=="075d", ATTR{idProduct}=="0300", MODE="664",
> GROUP="nut"
>
> and have defined this UPS and driver in /etc/nut/ups.conf:
>
> [iDowell]
> driver = usbhid-ups
> port = auto
> vendorid = 075d
> desc = "iBox by iDowell"
>
> However, the driver does not seem to recognise the device:
>
> # /etc/init.d/upsd restart
> * Starting upsd ...
> Network UPS Tools upsd 2.4.3
> listening on 127.0.0.1 port 3493
> Can't connect to UPS [iDowell] (usbhid-ups-iDowell): No such file or
> directory allowfrom in upsd.users is no longer used
> [ ok ]
>
> and
>
> # /etc/init.d/upsdrv start
> * Starting UPS drivers ...
> Network UPS Tools - UPS driver controller 2.4.3
> Network UPS Tools - Generic HID driver 0.34 (2.4.3)
> USB communication driver 0.31
> No matching HID UPS found
> Driver failed to start (exit status=1)
> * Failed to start UPS drivers!
> [ !! ]
>
> I have noticed that dmesg continuously fills up with messages like:
>
> usb 3-2: USB disconnect, address 116
> usb 3-2: new low speed USB device using uhci_hcd and address 117
> usb 3-2: New USB device found, idVendor=075d, idProduct=0300
> usb 3-2: New USB device strings: Mfr=3, Product=1, SerialNumber=2
> usb 3-2: Product: iBox
> usb 3-2: Manufacturer: iDowell
> usb 3-2: SerialNumber: 00000001
> generic-usb 0003:075D:0300.005C: hidraw1: USB HID v1.10 Device
> [iDowell iBox] on usb-0000:00:1d.1-2/input0
> usb 3-2: USB disconnect, address 117
> usb 3-2: new low speed USB device using uhci_hcd and address 118
> usb 3-2: New USB device found, idVendor=075d, idProduct=0300
> usb 3-2: New USB device strings: Mfr=3, Product=1, SerialNumber=2
> usb 3-2: Product: iBox
> usb 3-2: Manufacturer: iDowell
> usb 3-2: SerialNumber: 00000001
> generic-usb 0003:075D:0300.005D: hidraw1: USB HID v1.10 Device
> [iDowell iBox] on usb-0000:00:1d.1-2/input0
>
> I do not know why it keeps disconnecting and reconnecting getting a
> new address every time.
>
> Any ideas what else I could try?

I think is an issue with the UDEV rules.
At the end of /etc/udev/rules.d/10-local.rules I put this line for my
liebert USB UPS:

SUBSYSTEMS=="usb",ATTRS{idVendor}=="10af",ATTRS{id Product}=="0004",SYMLINK+="liebert-
ups" MODE="0660", GROUP="nut", OPTIONS="last_rule"

and in
/etc/nut/ups.conf

user = nut
[liebert]
port = /dev/liebert-ups
driver = liebert

Make sure also about permissions:
lrwxrwxrwx 1 root root 11 2 gen 10.34 /dev/liebert-ups -> usb/hiddev0
crw-rw---- 1 root nut 180, 96 2 gen 10.34 usb/hiddev0

HTH
Francesco
--
Linux Version 2.6.36-gentoo-r6, Compiled #1 SMP PREEMPT Tue Dec 28
20:43:07 CET 2010
Two 1GHz AMD Athlon 64 Processors, 4GB RAM, 4019.24 Bogomips Total
aemaeth
 
Old 01-03-2011, 02:16 PM
Mick
 
Default UPS driver error

On Sunday 02 January 2011 09:42:29 Francesco Talamona wrote:

> I think is an issue with the UDEV rules.
> At the end of /etc/udev/rules.d/10-local.rules I put this line for my
> liebert USB UPS:
>
> SUBSYSTEMS=="usb",ATTRS{idVendor}=="10af",ATTRS{id Product}=="0004",SYMLINK+
> ="liebert- ups" MODE="0660", GROUP="nut", OPTIONS="last_rule"
>
> and in
> /etc/nut/ups.conf
>
> user = nut
> [liebert]
> port = /dev/liebert-ups
> driver = liebert
>
> Make sure also about permissions:
> lrwxrwxrwx 1 root root 11 2 gen 10.34 /dev/liebert-ups -> usb/hiddev0
> crw-rw---- 1 root nut 180, 96 2 gen 10.34 usb/hiddev0

Thanks Francesco, I have now added the symlink to see if it makes a
difference, however, as I was poking around I noticed that there is *no*
hiddev* device at all ... is this an indication that something is amiss with
my kernel?

# cat /usr/src/linux/.config | grep -i hid
CONFIG_HID_SUPPORT=y
CONFIG_HID=y
CONFIG_HIDRAW=y
CONFIG_USB_HID=y
# CONFIG_HID_PID is not set
CONFIG_USB_HIDDEV=y
# Special HID drivers
# CONFIG_HID_3M_PCT is not set
CONFIG_HID_A4TECH=y
# CONFIG_HID_ACRUX_FF is not set
CONFIG_HID_APPLE=y
CONFIG_HID_BELKIN=y
# CONFIG_HID_CANDO is not set
CONFIG_HID_CHERRY=y
CONFIG_HID_CHICONY=y
# CONFIG_HID_PRODIKEYS is not set
CONFIG_HID_CYPRESS=y
# CONFIG_HID_DRAGONRISE is not set
# CONFIG_HID_EGALAX is not set
CONFIG_HID_EZKEY=y
CONFIG_HID_KYE=y
# CONFIG_HID_GYRATION is not set
# CONFIG_HID_TWINHAN is not set
CONFIG_HID_KENSINGTON=y
CONFIG_HID_LOGITECH=y
CONFIG_HID_MICROSOFT=y
# CONFIG_HID_MOSART is not set
CONFIG_HID_MONTEREY=y
# CONFIG_HID_NTRIG is not set
# CONFIG_HID_ORTEK is not set
# CONFIG_HID_PANTHERLORD is not set
# CONFIG_HID_PETALYNX is not set
# CONFIG_HID_PICOLCD is not set
# CONFIG_HID_QUANTA is not set
# CONFIG_HID_ROCCAT is not set
# CONFIG_HID_ROCCAT_KONE is not set
# CONFIG_HID_SAMSUNG is not set
# CONFIG_HID_SONY is not set
# CONFIG_HID_STANTUM is not set
# CONFIG_HID_SUNPLUS is not set
# CONFIG_HID_GREENASIA is not set
# CONFIG_HID_SMARTJOYPLUS is not set
# CONFIG_HID_TOPSEED is not set
# CONFIG_HID_THRUSTMASTER is not set
# CONFIG_HID_ZEROPLUS is not set
# CONFIG_HID_ZYDACRON is not set

Anyway, with the modified rule in /etc/udev/rules.d/70-nut-usbups.rules:

ATTR{idVendor}=="075d", ATTR{idProduct}=="0300", SYMLINK+="iDowell",
MODE="664", GROUP="nut"

I still get the same errors.

The symlink itself is not associated with hiddev*, but as follows:

ls -la /dev/iDowell
lrwxrwxrwx 1 root root 15 Jan 3 15:12 /dev/iDowell -> bus/usb/003/056

Of course, since the device seems to be disconnected and reconnected
continuously, the link similarly changes the device file that it points to. A
few seconds later I get:

ls -la /dev/iDowell
ls: cannot access /dev/iDowell: No such file or directory

and then soon after:

ls -la /dev/iDowell
lrwxrwxrwx 1 root root 15 Jan 3 15:14 /dev/iDowell -> bus/usb/003/063

Any ideas what I should be looking for, or what driver might work with this
baby?
--
Regards,
Mick
 

Thread Tools




All times are GMT. The time now is 09:59 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org