30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
# How to fix iw4x: Modern Warfare 2 mouse sensitivity bug when playing on Linux!
|
|
|
|
If your mouse feels weird, spins and doing other weird stuff (high sensitivity etc) you could try the following, it worked for my setup and I tried it with two different mice.
|
|
|
|
The mice I tried were `Razer Naga Hex v2 Trinity` and `Logitech G502 Hero` with both mice I was able to eliminate the weird mouse behaviour.
|
|
|
|
I wrote two bash scripts, these scripts are being called when I start the game and after I quit the game, made possible by launching iw4x through Lutris.
|
|
|
|
|
|
## Starting the game
|
|
|
|
`disable_accel.bash` (This will disable the mouse acceleration via xinput - ratbagctl is a Logitech mouse only thing, with the ratbag command I just set the perfect dpi for myself)
|
|
|
|
```
|
|
#!/usr/bin/env bash
|
|
xinput --set-prop 8 'libinput Accel Profile Enabled' 0, 1
|
|
ratbagctl Logi dpi set 1600
|
|
```
|
|
|
|
## After game is stopped
|
|
|
|
`enable_accel.bash` (This is going to re-enable mouse acceleration via xinput and reverts my default desktop use settings for dpi)
|
|
|
|
```
|
|
#!/usr/bin/env bash
|
|
xinput --set-prop 8 'libinput Accel Profile Enabled' 1, 0
|
|
ratbagctl Logi dpi set 2400
|
|
```
|
|
|