ChanServ changed the topic of #wayland to: https://wayland.freedesktop.org | Discussion about the Wayland protocol and its implementations, plus libinput
Brainium has quit [Quit: Konversation terminated!]
kasper93_ has quit [Ping timeout: 480 seconds]
karenw has joined #wayland
danshick_ has joined #wayland
danshick has quit [Ping timeout: 480 seconds]
danshick_ is now known as danshick
nerdopolis has quit [Ping timeout: 480 seconds]
misyl has joined #wayland
mxz__ has joined #wayland
mxz_ has quit [Ping timeout: 480 seconds]
mxz has quit [Ping timeout: 480 seconds]
mxz has joined #wayland
glennk has joined #wayland
karenw has quit [Ping timeout: 480 seconds]
andymandias has joined #wayland
throwthecheese has joined #wayland
<throwthecheese>
Is there a way to set the calibration matrix of the device via libinput?
<throwthecheese>
For context: my stylus tip and eraser are not present in my device list at startup due to how the Goodix touchscreen kernel driver works
<throwthecheese>
This would not be that much of an issue on Wayland, but it is on Xorg as I can't change the orientation of the stylus root device
<soreau>
then you're probably asking in the wrong channel
<throwthecheese>
My hypothesis is that Wayland targets this root device but it's impossible to rotate it via xinput/libXi as doing so would result in a BadMatch or a BadValue error
<throwthecheese>
So I'm trying to bypass it via using libinput but calling libinput_device_config_calibration_set_matrix() has no effect, even if the application is ran with root privileges
<throwthecheese>
Udev also just don't cut it as as far as I know, there is no way in its API to edit properties
<throwthecheese>
Full disclosure: I'm trying to get automatic screen rotation work seamlessly with my stylus on X but I can't afford to wait for its component devices to be added. Sure I can reload my device list periodically to get my stylus tip and eraser picked up but that has horrible latency, even if I use a 1ms interval or renice the screen rotator task
<soreau>
that means you're definitely asking in the wrong channel
abhimanyu has joined #wayland
<whot>
throwthecheese: yes, you can set it via the matrix as soreau linked to. at least mutter had a bug though that it would just overwrite the udev setting with the unity matrix, you'll need GNOME47 for that
<whot>
throwthecheese: but if you're using it for dynamic screen rotation then that is the wrong approach, that matrix is for static brokenness, e.g. a touchscreen panel mounted upside down
<whot>
throwthecheese: for the xorg bits best to file a bug against xf86-input-libinput to see what we can do for that use-case, I don't know off hand if that's possible (it *should* be with the wacom driver since that one just muliplexes everything)