


In my experience, that's not always been the case. One example: running a script as a cron job, where the script needs DISPLAY set in order to do its work, but won't have inherited it from its environment. (When i was running i3, i used to have a cron job set up to regularly check the laptop battery, providing an on-screen notification once it got below a certain threshold.)e8root wrote:There should never be a need to manually set DISPLAY variable for X11 server.
Code: Select all
// update dbus env
if (g_pCompositor->m_sWLRSession)
handleRawExec("",
#ifdef USES_SYSTEMD
"systemctl --user import-environment DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP QT_QPA_PLATFORMTHEME && hash "
"dbus-update-activation-environment 2>/dev/null && "
#endif
"dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP HYPRLAND_INSTANCE_SIGNATURE QT_QPA_PLATFORMTHEME");Code: Select all
env | grep XDGCode: Select all
hyprctl clients
with AMD GPU everything will go way smoother and please take your time while integrating new Card to your System - there's no time to rush.I'm anxious as I'm getting a much better GPU today and want to get Steam up and running asap to check it out.
If we can't figure this out I can always just go with a vanilla Xorg setup, though I would prefer wayland if possible.

Hyprctl clients: https://0x0.st/Xs4r.txtXDG_BACKEND=wayland
XDG_SEAT=seat0
XDG_SESSION_DESKTOP=Hyprland
XDG_SESSION_TYPE=wayland
XDG_CURRENT_DESKTOP=Hyprland
XDG_SESSION_CLASS=user
XDG_VTNR=1
XDG_SESSION_ID=1
XDG_RUNTIME_DIR=/run/user/1000
XDG_DATA_DIRS=/home/**redacted**/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/

yes, you need mesa with X USE Flag emerged and some other Xorg related packages - so, add X to your make.conf USE Flags.dreamLogic wrote:Exposing my ignorance here but would I need xorg stuff actually installed? Perhaps this is the problem. I thought I read Xwayland is a server itself.
Code: Select all
USE="X" emerge -pvuDN --usepkg=n --with-bdeps=y --verbose-conflicts --keep-going @world
These are the packages that would be merged, in order:
Calculating dependencies ... done!
Dependency resolution took 19.76 s (backtrack: 1/20).
[ebuild R ] www-client/w3m-0.5.3_p20230121::gentoo USE="X* -fbcon gdk-pixbuf -gpm -imlib -lynxkeymap nls -nntp ssl unicode -xface" L10N="-ja" 0 KiB
[ebuild R ] sys-apps/dbus-1.15.8::gentoo USE="X* -debug -doc elogind (-selinux) -static-libs (-systemd) -test -valgrind" 0 KiB
[ebuild R ] app-accessibility/at-spi2-core-2.50.1:2::gentoo USE="X* -dbus-broker -gtk-doc introspection (-systemd) -test" 0 KiB
[ebuild R ] sys-process/psmisc-23.6::gentoo USE="X* -apparmor nls (-selinux) -test" 0 KiB
[ebuild R ] media-libs/freetype-2.13.2:2::gentoo USE="X* adobe-cff -brotli bzip2 cleartype-hinting -debug -doc -fontforge -harfbuzz png -static-libs svg -utils" 0 KiB
[ebuild R ] app-crypt/pinentry-1.2.1-r4::gentoo USE="X* -caps -efl -emacs -gtk -keyring ncurses -qt5 -verify-sig wayland" 0 KiB
[ebuild N ] x11-libs/libXpresent-1.0.1::gentoo USE="-doc" 252 KiB
[ebuild R ] media-libs/aalib-1.4_rc5-r10::gentoo USE="X* gpm slang" 0 KiB
[ebuild R ] media-libs/libcaca-0.99_beta19-r11::gentoo USE="X* -doc -imlib ncurses -opengl -slang -static-libs -test truetype" 0 KiB
[ebuild R ] app-misc/mc-4.8.30-r1::gentoo USE="X* edit gpm nls -sftp slang -spell -test -unicode" 0 KiB
[ebuild R ] sys-apps/hwloc-2.9.2:0/15::gentoo USE="X* -cairo cpuid (-cuda) -debug -nvml pci -static-libs svg udev -valgrind xml" VIDEO_CARDS="-nvidia" 0 KiB
[ebuild R ] x11-misc/xdg-utils-1.1.3_p20210805-r2::gentoo USE="X* dbus -doc -gnome" 0 KiB
[ebuild R ] dev-libs/libotf-0.9.16::gentoo USE="X* -static-libs" 0 KiB
[ebuild R ] media-fonts/ubuntu-font-family-0.862_p2::genlayees USE="X*" 0 KiB
[ebuild R ] sys-apps/groff-1.23.0::gentoo USE="X* -examples -uchardet" 0 KiB
[ebuild R ] media-libs/libva-2.20.0:0/2::gentoo USE="X* wayland" 0 KiB
[ebuild R ] media-video/libva-utils-2.20.1::gentoo USE="X* -examples -putsurface -test vainfo wayland" 0 KiB
[ebuild R ] media-gfx/imagemagick-7.1.1.25:0/7.1.1-18::gentoo USE="X* bzip2 -corefonts cxx -djvu -fftw fontconfig -fpx -graphviz hardened -hdri -heif -jbig jpeg jpeg2k -jpegxl lcms -lqr -lzma -opencl
-openexr openmp pango perl png postscript -q8 -q32 -raw
-static-libs svg -test -tiff truetype webp -wmf xml -zip zlib" 0 KiB
[ebuild R ] media-libs/vulkan-layers-1.3.275::gentoo USE="X* wayland" 0 KiB
[ebuild R ] media-libs/vulkan-loader-1.3.275::gentoo USE="X* layers wayland" 0 KiB
[ebuild R ] dev-util/vulkan-tools-1.3.275::gentoo USE="X* -cube wayland" 0 KiB
[ebuild R ] x11-libs/libxkbcommon-1.6.0::gentoo USE="X* -doc -static-libs -test -tools wayland" 0 KiB
[ebuild R ] media-gfx/imv-4.5.0::gentoo USE="X* freeimage -gif -heif -icu jpeg -jpegxl png svg -test -tiff wayland" 0 KiB
[ebuild R ] x11-terms/kitty-0.32.2::gentoo USE="X* -test -verify-sig wayland" PYTHON_SINGLE_TARGET="-python3_10 python3_11 -python3_12" 0 KiB
[ebuild R ] media-libs/libpulse-17.0::gentoo USE="X* asyncns dbus -doc glib -gtk (-selinux) (-systemd) -test -valgrind" 0 KiB
[ebuild R ] media-video/ffmpeg-6.0.1-r4:0/58.60.60::gentoo USE="X* alsa (-amf) -amr -amrenc (-appkit) -bluray -bs2b bzip2 -cdio -chromaprint -chromium -codec2 -cpudetection (-cuda) dav1d -debug -doc encode -fdk
-flite fontconfig -frei0r -fribidi -gcrypt -gme -gmp gnutls gpl -gsm -hardcoded-tables iconv -iec61883 -ieee1394 -jack jpeg2k -jpegxl -kvazaar -ladspa lcms -libaom -libaribb24 -libass -libcaca -libdrm -libilbc -libplacebo -librtmp
-libsoxr -libtesseract -libv4l -libxml2 -lv2 -lzma (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -modplug mp3 network -nvenc -openal -opencl -opengl -openh264 -openssl -opus -oss pic postproc pulseaudio (-qsv) -rav1e
-rubberband -samba -sdl -snappy -sndio -speex -srt -ssh -static-libs svg -svt-av1 -test -theora threads truetype -twolame -v4l vaapi -vdpau -verify-sig -vidstab (-vmaf) -vorbis -vpx vulkan -webp x264 -x265 -xvid -zeromq
-zimg zlib -zvbi" CPU_FLAGS_X86="-3dnow -3dnowext aes avx avx2 fma3 -fma4 mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3 -xop" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex
pktdumper qt-faststart sidxindex trasher" 0 KiB
[ebuild R ] media-sound/pulseaudio-daemon-17.0-r1::gentoo USE="X* alsa alsa-plugin -aptx asyncns -bluetooth dbus elogind -equalizer -fftw gdbm glib -gstreamer -jack -ldac -lirc -ofono-headset orc (-oss) (-selinux) -sox
ssl (-system-wide) (-systemd) -tcpd -test udev -valgrind webrtc-aec -zeroconf" 0 KiB
[ebuild R ] media-libs/mesa-23.3.6::gentoo USE="-X -d3d9 -debug -gles1 gles2 llvm lm-sensors -opencl -osmesa proprietary-codecs (-selinux) -test -unwind vaapi -valgrind -vdpau vulkan -vulkan-overlay wayland -xa (-zink)
zstd" CPU_FLAGS_X86="sse2" VIDEO_CARDS="-d3d12 (-freedreno) -intel -lavapipe (-lima) -nouveau (-panfrost) -r300 -r600 -radeon radeonsi (-v3d) (-vc4) -virgl (-vivante) -vmware" 0 KiB
[ebuild R ] media-video/mpv-0.37.0:0/2::gentoo USE="X* alsa (-aqua) -archive -bluray -cdda cli (-coreaudio) -debug drm -dvb -dvd egl -gamepad iconv -jack -javascript jpeg lcms -libcaca libmpv lua (-mmal) -nvenc -openal
-opengl -pipewire pulseaudio (-raspberry-pi)
-rubberband -sdl (-selinux) -sixel -sndio -test -tools uchardet vaapi -vdpau vulkan wayland -xv -zimg zlib" LUA_SINGLE_TARGET="(-lua5-1) (luajit)" PYTHON_SINGLE_TARGET="-python3_10 python3_11 -python3_12" 0 KiB
[ebuild N ] x11-base/xwayland-23.2.4::gentoo USE="-libei (-selinux) (-systemd) -unwind -xcsecurity" VIDEO_CARDS="-nvidia" 1.270 KiB
[ebuild R ] gui-libs/gtk-4.12.4:4::gentoo USE="X* (-aqua) -broadway -cloudproviders -colord -cups -examples (-ffmpeg) -gstreamer introspection -sysprof -test (-vulkan) wayland" CPU_FLAGS_X86="f16c" 0 KiB
[ebuild R *] gui-libs/wlroots-9999:0/9999::gentoo USE="X* drm libinput liftoff session -tinywl vulkan -x11-backend -xcb-errors" 0 KiB
[ebuild R *] gui-wm/hyprland-9999::genlayees USE="X* -legacy-renderer (-systemd)" 0 KiB
[ebuild R *] gui-wm/sway-9999::gentoo USE="X* filecaps man swaybar swaynag tray wallpapers" 0 KiB
[ebuild R ] media-gfx/inkscape-1.3.2-r1::gentoo USE="X* cdr -dia exif -graphicsmagick imagemagick inkjar jpeg openmp postscript readline -sourceview -spell -svg2 -test -visio -wpg" PYTHON_SINGLE_TARGET="-python3_10 python3_11" 0 KiB
[ebuild R ~] www-client/firefox-124.0:rapid::genlayees USE="X* clang dbus -debug -eme-free -geckodriver gmp-autoupdate -hardened -hwaccel -jack jumbo-build -libproxy -lto openh264 -pgo privacy pulseaudio (-selinux) -sndio
-system-av1 system-harfbuzz system-icu system-jpeg system-libevent -system-libvpx -system-png (-system-python-libs) system-webp -telemetry (-valgrind) wayland -wifi" L10N="-de -en-CA -en-GB -ru" LLVM_SLOT="17 (-18)" 0 KiB
[ebuild R #] www-client/ungoogled-chromium-122.0.6261.111_p1::pf4public USE="X* -bluetooth -cfi clang -convert-dict -cromite -cups -custom-cflags -debug -enable-driver -gtk4 -hangouts -headless -hevc -kerberos libcxx -nvidia official
-optimize-thinlto -optimize-webui -override-data-dir -pax-kernel -pgo proprietary-codecs pulseaudio -qt5 -qt6 -screencast (-selinux) -system-abseil-cpp -system-av1 -system-brotli -system-crc32c -system-double-conversion -system-ffmpeg
system-harfbuzz system-icu -system-jsoncpp system-libevent system-libusb -system-libvpx system-openh264 -system-openjpeg system-png -system-re2 -system-snappy -system-woff2 system-zstd -thinlto vaapi wayland widevine"
L10N="-af -am -ar -bg -bn -ca -cs -da -de -el -en-GB -es -es-419 -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -ur -vi -zh-CN -zh-TW" 0 KiB
Total: 37 packages (2 new, 35 reinstalls), Size of downloads: 1.521 KiB
The following USE changes are necessary to proceed:
(see "package.use" in the portage(5) man page for more details)
# required by virtual/opengl-7.0-r2::genlayees
# required by www-client/firefox-124.0::genlayees[X]
# required by @selected
# required by @world (argument)
>=media-libs/mesa-23.3.6 -X
* In order to avoid wasting time, backtracking has terminated early
* due to the above autounmask change(s). The --autounmask-backtrack=y
* option can be used to force further backtracking, but there is no
* guarantee that it will produce a solution.Code: Select all
xwayland {
force_zero_scaling = true
}
Code: Select all
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = dbus-update-activation-environment --systemd --all
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP

then, stop dreaming and use your logicI'm lazy
Code: Select all
env = QT_QPA_PLATFORM,wayland
#env = QT_STYLE_OVERRIDE,kvantum
env = QT_QPA_PLATFORMTHEME,qt5ct
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
there's no need to set it globally - i was only talking about USE flag in general - sorry for the confusion.I didn't have the X flag enabled globally
Code: Select all
app-text/ghostscript-gpl
dev-cpp/cairomm
dev-cpp/gtkmm
media-fonts/crosextrafonts-caladea
media-fonts/crosextrafonts-carlito
media-fonts/dejavu
media-fonts/droid
media-fonts/fantasque-sans-mono
media-fonts/fontawesome
media-fonts/hack
media-fonts/inter
media-fonts/jetbrains-mono
media-fonts/liberation-fonts
media-fonts/nerd-fonts
media-fonts/noto
media-fonts/noto-cjk
media-fonts/noto-emoji
media-fonts/urw-fonts
media-libs/libepoxy
media-libs/libglvnd
media-libs/libsdl2
x11-libs/cairo
x11-libs/gtk+
x11-libs/pangoCode: Select all
xwayland: 1