You are not logged in.

#1 2024-07-04 01:38:01

billwillbill
Member
Registered: 2024-07-04
Posts: 3

My USB ports stopped working in Linux. Both Mint and Arch.

It was about half a year ago when after an update My USB ports while using Arch stopped working. They work in the UEFI settings so I know it's not a problem with the hardware. I tried turning off auto-suspend. This also did not work. Finally I decided to reinstall Arch. The USB worked during installation but broke after rebooting. I was hoping the issue would resolve itself with another update, but it did not. I just now installed Mint and the USB ports still don't work.

My mouse light flashes but doesn't stay on. lsusb shows the root hubs are on:

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 27c6:538d Shenzhen Goodix Technology Co.,Ltd. FingerPrint
Bus 001 Device 003: ID 0cf3:e009 Qualcomm Atheros Communications 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lsblk only shows my internal storage when I plug in a USB flash drive.

My hdmi, SD card, and audio ports all still work.

dmesg | grep usb

shows the same thing whether something is plugged in or not:

[    0.256192] usbcore: registered new interface driver usbfs
[    0.256192] usbcore: registered new interface driver hub
[    0.256192] usbcore: registered new device driver usb
[    0.873238] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[    0.873240] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.873241] usb usb1: Product: xHCI Host Controller
[    0.873243] usb usb1: Manufacturer: Linux 5.15.0-113-generic xhci-hcd
[    0.873244] usb usb1: SerialNumber: 0000:00:14.0
[    0.875780] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
[    0.875783] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.875784] usb usb2: Product: xHCI Host Controller
[    0.875785] usb usb2: Manufacturer: Linux 5.15.0-113-generic xhci-hcd
[    0.875786] usb usb2: SerialNumber: 0000:00:14.0
[    0.876379] usb: port power management may be unreliable
[    1.210636] usb 1-5: new full-speed USB device number 2 using xhci_hcd
[    1.364726] usb 1-5: New USB device found, idVendor=27c6, idProduct=538d, bcdDevice= 1.00
[    1.364732] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    1.364735] usb 1-5: Product: FingerPrint
[    1.364737] usb 1-5: Manufacturer: Goodix
[    1.490609] usb 1-10: new full-speed USB device number 3 using xhci_hcd
[    1.644061] usb 1-10: New USB device found, idVendor=0cf3, idProduct=e009, bcdDevice= 0.01
[    1.644069] usb 1-10: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.677825] usbcore: registered new interface driver btusb

The bottom of my laptop has slightly fallen out in the back (maybe a millimeter).

lsmod | grep usb

only shows Bluetooth modules loaded:

btusb                  61440  0
btrtl                  24576  1 btusb
btbcm                  24576  1 btusb
btintel                40960  1 btusb
bluetooth             704512  43 btrtl,btintel,btbcm,bnep,btusb,rfcomm
GRUB_CMDLINE_LINUX="iommu=soft"

also does not work.

Would this be a problem with systemd? Should I try Artix or Devuan?

Offline

#2 2024-07-04 15:03:03

seth
Member
Registered: 2012-09-03
Posts: 54,453

Re: My USB ports stopped working in Linux. Both Mint and Arch.

run "dmesg -w" and plug a usb key and post the complete tail that generates.
Also

uname -a; pacman -Qs kernel; modinfo usb_storage | head -10

Offline

#3 2024-07-05 15:28:48

billwillbill
Member
Registered: 2024-07-04
Posts: 3

Re: My USB ports stopped working in Linux. Both Mint and Arch.

seth wrote:

run "dmesg -w" and plug a usb key and post the complete tail that generates.
Also

uname -a; pacman -Qs kernel; modinfo usb_storage | head -10

I ran

dmesg -w

This is the last 20 lines of what was generated:

[   11.375528] wlan0: associated
[   11.379314] wlan0: Limiting TX power to 30 (30 - 0) dBm as advertised by 60:db:98:62:35:bf
[  110.830422] warning: `ThreadPoolForeg' uses wireless extensions which will stop working for Wi-Fi 7 hardware; use nl80211
[ 4073.532241] dell_wmi: Unknown key with type 0x0012 and code 0x0000 pressed
[ 4142.546580] dell_wmi: Unknown key with type 0x0012 and code 0x0000 pressed
[ 4196.659060] dell_wmi: Unknown key with type 0x0012 and code 0x0000 pressed
[ 4353.554751] dell_wmi: Unknown key with type 0x0012 and code 0x0000 pressed
[ 4456.070249] dell_wmi: Unknown key with type 0x0012 and code 0x0000 pressed
[ 4537.602585] perf: interrupt took too long (2591 > 2500), lowering kernel.perf_event_max_sample_rate to 77100
[ 4593.884726] dell_wmi: Unknown key with type 0x0012 and code 0x0000 pressed
[ 4685.521627] dell_wmi: Unknown key with type 0x0012 and code 0x0000 pressed
[ 4858.244458] dell_wmi: Unknown key with type 0x0012 and code 0x0000 pressed
[ 4919.194572] dell_wmi: Unknown key with type 0x0012 and code 0x0000 pressed
[ 5021.369509] dell_wmi: Unknown key with type 0x0012 and code 0x0000 pressed
[ 5722.562188] perf: interrupt took too long (3268 > 3238), lowering kernel.perf_event_max_sample_rate to 60900
[ 7712.178307] perf: interrupt took too long (4110 > 4085), lowering kernel.perf_event_max_sample_rate to 48600
[ 8707.919936] dell_wmi: Unknown key with type 0x0012 and code 0x0000 pressed
[ 8766.209479] dell_wmi: Unknown key with type 0x0012 and code 0x0000 pressed
[ 9017.216425] dell_wmi: Unknown key with type 0x0012 and code 0x0000 pressed
[ 9164.072521] dell_wmi: Unknown key with type 0x0012 and code 0x0000 pressed

I then plugged in a USB thumb stick and a USB mouse, but nothing more was generated.

I ran

uname -a; pacman -Qs kernel; modinfo usb_storage | head -10

and this is the result:

Linux bobot 6.9.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 28 Jun 2024 04:32:50 +0000 x86_64 GNU/Linux
local/fuse3 3.16.2-1
    Interface for userspace programs to export a filesystem to the Linux kernel
local/iptables 1:1.8.10-2
    Linux kernel packet control tool (using legacy interface)
local/kmod 32-1
    Linux kernel module management tools and library
local/libdrm 2.4.122-1
    Userspace interface to kernel DRM services
local/libnetfilter_conntrack 1.0.9-2
    Library providing an API to the in-kernel connection tracking state table
local/libnfnetlink 1.0.2-2
    Low-level library for netfilter related kernel/userspace communication
local/libsysprof-capture 46.0-3
    Kernel based performance profiler - capture library
local/linux 6.9.7.arch1-1
    The Linux kernel and modules
local/linux-api-headers 6.8-1
    Kernel headers sanitized for use in userspace
local/mtdev 1.1.7-1
    A stand-alone library which transforms all variants of kernel MT events to
    the slotted type B protocol
filename:       /lib/modules/6.9.7-arch1-1/kernel/drivers/usb/storage/usb-storage.ko.zst
license:        GPL
description:    USB Mass Storage driver for Linux
author:         Matthew Dharm <mdharm-usb@one-eyed-alien.net>
srcversion:     EE382771199A169DD0DEA83
alias:          usb:v*p*d*dc*dsc*dp*ic08isc06ip50in*
alias:          usb:v*p*d*dc*dsc*dp*ic08isc05ip50in*
alias:          usb:v*p*d*dc*dsc*dp*ic08isc04ip50in*
alias:          usb:v*p*d*dc*dsc*dp*ic08isc03ip50in*
alias:          usb:v*p*d*dc*dsc*dp*ic08isc02ip50in*

Last edited by billwillbill (2024-07-05 15:29:54)

Offline

#4 2024-07-05 15:50:21

seth
Member
Registered: 2012-09-03
Posts: 54,453

Re: My USB ports stopped working in Linux. Both Mint and Arch.

They work in the UEFI settings so I know it's not a problem with the hardware.

How exactly do "they work in the UEFI settings"?
It doesn't seem the port is powered.

Offline

#5 2024-07-05 16:29:57

billwillbill
Member
Registered: 2024-07-04
Posts: 3

Re: My USB ports stopped working in Linux. Both Mint and Arch.

seth wrote:

They work in the UEFI settings so I know it's not a problem with the hardware.

How exactly do "they work in the UEFI settings"?
It doesn't seem the port is powered.

I boot into the Dell BIOS Setup and my USB mouse lights up and can be used to interact with the menu. My USB thumb stick lights up and can be read. When I boot into Arch the lights on both the mouse and the thumb stick turn off and aren't detected at all.

Offline

#6 2024-07-05 20:11:16

seth
Member
Registered: 2012-09-03
Posts: 54,453

Re: My USB ports stopped working in Linux. Both Mint and Arch.

Does the usb port work on a live distro like grml?
Do you have some BIOS/UEFI settings for usb (talking about "legacy" or hand-over)?
Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Offline

Board footer

Powered by FluxBB