After the global update of the system (emerge -NDavu world), X doesn't start anymore. In /var/log/Xorg.0.log it appears: [ 23.094] (EE) modeset(G0): Failed to create pixmap [ 23.094] (EE) Fatal server error: [ 23.094] (EE) failed to create screen resources(EE) [ 23.094] (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. [ 23.094] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information. [ 23.094] (EE) [ 23.094] (II) AIGLX: Suspending AIGLX clients for VT switch [ 23.106] (EE) Server terminated with error (1). Closing log file. I have double Intel+Nvidia cards. Unistalling nvidia-drivers: emerge -C nvidia-drivers solved the issue but I have no more the nvida for cuda capabilities. Reproducible: Always
Another workaround is to comment the line options nvidia-drm modeset=1 in: /etc/modprobe.d/nvidia.conf that is probably the source of the problem.
Please provide emerge --info and change the bug status to UNCONFIRMED.
emerge --info Portage 3.0.49 (python 3.11.4-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-12, glibc-2.37-r3, 6.4.2-gentoo x86_64) ================================================================= System uname: Linux-6.4.2-gentoo-x86_64-Intel-R-_Core-TM-_i7-8565U_CPU_@_1.80GHz-with-glibc2.37 KiB Mem: 16238780 total, 5010668 free KiB Swap: 16777212 total, 16770044 free Timestamp of repository gentoo: Thu, 06 Jul 2023 17:30:01 +0000 Head commit of repository gentoo: 71e21f98bdaea5aa13d6aeae52466ad331e44a58 Head commit of repository jgenco: 5c5e41847cbc3f67f32f38aeaab3e960a153dc1e Timestamp of repository nelson-graca: Sun, 02 Jul 2023 15:32:38 +0000 Head commit of repository nelson-graca: ecc99390485990192615b9be244c423e63320b38 Timestamp of repository rion: Sun, 02 Jul 2023 15:32:28 +0000 Head commit of repository rion: c9670adf88c63658148a4cb4532bd201340ce547 sh bash 5.2_p15-r6 ld ld di GNU (Gentoo 2.38 p4) 2.38 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p15-r6::gentoo dev-java/java-config: 2.3.1-r1::gentoo dev-lang/perl: 5.38.0::gentoo dev-lang/python: 3.8.16::gentoo, 3.9.16::gentoo, 3.10.10::gentoo, 3.11.4::gentoo, 3.12.0_beta3::gentoo dev-lang/rust: 1.69.0-r1::gentoo dev-util/cmake: 3.26.4-r1::gentoo dev-util/meson: 1.1.1::gentoo sys-apps/baselayout: 2.13-r1::gentoo sys-apps/openrc: 0.48::gentoo sys-apps/sandbox: 2.34::gentoo sys-devel/autoconf: 2.13-r8::gentoo, 2.71-r6::gentoo sys-devel/automake: 1.16.5-r1::gentoo sys-devel/binutils: 2.38-r2::gentoo, 2.39-r4::gentoo, 2.40-r5::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 14.0.6-r1::gentoo, 15.0.7-r3::gentoo, 16.0.6::gentoo sys-devel/gcc: 11.4.1_p20230622::gentoo, 12.2.1_p20230121-r1::gentoo, 13.1.1_p20230527::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/lld: 14.0.6-r1::gentoo, 15.0.7::gentoo sys-devel/llvm: 14.0.6-r2::gentoo, 15.0.7-r3::gentoo, 16.0.6::gentoo sys-devel/make: 4.4.1-r1::gentoo sys-kernel/linux-headers: 6.4::gentoo (virtual/os-headers) sys-libs/glibc: 2.37-r3::gentoo sys-libs/libselinux: 3.5::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: True sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes jgenco location: /var/db/repos/jgenco sync-type: git sync-uri: https://github.com/jgenco/jgenco-overlay masters: gentoo volatile: False local location: /usr/portage.local masters: gentoo volatile: True localrepo location: /var/db/repos/localrepo masters: gentoo volatile: False nelson-graca location: /var/db/repos/nelson-graca sync-type: git sync-uri: https://github.com/gentoo-mirror/nelson-graca.git masters: gentoo volatile: False rion location: /var/db/repos/rion sync-type: git sync-uri: https://github.com/gentoo-mirror/rion.git masters: gentoo volatile: False ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="it_IT.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" LINGUAS="it en it_IT en_US" MAKEOPTS="-j8" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" SHELL="/bin/bash" USE="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dri3 dts dvd dvdr elogind encode exif ffmpeg fftw flac fortran gdbm gif gles2 gpm gtk gui hidpi iconv icu id3tag ipv6 javafx jpeg kde kdesu kwallet lcms libinput libnotify libtirpc mad mng mp3 mp4 mpeg mtp multilib ncurses networkmanager nls nptl ntfs objc ogg opengl openmp opus pam pango pcre pcsc-lite pdf pipewire plasma png policykit ppds pulseaudio python qml qt5 readline s3tc samba screencast sdl seccomp semantic-desktop sound spell split-usr ssl startup-notification svg test-rust theora tiff touchpad truetype udev udisks unicode upower usb uxa v4l vaapi vdpau vorbis vpx vulkan wayland widgets wxwidgets x264 xattr xcb xft xml xv xvid xvmc zlib" ABI_X86="64 32" ADA_TARGET="gnat_2021" ALSA_CARDS="snd_hda_intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3 glamor" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="joystick wacom synaptics evdev libinput" KERNEL="linux" L10N="it en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11 python3_7 python3_8" RUBY_TARGETS="ruby31 ruby23 ruby25 ruby26" SANE_BACKENDS="*" VIDEO_CARDS="intel i965 i915 nvidia vesa v4l v4l2 modesetting fbdev iris" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
(In reply to Silvio from comment #1) > Another workaround is to comment the line > > options nvidia-drm modeset=1 > > in: > > /etc/modprobe.d/nvidia.conf > > > that is probably the source of the problem. This gets enabled with USE=wayland, did that get enabled recently for you? Beside that there hasn't been a new nvidia-drivers version in ~arch in nearly a month (535.54.03 was June 14), so unless your system was very out of date I doubt it was caused by a new version. The ebuild gives a warning about it the first time it's enabled, it's required for wayland but it's not compatible with every setups.
(In reply to Ionen Wolkens from comment #4) > (In reply to Silvio from comment #1) > > Another workaround is to comment the line > > > > options nvidia-drm modeset=1 > > > > in: > > > > /etc/modprobe.d/nvidia.conf > > > > > > that is probably the source of the problem. > This gets enabled with USE=wayland, did that get enabled recently for you? > Beside that there hasn't been a new nvidia-drivers version in ~arch in > nearly a month (535.54.03 was June 14), so unless your system was very out > of date I doubt it was caused by a new version. > > The ebuild gives a warning about it the first time it's enabled, it's > required for wayland but it's not compatible with every setups. I happened after an update of a very old system (no update for two months). So it is not compatible with my system. But I cannot use wayland disabling it?
(In reply to Silvio from comment #5) > It happened after an update of a very old system (no update for two months). I see, that probably explains why USE=wayland got (newly) enabled then. You are on a plasma profile and that profile enabled USE=wayland by default on May 21. And then the ebuild uncomments the modeset=1 line for default configs when that is set. > So it is not compatible with my system. It's possible something is just not setup right with your dual gpu setup (e.g. Xorg configs), but I don't think I can help with that given I don't have such setup myself. >But I cannot use wayland disabling Yes, you'll just get errors if you try to use wayland without modeset=1. Albeit wayland is still finnicky with NVIDIA so I personally wouldn't be in a hurry to switch to it and that may eventually resolve itself. It's even worse with offloading/multi-gpu setups, albeit some improvements for that are supposedly coming in the next nvidia-545 drivers. Either way, don't think there's much I can do here. Feel free to try different things, otherwise revert to how it used to be (USE=-wayland to skip some unnecessary deps, or comment out the line).
>Yes, you'll just get errors if you try to use wayland without modeset=1. Or at least if it's using NVIDIA anyway. You'd have no problems if it just uses intel.