You are not logged in.

#1 2016-10-15 04:56:10

JReinder
Member
From: Chicago
Registered: 2016-08-03
Posts: 1

Wayland, games and mouse sensitivity

This is difficult to describe; I've searched around and found little in terms of information. When I launch a game in Steam, Counter Strike GO it launches normally, but the mouse is not there. I have dual monitors (this was not an issue until I recently ran pacman -Syu) and when I move the mouse around it shows on the other monitor. If I right click within CS, the game mouse appears.

When I load into game I'm unable to look away from the ground. I spin around, or the view jumps straight to the sky. I've noticed in the main menu that the task bar up top (I use Gnome) is a blank space. If I move my mouse up towards this space I lose the game mouse and instead get my desktop mouse.

It seems like CS isn't taking "priority" for lack of a better term.

I've typically been able to figure these problems out; but I've never come across this before. It's like the game is not the top window.

Mod note: changed title from "Steam - Mouse Issue" to "Wayland, games and mouse sensitivity" -- WorMzy

Last edited by WorMzy (2016-10-15 11:21:10)

Offline

#2 2016-10-15 06:10:16

NoSuck
Member
Registered: 2015-03-04
Posts: 157
Website

Re: Wayland, games and mouse sensitivity

I don't use Gnome but do know it had a major update recently.  You may want to direct your search efforts in that direction.  People are talking.

Offline

#3 2016-10-15 11:09:11

Inixi
Member
Registered: 2016-10-15
Posts: 54

Re: Wayland, games and mouse sensitivity

Hello,
I am using Gnome3 and after last update the default Xsession opens in Wayland. The Destkop Environment work pretty nice, but sometimes I want to play a game, for example ioquake3 or Borderlands 2 from linux steam. And when I play the game the mouse sensitivity is insane - sometimes the game does not map mouse movements (the cursor is still or moves only in one direction in a linear way) or sometimes the sensitivity makes my character turn like 720 degrees by moving mouse only by one millimeter.
I suppose it is happening because games still use old xorg libraries and not new libinput libraries. Is there a way to make them work with Wayland server?

Regards,


2020 ASUS Zephyrus G14

Offline

#4 2016-10-15 11:19:35

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: Wayland, games and mouse sensitivity

Mod note: Merging with an existing thread for this issue, but keeping the new title for visibility (former title: Steam - Mouse Issue)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2016-10-15 11:27:59

Inixi
Member
Registered: 2016-10-15
Posts: 54

Re: Wayland, games and mouse sensitivity

@WorMzy, thanks, I tried to search for existing thread but there were no results.


2020 ASUS Zephyrus G14

Offline

#6 2016-10-16 07:23:17

steveo_73
Member
Registered: 2012-09-16
Posts: 21

Re: Wayland, games and mouse sensitivity

I had some problems today as well. I haven't debugged it properly but I'm confident it's the Gnome upgrade. I used openbox and everything works.

Offline

#7 2016-10-16 20:59:45

mx_joao
Member
From: Brasil
Registered: 2011-12-02
Posts: 46

Re: Wayland, games and mouse sensitivity

You can try the X.Org session for playing games in Gnome:

https://wiki.archlinux.org/index.php/GD … rg_backend

Offline

#8 2016-11-06 15:48:02

hoschi
Member
From: Ulm (Germany)
Registered: 2008-11-03
Posts: 457

Re: Wayland, games and mouse sensitivity

Reason:
Pointer locking wasn't supported, but now it is supported in Wayland. Games need to adapt.
https://fedoraproject.org/wiki/How_to_d … ting_games

>> But wait! SDL2 is Wayland capable, so IOQuake3 or Openarena should run fine?
Right. But SDL2 doesn't support it either.
https://bugs.debian.org/cgi-bin/bugrepo … bug=838366

Hopefully coming soon, this is the reason why IOQuake3 fails also like CS:GO. The story remembers me a little bit on the ABI-Change for C++11 from GCC. It was delayed a long time, this this actual post, because the slow communication between GCC and LLVM. Sometimes the world isn't perfect and we have to be patiend. In the end, everything will be solved smile

Last edited by hoschi (2016-11-06 16:01:02)

Offline

#9 2016-11-09 17:50:24

mapintar
Member
Registered: 2010-04-17
Posts: 50

Re: Wayland, games and mouse sensitivity

Wayland is not mature for some games.

If game suport SDL2 you use:

export SDL_VIDEODRIVER=wayland

And then run game in SDL mode. Example:

xonotic-sdl

Work fine here.

Last edited by mapintar (2016-11-09 17:51:06)

Offline

#10 2016-11-09 22:00:32

ooo
Member
Registered: 2013-04-10
Posts: 1,637

Re: Wayland, games and mouse sensitivity

hoschi wrote:

>> But wait! SDL2 is Wayland capable, so IOQuake3 or Openarena should run fine?
Right. But SDL2 doesn't support it either.
https://bugs.debian.org/cgi-bin/bugrepo … bug=838366

Pointer locking is implemented in sdl2-2.0.5.

Offline

#11 2016-11-17 13:59:17

hoschi
Member
From: Ulm (Germany)
Registered: 2008-11-03
Posts: 457

Re: Wayland, games and mouse sensitivity

I will test that during weekend with the variable and the new SDL2 (in stable since 30.11.2016) and IOQuake3, looking forward smile

Offline

#12 2016-11-20 11:36:43

hoschi
Member
From: Ulm (Germany)
Registered: 2008-11-03
Posts: 457

Re: Wayland, games and mouse sensitivity

export SDL_VIDEODRIVER=wayland

This works. IOQuake3 run's in fullscreen and mouse is "captured". Graphics are displayed correctly and my HD3000 (Intel Sandy Bridge) produces 440 fps on 1366x768 with the built-in "demo_four". Thanks mapintar smile


By the way:
My X220 produced just 150 fps some years ago. It becomes faster and faster and now offers OpenGL 3.3, which even MacOS (max 3.2) or Windows (max 3.1) never reached. Linux starts low, but seeing how it improves especially on the long distance is always nice. Sadly I can't imagine that much applications use OpenGL 3.3, most will stick with OpenGL 3.0 or OpenGL 4 and above. How cares, just more than Windows wink

Offline

#13 2016-11-22 01:34:59

mitras2
Member
Registered: 2015-05-20
Posts: 3

Re: Wayland, games and mouse sensitivity

Having the same problem in Minecraft (View locked to top or ground and mouse/character is spinning around the own axis).
Just ran a pacman -Syu but this still did not help.
This really starts to annoy me.

Tried the usage of

export SDL_VIDEODRIVER=wayland

but this did not help me either!

Any ideas what could solve my problem, or when things become fixed?

Greez and thanks
mitras2

Offline

#14 2016-11-23 17:03:39

hoschi
Member
From: Ulm (Germany)
Registered: 2008-11-03
Posts: 457

Re: Wayland, games and mouse sensitivity

Minecraft is written in Java. This cannot work wink
I'm pretty sure it is and will be always executed within XWayland. This will need likely an other fix.

Last edited by hoschi (2016-11-23 17:05:14)

Offline

#15 2016-11-27 09:19:37

DeadMetaler
Member
Registered: 2016-03-16
Posts: 42

Re: Wayland, games and mouse sensitivity

Xorg server 1.19 has fixes for xwayland. I tried CS, Half Life, Portal.
Wait until it will be presented in repos or upgrade from staging if you video drivers support xorg-server 1.19.

Offline

#16 2016-12-09 17:03:11

msh0001
Member
Registered: 2016-12-09
Posts: 2

Re: Wayland, games and mouse sensitivity

Inixi wrote:

Hello,
I am using Gnome3 and after last update the default Xsession opens in Wayland. The Destkop Environment work pretty nice, but sometimes I want to play a game, for example ioquake3 or Borderlands 2 from linux steam. And when I play the game the mouse sensitivity is insane - sometimes the game does not map mouse movements (the cursor is still or moves only in one direction in a linear way) or sometimes the sensitivity makes my character turn like 720 degrees by moving mouse only by one millimeter.
I suppose it is happening because games still use old xorg libraries and not new libinput libraries. Is there a way to make them work with Wayland server?

Regards,

Exactly the same problem here
Using gnome wayland
Problem in tf2 and angeldust

Offline

#17 2016-12-09 21:55:00

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,680
Website

Re: Wayland, games and mouse sensitivity

msh0001 wrote:

Exactly the same problem here

The post immediately above yours contains the solution -- Xorg version 1.19 has fixes for this but is only available from the [staging] repositories because the vendor-specific DDX drivers are not yet compatible.

To use [staging]. add these lines to /etc/pacman.conf, they must be above your usual repositories:

[staging]
Include = /etc/pacman.d/mirrorlist

Then simply update your system:

# pacman -Syu

I'm not sure how [staging] is managed thereafter, hopefully somebody else will offer some tips smile

If your card does not work well with the generic modesetting DDX driver then you will have to use GNOME on X until version 1.19 makes it into [Extra]

Offline

#18 2017-01-13 19:51:10

mjb
Member
From: Germany
Registered: 2012-01-28
Posts: 68

Re: Wayland, games and mouse sensitivity

The package xorg-server 1.19 is now in the extras repository. This fixes the issues for me.

Offline

#19 2017-12-01 21:26:48

ced
Member
Registered: 2017-12-01
Posts: 1

Re: Wayland, games and mouse sensitivity

So, i know this is a really old topic, but I'm having the same issue when trying to play Minetest. Pointer locking doesn't seem to work and the view frustum just goes haywire, even though I've got xorg-server 1.19 installed.
A quick search turned up a related github issue in the minetest repo, but they seem to have concluded that the issue has been fixed with xorg-server 1.19 as well.
Anybody else run into the same issue still?

I'm running:

minetest 0.4.16-2
wayland 1.14.0-1
sway 0.15.0
xorg-server 1.19.5-1

Offline

Board footer

Powered by FluxBB