Re: GameSir-G7 idle disconnect
On 8/12/25 6:22 AM, Thomas Schmitt wrote:
Hi,
Thomas Southerland wrote:
I'm running debian sid and purchased a wired usb game controller for gaming.
The controller configures fine when plugged in and works using lutris
flatpak without issue.
When not in use, it constantly disconnects and reconnects:
Aug 11 06:03:47 tas kernel: usb 3-2: USB disconnect, device number 78
Aug 11 06:03:49 tas kernel: usb 3-2: new full-speed USB device number 79 using xhci_hcd
Aug 11 06:03:49 tas kernel: usb 3-2: New USB device found, idVendor=3537, idProduct=1065, bcdDevice= 6.40
Aug 11 06:03:49 tas kernel: usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
I suspect this is some type of idle timeout and attempted a udev rule but
this is not working:
I would rather suspect a problem with the hardware.
Disconnecting is normally an action of the attached device, not of the
driver.
https://docs.kernel.org/6.0/driver-api/usb/power-management.html#what-is-power-management
mentions "autosuspend" but i cannot find an example of a system log
message which would announce such an action.
$ cat /etc/udev/rules.d/99-gamesir-g7.rules
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="3537",
ATTR{idProduct}=="1065", ATTR{power/control}="on"
This systemd rule is supposed to disable autosuspend.
This supports the suspicion that the disconnect is not caused by
the operating system.
Have a nice day :)
Thomas
Thank you but this doesn't appear to be a random hardware disconnect as
it is too cyclical. I performed a fresh reboot and ran a test:
$ sudo journalctl -b0 | egrep 'usb 3-2: USB disconnect|usb 3-2: new
full-speed USB'
Aug 12 07:27:11 tas kernel: usb 3-2: new full-speed USB device number 3
using xhci_hcd
Aug 12 07:27:53 tas kernel: usb 3-2: USB disconnect, device number 3
Aug 12 07:27:55 tas kernel: usb 3-2: new full-speed USB device number 6
using xhci_hcd
Aug 12 07:28:37 tas kernel: usb 3-2: USB disconnect, device number 6
Aug 12 07:28:39 tas kernel: usb 3-2: new full-speed USB device number 7
using xhci_hcd
Aug 12 07:29:21 tas kernel: usb 3-2: USB disconnect, device number 7
Aug 12 07:29:23 tas kernel: usb 3-2: new full-speed USB device number 8
using xhci_hcd
Aug 12 07:30:05 tas kernel: usb 3-2: USB disconnect, device number 8
Aug 12 07:30:07 tas kernel: usb 3-2: new full-speed USB device number 9
using xhci_hcd
Aug 12 07:30:49 tas kernel: usb 3-2: USB disconnect, device number 9
Aug 12 07:30:51 tas kernel: usb 3-2: new full-speed USB device number 10
using xhci_hcd
I then ran a background job to keep the device open:
$ date
Tue Aug 12 07:31:10 AM EDT 2025
$ cat /dev/input/event11 > /dev/null &
[1] 4285
(wait a bit) The disconnects stop:
$ date
Tue Aug 12 07:37:12 AM EDT 2025
$ sudo journalctl -b0 | egrep 'usb 3-2: USB disconnect|usb 3-2: new
full-speed USB'
Aug 12 07:27:11 tas kernel: usb 3-2: new full-speed USB device number 3
using xhci_hcd
Aug 12 07:27:53 tas kernel: usb 3-2: USB disconnect, device number 3
Aug 12 07:27:55 tas kernel: usb 3-2: new full-speed USB device number 6
using xhci_hcd
Aug 12 07:28:37 tas kernel: usb 3-2: USB disconnect, device number 6
Aug 12 07:28:39 tas kernel: usb 3-2: new full-speed USB device number 7
using xhci_hcd
Aug 12 07:29:21 tas kernel: usb 3-2: USB disconnect, device number 7
Aug 12 07:29:23 tas kernel: usb 3-2: new full-speed USB device number 8
using xhci_hcd
Aug 12 07:30:05 tas kernel: usb 3-2: USB disconnect, device number 8
Aug 12 07:30:07 tas kernel: usb 3-2: new full-speed USB device number 9
using xhci_hcd
Aug 12 07:30:49 tas kernel: usb 3-2: USB disconnect, device number 9
Aug 12 07:30:51 tas kernel: usb 3-2: new full-speed USB device number 10
using xhci_hcd
As soon as the device is no longer kept open, it starts up again:
$ kill %1
[1]+ Terminated cat /dev/input/event11 > /dev/null
(wait a bit)
$ sudo journalctl -b0 | egrep 'usb 3-2: USB disconnect|usb 3-2: new
full-speed USB'|tail -4
Aug 12 07:30:49 tas kernel: usb 3-2: USB disconnect, device number 9
Aug 12 07:30:51 tas kernel: usb 3-2: new full-speed USB device number 10
using xhci_hcd
Aug 12 07:39:33 tas kernel: usb 3-2: USB disconnect, device number 10
Aug 12 07:39:35 tas kernel: usb 3-2: new full-speed USB device number 11
using xhci_hcd
It appears to disconnect every 44 seconds or so when the device is not
in use.
I should also acknowledge that I have tried different cables and ports
on my desktop system (ROG STRIX X570-I GAMING)
but this has made no difference. This may have nothing to do with power
saving actions.
Reply to: