ChanServ changed the topic of #wayland to: https://wayland.freedesktop.org | Discussion about the Wayland protocol and its implementations, plus libinput | register your nick to speak
xst9948 has quit [Ping timeout: 480 seconds]
dcz_ has quit [Ping timeout: 480 seconds]
c7s has quit [Ping timeout: 480 seconds]
caveman has quit [Remote host closed the connection]
caveman has joined #wayland
columbarius has joined #wayland
co1umbarius has quit [Ping timeout: 480 seconds]
maxzor has joined #wayland
gusnan has joined #wayland
immibis has joined #wayland
Emantor has quit [Quit: ZNC - http://znc.in]
Emantor has joined #wayland
dman_lfc has joined #wayland
<dman_lfc> hi i have a question about xwayland
<dman_lfc> specifically i'm getting this error - atomic: couldn't commit new state: Permission denied
<dman_lfc> repaint-flush failed: Permission denied
<dman_lfc> i'm using weston 9 on a raspberry pi 4
<dman_lfc> Command line: /usr/bin/weston --xwayland --log=/userdata/system/logs/weston.log
j0eseph has joined #wayland
j0eseph has left #wayland [#wayland]
soreau has quit [Read error: Connection reset by peer]
soreau has joined #wayland
<dman_lfc> upgrade weston to 9.0.91, wayland 1.20 & wayland protocols 1.24
<dman_lfc> still the same
<soreau> dman_lfc: is the user part of video group?
<dman_lfc> let me check
<dman_lfc> no - hrmm
<dman_lfc> changing
<soreau> probably should be part of input group too
<dman_lfc> ok
<dman_lfc> i'm not using systemd btw - this linux build doesn't use it
<dman_lfc> same erro
<dman_lfc> 01:00:16.293] Loading module '/usr/lib/libweston-10/xwayland.so'
<dman_lfc> [01:00:16.346] launching '/usr/libexec/weston-desktop-shell'
<dman_lfc> [01:00:16.346] Registered plugin API 'weston_xwayland_surface_v1' of size 16
<dman_lfc> [01:00:16.346] xserver listening on display :0
<dman_lfc> [01:00:16.346] Registered plugin API 'weston_xwayland_v1' of size 32
<dman_lfc> [01:00:16.369] atomic: couldn't commit new state: Permission denied
<dman_lfc> [01:00:16.369] repaint-flush failed: Permission denied
<dman_lfc> [01:00:16.986] atomic: couldn't commit new state: Permission denied
<dman_lfc> [01:00:16.986] repaint-flush failed: Permission denied
<soreau> depending on what you're doing, have you tried sway?
<dman_lfc> not tried sway
<soreau> or a wlroots compositor
<dman_lfc> i need to run an old x app under wayland
<dman_lfc> hence looking into xwayland
<dman_lfc> this is all new to me
<soreau> probably sway or wayfire can do what you want
<dman_lfc> we're using buildroot - sway & wayfire aren't part of that yet
<dman_lfc> can you verify my init.d script?
<soreau> my crystal ball says 'doubtful'
<dman_lfc> :-)
rasterman has quit [Quit: Gettin' stinky!]
eroux has joined #wayland
eroux has quit []
cvmn has joined #wayland
bim9262 has quit [Quit: ZNC - https://znc.in]
bim9262 has joined #wayland
cvmn has quit [Ping timeout: 480 seconds]
WhizzWarlock has quit []
WhizzWr has joined #wayland
kenny has quit [Quit: WeeChat 3.1]
<kennylevinsen> dman_lfc: your compositor should start xwayland itself
<dman_lfc> weston is the compositor
<dman_lfc> the instructions say to run with the --xwayland flag to start the xserver listening for appropriate apps
<kennylevinsen> Did you manage to start Weston before this?
<kennylevinsen> dman_lfc: after all you say "question about xwayland", but the error you get is Weston failing to start for reasons unrelated to Xwayland.
<dman_lfc> yes weston starts & is running, so is the xwayland server
<dman_lfc> xserver listening on display :0
<kennylevinsen> Then what's the problem?
<dman_lfc> the issues are - [01:00:16.369] atomic: couldn't commit new state: Permission denied
<dman_lfc> [01:00:16.369] repaint-flush failed: Permission denied
<kennylevinsen> It's possible to have sporadic permission denied errors from drm (e.g. during vt switches) - what's the symptom? Weston never managing to put anything on screen?
<kennylevinsen> dman_lfc: you may still lack proper permission. The "correct" way to start Weston on a non-systemd platform would be either to use seatd (daemon or seatd-launch, if Weston is built with libseat support) or weston-launch.
<kennylevinsen> these all run a tiny daemon as root that acts as intermediate for opening drm and evdev devices
<dman_lfc> currently everything runs as root
___nick___ has joined #wayland
<dman_lfc> we provide root access out of the box - hence init.d scripts run as root too
___nick___ has quit []
___nick___ has joined #wayland
dcz_ has joined #wayland
rasterman has joined #wayland
ecloud has quit [Ping timeout: 480 seconds]
ecloud has joined #wayland
flacks has quit [Quit: Quitter]
flacks has joined #wayland
bittin has joined #wayland
fmuellner has joined #wayland
bittin_ has joined #wayland
bittin_ has quit [Remote host closed the connection]
<kennylevinsen> dman_lfc: so Weston is running as root but you still get permission denied and nothing shows up on screen?
<dman_lfc> correct
<dman_lfc> bear in mind i'm just using weston to facilitate xwayland
<dman_lfc> let me explain a bit more & you can tell me if I'm mad :-)
<kennylevinsen> Sure :)
<dman_lfc> I'm working on a linux project - 'batocera linux' which facilitates emulators - provide front-end (emulation station) & pre-packaged emulators ready to go
<dman_lfc> one of the emulators I want to run on the raspberry pi is supermodel (emulates sega model3)
<dman_lfc> this is an older emulator written for X11 & openGL
<dman_lfc> to run it (using OpenGL for the Pi4) I need to run against Xwayland
<dman_lfc> thefore the gui (emulation station) launched a python script to start the associated emulator
<dman_lfc> currently it's not detecting the running background xwayland server
<dman_lfc> we use buildroot to build the linux os, it has weston available, hence using that at the wayland compositor
<dman_lfc> does that help?
<kennylevinsen> How does the emulation station GUI work? X, fbdev, direct drm, ...?
<dman_lfc> wayland
<dman_lfc> weston is using drm backend
<kennylevinsen> Okay, good. Sounded like you were trying to start Weston + Xwayland for just that single emulator while something else was drm master
<kennylevinsen> Xwayland is right now an unimportant detail - that should just work once Weston starts correctly. Try to share a link to your Weston start script.
<dman_lfc> log output -> https://pastebin.com/QXGFMEqS
<kennylevinsen> Can you for fun remove the openvt thing and just start weston-launch directly
<dman_lfc> I'm sure it won't work but I can try
<dman_lfc> give me a min or so - I have been looking into sway
<kennylevinsen> I wouldn't ask if it was inconsequential :P
<kennylevinsen> sway is more my home turf than Weston tbh, but Weston should be workable
<soreau> is being part of weston-launch group still a thing?
<dman_lfc> did you want me to keep the $WESTON_ARGS
<soreau> or it doesn't matter since running as root
<kennylevinsen> But yeah doesn't matter for root
<kennylevinsen> dman_lfc: yes that should be fine
<soreau> well if running as root.. why use weston-launch at all?
<soreau> does it work if you just run weston as root?
<dman_lfc> for drm backend i believe
<kennylevinsen> soreau: I don't remember if weston has a direct fallback
<dman_lfc> weston doesn't start with it removed
<dman_lfc> let me try without the $WESTON_ARGS
<dman_lfc> nope :-(
<dman_lfc> i understood you had to run weston in it's own VT
<dman_lfc> hence using openvt
<kennylevinsen> The VT it runs on need to not be occupied but it could have been confused by the VT switch
<kennylevinsen> Can you try to manually run weston-laumch from a tty?
<dman_lfc> yeah i can - i'm sure it will bring up the desktop aok
<kennylevinsen> If that works we know your setup is sane and all your problems revolve around the init script
<dman_lfc> have desktop
<kennylevinsen> And you just called weston-launch as root?
<dman_lfc> yes
Akra has joined #wayland
<soreau> maybe that XDG_RUNTIME_DIR needs to fall back to an absolute path?
<kennylevinsen> dman_lfc: immediate hunch: might be a controlling tty thing and you need to use the --tty flag for weston-launch, which in turn require the -u flag (could be "root" I guess?)
<kennylevinsen> soreau: I assume XDG_RUNTIME_DIR wouldn't matter until at least a Weston shell is shown...
<kennylevinsen> dman_lfc: the only real difference to being called from init script vs. you doing stuff from try would be some environment variables, controlling tty and what VT is active. Note that any VT not currently running a drm session is fine. A kernel console doesn't matter.
<dman_lfc> i will try i didn't think --tty was valid for weston-launch
<soreau> kennylevinsen: isn't this the main.c for weston? https://gitlab.freedesktop.org/wayland/weston/-/blob/main/compositor/main.c#L590
<kennylevinsen> soreau: true, but was that in the log that was posted?
<soreau> not sure what log you are talking about
<kennylevinsen> if you're talking about the problem dman_lfc is having, then there was a lot posted a little earlier...
<soreau> kennylevinsen: I was looking at the start() script
<kennylevinsen> I lost the scrollback for some reason, but a paste was posted right after the initial script
<kennylevinsen> Containing Weston output
<soreau> oh you're saying it didn't fail on that error in the log?
<dman_lfc> weston-launch -- --tty=6 doesn't yield a desktop
<soreau> it says 'using /dev/dri/card1' but I thought it's rpi?
<soreau> how many gpu's does it have? :P
<dman_lfc> :-) just 1
<kennylevinsen> dman_lfc: isn't that the wrong side of the --?
<kennylevinsen> Before -- is argument to weston-launch, after becomes arguments for weston
<dman_lfc> let me try
<dman_lfc> weston-launch -u root --tty=6
<dman_lfc> weston: failed to open tty: No such file or directory
<kennylevinsen> /dev/tty6
<kennylevinsen> Not just a number
<dman_lfc> Failed to process Wayland connection: Connection reset by peer
<dman_lfc> failed to create display: Connection reset by peer
<dman_lfc> fatal: unhandled option: --tty=/dev/tty6
<dman_lfc> i'm sure you just set the tty number ;-)
<soreau> 'e.g. -t /dev/tty4, requires -u option'
<soreau> from weston-launch --help
<dman_lfc> weston-launch -u root --tty=/dev/tty6
<dman_lfc> new errors...
<dman_lfc> [23:22:33.004] atomic: couldn't commit new state: Permission denied
<dman_lfc> could not load cursor 'dnd-move'
<dman_lfc> could not load cursor 'dnd-copy'
<dman_lfc> [23:22:33.004] repaint-flush failed: Permission denied
<dman_lfc> could not load cursor 'dnd-none'
<dman_lfc> could not load cursor 'dnd-move'
<dman_lfc> could not load cursor 'dnd-copy'
<dman_lfc> could not load cursor 'dnd-none'
<dman_lfc> xkbcommon: ERROR: couldn't find a Compose file for locale "C"
<dman_lfc> could not create XKB compose table for locale 'C'. Disabiling compose
<dman_lfc> xkbcommon: ERROR: couldn't find a Compose file for locale "C"
<dman_lfc> could not create XKB compose table for locale 'C'. Disabiling compose
<dman_lfc> [23:22:33.277] atomic: couldn't commit new state: Permission denied
<dman_lfc> [23:22:33.277] repaint-flush failed: Permission denied
<dman_lfc> ^C[23:22:55.769] caught signal 2
<dman_lfc> [23:22:55.769] output for input device event0 removed
<dman_lfc> [23:22:55.769] output for input device event1 removed
<dman_lfc> [23:22:55.769] output for input device event2 removed
<dman_lfc> [23:22:55.775] event0 - gpio_ir_recv: device removed
<dman_lfc> [23:22:55.775] event1 - vc4: device removed
<dman_lfc> [23:22:55.775] event2 - vc4: device removed
<kennylevinsen> Please do not paste logs into IRC. Use a pastebin for anything over a few lines.
<dman_lfc> will do
<kennylevinsen> Have you tried manually changing to VT 6? Don't remember if the tty flag does VT activation
<dman_lfc> those aren't in the log output but in the terminal
<dman_lfc> will go up & switch to tty6
Akra has quit []
<dman_lfc> i assume you want me to alt f6 - correct?
<kennylevinsen> Yeah
<dman_lfc> brb - it's upstairs (getting my step count up)
<kennylevinsen> I'm pretty confident this would all Just Work(tm) with libseat and either seatd-launch or seatd deamonized. I can't wait for weston-launch to be retired :(
<dman_lfc> yeah showed the desktop
<kennylevinsen> Okay, try to add your openvt on top
<kennylevinsen> Or just pick tty1
<kennylevinsen> You don't need to pick another tty if nothing graphical is going to run on tty1...
<dman_lfc> the xkbcommon: ERROR: is alarming or is that normal?
GoGi has quit [Quit: GoGi]
GoGi has joined #wayland
<kennylevinsen> Not alarming unless something is broken
<kennylevinsen> It's just complaining that your locale is "C" instead of, say, en_US.UTF-8
<kennylevinsen> So it can't make any localized decisions
<dman_lfc> ah ok
<dman_lfc> so when you say add openvt on top what are you suggesting?
<kennylevinsen> We concluded that weston-launch worked but did not activate (I.e. switch to) the VT you started it on. Either pick tty1/VT1 to not need a switch, call chvt before starting weston-launch, or wrap weston-launch in openvt -s just like before.
<kennylevinsen> otherwise Weston just sits forever idle on vt6, waiting for someone to find it
<dman_lfc> so if I do some like this - weston-launch -u root --tty=/dev/tty1 -- --log=/userdata/system/logs/weston.log
<dman_lfc> no openvt ^
<kennylevinsen> sure should work. At least after reboot if you just left the device on vt6.
<dman_lfc> same errors i'm afraid
<kennylevinsen> It worked with manual VT switching just a moment ago no?
<dman_lfc> yes when i manually switched to tty6 earlier
<kennylevinsen> Did you check if something comes up on screen or are you only looking at the log?
<kennylevinsen> If nothing comes up still, add "chvt 1" (or 6 if you change back to tty6) before weston-launch. That's identical to you alt+fN'ing around.
<dman_lfc> ok
<dman_lfc> doesn't start
<dman_lfc> soreau: card0 doesn't do KMS, hence why it uses card1 - just a fyi
<dman_lfc> thanks for trying kennylevinsen - i'm off to bed here it's after midnight. i have built an image with sway added - i will look into it tomorrow
moa has quit [Ping timeout: 480 seconds]
bluebugs has joined #wayland
GoGi has quit [Quit: GoGi]
GoGi has joined #wayland
wrl_ has quit []
wrl has joined #wayland
GoGi has quit []
GoGi has joined #wayland
GoGi has quit []
GoGi has joined #wayland
luc4 has joined #wayland
GoGi has quit [Quit: GoGi]
GoGi has joined #wayland
GoGi has quit []
GoGi has joined #wayland
GoGi has quit []
GoGi has joined #wayland
GoGi has quit []
GoGi has joined #wayland
GoGi has quit []
GoGi has joined #wayland
GoGi has quit []
GoGi has joined #wayland
GoGi has quit []
GoGi has joined #wayland
GoGi has left #wayland [#wayland]
tkilian has joined #wayland
tkilian has quit [Ping timeout: 480 seconds]
___nick___ has quit []
___nick___ has joined #wayland
___nick___ has quit []
c7s has joined #wayland
___nick___ has joined #wayland
bittin has quit [Read error: Connection reset by peer]
bittin has joined #wayland
___nick___ has quit [Ping timeout: 480 seconds]
pieguy128 has quit [Quit: ZNC 1.8.2 - https://znc.in]
pieguy128 has joined #wayland
dcz_ has quit [Ping timeout: 480 seconds]