You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Protocol error 3 on object xdg_surface@11: xdg_surface has never been configured #4
as I'm struggling to properly calibrate the touchscreen of my xiaomi-daisy device running postmarketOS, I ran into this utility which I thought might be helpful.
After building it from source and running it, however, I'm immediately presented with:
Protocol error 3 on object xdg_surface@11: xdg_surface has never been configured
Error: Backend(Protocol(ProtocolError { code: 3, object_id: 11, object_interface: "xdg_surface", message: "xdg_surface has never been configured" }))
Based on what I could find elsewhere, this seems to be caused by a wayland protocol violation, in that surfaces are expected to wait for the "configure" event before running "attach". Or something like that, I'm not familiar at all with the protocol :)
Anyway, I thought I'd report this since it seems like it might be a genuine bug in the application.
I'm running it under phosh, in case that makes a difference. The underlying OS is postmarketOS edge, which means that everything should be quite up to date.
I've tried running the app under SXMO (sway version) and the error message is the same.
The app does run under plasma-mobile / plasma-desktop (6.0, wayland), but instead of going fullscreen with the origin at 0:0 it starts from the very center of the screen, taking up the bottom-right quarter and being mostly off-screen. In desktop mode, I've been able to use window rules to force it to take up the appropriate position, but the white circle that you're supposed to tap on is not visible. The while circle does show up in the preview when alt-tabbing though... Very confusing stuff.
It runs successfully under GNOME (wayland) too, and it seems to be positioned and sized appropriately there, but unfortunately GNOME is extremely glitchy on this hardware so it's not really possible to interact with it.
I'm out of graphical environments that I can try, so I'll just leave it here for now :)
@AlanGriffiths I tried the changes from #5 and the app now runs under phosh. Yay!
Unfortunately I just get a solid-color (slight gradient?) fullscreen window. Interestingly, as was the case with plasma, the spot that I'm supposed to tap does show up in the app switcher. See the screenshots below.
I might try to run mir, which thankfully seems to be packaged for Alpine. However, since it's not fully integrated in postmarketOS (it's not offered in the list of UIs one can choose during installation) and considering that I've never used it, that might prove challenging. We'll see :)
Unfortunately I just get a solid-color (slight gradient?) fullscreen window. Interestingly, as was the case with plasma, the spot that I'm supposed to tap does show up in the app switcher. See the screenshots below.
I'm guessing that this is because the output is scaled and the calibration app doesn't (currently) accommodate this.
Activity
AlanGriffiths commentedon Mar 20, 2024
Thanks for the report! It is likely that phosh is relevant as different compositors react differently to protocol errors.
I won't have time to investigate until next week (as I am on vacation), but it is likely that my code is in error.
andreabolognani commentedon Mar 20, 2024
No worries! Enjoy your vacation and let me know if I can provide any additional information to make things easier for you :)
andreabolognani commentedon Mar 23, 2024
Quick update.
I've tried running the app under SXMO (sway version) and the error message is the same.
The app does run under plasma-mobile / plasma-desktop (6.0, wayland), but instead of going fullscreen with the origin at 0:0 it starts from the very center of the screen, taking up the bottom-right quarter and being mostly off-screen. In desktop mode, I've been able to use window rules to force it to take up the appropriate position, but the white circle that you're supposed to tap on is not visible. The while circle does show up in the preview when alt-tabbing though... Very confusing stuff.
It runs successfully under GNOME (wayland) too, and it seems to be positioned and sized appropriately there, but unfortunately GNOME is extremely glitchy on this hardware so it's not really possible to interact with it.
I'm out of graphical environments that I can try, so I'll just leave it here for now :)
Saviq commentedon Mar 26, 2024
@andreabolognani we primarily work on Mir, so any of the Mir-based compositors should work for you:
andreabolognani commentedon Mar 26, 2024
@AlanGriffiths I tried the changes from #5 and the app now runs under phosh. Yay!
Unfortunately I just get a solid-color (slight gradient?) fullscreen window. Interestingly, as was the case with plasma, the spot that I'm supposed to tap does show up in the app switcher. See the screenshots below.
I might try to run mir, which thankfully seems to be packaged for Alpine. However, since it's not fully integrated in postmarketOS (it's not offered in the list of UIs one can choose during installation) and considering that I've never used it, that might prove challenging. We'll see :)
AlanGriffiths commentedon Mar 27, 2024
I'm guessing that this is because the output is scaled and the calibration app doesn't (currently) accommodate this.
andreabolognani commentedon Mar 27, 2024
@AlanGriffiths yes, that was exactly it! After switching to 100% scaling I can see the whole app, including the dot \o/
Is it normal that the dot remains in the same place even after being touched?
wayland-calibratormoves its own touch target around.Also, while the app now works, the results I get over different runs are wildly different:
The numbers I get with
weston-calibratorseem at least a bit more consistent:I'm really not sure what's up with that.
AlanGriffiths commentedon Mar 28, 2024
No, for calibration to work the points cannot be the same (nor in a straight line)
andreabolognani commentedon Apr 2, 2024
That would probably explain why the data I'm getting back is garbage :)