# Plugging in USB (Wacom tablets) logs users off

**URL:** <https://forums.rockylinux.org/t/plugging-in-usb-wacom-tablets-logs-users-off/15878>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-8\
**Created:** [September 18, 2024, 11:20am UTC](https://forums.rockylinux.org/t/plugging-in-usb-wacom-tablets-logs-users-off/15878 "2024-09-18T11:20:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lyse](https://avatars.discourse-cdn.com/v4/letter/l/47e85d/32.png) [@Lyse](https://forums.rockylinux.org/u/Lyse)\
**Post date:** [September 18, 2024, 11:20am UTC](https://forums.rockylinux.org/t/plugging-in-usb-wacom-tablets-logs-users-off/15878/1 "2024-09-18T11:20:15Z")

</div>

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](https://paste.quest/?8bcda9cb664f7590#T8GzKx7Wa6CrBH8hf2G2YtgHTb7USoqRXh3UhSd12DM)

Xorg log:

> **[\[1694467.333\] (--) Log file renamed from "/var/log/Xorg.pid-1033444.log" to...](https://pastebin.com/RBfi0wNN)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

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

---

<div class="post-metadata">

**Author:** ![sspencerwire](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@sspencerwire](https://forums.rockylinux.org/u/sspencerwire)\
**Post date:** [September 18, 2024, 1:36pm UTC](https://forums.rockylinux.org/t/plugging-in-usb-wacom-tablets-logs-users-off/15878/2 "2024-09-18T13:36:23Z")

</div>

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](https://github.com/USBGuard/usbguard/issues/472)

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

```auto
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

---

<div class="post-metadata">

**Author:** ![Lyse](https://avatars.discourse-cdn.com/v4/letter/l/47e85d/32.png) [@Lyse](https://forums.rockylinux.org/u/Lyse)\
**Post date:** [September 18, 2024, 1:58pm UTC](https://forums.rockylinux.org/t/plugging-in-usb-wacom-tablets-logs-users-off/15878/3 "2024-09-18T13:58:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Lyse](https://avatars.discourse-cdn.com/v4/letter/l/47e85d/32.png) [@Lyse](https://forums.rockylinux.org/u/Lyse)\
**Post date:** [October 11, 2024, 8:23am UTC](https://forums.rockylinux.org/t/plugging-in-usb-wacom-tablets-logs-users-off/15878/4 "2024-10-11T08:23:12Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![label](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@label](https://forums.rockylinux.org/u/label)\
**Post date:** [October 11, 2024, 9:03am UTC](https://forums.rockylinux.org/t/plugging-in-usb-wacom-tablets-logs-users-off/15878/5 "2024-10-11T09:03:29Z")

</div>

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.

```auto
[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

```

---

<div class="post-metadata">

**Author:** ![robbott](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@robbott](https://forums.rockylinux.org/u/robbott)\
**Post date:** [October 15, 2024, 6:46pm UTC](https://forums.rockylinux.org/t/plugging-in-usb-wacom-tablets-logs-users-off/15878/6 "2024-10-15T18:46:07Z")

</div>

I added `usbcore.autosuspend=-1` to the end of `GRUB_CMDLINE_LINUX=...` in /etc/default/grub and ran `/usr/sbin/grub2-mkconfig -o /boot/efi/EFI/rocky/grub.cfg` (or maybe you need `/usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg`)

i read on Rocky 9.4 you are supposed to run grubby to update grub but I did not try it yet …

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [December 14, 2024, 6:46pm UTC](https://forums.rockylinux.org/t/plugging-in-usb-wacom-tablets-logs-users-off/15878/7 "2024-12-14T18:46:32Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
