Lost access to USB peripherals

Hello there,

after a recent update to Leap 15.4, I have now lost access to the USB ports.

Funny enough, I can use my wireless keyboard to decrypt the disk at startup, but no USB peripherals works after log in; before you ask, user log in is automatic.

From my initial troubleshooting:

  • Repositories are all correctly pointing to 15.4 (Name column deleted for readability
zypper lr -d
#  | Alias                                 | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                | Service
---+---------------------------------------+---------+-----------+---------+----------+--------+--------------------------------------------------------------------+--------
 1 | ftp.gwdg.de-openSUSE_Leap_$releasever | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.4/ | 
 2 | repo-backports-update                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.4/backports/           | 
 3 | repo-non-oss                          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.4/repo/non-oss/  | 
 4 | repo-oss                              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.4/repo/oss/      | 
 5 | repo-sle-update                       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.4/sle/                 | 
 6 | repo-update                           | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.4/oss/                 | 
 7 | repo-update-non-oss                   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.4/non-oss/             | 


  • A check on dependencies yields no issue either:

zypper ve

Loading repository data...
Reading installed packages...
Dependencies of all installed packages are satisfied.

  • Both lsusb and inxi --usb hang, and forcing a re-install for these doesn’t fix the issue. A version check yields
zypper se -si libusb 
Loading repository data... 
Reading installed packages... 

S | Name             | Type    | Version           | Arch   | Repository 
--+------------------+---------+-------------------+--------+------------------ 
i | libusb-1_0-0     | package | 1.0.24-150400.1.4 | x86_64 | Main Repository 
i | libusbmuxd-2_0-6 | package | 2.0.2-150400.1.6  | x86_64 | Main Repository 
i | libusbmuxd4      | package | 1.0.10-3.23       | x86_64 | (System Packages)

and

zypper se -si inxi  
Loading repository data... 
Reading installed packages... 

S | Name | Type    | Version           | Arch   | Repository 
--+------+---------+-------------------+--------+---------------- 
i | inxi | package | 3.3.07-bp154.1.19 | noarch | Main Repository

Not sure is fully relevant, but the system hangs at shutdown. Even switching to a TTY and calling shutdown from root hangs the computer. I am guessing it hangs for the same reason lsusb is unresponsive?

Any suggestion?

after a recent update to Leap 15.4, I have now lost access to the USB ports.

What is the difference between “recent” and “now”?
This does not make it easy to decide if it is just the upgrade to 15.4 or if it worked for some time (from “recent” to “now”) on 15.4 and only “now” (after some update, any other idea) doesn’t anymore.

Post:

zypper dup --allow-vendor-change
uname -a

It definitely worked for a bit, then it became erratic, i.e. I could make it work by restarting, and now stopped working completely. I would say it had taken no more than 10 restarts to get to the current state

After the update I get:


uname -a

Linux localhost.localdomain 5.14.21-150400.22-default #1 SMP PREEMPT_DYNAMIC Wed May 11 06:57:18 UTC 2022 (49db222) x86_64 x86_64 x86_64 GNU/Linux

Still, the USB does not work

You have not shown the dup…

I have 2 repos that you do not have:

  8 | repo-backports-update    | Update repository of openSUSE Backports                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.4/backports/                           | 
  9 | repo-sle-update          | Update repository with updates from SUSE Linux Enterprise 15 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.4/sle/                                 | 


Maybe that is why mine work.

LLR1:~ # cd /etc/zypp/repos.d
LLR1:/etc/zypp/repos.d # cat repo-backports-update.repo
[repo-backports-update]
name=Update repository of openSUSE Backports
enabled=1
autorefresh=1
baseurl=http://download.opensuse.org/update/leap/$releasever/backports/
path=/
type=rpm-md
keeppackages=0
LLR1:/etc/zypp/repos.d # cat  repo-sle-update.repo
[repo-sle-update]
name=Update repository with updates from SUSE Linux Enterprise 15
enabled=1
autorefresh=1
baseurl=http://download.opensuse.org/update/leap/$releasever/sle/
path=/
type=rpm-md
keeppackages=0
LLR1:/etc/zypp/repos.d # 

I would add those 2 repos and do a zypper ref and a zypper dup and reboot and see if that fixes it

Also what does “lsusb” show

LLR1:~ # lsusb
Bus 004 Device 003: ID 152d:0578 JMicron Technology Corp. / JMicron USA Technology Corp. JMS578 SATA 6Gb/s
Bus 004 Device 002: ID 05e3:0626 Genesys Logic, Inc. USB3.1 Hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 006: ID 1058:2624 Western Digital Technologies, Inc. easystore Portable 5TB (WDBKUZ0050)
Bus 002 Device 005: ID 0bc2:3323 Seagate RSS LLC Seagate RSS LLC
Bus 002 Device 004: ID 1058:25ee Western Digital Technologies, Inc. My Book 25EE
Bus 002 Device 003: ID 0bda:0411 Realtek Semiconductor Corp. Hub
Bus 002 Device 002: ID 05e3:0626 Genesys Logic, Inc. USB3.1 Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 0bda:5411 Realtek Semiconductor Corp. RTS5411 Hub
Bus 001 Device 005: ID 8087:0a2b Intel Corp. Bluetooth wireless interface
Bus 001 Device 003: ID 0c45:6715 Microdia Integrated_Webcam_HD
Bus 001 Device 008: ID 0c45:7403 Microdia Foot Switch
Bus 001 Device 006: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 004: ID 04f9:0429 Brother Industries, Ltd HL-L2395DW series
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
LLR1:~ # 

Open an Terminal, switch to root with su and:

journalctl -f

Now put in an USB-Stick and post all new line from the journalctl here.

@ larryr see Repo 2 and 5 in post #1

I discovered from your post that they are the same repo but the https:/ pointed to different websites - but you are correct they are duplicates and I have deleted them.
They got added in the 15.3 to 15.4 dup, Why - I don’t know - they added all the debug repos too, I deleted the debug repos.

mirrorcache-us.opensuse.org and download.opensuse.org

My conclusions:

It worked first on 15.4, so 15.4 is not the culprit (but updates could be).

It is (was) erratic. For me this points to failing hardware.

Here below the log the part after the asterisks happens after the insertion of the USB stick


journalctl -f
Jun 30 11:15:11 localhost.localdomain systemd-udevd[811]: 3-2:1.1: Worker [924] processing SEQNUM=2633 killed
Jun 30 11:15:11 localhost.localdomain systemd-udevd[811]: Worker [914] terminated by signal 9 (KILL)
Jun 30 11:15:11 localhost.localdomain systemd-udevd[811]: 1-4:1.0: Worker [914] failed
Jun 30 11:15:11 localhost.localdomain systemd-udevd[811]: Worker [924] terminated by signal 9 (KILL)
Jun 30 11:15:11 localhost.localdomain systemd-udevd[811]: 3-2:1.1: Worker [924] failed
Jun 30 11:15:14 localhost.localdomain rtkit-daemon[2081]: Supervising 4 threads of 2 processes of 1 users.
Jun 30 11:15:14 localhost.localdomain rtkit-daemon[2081]: Supervising 4 threads of 2 processes of 1 users.
*********************************************************************************************************
Jun 30 11:15:51 localhost.localdomain chronyd[1503]: Selected source 85.199.214.98 (1.suse.pool.ntp.org)
Jun 30 11:16:03 localhost.localdomain su[3816]: (to root) user on pts/1
Jun 30 11:16:03 localhost.localdomain su[3816]: pam_unix(su:session): session opened for user root by user(uid=1000)
Jun 30 11:17:16 localhost.localdomain dbus-daemon[936]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2038 comm="/usr/lib64/libexec/org_kde_powerdevil ") (using servicehelper)
Jun 30 11:17:16 localhost.localdomain dbus-daemon[936]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Jun 30 11:17:16 localhost.localdomain systemd[1834]: Starting Cleanup of User's Temporary Files and Directories...
Jun 30 11:17:16 localhost.localdomain systemd[1834]: Finished Cleanup of User's Temporary Files and Directories.
Jun 30 11:17:27 localhost.localdomain dbus-daemon[936]: [system] Activating service name='org.kde.powerdevil.backlighthelper' requested by ':1.26' (uid=1000 pid=2038 comm="/usr/lib64/libexec/org_kde_powerdevil ") (using servicehelper)
Jun 30 11:17:27 localhost.localdomain dbus-daemon[936]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Jun 30 11:17:58 localhost.localdomain plasmashell[2037]: QQmlExpression: Expression file:///usr/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/ExpandedRepresentation.qml:123:21 depends on non-NOTIFYable properties:
Jun 30 11:17:58 localhost.localdomain plasmashell[2037]:     QAction::priority
Jun 30 11:17:58 localhost.localdomain plasmashell[2037]:     QAction::priority
Jun 30 11:17:58 localhost.localdomain plasmashell[2037]:     QAction::priority
Jun 30 11:17:58 localhost.localdomain plasmashell[2037]:     QAction::priority
Jun 30 11:17:58 localhost.localdomain plasmashell[2037]:     QAction::priority
Jun 30 11:17:58 localhost.localdomain plasmashell[2037]:     QAction::priority
Jun 30 11:17:58 localhost.localdomain plasmashell[2037]:     QAction::priority
Jun 30 11:17:58 localhost.localdomain plasmashell[2037]:     QAction::priority


I don’t think it’s failing hardware, otherwise the external keyboard would not work at the very beginning to decrypt the disk

I had to add these to the /etc/default/grub line GRUB_CMDLINE_LINUX_DEFAULT usbcore.autosuspend=-1 intel_pstate=disable on some laptops to keep the USB from going to sleep.

It has to be rebooted after the “grub2-mkconfig -o /boot/grub2/grub.cfg” is done

Yes!!! That worked!
I removed the intel_pstate option though, as I have an AMD processor.

For didascalic purposes, it would be interesting to know what has changed so that now I have to explicitly tell the system not to send the USBs to sleep…

Thanks a lot larryr and everyone else for your support, it has been much appreciated

BIOS settings may help.