zsviczian / obsidian-excalidraw-plugin

A plugin to edit and view Excalidraw drawings in Obsidian
4.28k stars 233 forks source link

BUG: Pen Tablet Not Functional Anymore in Excalidraw Plugin within Obsidian on HyprLand and GNOME #1914

Open tratum opened 3 months ago

tratum commented 3 months ago

This issue started occurring after 23rd July 2024, and the pen tablet was functioning correctly in Obsidian prior to this date.

System Information

Obsidian Version

Obsidian - Markdown-based knowledge base

          ID: md.obsidian.Obsidian
         Ref: app/md.obsidian.Obsidian/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 1.6.7
     License: LicenseRef-proprietary=https://obsidian.md/eula
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 627.9 MB
     Runtime: org.freedesktop.Platform/x86_64/23.08
         Sdk: org.freedesktop.Sdk/x86_64/23.08

      Commit: d835343b3ae3b198cb3d42d31e5fb1abb00699211c1e1aab1c506f6490eb9b5a
      Parent: 91c16d530bbd320aef9d7ffc2a6e24b1b57418c4286d07872686acc9d1b0fc2e
     Subject: git: Update git-2.45.2.tar.xz to 2.46.0 (939147bc)
        Date: 2024-07-29 18:01:52 +0000

Sandbox Permissions

[Context]
shared=network;ipc;
sockets=x11;wayland;pulseaudio;ssh-auth;
devices=dri;
filesystems=/home/tratum/.themes;/mnt;xdg-run/app/com.discordapp.Discord:create;/home/tratum/.icons;xdg-run/gnupg:ro;/run/media;home;/media;~/.local/share/fonts:ro;
persistent=~/.ssh;

[Environment]
GTK_THEME=WhiteSur-Light
SSH_ASKPASS=/app/libexec/openssh/ssh-askpass
OBSIDIAN_ENABLE_AUTOSCROLL=0
PATH=/usr/bin:/app/bin:/app/texlive/bin:/app/texlive/bin/x86_64-linux:/app/texlive/bin/aarch64-linux
OBSIDIAN_DISABLE_GPU=0
GH_PATH=gh
OBSIDIAN_CLEAN_CACHE=1
XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons:~/.icons
ICON_THEME=Flat-Remix-Blue-Light

Hardware Information

01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / Max-Q] [10de:1f91] (rev a1)
05:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Picasso/Raven 2 [Radeon Vega Series / Radeon Vega Mobile Series] [1002:15d8] (rev c1)

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 4096 MB
    Total available memory: 4096 MB
    Currently available dedicated video memory: 3612 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce GTX 1650/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 555.58.02
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 555.58.02
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 555.58.02
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

System Information

OS: Fedora Linux 40 (Workstation Edition) x86_64 
Host: TUF Gaming FX505DT_FX505DT 1.0 
Kernel: 6.9.11-200.fc40.x86_64 
Packages: 2714 (rpm), 31 (flatpak) 
Shell: zsh 5.9 
Resolution: 1920x1080 
DE: Hyprland 
WM: sway 
Theme: WhiteSur-Light [GTK2/3] 
Icons: Flat-Remix-Blue-Light [GTK2/3] 
Terminal: kitty 
CPU: AMD Ryzen 7 3750H with Radeon Vega Mobile Gfx (8) @ 2.300GHz 
GPU: NVIDIA GeForce GTX 1650 Mobile / Max-Q 
GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Series 
Memory: 2927MiB / 30007MiB

Issue Description

I am encountering an issue where my HUION Huion Tablet_H430P pen tablet is not functional within the Excalidraw plugin in Obsidian when running on Wayland. Specifically, I am unable to select or draw anything using the pen of my pen tablet within the Excalidraw plugin. However, I am able to use the mouse without any issues. Notably, this issue started occurring after 23rd July 2024, and the pen tablet was functioning correctly in Obsidian prior to this date.

Steps to Reproduce

Expected Behavior

I expect to be able to use my pen tablet to draw and interact with elements within the Excalidraw plugin, similar to how it functions with a mouse.

Observed Behavior

The pen tablet is not responsive within the Excalidraw plugin. I am unable to select or draw anything using the pen. However, the pen tablet works correctly in other applications and even in standalone Excalidraw instances outside of Obsidian.

Debugging and Troubleshooting Attempts:

I would appreciate any guidance or assistance in resolving this issue, as the pen tablet functionality is crucial for my workflow within Obsidian and Excalidraw. Thank you for your support.

zsviczian commented 3 months ago

are you using Excalidraw in a popout window in Obsidian or within the main workspace?

zsviczian commented 3 months ago

I've tried this on my Huion tablet on Windows 11. I am unable to reproduce the issue... however, if you are experiencing this in a popout window, then 2.2.13-1 beta might resolve the problem for you. You can install 2.2.13-1 beta using BRAT. I have a how-to video here: https://discord.com/channels/1026825302900494357/1076960836901417092/1076964066012184610

tratum commented 3 months ago

are you using Excalidraw in a popout window in Obsidian or within the main workspace?

I am using it within the Main Workspace

tratum commented 3 months ago

I am happy to report that i have found a workaround for this bug i encountered and here are the steps we can follow

Note: Unfortunately This'll not work for wayland and only the x-11-windowing system via the gnome desktop environment

Axolord commented 2 weeks ago

I seem to have the same or similar issue. For me it does not work with many electron apps, so not obsidian-excalidraw specific, but also signal and webcord (discord client) do not work with pen input.

May be related to https://gitlab.gnome.org/GNOME/mutter/-/issues/2983 but probably more to: https://issues.chromium.org/issues/40686771 and https://gitlab.gnome.org/GNOME/mutter/-/issues/3009