![]() ![]() sudo sh -c "echo '0' > /sys/bus/usb/devices/usb1/power/autosuspend_delay_ms" (Check his comment also.) You should not get the permission denied message now. ![]() ![]() So to enable/disable USB ports usbX will be replaced with usb1 when you want to enable/disable USB Port Number 1 (or refer Stack Exchange):Įdit: Thanks to Stefan Denchev to tell the correct way to echo some text to a file using sudo. To understand it well, run this command: ls -l /sys/bus/usb/devices/ usbX are the links to /sys/devices/pci000:00/*. In general, a laptop may have three or four USB ports with USB 2.0 and USB 3.0 ports. For example, usb1 and usb2 for ports 1 and 2. Actually usbX is nothing but the USB ports numbers where X denotes the number like 1 or 2 and so on.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |