Plugging in USB (Wacom tablets) logs users off

I thought this was faulty hardware but seems to be multiple people with this issue on their workstations and I found no hardware issue or BIOS setting that seems off.

We are using Rocky 8.10 and 8.9.

Issue is wacom tablet stops working, artists will unplug and plug it in again and 30% of the time this will log of user into what seems half shutdown causing some services to shutdown, so a full restart is need.

Dmesg output about Wacome:
https://paste.quest/?8bcda9cb664f7590#T8GzKx7Wa6CrBH8hf2G2YtgHTb7USoqRXh3UhSd12DM

Xorg log:

I am at loss on what to do, any suggestions would be helpful.

I’m no expert regarding this, but my first question is:

Do you have usbguard installed? (sudo systemctl status usbguard)? If so, you might try either disabling the daemon and rebooting OR the solution suggested here

I’m basing this question on this from your pastebin:

usb 6-3.2: Device is not authorized for usage

If that’s not the case, I’m hoping someone else will chime in here.

Steve

That’s a good suggestion I will look closer on USBguard, wacom is whitelisted:
13: allow id 056a:0357 serial “1KQ00A1005580” name “Wacom Intuos Pro M”

But maybe Wacom ID changes at some point, but still don’t think that would explain why they get logged out when plugging tablet in again, I tried to reproduce this but no luck so far.

I fixed this issue with changing:

autosuspend to -1, so turning off the ability of USB to fall asleep.

echo -1 > /sys/module/usbcore/parameters/autosuspend

This isn’t permanent and need to be reapplied every restart. Not found out how to make it permanent.

One idea to make it sort of permanent is to make a systemd service do it for you. Put it in something like /etc/systemd/system/usbsuspend.service and enable it.

[Unit]
Description=Disable autosuspend on startup

[Service]
Type=oneshot
ExecStart=/bin/bash -c "echo -1 > /sys/module/usbcore/parameters/autosuspend"

[Install]
WantedBy=multi-user.target
1 Like