You are not logged in.

#1 2023-11-26 10:28:23

waste37
Member
Registered: 2023-11-26
Posts: 5

[SOLVED] USB Ports not "working" on thinkpad t495 (AMD)

Fresh install of Arch linux on a thinkpad t495 (done yesterday).
- Usb and ethernet ports are not working.
- They DO work with the Arch iso usb and on Windows 11
- No events are reported by neither dmesg nor udevadm monitor when plugging devices in the ports.
- TLP or other laptop power optimizers are not installed.
- UEFI/BIOS is up to date.
- rebooting, being on battery or on AC does not change anything.
Does someone have an idea of what is happening?

Output of lspci:

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:01.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:01.6 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:01.7 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus A
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 7
01:00.0 Network controller: Intel Corporation Wireless-AC 9260 (rev 29)
02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0e)
03:00.1 Serial controller: Realtek Semiconductor Co., Ltd. RTL8111xP UART #1 (rev 0e)
03:00.2 Serial controller: Realtek Semiconductor Co., Ltd. RTL8111xP UART #2 (rev 0e)
03:00.3 IPMI Interface: Realtek Semiconductor Co., Ltd. RTL8111xP IPMI interface (rev 0e)
03:00.4 USB controller: Realtek Semiconductor Co., Ltd. RTL811x EHCI host controller (rev 0e)
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10)
05:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev 01)
06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso/Raven 2 [Radeon Vega Series / Radeon Vega Mobile Series] (rev d1)
06:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller
06:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
06:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
06:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
06:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor
06:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller

Output of lsusb (notice how one of the first three devices should now show my phone plugged in, since it is now charging via usb, but it doesn't):

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 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 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 003: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 004 Device 004: ID 04f2:b681 Chicony Electronics Co., Ltd ThinkPad T490 Webcam
Bus 004 Device 005: ID 04f3:289b Elan Microelectronics Corp. Touchscreen
Bus 004 Device 006: ID 06cb:00bd Synaptics, Inc. Prometheus MIS Touch Fingerprint Reader
Bus 004 Device 007: ID 8087:0025 Intel Corp. Wireless-AC 9260 Bluetooth Adapter
Bus 005 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

uname -a:

Linux thinkpad-t495 6.6.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 20 Nov 2023 23:18:21 +0000 x86_64 GNU/Linux

Last edited by waste37 (2023-11-27 19:55:33)

Offline

#2 2023-11-26 16:39:57

seth
Member
Registered: 2012-09-03
Posts: 59,042

Re: [SOLVED] USB Ports not "working" on thinkpad t495 (AMD)

- They DO work with the Arch iso usb and on Windows 11

3rd link below. Mandatory.
Disable it (it's NOT the BIOS setting!) and reboot windows and linux twice for voodo reasons.

should now show my phone plugged in, since it is now charging via usb

Sanity check: your phone isn't "devices", is it? Did you test a usb key or a mouse?
(If the phone is *only* charging it might easily not show up, since it just wants to scrounge some power)

Offline

#3 2023-11-26 16:58:21

waste37
Member
Registered: 2023-11-26
Posts: 5

Re: [SOLVED] USB Ports not "working" on thinkpad t495 (AMD)

Hi, thanks for the answer.
I did now find a workaround which is setting usbcore autosuspend parameter to -1. But I don't think it is the right thing to do honestly, from what I can understand it is a useful feature, especially for laptops.

Sanity check: your phone isn't "devices", is it? Did you test a usb key or a mouse?

The phone was an example, off course i tried also with wireless mouse and a couple usb keys.
I will now:
- remove the extra kernel parameter
- disable Windows fast boot, indeed it is enabled (though last time i turned it off while pressing shift, so i thought it wouldn't matter all that much).
- do the Voodo ritual.
Try inserting the devices and see if they show up.
By the way another method i found to make single usb ports work again is via

echo on > /sys/bus/usb/devices/usb?/power/control

I'll let you know what happens. I never did dual-boot, so I'm pretty ignorant on the matter. Especially with windows > windows 7.

Offline

#4 2023-11-26 17:20:18

waste37
Member
Registered: 2023-11-26
Posts: 5

Re: [SOLVED] USB Ports not "working" on thinkpad t495 (AMD)

I followed the instructions, disabled fast boot, hibernation wal already disabled. I also rebooted many times both OSes, but nothing changed.
If i boot with the device plugged in it works until i unplug it, and from when i unplug it the port stops working. Same as before.

Offline

#5 2023-11-26 17:42:38

seth
Member
Registered: 2012-09-03
Posts: 59,042

Re: [SOLVED] USB Ports not "working" on thinkpad t495 (AMD)

Offline

#6 2023-11-26 17:46:35

waste37
Member
Registered: 2023-11-26
Posts: 5

Re: [SOLVED] USB Ports not "working" on thinkpad t495 (AMD)

No i am not using it and it is not installed. Should I install it and blacklist as shown in the Wiki page

Offline

#7 2023-11-26 18:03:39

seth
Member
Registered: 2012-09-03
Posts: 59,042

Re: [SOLVED] USB Ports not "working" on thinkpad t495 (AMD)

No, see https://linrunner.de/tlp/settings/runti … r-denylist
You'd rather try https://linrunner.de/tlp/settings/runti … pm-disable but I guess that'll just achieve your "echo on > /sys/bus/usb/devices/usb?/power/control" approach.
It seems the kernel defaults might have changed(?) but the active state is required for your device (inferred from the record in the wiki)
You could just automatize that w/ a udev rule.

What are the power control states in the installation iso? (If they're set "on" that might hint at that this should be the way and this could be a kernel regression)

Edit: fcuk.
Of course you're more interested in the states under /sys/bus/pci/devices/ for

06:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
06:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1

Last edited by seth (2023-11-26 18:06:55)

Offline

#8 2023-11-27 08:27:23

boozer
Member
Registered: 2023-11-27
Posts: 2

Re: [SOLVED] USB Ports not "working" on thinkpad t495 (AMD)

waste37 wrote:

Fresh install of Arch linux on a thinkpad t495 (done yesterday).
- Usb and ethernet ports are not working.
- They DO work with the Arch iso usb and on Windows 11
- No events are reported by neither dmesg nor udevadm monitor when plugging devices in the ports.
- TLP or other laptop power optimizers are not installed.
- UEFI/BIOS is up to date.
- rebooting, being on battery or on AC does not change anything.
Does someone have an idea of what is happening?

Output of lspci:

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:01.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:01.6 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:01.7 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus A
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 7
01:00.0 Network controller: Intel Corporation Wireless-AC 9260 (rev 29)
02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0e)
03:00.1 Serial controller: Realtek Semiconductor Co., Ltd. RTL8111xP UART #1 (rev 0e)
03:00.2 Serial controller: Realtek Semiconductor Co., Ltd. RTL8111xP UART #2 (rev 0e)
03:00.3 IPMI Interface: Realtek Semiconductor Co., Ltd. RTL8111xP IPMI interface (rev 0e)
03:00.4 USB controller: Realtek Semiconductor Co., Ltd. RTL811x EHCI host controller (rev 0e)
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10)
05:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev 01)
06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso/Raven 2 [Radeon Vega Series / Radeon Vega Mobile Series] (rev d1)
06:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller
06:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
06:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
06:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
06:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor
06:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller

Output of lsusb (notice how one of the first three devices should now show my phone plugged in, since it is now charging via usb, but it doesn't):

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 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 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 003: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 004 Device 004: ID 04f2:b681 Chicony Electronics Co., Ltd ThinkPad T490 Webcam
Bus 004 Device 005: ID 04f3:289b Elan Microelectronics Corp. Touchscreen
Bus 004 Device 006: ID 06cb:00bd Synaptics, Inc. Prometheus MIS Touch Fingerprint Reader
Bus 004 Device 007: ID 8087:0025 Intel Corp. Wireless-AC 9260 Bluetooth Adapter
Bus 005 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

uname -a:

Linux thinkpad-t495 6.6.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 20 Nov 2023 23:18:21 +0000 x86_64 GNU/Linux

I have exactly the same issue with my Lenovo T495 (AMD). However, I'm not dual booting, and my problems didn't occur during a fresh install, but instead after a kernel update.

I had no problems with USB or Ethernet ports before i updated my linux and linux-lts kernels to 6.6.2.arch1-1 and 6.1.63-1. If I downgrade linux to 6.6.1.arch1-1 and linux-lts to 6.1.62-1 I have no issues with these ports. So I would suggest you to try this too, and downgrade your linux kernel (if that's what you have installed) to 6.6.2.arch1-1 to see if this "fixes" your USB and Ethernet ports.

Offline

#9 2023-11-27 19:54:43

waste37
Member
Registered: 2023-11-26
Posts: 5

Re: [SOLVED] USB Ports not "working" on thinkpad t495 (AMD)

Hi, so i did not downgrade the system, i am still running 6.6.2 but i did install TLP (without configuring it except for battery thresholds), and magically the ports have started working.
I am not entirely sure about the nature of what happened, but now it is ok: usbcore autosuspend is enabled, and also tlp power saving options.
Maybe at the next kernel update i will try to turn off TLP and see if things start working again.
For now the problem seems to be solved, but it is with high probability a kernel regression of some sort.

Offline

Board footer

Powered by FluxBB