Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829496 - =x11-base/xorg-server-21.1.2: Screens not resumed after suspend
Summary: =x11-base/xorg-server-21.1.2: Screens not resumed after suspend
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal critical (vote)
Assignee: Gentoo X packagers
URL: https://gitlab.freedesktop.org/xorg/x...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-17 19:06 UTC by Martin Wegner
Modified: 2021-12-21 00:51 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Wegner 2021-12-17 19:06:57 UTC
After updating to =x11-base/xorg-server-21.1.2, the screens are not resumed and just stay blank. I can still ssh into the machine, but cannot recover the screens.

URL field is linking to upstream bug report. Found xorg-server as the culprit via this ArchLinux forum thread: https://bbs.archlinux.org/viewtopic.php?pid=2009488#p2009488

Downgrading to <x11-base/xorg-server-21.1.2 (in my case x11-base/xorg-server-21.1.1-r2) immediately solves this.

Reproducible: Always

Steps to Reproduce:
1. update to =x11-base/xorg-server-21.1.2
2. suspend machine
3. resume machine
Actual Results:  
Screens stay blank after resume, VTs cannot be switched by ctrl-alt-f1, etc.

Expected Results:  
Displays should be resumed and DE should be displayed.

Portage 3.0.30 (python 3.9.9-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-11.2.1, glibc-2.34-r3, 5.15.9-gentoo-vidar-ryzen x86_64)
=================================================================
System uname: Linux-5.15.9-gentoo-vidar-ryzen-x86_64-AMD_Ryzen_9_5950X_16-Core_Processor-with-glibc2.34
KiB Mem:    65831408 total,  20861936 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 17 Dec 2021 17:15:01 +0000
Head commit of repository gentoo: 879658afab8a6da9cd77e813807f0779639777c9
Head commit of repository flatpak-overlay: 4bf9a7815ca9361f86459c8a8e9bc403e3721704

Head commit of repository steam-overlay: bcdf7b7b1ffb3058a0d924e849a5abf18f364d9c

sh bash 5.1_p12
ld GNU ld (Gentoo 2.37_p1 p1) 2.37
ccache version 4.5.1 [disabled]
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p12::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r5::gentoo
dev-lang/python:           2.7.18_p13::gentoo, 3.8.12_p1::gentoo, 3.9.9::gentoo, 3.10.1-r1::gentoo
dev-lang/rust:             1.57.0::gentoo
dev-util/ccache:           4.5.1::gentoo
dev-util/cmake:            3.22.1::gentoo
dev-util/meson:            0.60.2-r1::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          249.6-r1::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r1::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           13.0.0::gentoo
sys-devel/gcc:             11.2.1_p20211127::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/lld:             13.0.0::gentoo
sys-devel/llvm:            13.0.0::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: --exclude='.snapshots'

local
    location: /usr/local/portage/mittwinter
    masters: gentoo
    priority: 0

betagarden
    location: /var/lib/layman/betagarden
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/betagarden.git
    masters: gentoo
    priority: 50

brother-overlay
    location: /var/lib/layman/brother-overlay
    sync-type: laymansync
    sync-uri: https://github.com/stefan-langenmaier/brother-overlay.git
    masters: gentoo
    priority: 50

flatpak-overlay
    location: /var/db/repos/flatpak-overlay
    sync-type: git
    sync-uri: https://github.com/fosero/flatpak-overlay.git
    masters: gentoo
    priority: 50

flow
    location: /var/lib/layman/flow
    sync-type: laymansync
    sync-uri: https://gitlab.com/Flow/flow-s-ebuilds.git
    masters: gentoo
    priority: 50

fol4
    location: /var/lib/layman/fol4
    sync-type: laymansync
    sync-uri: https://gitlab.com/madsl/fol4
    masters: gentoo
    priority: 50

genthree
    location: /var/lib/layman/genthree
    sync-type: laymansync
    sync-uri: https://gitlab.com/genthree/overlay.git
    masters: gentoo
    priority: 50

gnome
    location: /var/lib/layman/gnome
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/gnome.git
    masters: gentoo
    priority: 50

guru
    location: /var/lib/layman/guru
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/repo/proj/guru.git
    masters: gentoo
    priority: 50

java
    location: /var/lib/layman/java
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/java.git
    masters: gentoo
    priority: 50

jorgicio
    location: /var/lib/layman/jorgicio
    sync-type: laymansync
    sync-uri: https://github.com/jorgicio/jorgicio-gentoo.git
    masters: gentoo
    priority: 50

kaa
    location: /var/lib/layman/kaa
    sync-type: laymansync
    sync-uri: https://github.com/Oleh-Kravchenko/kaa-layman.git
    masters: gentoo
    priority: 50

mittwinter
    location: /var/lib/layman/mittwinter
    sync-type: laymansync
    sync-uri: https://github.com/mittwinter/gentoo-overlay
    masters: gentoo
    priority: 50

mozilla
    location: /var/lib/layman/mozilla
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/mozilla.git
    masters: gentoo
    priority: 50

pentoo
    location: /var/lib/layman/pentoo
    sync-type: laymansync
    sync-uri: https://github.com/pentoo/pentoo-overlay.git
    masters: gentoo
    priority: 50

plex-overlay
    location: /var/lib/layman/plex-overlay
    sync-type: laymansync
    sync-uri: https://github.com/comio/plex-overlay.git
    masters: gentoo
    priority: 50

seden
    location: /var/lib/layman/seden
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/user/seden.git
    masters: gentoo
    priority: 50

ssnb
    location: /var/lib/layman/ssnb
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/repo/user/ssnb
    masters: gentoo
    priority: 50

steam-overlay
    location: /usr/local/portage/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

stefantalpalaru
    location: /var/lib/layman/stefantalpalaru
    sync-type: laymansync
    sync-uri: https://github.com/stefantalpalaru/gentoo-overlay.git
    masters: gentoo
    priority: 50

tatsh-overlay
    location: /var/lib/layman/tatsh-overlay
    sync-type: laymansync
    sync-uri: https://github.com/Tatsh/tatsh-overlay.git
    masters: gentoo
    priority: 50

tmacedo
    location: /var/lib/layman/tmacedo
    sync-type: laymansync
    sync-uri: git://github.com/tmacedo/portage.git
    masters: gentoo
    priority: 50

vifino-overlay
    location: /var/lib/layman/vifino-overlay
    sync-type: laymansync
    sync-uri: https://github.com/vifino/vifino-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
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"
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"
EMERGE_DEFAULT_OPTS=" --alert y --verbose-conflicts --changed-deps y --changed-use --complete-graph y --with-bdeps y --autounmask --autounmask-write --deep --backtrack=1000 --keep-going y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live clean-logs config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-backup unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS=" 	ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo 	ftp://mirror.netcologne.de/gentoo/ 	"
L10N="en de"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de"
MAKEOPTS="-j28 -l18"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude='.snapshots'"
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/zsh"
USE="X a52 aac acl acpi aes alsa amd64 amr avahi avx avx2 bluetooth bluray branding bzip2 cairo cdda cdr cli colord crypt cryptsetup cups dbus device-mapper dirac divx dri dts dvb dvd dvdr eds emboss encode exif f16c faac faad fat fdk ffmpeg flac fma3 fuse gdbm gif gnome gnome-keyring gnome-online-accounts gstreamer gtk gtk3 gui iconv icu idn imagemagick inotify introspection ipv6 jpeg lame lastfm lcms libglvnd libnotify libsecret libtirpc lvm lz4 lzma lzo mad mmx mmxext mng mp3 mp4 mpeg mtp multilib nautilus ncurses networkmanager nls nptl nvenc nvidia offensive ogg opengl openmp opus pam pango pclmul pcre pcsc-lite pdf plymouth png policykit popcnt ppds pulseaudio qt5 rdrand readline realmedia samba schroedinger sdl seccomp sendto sha smartcard spell split-usr sse sse2 sse3 sse4_1 sse4_2 sse4a ssl ssse3 startup-notification svg syslog sysprof systemd theora tiff tracker truetype udev udisks unicode upower usb v4l v4l2 vdpau vim-syntax vorbis vpx wayland webm wifi wmp wxwidgets x264 x265 xattr xcb xinerama xml xv xvid xz zeitgeist zeroconf zlib zsh-completion" ABI_X86="64 32" ADA_TARGET="gnat_2020" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" CURL_SSL="openssl" 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" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" L10N="en de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AArch64 AMDGPU X86 NVPTX" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua51 lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9 python3_10 python3_8" QEMU_SOFTMMU_TARGETS="x86_64 i386" RUBY_TARGETS="ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia" 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, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-18 02:41:39 UTC
Does https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/829.patch in /etc/portage/patches help?
Comment 2 Martin Wegner 2021-12-18 14:47:36 UTC
(In reply to Sam James from comment #1)
> Does https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/829.patch
> in /etc/portage/patches help?

Yes, thanks, that mitigates the bug, I just successfully resumed after suspend with this patch applied to x11-base/xorg-server-21.1.2-r1
Comment 3 Larry the Git Cow gentoo-dev 2021-12-21 00:51:48 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c40287e2a259a9d9e13ee6055748d4d5b0b9f8b9

commit c40287e2a259a9d9e13ee6055748d4d5b0b9f8b9
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-21 00:51:30 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-21 00:51:30 +0000

    x11-base/xorg-server: backport upstream resume/logind fix
    
    Closes: https://bugs.gentoo.org/829496
    Signed-off-by: Sam James <sam@gentoo.org>

 .../xorg-server-21.1.2-fix-resume-logind.patch     | 148 +++++++++++++++++
 x11-base/xorg-server/xorg-server-21.1.2-r3.ebuild  | 185 +++++++++++++++++++++
 2 files changed, 333 insertions(+)