-
-
Notifications
You must be signed in to change notification settings - Fork 963
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Certain xwayland applications cannot update cursor position from OpenTabletDriver #5152
Comments
nice wallpaper doe |
can be connected with #3004 probably |
@qwertyuiopr I tried the osu!laser downloaded from their webpage, and on both git version and version with fixes for #3004 and it works for me. I can normally move the mouse and click with tablet's pen. If game runs using gamescope everything works as intended I think. I ran the game with otd-daemon running. In otd-gui I have enabled Absolute Mode and my Pen Settings are as follows: |
osu!lazer has their own opentabletdriver implementation enabled by default which is likely why it worked fine for you. these ingame drivers don't have any smoothing settings though, which is why i'd prefer to use the normal opentabletdriver. on the actual issue, osu!lazer and mcosu both work fine until i try to play a map, at which point the cursor stops responding. on osu!stable (through wine, might be important) the cursor just doesn't work at all. gamescope mileage varies. osu!stable's cursor still does not work, osu!lazer makes it work fine (unless i toggle the ingame tablet driver on then off for some reason) and mcosu's cursor stops working |
I will try to tinker with it later, I will download osu!stable through wine, and let you know if I will able to reproduce the issue. I just wondering if you will have different experience if you will use proton directly or add executable to steam as a non-steam game and run it using proton via steam. |
should probably be noted i used a repo called 'osu-winello' to make the process much easier, not sure if i'm allowed to link the repo |
I installed osu!stable with osu-winello script as you told and as far as I can see I can normally move cursor using tablet's pen in game menu and in the game (I tried to play tutorial and it worked). I used the same otd configuration as showed previously and I have no other tablet drivers enabled (no wacom module etc). |
using latest git, cursor still does not work properly for me. are you playing with the window in fullscreen or tiled? here's the version compiled System/Version infoHyprland, built from branch main at commit bfc95e992d460cbefe2c69de04da52e6089f6258 dirty (swipe: fix nullptr in `onSwipeUpdate` (5191)).
Date: Wed Mar 20 18:13:31 2024
Tag: v0.37.1-32-gbfc95e99
flags: (if any)
System Information:
System name: Linux
Node name: gentoo
Release: 6.8.1-gentoo-GentUwU
Version: #14 SMP PREEMPT_DYNAMIC Tue Mar 19 18:05:15 GMT 2024
GPU information:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU106 [GeForce RTX 2060 Rev. A] [10de:1f08] (rev a1) (prog-if 00 [VGA controller])
0b:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raphael [1002:164e] (rev c3) (prog-if 00 [VGA controller])
os-release: NAME=Gentoo
ID=gentoo
PRETTY_NAME="Gentoo Linux"
ANSI_COLOR="1;32"
HOME_URL="https://www.gentoo.org/"
SUPPORT_URL="https://www.gentoo.org/support/"
BUG_REPORT_URL="https://bugs.gentoo.org/"
VERSION_ID="2.14"
plugins:
|
I tried in in the fullscreen, so not sure what can cause the issue for you. I can make more tests but not sure what I should look for if it works for me. |
i'm not sure what could cause it either. i just tried with sway with --unsupported-gpu (nvidia proprietary drivers, sadge) and my tablet worked perfectly fine with artist mode + mouse bindings, along with the graphical issues that come with using sway on nvidia blob drivers. |
$ otd-daemon --version
0.6.4.0 I am on intel graphics but I have no idea how it can influence tablet actually. However if I understand correctly, everything worked as intended under Hyprland 0.36.0-r2? I think it is possible to check the changes in later versions, so maybe if you can figure it out what commit/changes cause the problem it would be easier to fix it for developers. |
i'm not 100% sure how useful this is going to be, but maybe it'll give some pointers
i'm going to try installing v0.36.0 from source rather than from my repos. edit: i've just tested it, installing 0.36.0 using the source code in releases makes the cursor work fine again. |
still looking for solutions. |
So I checked the differences you linked and it seems that those differences are from commit that fixes #3004 and they shouldn't break anything. I saw however that after 0.36.0 hyprcursor was added and something was changed with configuration, so @qwertyuiopr I started to wonder maybe something in your configuration cause the problem? Can you check it with default config? I also checked the changes between v0.36.0 and v0.37.0 and it seems that for
But I have no experience with wayland compositors or Hyprland developing so maybe @vaxerski or other maintainer will be able to help here. |
i have tested with the default autogenerated config, the same issue still occurs unfortunately |
did git bisect, first commit where tablet stopped working in osu
|
update: using latest git commit, the problem seems to be going away a little. the pen works fine when i first focus into osu, but once i start tapping my pen there's a chance that the cursor will stop updating its position in osu.
2024-03-23.10-54-09.mp4 |
are there any updates on this? sorry if i'm being too pushy -w- |
Unfortunately I can't help much here cause I'm not hyprland or even C++ developer. And I have no ideas what can be wrong here because despite we are having very similar configuration (even the same tablet?) it works for me and don't work for you so :\ |
im having the same problem. |
which version of hyprland are you on? |
i'm facing a similar issue as well, hyprland versions < 0.37.0 work fine with tablet input but the recent versions have been problematic |
git bisect then |
i have already done a git bisect three weeks prior latest git still does not work
|
yea but that bisect is clearly wrong |
i had done a git bisect myself and i think i may have found the relevant commit that may have caused the issue referencing this commit: d72ea5f
|
update: can confirm that the latest release 0.40.0 fixed this issue completely. i assume the other changes related to pointer constraints consequently fixed this issue as well. in any case the days of my tablet and osu woes are over, thank you vaxry! |
@qwertyuiopr can this be closed then? |
haven't tested yet, i shall get back to you in a little when i've got time to test |
I have a problem with opentabletdriver cursor running in osu with xwayland. |
quick update on this, ive been able to play just fine if the game is not in fullscreen... probably has more to do with Xwayland than with hyprland... |
Tablet support has changed drastically since #5902. Please report back if you have tested latest git. |
just changed to latest git, same error with OpenTabletDriver,
the tablet just doesnt move the cursor nor registers clicks... |
What if you commented out the mapping related lines and map your tablet to the virtual display in OTD? That's an issue being tracked in #6023. Current Hyprland tablet behaviour is to auto-map to focused monitor with absolute coordinates but the |
@vaxerski @Agent00Ming
2024-05-15.19-26-58.mp4 |
if it works I am closing this |
Hyprland Version
System/Version info
Bug or Regression?
Regression
Description
When trying to use OpenTabletDriver on some xwayland applications, the cursor position does not get updated. Happens with and without legacy renderer enabled. Does not happen in 0.36.0-r2.
This seems to happen in games which use their own cursor rather than your system cursor, but I can't be 100% sure. This doesn't happen in gimp, which also runs in xwayland.
I've only tested different versions of the same game.
The games I tested were:
osu!stable
osu!lazer
Mcosu
All have the same issue where the cursor position stops being updated once I focus the window, while the tablet's inputs can still be detected.
How to reproduce
Install OpenTabletDriver-6.4.0:
https://wiki.hyprland.org/FAQ/#my-tablet-no-worky
Use Absolute or Artist mode (have not tested relative mode)
Open osu!stable, osu!lazer or Mcosu (only games I've confirmed had the issue.)
Try to move your cursor with your tablet. Cursor will not move, but inputs can still be detected.
Crash reports, logs, images, videos
hyprland.log
2024-03-17.21-51-44.mp4
The text was updated successfully, but these errors were encountered: