最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

linux - Stylus doesn't work in specific apps but works under some x11 and wayland apps - Stack Overflow

matteradmin6PV0评论

My Laptop has a wacom tablet and pen integrated in the internal screen (Lenovo Yoga 7 14AHP9 & Lenovo Digital Pen 2 (i already added Wacom 5360 to libwacom for gnome settings to recognise it)). For reference, I am using nixos (24.11-beta) and the gnome desktop environment with wayland. It gets recognised by the kernel driver and inputs are forwarded through libinput and mutter/wayland and xwayland fine. Most applications just work (among those GIMP, libreoffice, all gnome apps including the general DE and even ableton live under wine). libreoffice works on both backends if switching via the GDK_BACKEND variable. Some apps (so far i found Chrome, Obsidian, steam) do not recognise pen input at all though and the pen pointer you get when hovering over the display disappears when moving over such a window. Does anyone know how I can proceed to get pen input working like a mouse (like it works in other applications)?

My Laptop has a wacom tablet and pen integrated in the internal screen (Lenovo Yoga 7 14AHP9 & Lenovo Digital Pen 2 (i already added Wacom 5360 to libwacom for gnome settings to recognise it)). For reference, I am using nixos (24.11-beta) and the gnome desktop environment with wayland. It gets recognised by the kernel driver and inputs are forwarded through libinput and mutter/wayland and xwayland fine. Most applications just work (among those GIMP, libreoffice, all gnome apps including the general DE and even ableton live under wine). libreoffice works on both backends if switching via the GDK_BACKEND variable. Some apps (so far i found Chrome, Obsidian, steam) do not recognise pen input at all though and the pen pointer you get when hovering over the display disappears when moving over such a window. Does anyone know how I can proceed to get pen input working like a mouse (like it works in other applications)?

Share Improve this question edited Nov 18, 2024 at 19:02 leonhma asked Nov 18, 2024 at 13:45 leonhmaleonhma 1921 silver badge10 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

I have a workaround for Obsidian and potentially other apps, since I have the same issue: if you're using the Flatpak version, you can disable Wayland (Wayland Windowing System, Inherit Wayland Socket) in Flatseal, which gets pen support working for the most part.

The only issue with the above is that some drag and drop stuff no longer works, and if the display scale isn't set to 100% the pen cursor is kinda off in things like Excalidraw (but still draws correctly)

If you install some of the other applications as flatpaks too, doing the same to those might work as well.

Post a comment

comment list (0)

  1. No comments so far