Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Mouse too sensitive in 3D games (it was due to dwl)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
LemonadeLlama
Tux's lil' helper
Tux's lil' helper


Joined: 26 May 2021
Posts: 101
Location: New Zealand

PostPosted: Wed Jan 25, 2023 8:47 am    Post subject: [SOLVED] Mouse too sensitive in 3D games (it was due to dwl) Reply with quote

I have recently built a new gaming PC. I have an AMD 7000 XT. I'm running Gentoo Linux with wayland, SDDM, dwl (like dwm but for wayland).

The graphics card works fine, but I think there's something wrong with my mouse or my drivers. I have tested out both 2D games (Hexcells and Slay the Spire) and 3D games (Doom 2016 and Slime Rancher 1). All of this is tested through Steam. In the 3D games, the mouse sensitivity is so high that it's unusable. Characters will just spin violently in a circle with the slightest movement.

Even after turning the in-game sensitivity to the lowest setting, and even after using the DPI button on my mouse to turn DPI to its lowest setting, 3D games are still unplayable.

I have attached my dmesg output here: https://pastebin.com/uqj0gunh

The only other thing I could find was an error in my Xorg.0.log file (I didn't think these logs existed for wayland but okay I guess):

Code:
[    26.018] (II) LoadModule: "fbdev"
[    26.018] (WW) Warning, couldn't open module fbdev
[    26.018] (EE) Failed to load module "fbdev" (module does not exist, 0)
[    26.018] (II) LoadModule: "vesa"
[    26.018] (WW) Warning, couldn't open module vesa
[    26.018] (EE) Failed to load module "vesa" (module does not exist, 0)


Last edited by LemonadeLlama on Fri Jan 27, 2023 12:26 am; edited 1 time in total
Back to top
View user's profile Send private message
shadowless
Tux's lil' helper
Tux's lil' helper


Joined: 27 Nov 2022
Posts: 101

PostPosted: Wed Jan 25, 2023 7:57 pm    Post subject: Reply with quote

Those warnings in that Xorg log are unrelated to the mouse.

WARNING: Incorrect information below
In wayland... input devices, such as a mouse, can be tweaked with by configuring libinput.

You might want to try reducing the pointer acceleration or disabling it:
https://wiki.gentoo.org/wiki/Libinput#Pointer_acceleration


Last edited by shadowless on Thu Jan 26, 2023 4:30 pm; edited 2 times in total
Back to top
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1438
Location: Earth

PostPosted: Wed Jan 25, 2023 10:53 pm    Post subject: Reply with quote

your mouse has a DPI cycle button to decrease or increase!

please look at it in the manual/setup guide.

8)
_________________
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Back to top
View user's profile Send private message
LemonadeLlama
Tux's lil' helper
Tux's lil' helper


Joined: 26 May 2021
Posts: 101
Location: New Zealand

PostPosted: Thu Jan 26, 2023 7:07 am    Post subject: Reply with quote

shadowless wrote:
You might want to try reducing the pointer acceleration or disabling it:
https://wiki.gentoo.org/wiki/Libinput#Pointer_acceleration


I'm trying to disable mouse acceleration entirely. So far, I'm having no luck. Games are still sensitive.

Here is my attempted configuration, in the file /etc/X11/xorg.conf.d/40-libinput.conf

Code:
Section "InputClass"
   Identifier "My Mouse"
   Driver "libinput"
   MatchIsPointer "yes"
   Option "AccelProfile" "flat"
   Option "AccelSpeed" "0"
EndSection


After rebooting, I all I get is the following error in my Xorg log:

Code:
[    25.692] (II) config/udev: Adding input device Logitech Gaming Mouse G303 (/dev/input/event2)
[    25.692] (**) Logitech Gaming Mouse G303: Applying InputClass "libinput pointer catchall"
[    25.692] (**) Logitech Gaming Mouse G303: Applying InputClass "My Mouse"
[    25.692] (II) Using input driver 'libinput' for 'Logitech Gaming Mouse G303'
[    25.692] (**) Logitech Gaming Mouse G303: always reports core events
[    25.692] (**) Option "Device" "/dev/input/event2"
[    25.748] (II) event2  - Logitech Gaming Mouse G303: is tagged by udev as: Mouse
[    25.748] (II) event2  - Logitech Gaming Mouse G303: device is a pointer
[    25.748] (II) event2  - Logitech Gaming Mouse G303: device removed
[    25.780] (**) Option "AccelSpeed" "0"
[    25.780] (**) Option "AccelProfile" "flat"
[    25.780] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:02.1/0000:02:00.0/0000:03:0c.0/0000:0b:00.0/usb3/3-5/3-5:1.0/0003:046D:C080.0001/input/input2/event2"
[    25.780] (II) XINPUT: Adding extended input device "Logitech Gaming Mouse G303" (type: MOUSE, id 11)
[    25.780] (**) Option "AccelerationScheme" "none"
[    25.780] (**) Logitech Gaming Mouse G303: (accel) selected scheme none/0
[    25.780] (**) Logitech Gaming Mouse G303: (accel) acceleration factor: 2.000
[    25.780] (**) Logitech Gaming Mouse G303: (accel) acceleration threshold: 4
[    25.838] (II) event2  - Logitech Gaming Mouse G303: is tagged by udev as: Mouse
[    25.838] (II) event2  - Logitech Gaming Mouse G303: device is a pointer
[    25.838] (II) config/udev: Adding input device Logitech Gaming Mouse G303 (/dev/input/mouse0)
[    25.838] (**) Logitech Gaming Mouse G303: Applying InputClass "My Mouse"
[    25.838] (II) Using input driver 'libinput' for 'Logitech Gaming Mouse G303'
[    25.838] (**) Logitech Gaming Mouse G303: always reports core events
[    25.838] (**) Option "Device" "/dev/input/mouse0"
[    25.890] (II) mouse0  - not using input device '/dev/input/mouse0'.
[    25.890] (EE) libinput: Logitech Gaming Mouse G303: Failed to create a device for /dev/input/mouse0
[    25.890] (EE) PreInit returned 2 for "Logitech Gaming Mouse G303"
[    25.890] (II) UnloadModule: "libinput"
[    25.891] (II) config/udev: Adding input device Logitech Gaming Mouse G303 Keyboard (/dev/input/event3)


I thought I followed the wiki correctly. What am I missing?
Back to top
View user's profile Send private message
shadowless
Tux's lil' helper
Tux's lil' helper


Joined: 27 Nov 2022
Posts: 101

PostPosted: Thu Jan 26, 2023 4:28 pm    Post subject: Reply with quote

I apologize. I believe I have given you incorrect information. That configuration is for X, not wayland.

Wayland actually does not use libinput's configuration, but rather leaves that to the desktop environment / window manager.

https://github.com/djpohly/dwl

And dwl says to edit the config.h and recompile. I do actually see settings for mouse acceleration in there, so hopefully this will help.


Also... wayland doesn't leave a log like X does by default, but with sway, you can redirect the stderr output to create somewhat of a log when you launch it... You could try this with dwl to see if it gives you anything useful:
Code:
dwl 2>dwllog
Back to top
View user's profile Send private message
LemonadeLlama
Tux's lil' helper
Tux's lil' helper


Joined: 26 May 2021
Posts: 101
Location: New Zealand

PostPosted: Thu Jan 26, 2023 10:48 pm    Post subject: Reply with quote

I have tried configuring dwl's mouse acceleration options. You can choose between LIBINPUT_CONFIG_ACCEL_PROFILE_FLAT and LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE in the configuration file.
Neither of them fixed the issue.
Back to top
View user's profile Send private message
LemonadeLlama
Tux's lil' helper
Tux's lil' helper


Joined: 26 May 2021
Posts: 101
Location: New Zealand

PostPosted: Thu Jan 26, 2023 10:55 pm    Post subject: Reply with quote

I only stuck with dwl because I used to use dwm when I had an X11-based PC. I might try switching to sway and see if that makes a difference.
Back to top
View user's profile Send private message
LemonadeLlama
Tux's lil' helper
Tux's lil' helper


Joined: 26 May 2021
Posts: 101
Location: New Zealand

PostPosted: Fri Jan 27, 2023 12:25 am    Post subject: Reply with quote

Well, for some reason, it turns out dwl was the issue all along.

I just switched to using sway and everything just works.

Time to annoy the dwl devs 8)
Back to top
View user's profile Send private message
jackfrostenson
n00b
n00b


Joined: 27 May 2023
Posts: 6

PostPosted: Sat May 27, 2023 5:06 am    Post subject: Reply with quote

I saw what happened to you and it scared me, it's the typical thing that one would never in life want to happen to them and that is to build their own gaming pc and have errors, I'm very glad that you were able to solve everything ♥
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum