Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Mar 2012 17:38:11 +0200
From:      Jens Schweikhardt <schweikh@schweikhardt.net>
To:        FreeBSD questions <freebsd-questions@freebsd.org>
Subject:   shutdown -p doesn't power-off USB
Message-ID:  <20120331153811.GA82076@schweikhardt.net>

next in thread | raw e-mail | index | archive | help
hello world\n

I'm running 9-STABLE/amd64 and for a few months now, whenever I shut
down with "shutdown -p now", the USB devices still have power. This is
most visible on the USB keyboard, where *all* LEDs are turned on and
stay on.

The MB is an ASUS P5Q3 Deluxe.

The USB related sysctls are:
# sysctl -aw|grep -i usb
            <descr>USB1008A Flash Disk</descr>
device  usb
hw.pci.usb_early_takeover: 1
hw.usb.no_shutdown_wait: 0
hw.usb.no_boot_wait: 0
hw.usb.debug: 0
hw.usb.usb_lang_mask: 255
hw.usb.usb_lang_id: 9
hw.usb.template: 0
hw.usb.power_timeout: 30
hw.usb.no_pf: 0
hw.usb.no_cs_fail: 0
dev.uhci.0.%desc: Intel 82801JI (ICH10) USB controller USB-D
dev.uhci.0.%location: slot=26 function=0 handle=\_SB_.PCI0.USB4
dev.uhci.1.%desc: Intel 82801JI (ICH10) USB controller USB-E
dev.uhci.1.%location: slot=26 function=1 handle=\_SB_.PCI0.USB5
dev.uhci.2.%desc: Intel 82801JI (ICH10) USB controller USB-F
dev.uhci.2.%location: slot=26 function=2 handle=\_SB_.PCI0.USB6
dev.uhci.3.%desc: Intel 82801JI (ICH10) USB controller USB-A
dev.uhci.3.%location: slot=29 function=0 handle=\_SB_.PCI0.USB0
dev.uhci.4.%desc: Intel 82801JI (ICH10) USB controller USB-B
dev.uhci.4.%location: slot=29 function=1 handle=\_SB_.PCI0.USB1
dev.uhci.5.%desc: Intel 82801JI (ICH10) USB controller USB-C
dev.uhci.5.%location: slot=29 function=2 handle=\_SB_.PCI0.USB2
dev.usbus.0.%desc: Intel 82801JI (ICH10) USB controller USB-D
dev.usbus.0.%driver: usbus
dev.usbus.0.%parent: uhci0
dev.usbus.1.%desc: Intel 82801JI (ICH10) USB controller USB-E
dev.usbus.1.%driver: usbus
dev.usbus.1.%parent: uhci1
dev.usbus.2.%desc: Intel 82801JI (ICH10) USB controller USB-F
dev.usbus.2.%driver: usbus
dev.usbus.2.%parent: uhci2
dev.usbus.3.%desc: Intel 82801JI (ICH10) USB 2.0 controller USB-B
dev.usbus.3.%driver: usbus
dev.usbus.3.%parent: ehci0
dev.usbus.4.%driver: usbus
dev.usbus.4.%parent: xhci0
dev.usbus.5.%desc: Intel 82801JI (ICH10) USB controller USB-A
dev.usbus.5.%driver: usbus
dev.usbus.5.%parent: uhci3
dev.usbus.6.%desc: Intel 82801JI (ICH10) USB controller USB-B
dev.usbus.6.%driver: usbus
dev.usbus.6.%parent: uhci4
dev.usbus.7.%desc: Intel 82801JI (ICH10) USB controller USB-C
dev.usbus.7.%driver: usbus
dev.usbus.7.%parent: uhci5
dev.usbus.8.%desc: Intel 82801JI (ICH10) USB 2.0 controller USB-A
dev.usbus.8.%driver: usbus
dev.usbus.8.%parent: ehci1
dev.ehci.0.%desc: Intel 82801JI (ICH10) USB 2.0 controller USB-B
dev.ehci.0.%location: slot=26 function=7 handle=\_SB_.PCI0.USBE
dev.ehci.1.%desc: Intel 82801JI (ICH10) USB 2.0 controller USB-A
dev.ehci.1.%location: slot=29 function=7 handle=\_SB_.PCI0.EUSB
dev.xhci.0.%desc: XHCI (generic) USB 3.0 controller
dev.uhub.0.%parent: usbus0
dev.uhub.1.%parent: usbus1
dev.uhub.2.%parent: usbus2
dev.uhub.3.%parent: usbus3
dev.uhub.4.%parent: usbus4
dev.uhub.5.%parent: usbus5
dev.uhub.6.%parent: usbus6
dev.uhub.7.%parent: usbus7
dev.uhub.8.%parent: usbus8
dev.ums.0.%desc: Logitech USB Receiver, class 0/0, rev 2.00/22.00, addr 2
dev.uhid.0.%desc: Logitech USB Receiver, class 0/0, rev 2.00/22.00, addr 2

Any help appreciated in telling me how to turn off USB power with shutdown.

Regards,

	Jens
-- 
Jens Schweikhardt http://www.schweikhardt.net/
SIGSIG -- signature too long (core dumped)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120331153811.GA82076>