disable specific USB port

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
Post Reply
rogeiro
Level 1
Level 1
Posts: 4
Joined: Fri Feb 16, 2018 7:49 pm

disable specific USB port

Post by rogeiro » Fri Feb 16, 2018 8:09 pm

Hello, I am encountering errors in the boot that causes a delay in the initialization, I imagine that if the OS ignores this port, my initialization will be better.

thanks.

ps: this continues after this change:
lsusb -t
echo "usb6" > /sys/bus/usb/drivers/usb/unbind
reboot

part of dmesg:

[12212.776165] usb 6-2: new full-speed USB device number 105 using uhci_hcd
[12212.904150] usb 6-2: device descriptor read/64, error -71
[12213.140028] usb 6-2: device descriptor read/64, error -71
[12213.368114] usb 6-2: new full-speed USB device number 106 using uhci_hcd
[12213.784077] usb 6-2: device not accepting address 106, error -71
[12213.904189] usb 6-2: new full-speed USB device number 107 using uhci_hcd
[12214.320111] usb 6-2: device not accepting address 107, error -71
[12214.320170] usb usb6-port2: unable to enumerate USB device

User avatar
catweazel
Level 17
Level 17
Posts: 7751
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: disable specific USB port

Post by catweazel » Fri Feb 16, 2018 8:33 pm

rogeiro wrote:
Fri Feb 16, 2018 8:09 pm
part of dmesg:

[12212.776165] usb 6-2: new full-speed USB device number 105 using uhci_hcd
I doubt very much that your machine is taking over three hours to boot.

Please post the output of this terminal command:

Code: Select all

inxi -Fxz
Enclose the results in code markers "</>", which you can select from the mini toolbar above the textbox where you type your reply.

Also post the output of this, inside code markers:

Code: Select all

systemd-analyze blame
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

rogeiro
Level 1
Level 1
Posts: 4
Joined: Fri Feb 16, 2018 7:49 pm

Re: disable specific USB port

Post by rogeiro » Fri Feb 16, 2018 9:43 pm

inxi -Fxz :

Code: Select all

System:    Host: note-roger Kernel: 4.10.0-38-generic x86_64 (64 bit gcc: 5.4.0)
           Desktop: Cinnamon 3.6.7 (Gtk 3.18.9-1ubuntu3.3)
           Distro: Linux Mint 18.3 Sylvia
Machine:   System: Hewlett-Packard (portable) product: HP HDX 16 Notebook PC v: Rev 1
           Mobo: Quanta model: 361B v: 15.26
           Bios: Hewlett-Packard v: F.20 date: 01/05/2008
CPU:       Dual core Intel Core2 Duo P8600 (-MCP-) cache: 3072 KB
           flags: (lm nx sse sse2 sse3 sse4_1 ssse3 vmx) bmips: 9576
           clock speeds: max: 2401 MHz 1: 1600 MHz 2: 1600 MHz
Graphics:  Card: NVIDIA G96M [GeForce 9600M GT] bus-ID: 01:00.0
           Display Server: X.org 1.18.4 drivers: nvidia (unloaded: fbdev,vesa,nouveau)
           tty size: 80x24 Advanced Data: N/A for root
Audio:     Card Intel 82801I (ICH9 Family) HD Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k4.10.0-38-generic
Network:   Card-1: Intel PRO/Wireless 5100 AGN [Shiloh] Network Connection
           driver: iwlwifi bus-ID: 02:00.0
           IF: wlp2s0 state: up mac: <filter>
           Card-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           driver: r8169 v: 2.3LK-NAPI port: 5000 bus-ID: 03:00.0
           IF: enp3s0 state: down mac: <filter>
Drives:    HDD Total Size: 500.1GB (60.4% used)
           ID-1: /dev/sda model: Samsung_SSD_840 size: 500.1GB temp: 0C
Partition: ID-1: / size: 29G used: 8.4G (30%) fs: btrfs dev: /dev/sda6
           ID-2: /home size: 361G used: 270G (79%) fs: ext4 dev: /dev/sda3
           ID-3: swap-1 size: 4.29GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 63.0C mobo: N/A gpu: 0.0:69C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 233 Uptime: 5:16 Memory: 3158.6/5963.3MB
           Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481) inxi: 2.2.35 
systemd-analyze blame:

Code: Select all

    1min 30.176s openvpn@client.service
          6.512s NetworkManager-wait-online.service
          2.230s networking.service
          1.933s alsa-restore.service
          1.900s cpufrequtils.service
          1.622s vmware-USBArbitrator.service
          1.059s ModemManager.service
           964ms irqbalance.service
           949ms dev-sda6.device
           938ms accounts-daemon.service
           841ms vmware.service
           808ms grub-common.service
           656ms vmware-workstation-server.service
           598ms polkitd.service
           441ms loadcpufreq.service
           405ms systemd-logind.service
           367ms apparmor.service
           367ms ondemand.service
           316ms lvm2-monitor.service
           309ms apport.service
           303ms console-setup.service
           277ms speech-dispatcher.service
           275ms avahi-daemon.service
           272ms NetworkManager.service
           259ms thermald.service
           256ms iio-sensor-proxy.service
           256ms console-kit-log-system-start.service
           153ms keyboard-setup.service
           151ms gpu-manager.service
           133ms systemd-journald.service
           129ms systemd-udev-trigger.service
           126ms upower.service
           122ms systemd-fsck@dev-disk-by\x2duuid-05a496f6\x2d3647\x2d4d73\x2d8a86\x2ddf9d96801dff.service
           121ms binfmt-support.service
           121ms udisks2.service
           120ms pppd-dns.service
           112ms lm-sensors.service
            96ms rsyslog.service
            78ms systemd-update-utmp.service
            69ms lightdm.service
            68ms systemd-udevd.service
            60ms plymouth-quit-wait.service
            54ms systemd-modules-load.service
            50ms bluetooth.service
            48ms resolvconf.service
            46ms plymouth-start.service
            41ms home.mount
            41ms proc-sys-fs-binfmt_misc.mount
            40ms ntp.service
            37ms user@1000.service
            36ms plymouth-read-write.service
            33ms ufw.service
            32ms kmod-static-nodes.service
            28ms colord.service
            27ms dev-hugepages.mount
            24ms systemd-ask-password-wall.service
            23ms systemd-tmpfiles-setup.service
            22ms dns-clean.service
            21ms dev-disk-by\x2duuid-a843157d\x2dc3ac\x2d4cbb\x2daabe\x2d1f244b1e2621.swap
            20ms console-kit-daemon.service
            19ms hddtemp.service
            14ms systemd-journal-flush.service
            14ms systemd-tmpfiles-clean.service
            12ms systemd-sysctl.service
            12ms systemd-tmpfiles-setup-dev.service
            12ms dev-mqueue.mount
            11ms rc-local.service
            10ms ureadahead-stop.service
            10ms systemd-update-utmp-runlevel.service
             9ms sys-kernel-debug.mount
             7ms wpa_supplicant.service
             7ms systemd-remount-fs.service
             7ms rtkit-daemon.service
             4ms systemd-rfkill.service
             4ms systemd-random-seed.service
             4ms systemd-backlight@backlight:acpi_video0.service
             3ms setvtrgb.service
             2ms sys-fs-fuse-connections.mount
             2ms systemd-user-sessions.service
             2ms openvpn.service
lines 46-80/80 (END)


User avatar
catweazel
Level 17
Level 17
Posts: 7751
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: disable specific USB port

Post by catweazel » Fri Feb 16, 2018 9:52 pm

rogeiro wrote:
Fri Feb 16, 2018 9:43 pm
systemd-analyze blame:

Code: Select all

    1min 30.176s openvpn@client.service
          6.512s NetworkManager-wait-online.service
That's where you're losing speed.

You can save 6 seconds with this command:

systemctl disable NetworkManager-wait-online.service

I don't know about openvpn@client.service. It might be something you've installed. If you can stop that from trying to start too early you can save another 1m30s.
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

rogeiro
Level 1
Level 1
Posts: 4
Joined: Fri Feb 16, 2018 7:49 pm

Re: disable specific USB port

Post by rogeiro » Sat Feb 17, 2018 6:40 am

thanks, but...

it is visible the delay during the error messages, it repeats several times the USB port error 6-2 ...

Thanks for the information, but, I believe that disabling this door would return to normal.

User avatar
ClixTrix
Level 5
Level 5
Posts: 747
Joined: Wed Dec 09, 2015 11:40 am
Location: Columbus, Ohio, USA

Re: disable specific USB port

Post by ClixTrix » Sat Feb 17, 2018 7:57 am

The problem error appears to occur most often with USB Cam.

Bugzilla report on the device descriptor read/64, error -71 - USB error:

https://bugs.launchpad.net/ubuntu/+sour ... ug/1565292

Some older posts at ubuntu including some mitigation recommendations (read the entire post before you try any).

https://ubuntuforums.org/showthread.php?t=797789

I would suggest you also try the 4.13 Kernel, as the 4.10 Kernel is no longer receiving patches/updates.
Linux Mint 18.3 x64 Cinnamon Kernel 4.15.0-39-generic
Gigabyte GA-AB350M-D3H (F20) / Ryzen 5 1600 / Micron Ballistix Sport DDR4 2400 2x8GB / XFX HD5450-1GB
NVMe-SSD Samsung 960 EVO 250GB / SATA-HDD WD1600BEKT 160GB / SATA-SSD Toshiba OCZ VX500 512GB

rogeiro
Level 1
Level 1
Posts: 4
Joined: Fri Feb 16, 2018 7:49 pm

Re: disable specific USB port

Post by rogeiro » Sun Feb 18, 2018 4:26 pm

I tried 4.13 and 4.15 and the problem persisted ..

thanks

User avatar
ClixTrix
Level 5
Level 5
Posts: 747
Joined: Wed Dec 09, 2015 11:40 am
Location: Columbus, Ohio, USA

Re: disable specific USB port

Post by ClixTrix » Sun Feb 18, 2018 4:47 pm

Check your BIOS settings and see if you can disable the integrated Webcam for a test.
Linux Mint 18.3 x64 Cinnamon Kernel 4.15.0-39-generic
Gigabyte GA-AB350M-D3H (F20) / Ryzen 5 1600 / Micron Ballistix Sport DDR4 2400 2x8GB / XFX HD5450-1GB
NVMe-SSD Samsung 960 EVO 250GB / SATA-HDD WD1600BEKT 160GB / SATA-SSD Toshiba OCZ VX500 512GB

Post Reply

Return to “Hardware Support”