Skip to content
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

[BUG] Stylus Use Disables Touch Functionality (+Workaround) #263

Open
Jonny999999 opened this issue Mar 27, 2024 · 0 comments
Open

[BUG] Stylus Use Disables Touch Functionality (+Workaround) #263

Jonny999999 opened this issue Mar 27, 2024 · 0 comments

Comments

@Jonny999999
Copy link

Jonny999999 commented Mar 27, 2024

Issue

When initially opening Weylus on my tablet, touch functionality works fine. However, after using the stylus once, touch input stops responding, only the stylus continues to work.

  • When testing for received events on the laptop using xev, i no longer see any events when touching the screen after entering that bugged state.
  • Toggling uinput off and on temporarily restores touch functionality until the stylus is used again.
  • Also see workaround below

Background

I frequently switch between using touch for navigating and the stylus/pen for writing and drawing within Xournal++.

Environment

  • Laptop:
    • Model: Lenovo ThinkPad L480
    • OS: Arch Linux 6.6.22-lts
    • Network: Tablet connected to laptop's WiFi hotspot
    • Window Manager: i3 (Xorg)
      Note: Got same Issue when using Desktop-PC with same configuration
  • Tablet:
    • Model: Samsung Tab S6 Lite
    • OS: Android 14, Kernel 4.14.190
    • Browser: "Samsung Internet" Version 23.0.1.1 (Default)
      Note: Switched to default browser, because Firefox did not differentiate between stylus and touch.
  • Weylus:
    • Version 0.11.4-1 from the AUR
    • In the Web interface i have Mouse, Stylus, Touch and uinput all enabled.

Current Workaround

Opening a second web interface instance seems to resolve the issue temporarily.

Method 1 - Second Tab:

  1. On PC:
    • Start Weylus
  2. On Tablet:
    • Start the browser
    • Open the Weylus URL (first tab)
    • Open a new tab
    • Open the Weylus URL again (second tab)
    • Close the first tab
    • Now I can freely switch between touch and stylus as I like, and both continue to work.
      Note: This workaround needs to be repeated after restarting Weylus or the browser.

EDIT: Method 2 - Open on Host first:

  1. On PC:
    • Start Weylus
    • Start the browser
    • Open the Weylus URL
  2. On Tablet:
    • Start the browser
    • Open the Weylus URL
  3. On PC:
    • Close browser
  4. On Tablet:
    • Now I can freely switch between touch and stylus as I like, and both continue to work.

Bottom line: I stumbled upon a workaround that's doing the job for now, although it's a bit strange.
If anyone knows why this is happening, let me know. Otherwise, maybe the workaround helps someone with a similar problem.

This issue might be related: GitHub Issue #243.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant