My laptop can now shutdown without hanging.
Actually usbX is nothing but the USB ports numbers where X denotes the number like 1 or 2 and.
However, if you're lucky and your device can become idle, then to turn this off you need to: echo loadrunner game for pc "0" echo "auto" or, for kernels around.6.38 and above: echo "0" echo "auto" this literally means, go suspend at the moment the device becomes idle.You can trawl through dmesg logs looking at all USB entries until you find the webcam,.g.(In kernels up.6.32, you could also specify "suspend meaning that the device should remain suspended and autoresume was not allowed.In ubunty usb1, bX are the links to /sys/devices/pci000:00.To turn it back on, echo '1-1.6' sudo tee /sys/bus/usb/drivers/usb/bind.Bus 007 Device game stolen in 60 second pc 001: ID 1d6b:0001 Linux Foundation.1 root hub.In my case my laptop webcam has become intermittently faulty.Bus 004 Device 001: ID 1d6b:0001 Linux Foundation.1 root hub.Bus 006 Device 001: ID 1d6b:0001 Linux Foundation.1 root hub.This command pushed the USB device name, 1-1.6, to a special socket that acts like a command API to the USB driver, in other words rather than directly control the power of the device we ask the USB driver to do it for.Bus 003 Device 001: ID 1d6b:0001 Linux Foundation.1 root hub.
For device in (ls do echo device;cat device;done dell USB Entry Keyboard webcam SC-13HDL11624N amazon Kindle uSB Receiver eHCI Host Controller xHCI Host Controller xHCI Host Controller, here we can see that the file contains the Webcam SC-13HDL11624N.
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation.1 root hub.
Here you can see that my webcam was on bus 1 - port 1 on the 6th device on that port.g.
If your machine runs old kernel, you could issue echo suspend to force suspension of device.Turn off power to the Webcam.This setting is no longer supported.(Of course, system suspends are still allowed.) "auto" is the normal state in which the kernel is allowed to autosuspend and autoresume the device.The lamp is connected to one of the ports in this hub: #myhost lsusb, bus 001 Device 001: ID 1d6b:0002 Linux Foundation.0 root hub.Bus 008 Device 001: ID 1d6b:0002 Linux Foundation.0 root hub.Simple edit roots crontab sudo crontab -e And then append the following @reboot echo '1-1.6' Again edit 1-1.6 to your usb devices number.Internal events are those triggered within the USB stack : autosuspend and autoresume.Alternatively, is there a way to shut off power to the entire usb subsystem?