Originally posted by mSparks
View Post
Originally posted by mSparks
View Post
inputfd is something different. When a process losses focus the direct input access it has can be revoked under inputfd and re-granted when it gains focus again.
This is using kernel level privilege controls over file handles.
Originally posted by mSparks
View Post
KDE will keep they kwin compositor but they also want the means to use gamescope or any other compositor for any case where that compositor is better than theirs. Also robustness will allow applications to be suspended to disc so removing their GPU/CPU usage when you are doing high performance task without losing where you are up-to.
Where this gets ultra fun xwayland already support wayland robustness. So yes you can start xwayland under gamescope kill gamescope and connect to to KDE kwin. Yes this trek can make X11 applications using raw evdev access work under kwin wayland today.
Originally posted by mSparks
View Post
Of course you miss that the input stack in X11 server bare metal is in fact deeper than in gamescope+xwayland on the wayland side so your X11 bare metal server does in in fact have higher latency than a Wayland solution optimized for gaming.
Interesting point gamescope on the steamdeck and steamos does not have the option for direct evdev enabled at all because too few of applications use it.
/dev/hidraw
is different beast.
Yes allowing applications hidraw access is the same under Wayland and X11 no difference here at this time. Yes using hidraw to access game controllers and the like bipass wayland and x11 completely at this stage. Future inputfd may change that with proper security being done so application cannot have hidraw access when they don't have focus.
Keylogging/input logging when application does not have focus is a very big issue here. It a problem with hidraw that Wayland compositor and X11 bare metal server don't control.
mSparks basically you are clueless on this topic.
The there biggest problems that cause mouse issues with Wayland.
1) Wayland Compositor not having input processing in it own thread.
2) Hardware mouse cursor not working right this is a driver bug. Yes this one things go bad if you enabled hwcursor under x11 bare metal as well. There is environment var to disable plane that causes this. Yes Nvidia hardware is also known for advertising hwcursor support when it does not work. Wayland compositors default with this on does cause a few problems. Between stutter to slow mouse movement to no mouse cursor at all because hardware accelerated mouse cursor is not working correctly when the GPU driver advertised it support it.
3)GPU and CPU scheduler issues.
1) Wayland Compositor not having input processing in it own thread.
2) Hardware mouse cursor not working right this is a driver bug. Yes this one things go bad if you enabled hwcursor under x11 bare metal as well. There is environment var to disable plane that causes this. Yes Nvidia hardware is also known for advertising hwcursor support when it does not work. Wayland compositors default with this on does cause a few problems. Between stutter to slow mouse movement to no mouse cursor at all because hardware accelerated mouse cursor is not working correctly when the GPU driver advertised it support it.
3)GPU and CPU scheduler issues.
Modern Games don't use raw evdev on the devices libinput claims like it or not. So nothing libinput claims interferes with them. Games that did this of using raw evdev on keyboard and mice you are talking pre 2000 games and rare ones at that. Linux users don't like rootkits game makers learnt fairly quickly their game sales would tank if they used raw evdev on keyboard and mice the items libinput claims under X11 bare metal or Wayland compositor.
Game-controllers in evdev libinput under X11 baremetal and Wayland compositors are not claimed/locked at this time.
One of the realities here you want low input lag for keyboards and mice with games under Linux you need Wayland inputfd to succeed so that raw input can be provided to applications from keyboards and mice without being keylogger/rootkit.
Comment