i’m running (a custom build of) fedora sway atomic on the fwl 12 (2nd-gen), and do not have any palm rejection-related issues (tested in rnote). rotation also works perfectly, including virtual keeb (this took some work!).
since you seem to be considering i3, might i suggest going for sway instead and picking either the regular or atomic build of fedora sway?
still here? ok, here’s how i have it all working, basically, perfectly! First, you’ll need a reliable virtual keyboard. wvkbd is a great choice! You can build & install it yourself, or use my copr repo for an easy install.
next up, rotation! rot8 seems to be the most recommended option, but, unfortunately, i couldn’t make it work with the 2nd-gen 12 (axes were messed up, and no amount of mucking around with config fixed it). so, like any sane person would, i wrote swayrot8: a simple script to ingest a monitor-sensor --accel (iio-sensor-proxy) event stream, and integrate it with sway. this package, too, is available through the same copr repo referenced above.
alright, so now all that remains is integrating wvkbd and swayrot8 with sway, and disabling/enabling devices in tablet/regular mode. assuming your sway config lives in ~/.config/sway/, drop a file (mine is called 30-tablet.conf) in ~/.config/sway/config.d/:
# Framework Laptop 12 internal input devices
set $laptop_keyboard "1:1:AT_Translated_Set_2_keyboard"
set $laptop_touchpad "2362:569:PIXA3854:00_093A:0239_Touchpad"
set $laptop_touchscr "8746:21817:ILIT2901:00_222A:5539"
set $laptop_stylus "8746:21817:ILIT2901:00_222A:5539_Stylus"
# Enable/disable keyboard(s) and touchpad based on tablet mode
bindswitch tablet:on \
input $laptop_keyboard events disabled, \
input $laptop_touchpad events disabled, \
exec wvkbd-deskintl --hidden --auto
bindswitch tablet:off \
input $laptop_keyboard events enabled, \
input $laptop_touchpad events enabled, \
exec killall wvkbd-deskintl
# Map touchscreen and stylus to the internal display
input $laptop_touchscr map_to_output eDP-1
input $laptop_stylus map_to_output eDP-1
# Start auto-rotation daemon
exec systemctl --user restart sway-rot8.service
you’ll want to restart, and everything should just work! you might want to double check your input devices and adjust 30-tablet.conf accordingly. here’s how you can get a nicely-formatted list of your input devices:
swaymsg -t get_inputs | jq -r '.[] | [.name, .type, .identifier] | @tsv' | column -t -s $'\t'
based on my testing, palm rejection works flawlessly on rnote. i can test another app if you’d like as long as it’s available as a flatpak.
sorry for the long post, but i hope this is helpful.