View previous topic :: View next topic |
Author |
Message |
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1254
|
Posted: Fri Jun 25, 2021 4:25 pm Post subject: |
|
|
Xorg-Server-1.20.11
Code: | ~ $ ps axf -o pid,tty,args | grep -i xwa
29287 tty1 \_ /usr/bin/kwin_wayland_wrapper --xwayland /usr/lib64/libexec/startplasma-waylandsession
29288 tty1 \_ kwin_wayland --wayland_fd 4 --xwayland /usr/lib64/libexec/startplasma-waylandsession
29310 tty1 \_ /usr/bin/Xwayland :0 -displayfd 43 -rootless -wm 46 -auth /run/user/1000/xauth_fiPaxj -listen 40 -listen 41 |
|
|
Back to top |
|
|
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1254
|
Posted: Fri Jun 25, 2021 4:28 pm Post subject: |
|
|
Quote: | Something else going on, possibly the way it's built. Which gcc are you using? |
Code: | ~ $ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/11.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /tmp/portage/sys-devel/gcc-11.1.0-r1/work/gcc-11.1.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/11.1.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/11.1.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/11.1.0/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/11.1.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/11.1.0/python --enable-languages=c,c++,jit --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 11.1.0-r1 p2' --disable-esp --enable-libstdcxx-time --with-build-config=bootstrap-lto --enable-host-shared --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --with-multilib-list=m64 --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libssp --disable-libada --disable-systemtap --disable-valgrind-annotations --disable-vtable-verify --disable-libvtv --with-zstd --enable-lto --with-isl --disable-isl-version-check --disable-libsanitizer --enable-default-pie --disable-default-ssp --disable-gold --disable-obsolete --enable-lto
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.1.0 (Gentoo 11.1.0-r1 p2) |
Quote: | Edit to add: when you build xorg-server did you disable the wayland flag? |
What do you exactly mean? Of course it is enabled.
Code: | ~ $ emerge -avtp xorg-server
These are the packages that would be merged, in reverse order:
Calculating dependencies... done!
[ebuild R ] x11-base/xorg-server-1.20.11:0/1.20.11::gentoo USE="elogind udev wayland xorg xvfb -debug -dmx -doc -ipv6 -kdrive -minimal (-selinux) -suid -systemd -test -unwind -xcsecurity -xephyr -xnest" 0 KiB
Total: 1 package (1 reinstall), Size of downloads: 0 KiB |
|
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6144 Location: Dallas area
|
Posted: Fri Jun 25, 2021 5:07 pm Post subject: |
|
|
what does "ls -l /usr/lib/Xw* /usr/bin/Xw*" return.
I think that if you run with xorg-server-1.20.11 you should disable the wayland flag OR use xorg-server-1.20.11-r1 (arch)
If using xorg-server-1.20.11-r1 it disables building xwayland in xorg-server and uses the standalone ebuild. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1254
|
Posted: Fri Jun 25, 2021 5:16 pm Post subject: |
|
|
Code: | ~ $ ls -l /usr/lib/Xw* /usr/bin/Xw*
ls: cannot access '/usr/lib/Xw*': No such file or directory
-rwxr-xr-x 1 root root 2665288 Jun 26 00:03 /usr/bin/Xwayland |
Why should I disable USE=waylnd with xorg-server-1.20.11? I use some apps that don not support wayland natively.
Quote: | If using xorg-server-1.20.11-r1 it disables building xwayland in xorg-server and uses the standalone ebuild. |
You have read my post above. |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6144 Location: Dallas area
|
Posted: Fri Jun 25, 2021 5:24 pm Post subject: |
|
|
Perfect Gentleman wrote: | Code: | ~ $ ls -l /usr/lib/Xw* /usr/bin/Xw*
ls: cannot access '/usr/lib/Xw*': No such file or directory
-rwxr-xr-x 1 root root 2665288 Jun 26 00:03 /usr/bin/Xwayland |
Why should I disable USE=waylnd with xorg-server-1.20.11? I use some apps that don not support wayland natively ? |
I said if you run both xorg-server and xwayland packages, then you should disable wayland use flag.
If you are going to use the xwayland pkg, then the standalone Xwayland REPLACES the xorg one.
Disabling wayland in xorg-server and emerging xwayland, gets you what you used to get with xorg-server[wayland]
The standalone one should put Xwayland executable in /usr/libexec and create a symlink in /usr/bin.
You show Xwayland in /usr/bin, not a symlink, so I don't know which executable you're using. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6144 Location: Dallas area
|
Posted: Fri Jun 25, 2021 5:28 pm Post subject: |
|
|
Now I'm confused.
Which version of xorg-server are you running, you talked about xorg-server-1.20.11-r1 earlier, but the emerge showed xorg-server-1.20.11, thus the confusion. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1254
|
Posted: Fri Jun 25, 2021 5:32 pm Post subject: |
|
|
I've updated to xorg-server-1.20.11-r1 & xwayland-21.1.1-r1 and got xwayland crashed. I reverted back to xorg-server-1.20.11 and xwayland works again. |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6144 Location: Dallas area
|
Posted: Fri Jun 25, 2021 5:36 pm Post subject: |
|
|
Perfect Gentleman wrote: | I've updated to xorg-server-1.20.11-r1 & xwayland-21.1.1-r1 and got xwayland crashed. I reverted back to xorg-server-1.20.11 and xwayland works again. |
Ok, gotcha.
Do we have any logs from the crash? Any hint other than "it crashed"? _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Last edited by Anon-E-moose on Fri Jun 25, 2021 5:39 pm; edited 2 times in total |
|
Back to top |
|
|
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1254
|
Posted: Fri Jun 25, 2021 5:38 pm Post subject: |
|
|
Nope, no logs, nothing in dmesg. I tried to find logs or any useful info, but don't now where. |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6144 Location: Dallas area
|
Posted: Fri Jun 25, 2021 5:39 pm Post subject: |
|
|
From kwin community about kwin debugging.
The environment variable QT_LOGGING_RULES can be used to turn on full debug output from KWin:
export QT_LOGGING_RULES="kwin_*.debug=true"
You can append the environment variable to your ~/.bash_profile or to /etc/environment. If you are a bug tester, you might prefer to use /etc/environment since it's a common workflow to create new users for bug testing.
The logs for X11 are located in:
~/.xsession-errors
The logs for Wayland are located in:
~/.local/share/sddm/wayland-session.log _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1254
|
Posted: Fri Jun 25, 2021 5:41 pm Post subject: |
|
|
Quote: | The logs for X11 are located in:
~/.xsession-errors
The logs for Wayland are located in:
~/.local/share/sddm/wayland-session.log |
Wrong.
1 - it's not X11 session.
2 - don't use SDDM.
Honestly, I don't' want to test it anymore as lot of features don't work without xwayland such as LogOut. |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6144 Location: Dallas area
|
Posted: Fri Jun 25, 2021 5:45 pm Post subject: |
|
|
Perfect Gentleman wrote: | Quote: | The logs for X11 are located in:
~/.xsession-errors
The logs for Wayland are located in:
~/.local/share/sddm/wayland-session.log |
Wrong.
1 - it's not X11 session.
2 - don't use SDDM. |
What are you using to start kde?
Looks like that article assumes one is running sddm, don't know much about the logging as I'm not a kde user. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1254
|
Posted: Sat Jun 26, 2021 12:30 am Post subject: |
|
|
From console. |
|
Back to top |
|
|
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1254
|
Posted: Sat Jun 26, 2021 2:32 pm Post subject: |
|
|
I've found what causes xwayland to crash, it is '-Dglx=true'.
P.S. It's not. It's more like '-Dxinerama=true' cases xwayland to crash.
Last edited by Perfect Gentleman on Sat Jun 26, 2021 4:32 pm; edited 2 times in total |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6144 Location: Dallas area
|
Posted: Sat Jun 26, 2021 3:00 pm Post subject: |
|
|
Perfect Gentleman wrote: | I've found what causes xwayland to crash, it is '-Dglx=true'. |
Interesting, it's on by default with xwayland (meson).
What video card or which kernel driver? _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1254
|
Posted: Sat Jun 26, 2021 3:40 pm Post subject: |
|
|
Code: | r ~ $ lspci -s 00:02.0 -k
00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
DeviceName: Onboard IGD
Subsystem: ASUSTeK Computer Inc. Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller
Kernel driver in use: i915 |
|
|
Back to top |
|
|
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1254
|
Posted: Sat Jun 26, 2021 4:04 pm Post subject: |
|
|
Hmm,
meson args that work
Code: | local emesonargs=(
$(meson_use rpc secure-rpc)
$(meson_use unwind libunwind)
$(meson_use ipv6)
$(meson_use xcsecurity)
$(meson_use selinux xselinux)
-Ddri3=true
-Dglamor=true
-Dglx=true
-Dxdmcp=false
-Dxinerama=false
-Dxv=true
-Dxvfb=true
-Ddtrace=false
) | with USE=rpc |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6144 Location: Dallas area
|
Posted: Sat Jun 26, 2021 6:38 pm Post subject: |
|
|
I'm not so sure it's glx. Not that I don't doubt that when you removed the define it started working.
I looked at my ebuild no -D defines
I looked at gentoo ebuild with -D whatever they have.
I looked at xorg-server/xwayland
And all three build glx and use it, as they should. The flag may trigger something, but I can't see it.
These are all I have defined in my ebuild
Code: | local emesonargs=(
$(meson_use eglstream xwayland_eglstream)
$(meson_use ipv6)
$(meson_use rpc secure-rpc)
$(meson_use unwind libunwind)
-Ddtrace=false
) |
Everything else has a default setting (the great majority are on/true/enabled) except for path and few oddities,
which is why I didn't pass the parms in.
These are the default options from meson (only some of them)
Code: | option('glamor', type: 'boolean', value: true,
description: 'Enable glamor (default yes)')
option('xwayland_eglstream', type: 'combo', choices: ['true', 'false', 'auto'],
value: 'auto', description: 'Enable EGLStream support for glamor on Xwayland')
option('xvfb', type: 'boolean', value: true,
description: 'Enable Xvfb X server')
option('builder_addr', type: 'string', description: 'Builder address', value: 'xorg@lists.freedesktop.org')
option('builder_string', type: 'string', description: 'Additional builder string')
option('default_font_path', type: 'string')
option('glx', type: 'boolean', value: true)
option('xdmcp', type: 'boolean', value: true)
option('xdm-auth-1', type: 'boolean', value: true)
option('secure-rpc', type: 'boolean', value: true)
option('ipv6', type: 'combo', choices: ['true', 'false', 'auto'], value: 'auto') |
Even if some of the values are true, when meson runs it checks to see if that option has what it needs to run,
so for example, secure-rpc is on by default, but if it can't find the libs it turns that option off. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Last edited by Anon-E-moose on Sat Jun 26, 2021 6:41 pm; edited 1 time in total |
|
Back to top |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1171 Location: /run/user/1000
|
Posted: Sat Jun 26, 2021 6:41 pm Post subject: |
|
|
I've decided to try xwayland package, but wlroots (with X flag) needs xorg-server with wayland flag, how do you overcome this , custom ebuild ?
I assume I need X flag for wlroots |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6144 Location: Dallas area
|
Posted: Sat Jun 26, 2021 6:44 pm Post subject: |
|
|
kajzer wrote: | I've decided to try xwayland package, but wlroots (with X flag) needs xorg-server with wayland flag, how do you overcome this , custom ebuild ?
I assume I need X flag for wlroots |
Local copy, remove line OR if you want to be pedantic replace with x11-base/xwayland.
Or really pedantic change
x11-base/xorg-server[wayland]
to
|| ( x11-base/xwayland x11-base/xorg-server[wayland] ) _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1171 Location: /run/user/1000
|
Posted: Sat Jun 26, 2021 7:28 pm Post subject: |
|
|
Thanks, I thought so, but wanted to be sure, not much Wayland experience, just started so I figured maybe I'm doing something wrong |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6144 Location: Dallas area
|
Posted: Sat Jun 26, 2021 7:44 pm Post subject: |
|
|
wlroots wants the Xwayland server, because it will fire it off when needed.
The ebuild is just making sure Xwayland is built, and when the ebuild was created there wasn't an xwayland pkg. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1171 Location: /run/user/1000
|
Posted: Sat Jun 26, 2021 8:07 pm Post subject: |
|
|
I know, btw while on subject, say I want to completely remove xorg-server but still use XWayland, how do I deal with X11 video drivers ?
Another set of custom ebuilds I guess ?
Are there plans to deal with this from gentoo devs ? |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6144 Location: Dallas area
|
Posted: Sat Jun 26, 2021 8:24 pm Post subject: |
|
|
kajzer wrote: | I know, btw while on subject, say I want to completely remove xorg-server but still use XWayland, how do I deal with X11 video drivers ?
Another set of custom ebuilds I guess ?
Are there plans to deal with this from gentoo devs ? |
Wayland/xwayland does not use the either xorg server or the drivers.
Wayland talks to the kernel drivers.
I don't have xorg-server, xorg-drivers, xf86-* installed anymore and no problem. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1171 Location: /run/user/1000
|
Posted: Sat Jun 26, 2021 8:48 pm Post subject: |
|
|
Oh, that's good to hear, I wasn't aware of that.
Like I said, Wayland noob
But I like it and I think the next step for me is to remove xorg-server and install Xwayland standalone server, which I'll do probably later tonight. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|