<SOLVED> USB Ports Not Working Correctly

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
Post Reply
pfothergill
Level 1
Level 1
Posts: 2
Joined: Fri Feb 08, 2019 8:09 pm

<SOLVED> USB Ports Not Working Correctly

Post by pfothergill »

Hey all, I have an issue with my USB ports. They are USB 3.0 and when I have something plugged into them while logging into my computer, the device will work (such as having a keyboard or mouse plugged in prior to logging into my profile). But if I try to plug them in once already signed in, they won't work at all. They don't even get recognized (I don't think and I don't know how to check???). I have to either sign out and sign back in or restart. Either option works without fail but it's bizarre because I can have, for example, my mouse dongle plugged in while I'm logged in, but if I were to take that dongle out and plug it back in after a couple seconds, I can't use my mouse again until I sign out and sign back in. Same with my keyboard. For whatever reason, it doesn't apply to my phone or a flash drive.

I will say that because I don't know what I'm doing and because I don't want to ruin my devices, I haven't really done much to fix this. I have restarted the cinnamon desktop (alt + F2) and that doesn't work. Only thing that works is restarting or logging out but I'll happily try to do whatever anyone suggests to me. Here's some possibly useful info and more can be provided by asking in the comments!

Version:

Code: Select all

Linux PLC 4.20.7-042007-generic #201902061234 SMP Wed Feb 6 17:36:40 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Code: Select all

sudo dmidecode -s system-version
HP ENVY m6 Notebook

Code: Select all

sudo dmidecode -s system-version
Type1ProductConfigId
Razor keyboard plugged in and working:

Code: Select all

Bus 001 Device 005: ID 0a5c:216d Broadcom Corp. 
Bus 001 Device 004: ID 04f2:b50c Chicony Electronics Co., Ltd 
Bus 001 Device 003: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 001 Device 002: ID 0438:7900 Advanced Micro Devices, Inc. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 1532:011a Razer USA, Ltd 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Once Razer keyboard is unplugged and then plugged back in (currently plugged in and not recognized):

Code: Select all

Bus 001 Device 005: ID 0a5c:216d Broadcom Corp. 
Bus 001 Device 004: ID 04f2:b50c Chicony Electronics Co., Ltd 
Bus 001 Device 003: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 001 Device 002: ID 0438:7900 Advanced Micro Devices, Inc. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Code: Select all

lsusb; dmesg | egrep -i 'usb'
Bus 001 Device 005: ID 0a5c:216d Broadcom Corp. 
Bus 001 Device 004: ID 04f2:b50c Chicony Electronics Co., Ltd 
Bus 001 Device 003: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 001 Device 002: ID 0438:7900 Advanced Micro Devices, Inc. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 1532:011a Razer USA, Ltd 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[    0.261260] ACPI: bus type USB registered
[    0.261260] usbcore: registered new interface driver usbfs
[    0.261260] usbcore: registered new interface driver hub
[    0.261260] usbcore: registered new device driver usb
[    0.383605] pci 0000:00:10.0: quirk_usb_early_handoff+0x0/0x6a8 took 11707 usecs
[    0.404759] pci 0000:00:12.0: quirk_usb_early_handoff+0x0/0x6a8 took 20638 usecs
[    1.350140] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.350394] ehci-pci 0000:00:12.0: new USB bus registered, assigned bus number 1
[    1.363172] ehci-pci 0000:00:12.0: USB 2.0 started, EHCI 1.00
[    1.363263] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[    1.363265] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.363267] usb usb1: Product: EHCI Host Controller
[    1.363268] usb usb1: Manufacturer: Linux 4.20.7-042007-generic ehci_hcd
[    1.363269] usb usb1: SerialNumber: 0000:00:12.0
[    1.363463] hub 1-0:1.0: USB hub found
[    1.363800] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.363826] uhci_hcd: USB Universal Host Controller Interface driver
[    1.363978] xhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 2
[    1.364457] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[    1.364458] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.364459] usb usb2: Product: xHCI Host Controller
[    1.364461] usb usb2: Manufacturer: Linux 4.20.7-042007-generic xhci-hcd
[    1.364462] usb usb2: SerialNumber: 0000:00:10.0
[    1.364751] hub 2-0:1.0: USB hub found
[    1.365030] xhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 3
[    1.365033] xhci_hcd 0000:00:10.0: Host supports USB 3.0  SuperSpeed
[    1.371095] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.371121] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.20
[    1.371123] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.371124] usb usb3: Product: xHCI Host Controller
[    1.371126] usb usb3: Manufacturer: Linux 4.20.7-042007-generic xhci-hcd
[    1.371127] usb usb3: SerialNumber: 0000:00:10.0
[    1.371266] hub 3-0:1.0: USB hub found
[    1.703162] usb 2-2: new full-speed USB device number 2 using xhci_hcd
[    1.712915] usb 1-1: new high-speed USB device number 2 using ehci-pci
[    1.867406] usb 1-1: New USB device found, idVendor=0438, idProduct=7900, bcdDevice= 0.18
[    1.867409] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.867686] hub 1-1:1.0: USB hub found
[    1.895061] usb 2-2: New USB device found, idVendor=1532, idProduct=011a, bcdDevice= 2.00
[    1.895064] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    1.895065] usb 2-2: Product: Razer BlackWidow Ultimate
[    1.895067] usb 2-2: Manufacturer: Razer
[    1.920391] input: Razer Razer BlackWidow Ultimate as /devices/pci0000:00/0000:00:10.0/usb2/2-2/2-2:1.0/0003:1532:011A.0002/input/input9
[    1.979240] hid-generic 0003:1532:011A.0002: input,hidraw1: USB HID v1.11 Keyboard [Razer Razer BlackWidow Ultimate] on usb-0000:00:10.0-2/input0
[    2.003637] input: Razer Razer BlackWidow Ultimate Keyboard as /devices/pci0000:00/0000:00:10.0/usb2/2-2/2-2:1.1/0003:1532:011A.0003/input/input10
[    2.063754] input: Razer Razer BlackWidow Ultimate Consumer Control as /devices/pci0000:00/0000:00:10.0/usb2/2-2/2-2:1.1/0003:1532:011A.0003/input/input11
[    2.063866] input: Razer Razer BlackWidow Ultimate System Control as /devices/pci0000:00/0000:00:10.0/usb2/2-2/2-2:1.1/0003:1532:011A.0003/input/input12
[    2.063937] input: Razer Razer BlackWidow Ultimate as /devices/pci0000:00/0000:00:10.0/usb2/2-2/2-2:1.1/0003:1532:011A.0003/input/input13
[    2.064020] hid-generic 0003:1532:011A.0003: input,hidraw2: USB HID v1.11 Keyboard [Razer Razer BlackWidow Ultimate] on usb-0000:00:10.0-2/input1
[    2.080599] input: Razer Razer BlackWidow Ultimate as /devices/pci0000:00/0000:00:10.0/usb2/2-2/2-2:1.2/0003:1532:011A.0004/input/input14
[    2.081149] hid-generic 0003:1532:011A.0004: input,hidraw3: USB HID v1.11 Mouse [Razer Razer BlackWidow Ultimate] on usb-0000:00:10.0-2/input2
[    2.081204] usbcore: registered new interface driver usbhid
[    2.081204] usbhid: USB HID core driver
[    2.163213] usb 1-1.1: new full-speed USB device number 3 using ehci-pci
[    2.282811] usb 1-1.1: New USB device found, idVendor=046d, idProduct=c52f, bcdDevice=30.00
[    2.282815] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.282817] usb 1-1.1: Product: USB Receiver
[    2.282818] usb 1-1.1: Manufacturer: Logitech
[    2.285267] input: Logitech USB Receiver as /devices/pci0000:00/0000:00:12.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:046D:C52F.0005/input/input15
[    2.285397] hid-generic 0003:046D:C52F.0005: input,hidraw4: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-0000:00:12.0-1.1/input0
[    2.287601] input: Logitech USB Receiver Consumer Control as /devices/pci0000:00/0000:00:12.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:046D:C52F.0006/input/input16
[    2.347506] hid-generic 0003:046D:C52F.0006: input,hiddev0,hidraw5: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:12.0-1.1/input1
[    2.427009] usb 1-1.2: new high-speed USB device number 4 using ehci-pci
[    2.543524] usb 1-1.2: New USB device found, idVendor=04f2, idProduct=b50c, bcdDevice=28.74
[    2.543527] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.543529] usb 1-1.2: Product: HP Truevision HD
[    2.543530] usb 1-1.2: Manufacturer: SunplusIT Inc
[    2.623031] usb 1-1.4: new full-speed USB device number 5 using ehci-pci
[    2.733991] usb 1-1.4: New USB device found, idVendor=0a5c, idProduct=216d, bcdDevice= 1.12
[    2.733992] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.733994] usb 1-1.4: Product: BCM43142A0
[    2.733995] usb 1-1.4: Manufacturer: Broadcom Corp
[    2.733996] usb 1-1.4: SerialNumber: D85DE2A2D0AE
[    6.114558] usbcore: registered new interface driver btusb
[    6.176684] input: HP Truevision HD: HP Truevision as /devices/pci0000:00/0000:00:12.0/usb1/1-1/1-1.2/1-1.2:1.0/input/input25
[    6.176928] usbcore: registered new interface driver uvcvideo
[    6.176929] USB Video Class driver (1.1.1)
[    7.061103] Bluetooth: hci0: BCM43142A0 Generic USB Class 2 NonUHE @ 20 MHz
[  100.226083] usb 2-3: new high-speed USB device number 3 using xhci_hcd
[  100.380569] usb 2-3: New USB device found, idVendor=0781, idProduct=5530, bcdDevice= 1.03
[  100.380573] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  100.380575] usb 2-3: Product: Cruzer
[  100.380624] usb 2-3: Manufacturer: SanDisk
[  100.380626] usb 2-3: SerialNumber: 20051536210CF7716842
[  100.954516] usb-storage 2-3:1.0: USB Mass Storage device detected
[  100.962034] scsi host2: usb-storage 2-3:1.0
[  100.962198] usbcore: registered new interface driver usb-storage
[  100.964505] usbcore: registered new interface driver uas
[  149.787424] usb 2-3: USB disconnect, device number 3
[  435.073272] usb 2-3: new high-speed USB device number 4 using xhci_hcd
[  435.223753] usb 2-3: New USB device found, idVendor=0781, idProduct=5530, bcdDevice= 1.03
[  435.223758] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  435.223760] usb 2-3: Product: Cruzer
[  435.223761] usb 2-3: Manufacturer: SanDisk
[  435.223763] usb 2-3: SerialNumber: 20051536210CF7716842
[  435.227471] usb-storage 2-3:1.0: USB Mass Storage device detected
[  435.232930] scsi host3: usb-storage 2-3:1.0
[  666.433434] usb 2-3: USB disconnect, device number 4
[ 1348.101974] usb 2-3: new high-speed USB device number 5 using xhci_hcd
[ 1348.260670] usb 2-3: New USB device found, idVendor=0781, idProduct=5530, bcdDevice= 1.03
[ 1348.260674] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1348.260675] usb 2-3: Product: Cruzer
[ 1348.260676] usb 2-3: Manufacturer: SanDisk
[ 1348.260677] usb 2-3: SerialNumber: 20051536210CF7716842
[ 1348.264344] usb-storage 2-3:1.0: USB Mass Storage device detected
[ 1348.264651] scsi host3: usb-storage 2-3:1.0
[ 3747.122313] usb 2-3: USB disconnect, device number 5
Here's a shortened version of Bus 001 Device 003 (which is for my logitech mouse. It's the only device that I still had plugged in and didn't want to log out and back in while writing this and also because I already had unplugged my keyboard, which didn't show up here obviously):

Code: Select all

Bus 001 Device 003: ID 046d:c52f Logitech, Inc. Unifying Receiver
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x046d Logitech, Inc.
  idProduct          0xc52f Unifying Receiver
  bcdDevice           30.00
  iManufacturer           1 
  iProduct                2 
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           59
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          4 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower               98mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      2 Mouse
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      67
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               2
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      79
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0014  1x 20 bytes
        bInterval               2
If you would like any other information just let me know. FYI I'm brand new to linux. I've been able to use Dr. Google for basically all my fixes so far but I cannot seem to figure out what to do for this one. I'm sure it's easy and I'm just a noob. Thanks!
Last edited by pfothergill on Sun Feb 10, 2019 5:38 pm, edited 1 time in total.
JeremyB
Level 20
Level 20
Posts: 11771
Joined: Fri Feb 21, 2014 8:17 am

Re: USB Ports Not Working Correctly

Post by JeremyB »

open a terminal and do

Code: Select all

tail -f /var/log/syslog
Then unplug and plug in the keyboard, post output from terminal, do CTRL + c to stop the terminal from updating the syslog
pfothergill
Level 1
Level 1
Posts: 2
Joined: Fri Feb 08, 2019 8:09 pm

Re: USB Ports Not Working Correctly

Post by pfothergill »

Hey thanks for the reply! As soon as I posted this, I think I found my solution. Always works that way, doesn't it :) haha. So what I did was disable autosuspend in grub file.

First, I checked if autosuspend was enabled by opening a terminal and typing:

Code: Select all

cat /sys/module/usbcore/parameters/autosuspend
If enabled, it will return a value of 2. And it did for me. So then I edited the grub file:

Code: Select all

sudo nano /etc/default/grub
and found the line that says: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Code: Select all

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=noearly acpi_no_static_ssdt acpi_sleep=nonvs amd_immu=force_isolation"
GRUB_CMDLINE_LINUX=""
and changed it to:

Code: Select all

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1 pci=noearly acpi_no_static_ssdt acpi_sleep=nonvs amd_immu=force_isolation"
GRUB_CMDLINE_LINUX=""
Notice the usbcore.autosuspend=-1. So, when you boot on the system, it tells it to turn autosuspend off. Anyways, hit ctrl + x to save. Type a y to confirm and I also had to press enter after typing the y to confirm the save location. Then run this code in your open terminal:

Code: Select all

sudo update-grub
and reboot. Once rebooted, I was able to unplug and plug back in my usb devices per normal. :D
Post Reply

Return to “Hardware Support”