When booting up my keyboard and mouse both dont work for a full minute before all of the sudden they start working

Im using a ROG Falchion wireless keyboard and a logitech G305 lightspeed mouse and when i boot into garuda they both stop working once i get to the lock screen. mouse and keyboard work fine in the bios and grub but not once ive booted into the OS. then after at least a full minuite they both start working. The only thing ive tried so far is switching from wayland to X11 and i am having the same issue

Welcome to the Garuda forum @Indigoknight . :wave:

Please be sure to post your garuda-inxi output along with any request for assistance.

Are these devices both using Bluetooth.

If so please read the Arch Wiki’s entries regarding Bluetooth:

https://wiki.archlinux.org/title/Bluetooth#Pairing

You will want to pay paticular attention to the section regarding Discoverable on startup.


Edit:


Same issue reported on the Arch forum recently:

https://bbs.archlinux.org/viewtopic.php?id=300126

No solution as yet, but if you disconnect your power source, then boot the delay goes away (must be repeated on every boot).


You may want to try replacing bluedevil with an alternate power manager such as TLP:

https://wiki.archlinux.org/title/TLP


3 Likes

Ran into this issue starting on Sunday. Though I did something.

System:
Kernel: 6.11.3-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
clocksource: tsc avail: hpet,acpi_pm
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=59efc712-f72f-4a58-9119-d5357fb75fac rw rootflags=subvol=@
quiet loglevel=3 ibt=off
Desktop: KDE Plasma v: 6.2.0 tk: Qt v: N/A info: frameworks v: 6.7.0
wm: kwin_wayland vt: 1 dm: SDDM Distro: Garuda base: Arch Linux
Machine:
Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
Mobo: ASUSTeK model: TUF GAMING B550-PLUS WIFI II v: Rev X.0x
serial: <superuser required> part-nu: SKU uuid: <superuser required>
UEFI: American Megatrends v: 3607 date: 03/22/2024
Battery:
Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard K360
serial: <filter> charge: 100% (should be ignored) rechargeable: yes
status: discharging
CPU:
Info: model: AMD Ryzen 7 5700X bits: 64 type: MT MCP arch: Zen 3+ gen: 3
level: v3 note: check built: 2022 process: TSMC n6 (7nm) family: 0x19 (25)
model-id: 0x21 (33) stepping: 2 microcode: 0xA20120E
Topology: cpus: 1x dies: 1 clusters: 1 cores: 8 threads: 16 tpc: 2
smt: enabled cache: L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB
desc: 8x512 KiB L3: 32 MiB desc: 1x32 MiB
Speed (MHz): avg: 4640 min/max: 550/4663 boost: enabled scaling:
driver: amd-pstate-epp governor: performance cores: 1: 4640 2: 4640 3: 4640
4: 4640 5: 4640 6: 4640 7: 4640 8: 4640 9: 4640 10: 4640 11: 4640 12: 4640
13: 4640 14: 4640 15: 4640 16: 4640 bogomips: 108597
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3
Vulnerabilities: <filter>
Graphics:
Device-1: NVIDIA GA106 [GeForce RTX 3060 Lite Hash Rate] vendor: ASUSTeK
driver: nvidia v: 560.35.03 alternate: nouveau,nvidia_drm non-free: 550.xx+
status: current (as of 2024-09; EOL~2026-12-xx) arch: Ampere code: GAxxx
process: TSMC n7 (7nm) built: 2020-2023 pcie: gen: 4 speed: 16 GT/s
lanes: 16 ports: active: none off: HDMI-A-1 empty: DP-1,DP-2,DP-3
bus-ID: 0a:00.0 chip-ID: 10de:2504 class-ID: 0300
Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.3
compositor: kwin_wayland driver: X: loaded: nvidia unloaded: modesetting
alternate: fbdev,nouveau,nv,vesa gpu: nvidia display-ID: 0
Monitor-1: HDMI-A-1 res: 2560x1440 size: N/A modes: N/A
API: EGL v: 1.5 hw: drv: nvidia platforms: device: 0 drv: nvidia device: 2
drv: swrast gbm: drv: nvidia surfaceless: drv: nvidia wayland: drv: nvidia
x11: drv: nvidia inactive: device-1
API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 560.35.03
glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce RTX 3060/PCIe/SSE2
memory: 11.72 GiB display-ID: :1.0
API: Vulkan v: 1.3.295 layers: 7 device: 0 type: discrete-gpu
name: NVIDIA GeForce RTX 3060 driver: nvidia v: 560.35.03
device-ID: 10de:2504 surfaces: xcb,xlib,wayland
Audio:
Device-1: NVIDIA GA106 High Definition Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 0a:00.1 chip-ID: 10de:228e class-ID: 0403
Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio
vendor: ASUSTeK driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s
lanes: 16 bus-ID: 0c:00.4 chip-ID: 1022:1487 class-ID: 0403
API: ALSA v: k6.11.3-zen1-1-zen status: kernel-api with: aoss
type: oss-emulator tools: N/A
Server-1: PipeWire v: 1.2.5 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
speed: 5 GT/s lanes: 1 bus-ID: 07:00.0 chip-ID: 8086:2723 class-ID: 0280
IF: wlp7s0 state: down mac: <filter>
Device-2: Realtek RTL8125 2.5GbE vendor: ASUSTeK driver: r8169 v: kernel
pcie: gen: 2 speed: 5 GT/s lanes: 1 port: f000 bus-ID: 09:00.0
chip-ID: 10ec:8125 class-ID: 0200
IF: enp9s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Info: services: NetworkManager, smbd, systemd-timesyncd, wpa_supplicant
Bluetooth:
Device-1: Intel AX200 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-7.4:14 chip-ID: 8087:0029
class-ID: e001
Report: btmgmt ID: hci0 rfk-id: 1 state: down bt-service: enabled,running
rfk-block: hardware: no software: no address: <filter> bt-v: 5.2 lmp-v: 11
status: discoverable: no pairing: no
Drives:
Local Storage: total: 34.11 TiB used: 19.09 TiB (56.0%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Crucial model: CT1000T500SSD8
size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
lanes: 4 tech: SSD serial: <filter> fw-rev: P8CR002 temp: 35.9 C
scheme: GPT
ID-2: /dev/nvme1n1 maj-min: 259:4 vendor: Crucial model: CT500P3SSD8
size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 tech: SSD serial: <filter> fw-rev: P9CR30A temp: 30.9 C
scheme: GPT
ID-3: /dev/sda maj-min: 8:0 vendor: Seagate model: Expansion HDD
size: 14.55 TiB block-size: physical: 4096 B logical: 512 B type: USB
rev: 3.2 spd: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 tech: N/A serial: <filter>
fw-rev: 1801 scheme: GPT
ID-4: /dev/sdb maj-min: 8:16 vendor: Seagate model: Expansion HDD
size: 10.91 TiB block-size: physical: 4096 B logical: 512 B type: USB
rev: 3.2 spd: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 tech: N/A serial: <filter>
fw-rev: 0003 scheme: GPT
ID-5: /dev/sdc maj-min: 8:32 vendor: Seagate model: Expansion HDD
size: 7.28 TiB block-size: physical: 4096 B logical: 512 B type: USB
rev: 3.2 spd: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 tech: N/A serial: <filter>
fw-rev: 1801 scheme: GPT
Partition:
ID-1: / raw-size: 465.61 GiB size: 465.61 GiB (100.00%)
used: 37.33 GiB (8.0%) fs: btrfs dev: /dev/nvme0n1p4 maj-min: 259:3
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 182.4 MiB (60.9%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 465.61 GiB size: 465.61 GiB (100.00%)
used: 37.33 GiB (8.0%) fs: btrfs dev: /dev/nvme0n1p4 maj-min: 259:3
ID-4: /var/log raw-size: 465.61 GiB size: 465.61 GiB (100.00%)
used: 37.33 GiB (8.0%) fs: btrfs dev: /dev/nvme0n1p4 maj-min: 259:3
ID-5: /var/tmp raw-size: 465.61 GiB size: 465.61 GiB (100.00%)
used: 37.33 GiB (8.0%) fs: btrfs dev: /dev/nvme0n1p4 maj-min: 259:3
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
ID-1: swap-1 type: zram size: 46.96 GiB used: 5.4 GiB (11.5%)
priority: 100 comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 16
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 46.4 C mobo: N/A
Fan Speeds (rpm): N/A
Info:
Memory: total: 48 GiB available: 46.96 GiB used: 13.05 GiB (27.8%)
Processes: 488 Power: uptime: 13h 35m states: freeze,mem,disk
suspend: deep avail: s2idle wakeups: 0 hibernate: platform avail: shutdown,
reboot, suspend, test_resume image: 18.73 GiB services: org_kde_powerdevil,
power-profiles-daemon, upowerd Init: systemd v: 256 default: graphical
tool: systemctl
Packages: 2174 pm: pacman pkgs: 2167 libs: 593 tools: pacseek,pikaur,yay
pm: flatpak pkgs: 0 pm: snap pkgs: 7 Compilers: clang: 18.1.8 gcc: 14.2.1
Shell: garuda-inxi default: Zsh v: 5.8 running-in: konsole inxi: 3.3.36
Garuda (2.6.26-1):
System install date:     2024-10-14
Last full system update: 2024-10-15 ↻
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut nvidia-dkms
Windows dual boot:       No/Undetected
Failed units:

Are you guys both using a Bluetooth mouse & keyboard?

I’m not. Keyboard doesn’t support it and the mouse does but I use under normal USB. I really should do my reboot maybe with the 6.2.1 update it might be addressed. Give me a few and I’ll report back.

EDIT:

OK did my reboot and as I suspected the issue is still there. From the system sounds my impression is that they’re being disconnected shortly after being connected and then after about a minute reconnecting and staying connected til the next boot.

Here is my garuda-inxi
Also they arent using bluetooth they are using 2.4ghz dongles

System:
Kernel: 6.11.2-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
clocksource: tsc avail: hpet,acpi_pm
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=43e6230f-09f8-43bf-8b54-294ebcac44bc rw rootflags=subvol=@
quiet resume=UUID=3ceab769-24e3-450b-88a0-0b6ab47f44b9 loglevel=3 ibt=off
Desktop: KDE Plasma v: 6.1.5 tk: Qt v: N/A info: frameworks v: 6.6.0
wm: kwin_x11 vt: 2 dm: SDDM Distro: Garuda base: Arch Linux
Machine:
Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
Mobo: ASUSTeK model: TUF GAMING B550-PLUS WIFI II v: Rev X.0x
serial: <superuser required> part-nu: SKU uuid: <superuser required>
UEFI: American Megatrends v: 3002 date: 02/23/2023
Battery:
Device-1: hidpp_battery_0 model: Logitech G305 Lightspeed Wireless Gaming
Mouse serial: <filter> charge: 100% (should be ignored) rechargeable: yes
status: discharging
CPU:
Info: model: AMD Ryzen 9 5900X bits: 64 type: MT MCP arch: Zen 3+ gen: 3
level: v3 note: check built: 2022 process: TSMC n6 (7nm) family: 0x19 (25)
model-id: 0x21 (33) stepping: 2 microcode: 0xA20120A
Topology: cpus: 1x dies: 1 clusters: 1 cores: 12 threads: 24 tpc: 2
smt: enabled cache: L1: 768 KiB desc: d-12x32 KiB; i-12x32 KiB L2: 6 MiB
desc: 12x512 KiB L3: 64 MiB desc: 2x32 MiB
Speed (MHz): avg: 550 min/max: 550/5619 boost: disabled scaling:
driver: amd-pstate-epp governor: performance,powersave cores: 1: 550 2: 550
3: 550 4: 550 5: 550 6: 550 7: 550 8: 550 9: 550 10: 550 11: 550 12: 550
13: 550 14: 550 15: 550 16: 550 17: 550 18: 550 19: 550 20: 550 21: 550
22: 550 23: 550 24: 550 bogomips: 201606
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: Intel DG2 [Arc A750] driver: i915 v: kernel alternate: xe
arch: Gen-12.7 code: Alchemist process: TSMC n6 (7nm) built: 2022+ pcie:
gen: 1 speed: 2.5 GT/s lanes: 1 ports: active: DP-1 empty: DP-2, DP-3,
DP-4, HDMI-A-1, HDMI-A-2, HDMI-A-3 bus-ID: 09:00.0 chip-ID: 8086:56a1
class-ID: 0300
Display: x11 server: X.Org v: 21.1.13 with: Xwayland v: 24.1.2
compositor: kwin_x11 driver: X: loaded: modesetting
alternate: fbdev,intel,vesa dri: iris gpu: i915 display-ID: :0 screens: 1
Screen-1: 0 s-res: 3840x2160 s-dpi: 96 s-size: 1016x571mm (40.00x22.48")
s-diag: 1165mm (45.88")
Monitor-1: DP-1 model: Roku TV built: 2020 res: 3840x2160 hz: 60 dpi: 122
gamma: 1.2 size: 800x450mm (31.5x17.72") diag: 1263mm (49.7") ratio: 16:9
modes: max: 3840x2160 min: 720x400
API: EGL v: 1.5 hw: drv: intel iris platforms: device: 0 drv: iris
device: 1 drv: swrast gbm: drv: iris surfaceless: drv: iris x11: drv: iris
inactive: wayland
API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa v: 24.2.4-arch1.1
glx-v: 1.4 direct-render: yes renderer: Mesa Intel Arc A750 Graphics (DG2)
device-ID: 8086:56a1 memory: 7.75 GiB unified: no
API: Vulkan v: 1.3.295 layers: 13 device: 0 type: discrete-gpu name: Intel
Arc A750 Graphics (DG2) driver: mesa intel v: 24.2.4-arch1.1
device-ID: 8086:56a1 surfaces: xcb,xlib device: 1 type: cpu name: llvmpipe
(LLVM 18.1.8 256 bits) driver: mesa llvmpipe v: 24.2.4-arch1.1 (LLVM
18.1.8) device-ID: 10005:0000 surfaces: xcb,xlib
Audio:
Device-1: Intel DG2 Audio driver: snd_hda_intel v: kernel pcie: gen: 1
speed: 2.5 GT/s lanes: 1 bus-ID: 0a:00.0 chip-ID: 8086:4f90 class-ID: 0403
Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio
vendor: ASUSTeK driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s
lanes: 16 bus-ID: 0c:00.4 chip-ID: 1022:1487 class-ID: 0403
Device-3: C-Media Blue Snowball driver: hid-generic,snd-usb-audio,usbhid
type: USB rev: 1.1 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-1.3:5
chip-ID: 0d8c:0005 class-ID: 0300 serial: <filter>
Device-4: Texas Instruments PCM2902 Audio Codec
driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
lanes: 1 mode: 1.1 bus-ID: 1-1.4.4.4:16 chip-ID: 08bb:2902 class-ID: 0300
API: ALSA v: k6.11.2-zen1-1-zen status: kernel-api with: aoss
type: oss-emulator tools: N/A
Server-1: PipeWire v: 1.2.5 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: MEDIATEK MT7921 802.11ax PCI Express Wireless Network Adapter
vendor: AzureWave driver: mt7921e v: kernel pcie: gen: 2 speed: 5 GT/s
lanes: 1 bus-ID: 05:00.0 chip-ID: 14c3:7961 class-ID: 0280
IF: wlp5s0 state: up mac: <filter>
Device-2: Realtek RTL8125 2.5GbE vendor: ASUSTeK driver: r8169 v: kernel
pcie: gen: 2 speed: 5 GT/s lanes: 1 port: f000 bus-ID: 06:00.0
chip-ID: 10ec:8125 class-ID: 0200
IF: enp6s0 state: down mac: <filter>
Info: services: NetworkManager, smbd, systemd-timesyncd, wpa_supplicant
Drives:
Local Storage: total: 4.32 TiB used: 47.48 GiB (1.1%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Sabrent model: SB-RKT4P-2TB
size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
lanes: 4 tech: SSD serial: <filter> fw-rev: R4PB47.4 temp: 28.9 C
scheme: GPT
ID-2: /dev/sda maj-min: 8:0 vendor: Crucial model: CT1000MX500SSD1
size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
tech: SSD serial: <filter> fw-rev: 046 scheme: GPT
ID-3: /dev/sdb maj-min: 8:16 vendor: Patriot model: P210 256GB
size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
tech: SSD serial: <filter> fw-rev: 4A0 scheme: GPT
ID-4: /dev/sdc maj-min: 8:32 vendor: Seagate model: ST1000DM003-1SB102
size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
tech: HDD rpm: 7200 serial: <filter> fw-rev: CC63 scheme: GPT
ID-5: /dev/sdd maj-min: 8:48 vendor: SanDisk model: USB 3.2Gen1
size: 460.27 GiB block-size: physical: 512 B logical: 512 B type: USB
rev: 3.2 spd: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 tech: N/A serial: <filter>
fw-rev: 1.00
SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
ID-1: / raw-size: 1.79 TiB size: 1.79 TiB (100.00%) used: 47.48 GiB (2.6%)
fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 584 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 1.79 TiB size: 1.79 TiB (100.00%)
used: 47.48 GiB (2.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-4: /var/log raw-size: 1.79 TiB size: 1.79 TiB (100.00%)
used: 47.48 GiB (2.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-5: /var/tmp raw-size: 1.79 TiB size: 1.79 TiB (100.00%)
used: 47.48 GiB (2.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
ID-1: swap-1 type: zram size: 31.22 GiB used: 0 KiB (0.0%) priority: 100
comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 24 dev: /dev/zram0
ID-2: swap-2 type: partition size: 34.34 GiB used: 0 KiB (0.0%)
priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:3
Sensors:
System Temperatures: cpu: 33.1 C mobo: 28.0 C
Fan Speeds (rpm): N/A
Info:
Memory: total: 32 GiB available: 31.22 GiB used: 2.98 GiB (9.6%)
Processes: 479 Power: uptime: 3m states: freeze,mem,disk suspend: deep
avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
suspend, test_resume image: 12.47 GiB services: org_kde_powerdevil,
power-profiles-daemon, upowerd Init: systemd v: 256 default: graphical
tool: systemctl
Packages: pm: pacman pkgs: 1883 libs: 550 tools: octopi,paru Compilers:
clang: 18.1.8 gcc: 14.2.1 Shell: garuda-inxi default: fish v: 3.7.1
running-in: konsole inxi: 3.3.36
Garuda (2.6.26-1):
System install date:     2024-10-08
Last full system update: 2024-10-15
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut
Windows dual boot:       No/Undetected
Failed units:

I have edited your inxi post for you. Please press the edit button (pencil icon) at the bottom of your post to see how code blocks should be formatted, (3 tildes before and after).

Ill do that from now on thanks

1 Like

I assume you have tested alternate USB ports. Are you connecting directly to your computer, or are you using a hub, dock, monitor port.

Test the different USB ports front and back of computer.

Try a PS/2 mouse if your have one in your tech museum. I always keep one on hand just in case of issues with wireless/USB.

I think you know how to write a systemd service @locutus.

Read the thread below:

https://bbs.archlinux.org/viewtopic.php?id=273039

It contains a suspend service to restart keyboard and mouse at resume.

You can edit it to create a startup service. If the service runs during boot up perhaps it can workaround your issue.

2 Likes

I had tried a couple of different usb options but just now have done a deeper dive into trying them all. i found 1 that seemed to be active right at startup (there may be others i didnt test every one) As i sit far away from my pc i use a hub with a long usb extention for my mouse, keyboard, headset and mic. so plugging my hub into that one usb port that is active right away seems to have solved my issue at least on the last 2 boots and hopefully going forward.
When plugged into the original usb i was hearing the same disconect and reconnect as @Locutus was noticing.

1 Like

Glad you found a workaround, hopefully it sticks and you’re golden.

Again, welcome to the Garuda community.

2 Likes

You may want to check and see if a newer bios update is available. You really shouldn’t have only one USB port providing full power at startup.

Before I try to create a systemd service let me take a page from indigoknight and plug the dongles into the ports on the tower meant for them instead of the hub and see what I get.

1 Like

OK I plugged them directly into the tower and lost the keyboard so plugged them back into the hub and created the service and ended up losing all USB making me have to do a hard reboot. It was worth a shot, Thanks.

I appreciate your efforts, but without seeing the service itself itself I can’t say why it was ineffective.

I have used the script in that service for refreshing the USB bus many times in the past as I had a mobo that Gigabyte never released a bios update to correct USB issues on Linux. So, I do know for sure that script works extremely well. I’m sure I could get a service working correctly if the same thing was happening with my machine. Unfortunately, without the same symptoms occurring on my machine it would be difficult to try and correct your problem without your machine to work with.

Here’s what I created and dropped in the respective folders, did the permission, and started the service. I should add It’s not a huge deal in my book. It’s only about 30 seconds after landing on the desktop that I have the mouse and keyboard.

I appreciate you taking the initiative to post that info @Locutus. However, I and others who provide assistance on the forum will never download anything from an external file sharing site for security reasons.

If you were to post the service’s details here, I’d be more than happy to offer any suggestions to help get the service working. Sorry, but it always has to be security considerations that come first online.

3 Likes

That’s fine and I for one will never blame someone for that. Here’s the text for each.

# This service is used to work around an apparent bug that freezes 
# keyboard and mouse inputs after waking from sleep.
            
[Unit]
Description=Reset the keyboard and mouse after waking from sleep
After=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target
            
[Service]
ExecStart=/usr/local/bin/reset-input-devices.sh
CPUWeight=500
           
[Install]
WantedBy=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target
#! /bin/sh
# Reset the keyboard driver and USB mouse 
        
modprobe -r atkbd
modprobe atkbd reset=1
echo "Finished resetting the keyboard."
        
# Reset every USB device, because we don't know in advance which port
# the mouse is plugged into. Send errors to /dev/null to avoid 
# cluttering up the logs.
for USB in /sys/bus/usb/devices/*/authorized; do
    eval "echo 0 > $USB" 2>/dev/null 
    eval "echo 1 > $USB" 2>/dev/null
done
echo "Finished resetting USB inputs."
1 Like

Create the service file named:

/etc/systemd/system/usb-restart.service

With the following contents:

#/etc/systemd/system/usb-restart.service
#sudo systemctl enable usb-restart.service
#sudo systemctl start usb-restart.service
#systemctl list-unit-files --state=enabled
#sudo systemctl stop usb-restart.service
#sudo systemctl disable usb-restart.service
#systemctl status usb-restart.service
#sudo systemctl daemon-reload

[Unit]
Description=Restart USB
Before=display-manager.service
StopWhenUnneeded=yes

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/sudo -E  /usr/local/bin/restart_usb.sh

[Install]
WantedBy=display-manager.service

Create the script named:

/usr/local/bin/restart_usb.sh

With the following contents:

#!/bin/bash
#the keyboard section below is commented until the correct driver is confimed
#modprobe -r atkbd
#modprobe atkbd reset=1

#Disable all USB devices
#/usr/local/bin/restart_usb.sh
set -euo pipefail
IFS=$'\n\t'

VENDOR="****"
PRODUCT="****"

for DIR in $(find /sys/bus/usb/devices/ -maxdepth 1 -type l); do
  if [[ -f $DIR/idVendor && -f $DIR/idProduct &&
        $(cat $DIR/idVendor) == $VENDOR && $(cat $DIR/idProduct) == $PRODUCT ]]; then
    echo 0 > $DIR/authorized
    sleep 1
    echo 1 > $DIR/authorized
  fi
done

Make the above script executable.

The keyboard section of the script is commented until the correct driver is confirmed:

#modprobe -r atkbd
#modprobe atkbd reset=1

Check that you are using the atkbd keyboard module before uncommenting those lines.

I wrote and used this service quite a few years back, but the USB reset part of the service should still work fine. Test the service as is, then experiment with the keyboard reset section.

3 Likes