42
submitted 1 year ago* (last edited 1 year ago) by Fredol@lemmy.world to c/linux@lemmy.ml

My Logitech G Pro wireless does not work unless replugged at every boot. Is there any workaround/fix? Or is it a persistent bug? I've been experiencing this across multiple distros and wireless mice

EDIT: Adding usbcore.autosuspend=-1 to my kernel boot parameters seems to fix the problem. Thanks everyone!

top 9 comments
sorted by: hot top controversial new old
[-] d3Xt3r@lemmy.nz 18 points 1 year ago

Your device propably has autosuspend enabled. Try "modprobe usbcore autosuspend=-1" and restart your machine. I think this might work. You can read more about this here https://www.kernel.org/doc/Documentation/usb/power-management.txt

https://old.reddit.com/r/linuxquestions/comments/rufre5/new_mouse_does_not_work_after_reboot/

[-] Churbleyimyam@lemm.ee 2 points 1 year ago

Would something like this also work for the headphones port?

[-] SpeedLimit55@lemmy.world 7 points 1 year ago

Have you tried a different usb port? Sometimes certain peripherals work better in USB 2 ports vs 3. Also sometimes you can go into bios and set certain ports to always on.

[-] WeAreAllOne@lemm.ee 4 points 1 year ago

I suppose you use a USB dongle? I'm not familiar with that mouse. It is not a Bluetooth one right ?

If it is a USB one , then Linux just closes-switxhes off every USB port on boot unless you instruct it to leave one open which means you have to keep the dongle constantly plugged in the port if you suspend to sleep. Don't know which distro u have but there are quite few guides online to make this happen.

[-] Fredol@lemmy.world 3 points 1 year ago

It's a dongle, I use OpenSuse Tumbleweed

[-] WeAreAllOne@lemm.ee 1 points 1 year ago

Hello again. Don't know if you solved this but here's what I did to my system (also OpenSuseTumbleweed). Create a file in /usr/local/sbin/ , lets say usbwakeup.sh. In that file put this:

#!/bin/bash
#
#######################
# GENERAL INFORMATION #
#######################
#
# - This script enables / disables wake up from suspend# for USB devices.
#
# - The script needs execution permissions.
#
# - For this script to be executed when the system starts, there must be
#   a symbolic link to it in /etc/rc3.d/ with priority S01
#   (for example: /etc/rc3.d/S01usbwakeup)
#
###########################
# RELATED USEFUL COMMANDS #
###########################
#
# - Identify USB devices:
#   grep . /sys/bus/usb/devices/*/product
#
# - Check the status of "wake up of the suspension" of USB devices:
#   grep . /sys/bus/usb/devices/*/power/wakeup
#
#
##################
# SCRIPT ACTIONS #
##################
#
# Disables wake up from suspend for optical mouse
#echo disabled > /sys/bus/usb/devices/3-3/power/wakeup
#
# Enables wake up from suspend for the wireless keyboard
#that I have connected to a USB 3.0 HUB in the USB port nr.4
echo enabled > /sys/bus/usb/devices/1-2/power/wakeup

Then in /etc/systemd/system/ create a file eg. my-wakeup.service and insert :

[Unit]
Desription=Usb wakeup    

[Service]
ExecStart=/usr/local/sbin/usbwakeup.sh

[Install]
WantedBy=multi-user.target

Save of course everything, keep the dogle in and restart. This will work in every wakeup from suspend and also when restarting. If you unplug the dongle you will have to put it back in and restart to make this to work again.

Hope that helps.

[-] Fredol@lemmy.world 1 points 1 year ago

Thanks for you solution, I did actually solve it and put my solution as an edit of the original post. Thank you for sharing still

[-] WeAreAllOne@lemm.ee 1 points 1 year ago
[-] penquin@lemmy.kde.social 3 points 1 year ago

I've had a similar issue where the mouse and keyboard both either stop working or just lag like hell. I plugged the dongle into the USB3 port and they have been working just fine ever since. The USB3 port is the blue one in case you didn't know.

this post was submitted on 04 Oct 2023
42 points (100.0% liked)

Linux

47970 readers
1478 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS