Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905109 - gui-wm/hyprland-0.24.1 & gui-wm/sway-1.8.1 - QT apps and other Wayland apps not open on AMD APU (Nvidia Optimus laptop)
Summary: gui-wm/hyprland-0.24.1 & gui-wm/sway-1.8.1 - QT apps and other Wayland apps n...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL: https://github.com/hyprwm/Hyprland/is...
Whiteboard:
Keywords: Bug
Depends on:
Blocks:
 
Reported: 2023-04-26 07:13 UTC by Gonçalo Negrier Duarte
Modified: 2023-08-02 15:26 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dmesg (dmesg.txt,243.81 KB, text/plain)
2023-04-26 07:13 UTC, Gonçalo Negrier Duarte
Details
make.conf (make.conf,2.49 KB, text/plain)
2023-04-26 07:14 UTC, Gonçalo Negrier Duarte
Details
Hyprland config (hyprland.conf,11.57 KB, text/plain)
2023-04-26 07:15 UTC, Gonçalo Negrier Duarte
Details
make.conf (make.conf,2.25 KB, text/plain)
2023-05-25 18:21 UTC, Gonçalo Negrier Duarte
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gonçalo Negrier Duarte 2023-04-26 07:13:46 UTC
Created attachment 860782 [details]
dmesg

I have a weird bug on my Gentoo system on wlroots compositor (I don't tested in other Wayland compositor).
If i have my Nvidia dGPU disable (using supergfxctl to save battery and allow to use the Nvidia card on Windows VM using vfio) and try to open Wayland native apps, the apps just freeze or segfault dsmeg or do both (Hyprland and sway also segfault in the dsmeg but start fine).
If its a qt app it freezes and segfault in case of apps the use opengl like alacrity the app just freeze when try to open from other terminal and never opens.
The weird thing if i enable Nvidia DGPU even without using (the driver is loaded but the Nvidia GPU is not being using in any app) all the Wayland apps open without a problem.
If a force all apps to use XWayland the problem get solve but its not ideal.

I will attach my make.conf and dsmeg
Comment 1 Gonçalo Negrier Duarte 2023-04-26 07:14:52 UTC
Created attachment 860783 [details]
make.conf
Comment 2 Gonçalo Negrier Duarte 2023-04-26 07:15:58 UTC
Created attachment 860784 [details]
Hyprland config
Comment 3 Gonçalo Negrier Duarte 2023-04-26 08:45:36 UTC
hyprland package: [ebuild   R    ] gui-wm/hyprland-0.24.1::thegreatmcpain  USE="X hwdata seatd source udev vulkan x11-backend" VIDEO_CARDS="nvidia" 0 KiB
Comment 4 Mike Gilbert gentoo-dev 2023-04-30 02:17:19 UTC
gui-wm/hyprland is not a Gentoo package.
Comment 5 Gonçalo Negrier Duarte 2023-05-01 02:39:49 UTC
@Mike Gilbert i also said it happen in sway (the gentoo package) and the segfaults are mostly the same if you what i can upload the outputs in sway?
Comment 6 Gonçalo Negrier Duarte 2023-05-12 09:48:40 UTC
A couple of day i found out when I only have the iGPU enable apps that have wayland version seem to freeze and i need to kill the using htop/btop or use the kill command for them to open.

Link the video showing the bug:https://youtu.be/3971w_UJ_Og

dsmeg when i do the follwing action:

```[21637.217405] gtklock[754489]: segfault at 563df3399b23 ip 00007fa55165d21d sp 00007ffc741842a8 error 4 in libgobject-2.0.so.0.7600.2[7fa551623000+42000] likely on CPU 2 (core 1, socket 0)
[21637.217432] Code: 08 48 8d 15 6a 3b 01 00 be 04 00 00 00 48 8d 3d f9 7d 00 00 31 c0 e8 02 63 fc ff eb fe 48 85 ff 74 4b 48 8b 07 48 85 c0 74 43 <48> 8b 00 48 3d fc 03 00 00 76 18 48 83 e0 fc 0f b6 50 14 48 83 7c
[22336.395911] xdg-desktop-por[4472]: segfault at 8 ip 00007f9b9f49600b sp 00007ffcece0e1a8 error 6 in libwayland-client.so.0.22.0[7f9b9f494000+7000] likely on CPU 6 (core 3, socket 0)
[22336.395932] Code: 89 f6 48 89 df e8 95 f3 ff ff eb ad 0f 1f 00 31 c0 48 39 7f 08 0f 94 c0 c3 66 0f 1f 44 00 00 48 8b 17 48 8b 47 08 c5 f9 ef c0 <48> 89 42 08 48 89 10 c5 fa 7f 07 c3 66 0f 1f 84 00 00 00 00 00 c4
[22397.545960] obs[759772]: segfault at 30 ip 00007fec7014c9a9 sp 00007ffec63740c0 error 4 in libglib-2.0.so.0.7600.2[7fec7009c000+d3000] likely on CPU 6 (core 3, socket 0)
[22397.545969] Code: ff 4c 8b 63 18 4d 85 e4 74 1b 48 89 ef e8 6f c1 ff ff 4c 89 e6 48 89 c7 e8 24 0e 01 00 85 c0 0f 84 cc 00 00 00 b8 02 00 00 00 <c4> e2 7b f7 4d 30 0f b6 43 48 89 c2 83 e0 fd d0 ea 83 e2 01 21 ca``
Comment 7 Gonçalo Negrier Duarte 2023-05-25 18:18:55 UTC
Comment on attachment 860783 [details]
make.conf

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-march=native -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPTS="-j12"
EMERGE_DEFAULT_OPTS="--jobs=8 --load-average=7"
ACCEPT_KEYWORDS="~amd64"
AUTOCLEAN="yes"

# NOTE: This stage was built with the bindist Use flag enabled

USE="btrfs X acpi appindicator cups zsh-completion bash-completion audit nvidia nvenc alsa systemd -elogind -kde dist-kernal bluetooth crypt cups lm-sensors networkmanager policykit pulseaudio pipewire screencast wayland udev emacs ffmpeg ios vulkan "

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C

GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://ftp.gwdg.de/pub/linux/gentoo/ rsync://ftp.gwdg.de/gentoo/ ftp://ftp.rnl.tecnico.ulisboa.pt/pub/gentoo/gentoo-distfiles/ rsync://ftp.rnl.tecnico.ulisboa.pt/pub/gentoo/gentoo-distfiles/ ftp://ftp.dei.uc.pt/pub/linux/gentoo/"

# PORTAGE_ELOG_CLASSES: selects messages to be logged, possible values are:
#                          info, warn, error, log, qa, *
PORTAGE_ELOG_CLASSES="log warn error"
# PORTAGE_ELOG_SYSTEM: seems useful again so
PORTAGE_ELOG_SYSTEM="save_summary:log,warn,error,qa echo"
#PORTAGE_ELOG_COMMAND: wont do logging wizardry so
# PORTAGE_ELOG_MAILURI: mail? pfft poor sys admins
# oh cool im done
ACCEPT_LICENSE="*"
LC_MESSAGES=C
POSTDIR="/var/db/repos/gentoo"
DISTDIR="/var/cache/distfiles"
PKGDIR="/var/cache/binpkgs"
Comment 8 Gonçalo Negrier Duarte 2023-05-25 18:21:16 UTC
Created attachment 862610 [details]
make.conf
Comment 9 Gonçalo Negrier Duarte 2023-08-02 15:26:13 UTC
Last nvidia driver (535.86.05) solve the problem and now everthing works as normal with nvidia dgpu disable.