Hey Guys,
first of all, sorry for my bad english. Because i’m german, but i will do my best, that you understand me.
I have an Asus ROG Strix G733ZW Laptop. An the machine it runs Windows 11 Pro and Garuda Linux KDE Dragonized Edition on Dualboot.
To control the fans under Garuda Linux i use asusctl
and rog-control-center
. Then i found powertop
and in combination with the Asus stuff its the best total package for my laptop. The reason, that i mentioned, that i used the Asus stuff is, that tlp
caused conflicts with asusctl
and that means, that i can’t use tlp
for configuring the USB-Autosuspend options.
But i have one more or less problem: after every reboot my USB-Mouse stucks and i can’t move the cursor over the screen. Only if i click, then the mouse works. But after 2 or 3 seconds if i do nothing, the mouse freeze again. The only workround until then for me is to plug the mouse in an another USB-Port. But this can’t be the solution for that.
Can anybody tell me, how i can disable the USB-autosuspend feature only for the USB-Port which the mouse is pluged?
Many thanks for your help and best regards from Germany.
Naman
15 September 2023 06:46
2
Hi there, welcome to the community.
Please share the output of
garuda-inxi
And
cat /sys/module/usbcore/parameters/autosuspend
As text, enclosed within ~~~
So, if your output is Hello, you have to write
~~~
Hello
~~~
4 Likes
Thank you man for your answer.
Output of garuda-inxi
> System:
> Kernel: 6.5.3-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
> clocksource: tsc available: acpi_pm
> parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
> root=UUID=2b867869-1b5c-433f-84da-0008fde9aaf5 rw rootflags=subvol=@
> intel_pstate=passive intel_pstate=no_hwp quiet quiet
> rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3 ibt=off
> Desktop: KDE Plasma v: 5.27.8 tk: Qt v: 5.15.10 wm: kwin_x11 vt: 2
> dm: SDDM Distro: Garuda Linux base: Arch Linux
> Machine:
> Type: Laptop System: ASUSTeK product: ROG Strix G733ZW_G733ZW v: 1.0
> serial: <superuser required>
> Mobo: ASUSTeK model: G733ZW v: 1.0 serial: <superuser required>
> UEFI: American Megatrends LLC. v: G733ZW.324 date: 02/21/2023
> Battery:
> ID-1: BAT0 charge: 83.2 Wh (100.0%) condition: 83.2/90.0 Wh (92.5%)
> volts: 16.9 min: 15.9 model: AS3GWYF3KC GA50358 type: Unknown
> serial: <filter> status: full
> CPU:
> Info: model: 12th Gen Intel Core i9-12900H bits: 64 type: MST AMCP
> arch: Alder Lake gen: core 12 level: v3 note: check built: 2021+
> process: Intel 7 (10nm ESF) family: 6 model-id: 0x9A (154) stepping: 3
> microcode: 0x42C
> Topology: cpus: 1x cores: 14 mt: 6 tpc: 2 st: 8 threads: 20 smt: enabled
> cache: L1: 1.2 MiB desc: d-8x32 KiB, 6x48 KiB; i-6x32 KiB, 8x64 KiB
> L2: 11.5 MiB desc: 6x1.2 MiB, 2x2 MiB L3: 24 MiB desc: 1x24 MiB
> Speed (MHz): avg: 1172 high: 5000 min/max: 400/5000 scaling:
> driver: intel_cpufreq governor: schedutil cores: 1: 5000 2: 400 3: 1400
> 4: 400 5: 700 6: 400 7: 400 8: 738 9: 400 10: 400 11: 400 12: 400 13: 400
> 14: 400 15: 400 16: 686 17: 2641 18: 400 19: 2478 20: 5000
> bogomips: 116736
> Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
> Vulnerabilities: <filter>
> Graphics:
> Device-1: Intel Alder Lake-P Integrated Graphics vendor: ASUSTeK
> driver: i915 v: kernel arch: Gen-12.2 process: Intel 10nm built: 2021-22+
> ports: active: none empty: DP-1,DP-2 bus-ID: 00:02.0 chip-ID: 8086:46a6
> class-ID: 0380
> Device-2: NVIDIA GA104 [Geforce RTX 3070 Ti Laptop GPU] vendor: ASUSTeK
> driver: nvidia v: 535.104.05 alternate: nouveau,nvidia_drm non-free: 535.xx+
> status: current (as of 2023-08) arch: Ampere code: GAxxx
> process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 2 speed: 5 GT/s lanes: 8
> link-max: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 01:00.0
> chip-ID: 10de:24a0 class-ID: 0300
> Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.2.0
> compositor: kwin_x11 driver: X: loaded: modesetting,nouveau,nvidia
> alternate: fbdev,intel,nv,vesa dri: iris gpu: i915,nvidia display-ID: :0
> screens: 1
> Screen-1: 0 s-res: 2560x1440 s-dpi: 171 s-size: 380x210mm (14.96x8.27")
> s-diag: 434mm (17.09")
> Monitor-1: DP-2 pos: primary res: 2560x1440 dpi: 171
> size: 380x210mm (14.96x8.27") diag: 434mm (17.09") modes: N/A
> Monitor-2: None-2-1 size-res: N/A modes: N/A
> API: OpenGL v: 4.6.0 NVIDIA 535.104.05 renderer: NVIDIA GeForce RTX 3070
> Ti Laptop GPU/PCIe/SSE2 direct-render: Yes
> Audio:
> Device-1: Intel Alder Lake PCH-P High Definition Audio vendor: ASUSTeK
> driver: snd_hda_intel v: kernel alternate: snd_sof_pci_intel_tgl
> bus-ID: 00:1f.3 chip-ID: 8086:51c8 class-ID: 0403
> Device-2: NVIDIA GA104 High Definition Audio vendor: ASUSTeK
> driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 8
> link-max: lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:228b class-ID: 0403
> API: ALSA v: k6.5.3-zen1-1-zen status: kernel-api tools: N/A
> Server-1: PipeWire v: 0.3.79 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 Alder Lake-P PCH CNVi WiFi driver: iwlwifi v: kernel
> bus-ID: 00:14.3 chip-ID: 8086:51f0 class-ID: 0280
> IF: wlo1 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: 3000 bus-ID: 2e:00.0
> chip-ID: 10ec:8125 class-ID: 0200
> IF: enp46s0 state: down mac: <filter>
> Bluetooth:
> Device-1: Intel driver: btusb v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s
> lanes: 1 mode: 1.1 bus-ID: 3-10:4 chip-ID: 8087:0033 class-ID: e001
> Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.3
> lmp-v: 12 status: discoverable: no pairing: no class-ID: 7c010c
> Drives:
> Local Storage: total: 1.86 TiB used: 12.02 GiB (0.6%)
> SMART Message: Unable to run smartctl. Root privileges required.
> ID-1: /dev/nvme0n1 maj-min: 259:3 vendor: Micron model: 3400 MTFDKBA1T0TFH
> size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
> lanes: 4 tech: SSD serial: <filter> fw-rev: P7MA001 temp: 29.9 C
> scheme: GPT
> ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Western Digital model: PC SN530
> SDBPNPZ-1T00-1014 size: 953.87 GiB block-size: physical: 512 B
> logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
> fw-rev: 21103900 temp: 30.9 C scheme: GPT
> Partition:
> ID-1: / raw-size: 953.57 GiB size: 953.57 GiB (100.00%)
> used: 12.02 GiB (1.3%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:2
> ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
> used: 580 KiB (0.2%) fs: vfat dev: /dev/nvme1n1p1 maj-min: 259:1
> ID-3: /home raw-size: 953.57 GiB size: 953.57 GiB (100.00%)
> used: 12.02 GiB (1.3%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:2
> ID-4: /var/log raw-size: 953.57 GiB size: 953.57 GiB (100.00%)
> used: 12.02 GiB (1.3%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:2
> ID-5: /var/tmp raw-size: 953.57 GiB size: 953.57 GiB (100.00%)
> used: 12.02 GiB (1.3%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:2
> Swap:
> Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
> ID-1: swap-1 type: zram size: 31.01 GiB used: 0 KiB (0.0%) priority: 100
> comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 20 dev: /dev/zram0
> Sensors:
> System Temperatures: cpu: 38.0 C mobo: N/A gpu: nvidia temp: 41 C
> Fan Speeds (rpm): cpu: 5400
> Info:
> Processes: 390 Uptime: 8m wakeups: 41 Memory: total: 32 GiB
> available: 31.01 GiB used: 2.49 GiB (8.0%) Init: systemd v: 254
> default: graphical tool: systemctl Compilers: gcc: 13.2.1 Packages: 1362
> pm: pacman pkgs: 1354 libs: 340 tools: gnome-software,octopi,pamac,paru
> pm: flatpak pkgs: 8 Shell: fish v: 3.6.1 default: Bash v: 5.1.16
> running-in: konsole inxi: 3.3.29
> Garuda (2.6.16-1):
> System install date: 2023-09-14
> Last full system update: 2023-09-15
> Is partially upgraded: No
> Relevant software: snapper NetworkManager dracut nvidia-dkms
> Windows dual boot: Probably (Run as root to verify)
> Failed units:
Sorry for the circumstances, but i don’t know what do you mean with this part here.
Naman:
And
cat /sys/module/usbcore/parameters/autosuspend
As text, enclosed within ~~~
So, if your output is Hello, you have to write
Hello
noop
15 September 2023 09:27
4
Run the command in your terminal:
cat /sys/module/usbcore/parameters/autosuspend
Then, when you are posting it here on the forums to us, surround the output with ~~~ at the top and ~~~ at the bottom.
3 Likes
So, here is the Output:
File: /sys/module/usbcore/parameters/autosuspend
2
filo
15 September 2023 14:15
6
Maybe you could give a look at this:
https://wiki.archlinux.org/title/Power_management#USB_autosuspend
And, if necesary, e.g. to retrieve vendor, product, etc. of the device to be blacklisted, at this:
https://wiki.archlinux.org/title/Udev#Waking_from_suspend_with_USB_device
(or maybe just changing autosuspend
to 0 would disable autosuspend. Edit: to do this, you could try adding the kernel boot parameter usbcore.autosuspend=-1
, but I believe the udev rule is a cleaner solution)
6 Likes
Thanks again for all your input.
The kernel boot parameter did the trick for me.
The udev rule doesn’t work.
For the udev rule i did the following steps.
lsusb | grep Mouse
Output for this command:
Bus 003 Device 003: ID 1bcf:0005 Sunplus Innovation Technology Inc. Optical Mouse
grep 0005 /sys/bus/usb/devices/*/idProduct
Output here was:
/sys/bus/usb/devices/3-6/idProduct:0005
So, for my understanding the udev rule must look as follows:
in
/etc/udev/rules.d/50-wake-on-device.rules
i copy this one here
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}=="1bcf", ATTRS{idProduct}=="0005", ATTR{power/wakeup}="enabled", ATTR{driver/3-6/power/wakeup}="enabled"
than reboot.
When if the rule is right, then this don’t work.
3 Likes
system
Closed
17 September 2023 16:50
8
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.