Bug 455154
Summary: | upsdrvctl can't open /dev/bus/usb/004/002 | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Rick Richardson <rickrich> | ||||
Component: | nut | Assignee: | Tomas Smetana <tsmetana> | ||||
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 9 | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2008-07-22 05:54:23 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Rick Richardson
2008-07-13 05:24:47 UTC
Created attachment 311657 [details]
/etc/init.d/ups with fix
chmod 666 /dev/bus/usb/004/002 # RER 12/29/07
The ups device nodes should be handled by udev and get root:uucp ownership. Please verify that the UPS device ID (run /sbin/lsusb) has a corresponding entry in /etc/udev/rules.d/52_nut-usbups.rules. $ lsusb Bus 002 Device 002: ID 058f:6362 Alcor Micro Corp. Hi-Speed 21-in-1 Flash Card Reader/Writer (Internal/External) Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 008 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 006 Device 002: ID 046d:c505 Logitech, Inc. Cordless Mouse+Keyboard Receiver Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 061: ID 1390:0001 TOMTOM B.V. Bus 001 Device 059: ID 0781:7421 SanDisk Corp. Sansa E200 series Bus 001 Device 008: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port Bus 001 Device 007: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port Bus 001 Device 006: ID 058f:6254 Alcor Micro Corp. Bus 001 Device 004: ID 058f:6254 Alcor Micro Corp. Bus 001 Device 002: ID 03f0:2b17 Hewlett-Packard LaserJet 1020 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 002: ID 9710:7720 MosChip Semiconductor Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 002: ID 050d:0751 Belkin Components Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Hm... On my F-8 installation the required rule exists: ATTR{idVendor}=="050d", ATTR{idProduct}=="0751", MODE="664", GROUP="uucp" There should be no difference on F-9. Could you please check this? # Belkin - usbhid-ups ATTR{idVendor}=="050d", ATTR{idProduct}=="0980", MODE="664", GROUP="uucp" ATTR{idVendor}=="050d", ATTR{idProduct}=="0900", MODE="664", GROUP="uucp" ATTR{idVendor}=="050d", ATTR{idProduct}=="0910", MODE="664", GROUP="uucp" ATTR{idVendor}=="050d", ATTR{idProduct}=="0912", MODE="664", GROUP="uucp" ATTR{idVendor}=="050d", ATTR{idProduct}=="0551", MODE="664", GROUP="uucp" ATTR{idVendor}=="050d", ATTR{idProduct}=="0751", MODE="664", GROUP="uucp" ATTR{idVendor}=="050d", ATTR{idProduct}=="0375", MODE="664", GROUP="uucp" ATTR{idVendor}=="050d", ATTR{idProduct}=="1100", MODE="664", GROUP="uucp" Still, it DOES NOT create /dev/bus/usb/004/002 with root/uucp ownership. In fact, what name does it create? $ ll /dev/bus/usb/004 total 0 crw-r--r-- 1 root root 189, 384 2008-07-11 08:28 001 crw-rw-rw- 1 root root 189, 385 2008-07-21 04:52 002 Installed fedora 9 from scratch on July 11, 2008. Fully updated. Can you please run udevtrigger --verbose --subsystem-match=usb Then verify the permissons get fixed. If not, try udevtrigger --verbose --subsystem-match=usb_device and let me know. Thanks. [root@dual dev]# udevtrigger --verbose --subsystem-match=usb /devices/pci0000:00/0000:00:1a.0/usb3 /devices/pci0000:00/0000:00:1a.0/usb3/3-0:1.0 /devices/pci0000:00/0000:00:1a.1/usb4 /devices/pci0000:00/0000:00:1a.1/usb4/4-0:1.0 /devices/pci0000:00/0000:00:1a.1/usb4/4-2 /devices/pci0000:00/0000:00:1a.1/usb4/4-2/4-2:1.0 /devices/pci0000:00/0000:00:1a.2/usb5 /devices/pci0000:00/0000:00:1a.2/usb5/5-0:1.0 /devices/pci0000:00/0000:00:1a.2/usb5/5-2 /devices/pci0000:00/0000:00:1a.2/usb5/5-2/5-2:1.0 /devices/pci0000:00/0000:00:1a.7/usb1 /devices/pci0000:00/0000:00:1a.7/usb1/1-0:1.0 /devices/pci0000:00/0000:00:1a.7/usb1/1-3 /devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3:1.0 /devices/pci0000:00/0000:00:1a.7/usb1/1-5 /devices/pci0000:00/0000:00:1a.7/usb1/1-5/1-5.1 /devices/pci0000:00/0000:00:1a.7/usb1/1-5/1-5.1/1-5.1.3 /devices/pci0000:00/0000:00:1a.7/usb1/1-5/1-5.1/1-5.1.3/1-5.1.3:1.0 /devices/pci0000:00/0000:00:1a.7/usb1/1-5/1-5.1/1-5.1.4 /devices/pci0000:00/0000:00:1a.7/usb1/1-5/1-5.1/1-5.1.4/1-5.1.4:1.0 /devices/pci0000:00/0000:00:1a.7/usb1/1-5/1-5.1/1-5.1:1.0 /devices/pci0000:00/0000:00:1a.7/usb1/1-5/1-5.3 /devices/pci0000:00/0000:00:1a.7/usb1/1-5/1-5.3/1-5.3:128.0 /devices/pci0000:00/0000:00:1a.7/usb1/1-5/1-5.4 /devices/pci0000:00/0000:00:1a.7/usb1/1-5/1-5.4/1-5.4:1.0 /devices/pci0000:00/0000:00:1a.7/usb1/1-5/1-5:1.0 /devices/pci0000:00/0000:00:1d.0/usb6 /devices/pci0000:00/0000:00:1d.0/usb6/6-0:1.0 /devices/pci0000:00/0000:00:1d.0/usb6/6-2 /devices/pci0000:00/0000:00:1d.0/usb6/6-2/6-2:1.0 /devices/pci0000:00/0000:00:1d.0/usb6/6-2/6-2:1.1 /devices/pci0000:00/0000:00:1d.1/usb7 /devices/pci0000:00/0000:00:1d.1/usb7/7-0:1.0 /devices/pci0000:00/0000:00:1d.2/usb8 /devices/pci0000:00/0000:00:1d.2/usb8/8-0:1.0 /devices/pci0000:00/0000:00:1d.7/usb2 /devices/pci0000:00/0000:00:1d.7/usb2/2-0:1.0 /devices/pci0000:00/0000:00:1d.7/usb2/2-1 /devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0 [root@dual dev]# [root@dual dev]# ll /dev/bus/usb/004 total 0 crw-r--r-- 1 root root 189, 384 2008-07-11 08:28 001 crw-rw-r-- 1 root uucp 189, 385 2008-07-21 07:11 002 That did it. But its not automatic. This could happen e.g. in case you installed nut after plugging the UPS -- the rules are part of the nut package. In such a case you have to re-plug the UPS or trigger the udev action manually. I rebooted several times. Are saying that I must unplug the UPS on every boot?? I think chmod 666 is better, then. If you rebooted then there must be something else wrong... I'll need to install a testing machine for this, so please be patient. Downloaded kernel 2.6.25.10-86.fc9.i686 and rebooted. It works now! OK. Closing... |