csgo-osx-linux icon indicating copy to clipboard operation
csgo-osx-linux copied to clipboard

[Linux] Raw input doesn't work.

Open petejones7 opened this issue 11 years ago • 12 comments

I can't get rid of the positive acceleration I'm getting ingame. It's turned off through xinput, I'm not using libinput, theres no accel on my desktop or anywhere else (including other games like TF2), but in CSGO I have a significant amount of positive acceleration regardless of any ingame settings.

Processor Information: Vendor: GenuineIntel CPU Family: 0x6 CPU Model: 0x1e CPU Stepping: 0x5 CPU Type: 0x0 Speed: 3809 Mhz 4 logical processors 4 physical processors HyperThreading: Unsupported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Supported SSE4a: Unsupported SSE41: Supported SSE42: Supported

Network Information: Network Speed:

Operating System Version: Linux (64 bit) Kernel Name: Linux Kernel Version: 4.1.7-1-bfq X Server Vendor: The X.Org Foundation X Server Release: 11702000 X Window Manager: Xfwm4 Steam Runtime Version: steam-runtime-release_2015-06-12

Video Card: Driver: NVIDIA Corporation GeForce GTX 460/PCIe/SSE2

Driver Version:  4.5.0 NVIDIA 352.41
OpenGL Version: 4.5
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 72 Hz
VendorID:  0x10de
DeviceID:  0xe22
Number of Monitors:  1
Number of Logical Video Cards:  1
Primary Display Resolution:  1600 x 900
Desktop Resolution: 1600 x 900
Primary Display Size: 21.34" x 12.01"  (24.45" diag)
                                        54.2cm x 30.5cm  (62.1cm diag)
Primary Bus: PCI Express 16x
Primary VRAM: 768 MB
Supported MSAA Modes:  2x 4x 8x 16x 

Sound card: Audio device: VIA VT2020

Memory: RAM: 11993 Mb

Miscellaneous: UI Language: English LANG: en_US.UTF-8 Microphone: Not set Total Hard Disk Space Available: 926676 Mb Largest Free Hard Disk Block: 677884 Mb

Installed software:

Recent Failure Reports:

petejones7 avatar Sep 22 '15 00:09 petejones7

I'm not sure if this helps, but I have found that in other games that either don't have raw input or dont have it implemented properly, the same accel is apparent. I've asked a couple others and they've found the same issue as well (while a few others haven't). I know that only shows that raw input may not be functioning correctly, but I imagine if the source of the accel (I've tried every method of removing accel in Linux) could be identified, a temporary solution could be found.

petejones7 avatar Sep 23 '15 09:09 petejones7

I've found a solution/workaround to this problem. The accel stopped showing up ingame when I use the same resolution as my desktop. Its certainly not ideal for me since I play with 1024x768 which means I have to change my desktop resolution first (then change it back), but at least I can play on Linux.

petejones7 avatar Sep 26 '15 04:09 petejones7

I'm pretty sure your behavior matches the intent of "Do not repeatedly update an open issue remarking that the issue persists." in the Code of Conduct. Please do not update issues when there is nothing substantial to add.

Tele42 avatar Oct 11 '15 17:10 Tele42

I can see that it looks that way, but I'm not updating to remark that the issue persists. Honest. Admittedly, I've repeatedly misinterpreted what the issue I'm having actually is. It's popped up a few times for me randomly after my last post, then went away inexplicably. Just wanted to make sure that the report was as accurate as I could get it.

petejones7 avatar Oct 11 '15 17:10 petejones7

I don't have any mouse accel even with 4:3 mode. Raw input on, mouse accel off,

Section "InputClass" Identifier "Mouse0" MatchIsPointer "yes" Option "AccelerationProfile" "-1" Option "AccelerationScheme" "none" Option "AccelSpeed" "-1" EndSection

Section "InputClass" Identifier "Mouse0" MatchIsPointer "yes" Option "AdaptiveDeceleration" "1" Option "ConstantDeceleration" "1" EndSection

In xorg.conf

ghost avatar Oct 25 '15 13:10 ghost

I'm using this kind of configuration to get raw input working properly.

Added this line to: /etc/environment

SDL_VIDEO_X11_MOUSEACCEL="1/1/0"

And added this config to: /etc/X11/xorg.conf.d/50-mouse-acceleration.conf

Section "InputClass" Identifier "YOURDEVICENAMEGOESHERE" MatchIsPointer "yes" Option "AccelerationProfile" "-1" Option "AccelerationScheme" "none" Option "AccelSpeed" "-1" EndSection

Replace "YOURDEVICENAMEGOESHERE" with the name of your device. You can find the name with xinput list in terminal

ghost avatar Nov 08 '15 19:11 ghost

I can confirm this bug as still existing on Ubuntu 14.04 and and that setting the desktop resolution fixes it. I believe it's related to #347 . I suspect the fix detailed in https://bugzilla.redhat.com/show_bug.cgi?id=1208992#c23 has not been ported over to the most popular distributions like Ubuntu. @petejones7 what distribution are you running? Most likely to get this fixed you'll have to complain to them to incorporate the above fix.

@wayzhc @Rishaan I'm going to give more detailed instructions in how to reproduce this so you can confirm if the bug is or isn't present on your systems. The bug shows up when the desktop resolution doesn't match the ingame resolution and you move the mouse below a threshold depending on the resolution mismatch. With this bug, slow movements below a threshold are effectively ignored, leading to a perceived mouse acceleration. In reality, if you are trying to detect acceleration when both compared mouse speeds are above that resolution-ratio dependent threshold, you will experience no acceleration.

Also, what distributions and resolutions are you running? Do they have the libinput server updates detailed in redhat's bugzilla?

EpochalEngineer avatar Dec 04 '15 17:12 EpochalEngineer

@EnviousElitist Are you sure you ment to address that question at me? I run gentoo.

That patches you referenced have gone upstream, but not before 1.17 was branched, so distros will naturally pick it up with xorg-server 1.18 and newer.

Tele42 avatar Dec 04 '15 19:12 Tele42

Oops, yeah that was meant to go to the OP. Thanks for the info on the branch point.

EpochalEngineer avatar Dec 04 '15 20:12 EpochalEngineer

@EnviousElitist Thanks for your input. I run Arch, so i'll try posting there. However, I'm curious about something. If "raw input" was really raw, wouldn't it be unaffected by things like X?

@Tele42 I'm currently running xorg-server 1.18 and still have the issue when the resolutions don't match.

petejones7 avatar Dec 05 '15 06:12 petejones7

@EnviousElitist I'm just running stock Arch with GNOME. I haven't gone out of my way to get a patched libinput.

ghost avatar Dec 10 '15 16:12 ghost

This script might work (along with xorg.conf.d cfg):

#!/bin/bash
CMD=`xinput list | grep pointer | grep -vi 'touchpad' | grep -o 'id=[0-9][0-9]' | sed 's/id=//'`

for i in $CMD; do
    xinput set-prop $i 'Device Accel Profile' "-1"
done

xset 0 0

You can probably put the thing into your .xinitrc (if you have one).

tpruzina avatar Jan 13 '16 22:01 tpruzina