View previous topic :: View next topic |
Author |
Message |
sicr0 Apprentice
Joined: 23 Mar 2022 Posts: 180
|
Posted: Thu Jun 23, 2022 7:23 pm Post subject: Screen freeze after reopening lid on Sway |
|
|
Hi, I'm running Sway.
Since kernel version 5.18, when I close and reopen my laptop lid the screen freezes like this. I confirmed via Reddit and I'm not the only one experiencing this.
I looked at Sway's log file and I suspect it is an AMDGPU issue so I opened an issue on their repo just in case.
Code: | M 04:33:15.839105 mod.rt ../pipewire-0.3.52/src/modules/module-rt.c:259:translate_error: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
M 04:33:15.839216 mod.rt ../pipewire-0.3.52/src/modules/module-rt.c:578:set_nice: could not set nice-level to -11: No such file or directory
M 04:33:15.839368 mod.rt ../pipewire-0.3.52/src/modules/module-rt.c:259:translate_error: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
M 04:33:15.840290 mod.rt ../pipewire-0.3.52/src/modules/module-rt.c:259:translate_error: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
M 04:33:15.840434 mod.rt ../pipewire-0.3.52/src/modules/module-rt.c:259:translate_error: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
M 04:33:15.840443 mod.rt ../pipewire-0.3.52/src/modules/module-rt.c:800:impl_acquire_rt: could not make thread 3117 realtime using RTKit: No such file or directory
00:00:01.532 [DEBUG] [wlr] [GLES2] Shader Stats: SGPRS: 8 VGPRS: 8 Code Size: 24 LDS: 0 Scratch: 0 Max Waves: 10 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0 DivergentLoop: 0, InlineUniforms: 0, ParamExports: 0, (PS, W64)
00:00:01.532 [DEBUG] [wlr] [GLES2] Shader Stats: SGPRS: 24 VGPRS: 12 Code Size: 44 LDS: 0 Scratch: 0 Max Waves: 10 Spilled SGPRs: 0 Spilled VGPRs: 0 PrivMem VGPRs: 0 DivergentLoop: 0, InlineUniforms: 0, ParamExports: 1, (VS, W64)
amdgpu: The CS has been rejected, see dmesg for more information (-16).
amdgpu: The CS has been rejected, see dmesg for more information (-16).
amdgpu: The CS has been rejected, see dmesg for more information (-16).
amdgpu: The CS has been rejected, see dmesg for more information (-16).
amdgpu: The CS has been rejected, see dmesg for more information (-16).
amdgpu: The CS has been rejected, see dmesg for more information (-16).
amdgpu: The CS has been rejected, see dmesg for more information (-16).
|
It's been a month and I actually don't have a lot more clue on what could be causing this. Maybe someone more experienced with this kind of issue can guide me to the right direction. |
|
Back to top |
|
|
CooSee Veteran
Joined: 20 Nov 2004 Posts: 1462 Location: Earth
|
Posted: Fri Jun 24, 2022 4:21 pm Post subject: |
|
|
hello,
what happens if you start your system with kernel option:
Code: | amdgpu.gpu_recovery=0 |
disable GPU reset ?!
here's an old sway issue:
https://github.com/swaywm/sway/issues/5825
it could be also an (reoccurring) wlroots bug.
are you using stable sway wlroots versions?
and which kernel version ? _________________ " Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier " |
|
Back to top |
|
|
sicr0 Apprentice
Joined: 23 Mar 2022 Posts: 180
|
Posted: Fri Jun 24, 2022 5:00 pm Post subject: |
|
|
Hi CooSee, I went to /usr/src/linux and search bot in .config and running make menuconfig, but I couldn't find that option.
To confirm, should I change this /usr/src/linux/.config line from
Code: | #GRUB_CMDLINE_LINUX=""
|
to
Code: | GRUB_CMDLINE_LINUX="amdgpu.gpu_recovery"
|
? |
|
Back to top |
|
|
CooSee Veteran
Joined: 20 Nov 2004 Posts: 1462 Location: Earth
|
Posted: Fri Jun 24, 2022 5:08 pm Post subject: |
|
|
please edit your /etc/default/grub
and add the option to GRUB_CMDLINE_LINUX="amdgpu.gpu_recovery=0"
and execute grub-mkconfig -o /boot/grub/grub.cfg
found an old bug report here:
https://gitlab.freedesktop.org/drm/amd/-/issues/930
this seems to happen only to internal AMD graphics, e.g notebooks.
please provide your emerge --info _________________ " Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier " |
|
Back to top |
|
|
MrRoy3 n00b
Joined: 10 Feb 2022 Posts: 53 Location: Canada
|
Posted: Fri Jun 24, 2022 6:38 pm Post subject: |
|
|
sicr0 wrote: |
To confirm, should I change this /usr/src/linux/.config line from
|
As a side note, you should never edit your .config directly, always edit your .config via make menuconfig. |
|
Back to top |
|
|
CooSee Veteran
Joined: 20 Nov 2004 Posts: 1462 Location: Earth
|
Posted: Fri Jun 24, 2022 7:25 pm Post subject: |
|
|
MrRoy3 wrote: | sicr0 wrote: |
To confirm, should I change this /usr/src/linux/.config line from
|
As a side note, you should never edit your .config directly, always edit your .config via make menuconfig. |
thank you for mentioning this. _________________ " Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier " |
|
Back to top |
|
|
sicr0 Apprentice
Joined: 23 Mar 2022 Posts: 180
|
Posted: Sat Jun 25, 2022 4:52 am Post subject: |
|
|
CooSee, I modified that /etc/default/grub line to
Code: | GRUB_CMDLINE_LINUX="amdgpu.gpu_recovery=0"
|
and then ran
Code: | grub-mkconfig -o /boot/grub/grub.cfg
|
After that the problem is still present.
I thought I had a clue but it seems maybe I was wrong |
|
Back to top |
|
|
CooSee Veteran
Joined: 20 Nov 2004 Posts: 1462 Location: Earth
|
Posted: Sat Jun 25, 2022 10:16 am Post subject: |
|
|
Quote: | After that the problem is still present.
I thought I had a clue but it seems maybe I was wrong |
ok, so after system restart is the error message the same ?
please provide your emerge --info _________________ " Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier " |
|
Back to top |
|
|
sicr0 Apprentice
Joined: 23 Mar 2022 Posts: 180
|
Posted: Sat Jun 25, 2022 9:08 pm Post subject: |
|
|
Hey sorry, I got so down I forgot to add that information, this is the output
Code: | sicro@sicro ~ $ emerge --info
Portage 3.0.30 (python 3.9.13-final-0, default/linux/amd64/17.1/no-multilib, gcc-11.3.0, glibc-2.35-r7, 5.18.6-gentoo x86_64)
=================================================================
System uname: Linux-5.18.6-gentoo-x86_64-AMD_Ryzen_7_PRO_4750U_with_Radeon_Graphics-with-glibc2.35
KiB Mem: 15697352 total, 10510404 free
KiB Swap: 4194300 total, 4194300 free
Timestamp of repository gentoo: Sat, 25 Jun 2022 20:47:45 +0000
Head commit of repository gentoo: 023ec5191e1ec4eecb235536a9c123ac0de0719c
Timestamp of repository guru: Sat, 25 Jun 2022 00:47:39 +0000
Head commit of repository guru: 4be19bbedfc28ab8927fde158ca46f12f47f7e14
sh bash 5.1_p16
ld GNU ld (Gentoo 2.38 p4) 2.38
ccache version 4.6.1 [enabled]
app-misc/pax-utils: 1.3.4::gentoo
app-shells/bash: 5.1_p16::gentoo
dev-java/java-config: 2.3.1::gentoo
dev-lang/perl: 5.36.0::gentoo
dev-lang/python: 3.9.13::gentoo, 3.10.5::gentoo, 3.11.0_beta3::gentoo
dev-lang/rust: 1.61.0-r1::gentoo
dev-util/ccache: 4.6.1::gentoo
dev-util/cmake: 3.23.2::gentoo
dev-util/meson: 0.62.2::gentoo
sys-apps/baselayout: 2.8::gentoo
sys-apps/openrc: 0.45.1::gentoo
sys-apps/sandbox: 2.29::gentoo
sys-devel/autoconf: 2.13-r2::gentoo, 2.71-r1::gentoo
sys-devel/automake: 1.16.5::gentoo
sys-devel/binutils: 2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang: 14.0.5::gentoo
sys-devel/gcc: 11.3.0::gentoo
sys-devel/gcc-config: 2.5-r1::gentoo
sys-devel/libtool: 2.4.7::gentoo
sys-devel/lld: 14.0.5::gentoo
sys-devel/llvm: 13.0.1::gentoo, 14.0.5::gentoo
sys-devel/make: 4.3::gentoo
sys-kernel/linux-headers: 5.18-r1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.35-r7::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: git
sync-uri: https://github.com/gentoo-mirror/gentoo.git
priority: -1000
sync-git-verify-commit-signature: yes
guru
location: /var/db/repos/guru
sync-type: git
sync-uri: https://github.com/gentoo-mirror/guru.git
masters: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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=znver2 -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=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="-march=znver2 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live ccache 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="-march=znver2 -O2 -pipe"
GENTOO_MIRRORS="http://gentoo.c3sl.ufpr.br/ http://mirrors.aliyun.com/gentoo/ https://gentoo.c3sl.ufpr.br/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/var/cache/binpkgs"
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 acl acpi alsa amd64 bluetooth bzip2 cairo cli crypt cups curl dbus dri egl elogind fortran gdbm git gnuplot googledrive gtk3 gui hwaccel iconv icu ipv6 jpeg libglvnd libtirpc lua minizip ncurses nls npm nptl nss opengl openmp pam pcre pdf persist pipewire postproc pulseaudio readline screencast seccomp speex split-usr ssh ssl swaybar text threads truetype udev unicode v4l vulkan wayland x264 xattr xorg zlib" ABI_X86="64" 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="mmx mmxext sse sse2" 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" INPUT_DEVICES="libinput mouse keyboard synaptics" KERNEL="linux" 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="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p ifacegeoip 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, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, 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
|
This is the log now. It still says the same things except for Bluetooth which I had connected at that moment.
I double checked just to be really extra sure, and /etc/default/grub has at line 21 the line
Code: | GRUB_CMDLINE_LINUX="amdgpu.gpu_recovery=0"
|
and I definitely compiled it well since now /boot/grub/grub.cfg has this lines now
Code: | ...
linux /vmlinuz-5.18.6-gentoo root=/dev/nvme0n1p3 ro amdgpu.gpu_recovery=0 i8042.noloop i8042.nomux i8042.nopnp i8042.reset
...
linux /vmlinuz-5.18.6-gentoo root=/dev/nvme0n1p3 ro amdgpu.gpu_recovery=0 i8042.noloop i8042.nomux i8042.nopnp i8042.reset
...
linux /vmlinuz-5.18.6-gentoo root=/dev/nvme0n1p3 ro single amdgpu.gpu_recovery=0
...
linux /vmlinuz-5.18.5-gentoo root=/dev/nvme0n1p3 ro amdgpu.gpu_recovery=0 i8042.noloop i8042.nomux i8042.nopnp i8042.reset
...
linux /vmlinuz-5.18.5-gentoo root=/dev/nvme0n1p3 ro single amdgpu.gpu_recovery=0
...
|
|
|
Back to top |
|
|
CooSee Veteran
Joined: 20 Nov 2004 Posts: 1462 Location: Earth
|
Posted: Sat Jun 25, 2022 9:54 pm Post subject: |
|
|
too bad
you should remove the grub edit, as it was before, because it didn't work!
i just saw the reddit post - it seems to be a current problem for some users.
what happens if you close the lid on TTY (console) and not sway?
is then coming back from suspend working ? _________________ " Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier " |
|
Back to top |
|
|
sicr0 Apprentice
Joined: 23 Mar 2022 Posts: 180
|
Posted: Sun Jun 26, 2022 6:40 am Post subject: |
|
|
Tried it, after the boot process my laptop runs tuigreet.
I closed and opened the lid during that and the laptop went unresponsive again, so I guess this still applies to TUI.
That's when I realized it wasn't a Sway problem |
|
Back to top |
|
|
CooSee Veteran
Joined: 20 Nov 2004 Posts: 1462 Location: Earth
|
Posted: Sun Jun 26, 2022 12:44 pm Post subject: |
|
|
sicr0 wrote: | Tried it, after the boot process my laptop runs tuigreet.
I closed and opened the lid during that and the laptop went unresponsive again, so I guess this still applies to TUI.
That's when I realized it wasn't a Sway problem |
yes, something's wrong with amdgpu.
have you tried with some other kernels - maybe a current longterm kernel, e.g. 5.15.50 ?
please show your fstab:
_________________ " Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier " |
|
Back to top |
|
|
sicr0 Apprentice
Joined: 23 Mar 2022 Posts: 180
|
Posted: Mon Jun 27, 2022 6:55 pm Post subject: |
|
|
This issue began appearing since kernel 5.18, in 5.17 I never had any problem.
This is my /etc/fstab:
Code: | sicro@sicro ~ $ cat /etc/fstab
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed); notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#
# NOTE: Even though we list ext4 as the type here, it will work with ext2/ext3
# filesystems. This just tells the kernel to use the ext4 driver.
#
# NOTE: You can use full paths to devices like /dev/sda3, but it is often
# more reliable to use filesystem labels or UUIDs. See your filesystem
# documentation for details on setting a label. To obtain the UUID, use
# the blkid(8) command.
#LABEL=boot /boot ext4 noauto,noatime 1 2
#UUID=58e72203-57d1-4497-81ad-97655bd56494 / ext4 noatime 0 1
#LABEL=swap none swap sw 0 0
#/dev/cdrom /mnt/cdrom auto noauto,ro 0 0
/dev/nvme0n1p1 /boot vfat defaults,noatime 0 2
/dev/nvme0n1p2 none swap sw 0 0
/dev/nvme0n1p3 / ext4 noatime 0 1
|
|
|
Back to top |
|
|
CooSee Veteran
Joined: 20 Nov 2004 Posts: 1462 Location: Earth
|
Posted: Mon Jun 27, 2022 7:49 pm Post subject: |
|
|
Quote: | This issue began appearing since kernel 5.18, in 5.17 I never had any problem. |
this is really odd - any chance to go back to 5.17, perhaps? - to really get sure.
i forgot to ask how big your swap is
have you tried with current kernel 5.18.7 or longterm 5.15.50 ? _________________ " Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier " |
|
Back to top |
|
|
sicr0 Apprentice
Joined: 23 Mar 2022 Posts: 180
|
Posted: Tue Jun 28, 2022 2:49 am Post subject: |
|
|
Is downgrading kernel difficult? I never done, I'm 100% sure that it worked on 5.17 tho, it was right after I switched to 5.18.0 that this began.
I have 16 GB of RAM, this is my swap
Code: | sicro@sicro ~ $ swapon --show
NAME TYPE SIZE USED PRIO
/dev/nvme0n1p2 partition 4G 0B -2
|
Still, I never went over 2.5 GB on RAM (even during Zoom calls while watching Youtube), so it's weird that what I have right after boot is able to fill that.
I'm on the latest bleeding kernel, I update twice a week |
|
Back to top |
|
|
CooSee Veteran
Joined: 20 Nov 2004 Posts: 1462 Location: Earth
|
Posted: Tue Jun 28, 2022 3:58 am Post subject: |
|
|
sicr0 wrote: | Is downgrading kernel difficult? I never done, I'm 100% sure that it worked on 5.17 tho, it was right after I switched to 5.18.0 that this began.
I have 16 GB of RAM, this is my swap
Code: | sicro@sicro ~ $ swapon --show
NAME TYPE SIZE USED PRIO
/dev/nvme0n1p2 partition 4G 0B -2
|
Still, I never went over 2.5 GB on RAM (even during Zoom calls while watching Youtube), so it's weird that what I have right after boot is able to fill that.
I'm on the latest bleeding kernel, I update twice a week |
you should read https://wiki.gentoo.org/wiki/Suspend_and_hibernate (again) and to be on the save side, according to wiki:
Quote: | Setting hibernation image size to half of the amount of installed RAM is a safe value in most cases |
and i never used suspend or hibernation ever in my life while using linux except only on my macbook air, once or twice!
i don't use swap at all and suspend and such is not even activated on my kernel (using 32GB RAM).
i'am oldschool, i always shut my computer down, even if i go out for 10 or 15 min.
you can try with a bigger amount of a swap file if you want.
i also don't assume that the kernel maintainers changed something in newer kernels.
i hope someone who's familiar with suspend and such can help you better .
good luck
P.S. also read this https://wiki.gentoo.org/wiki/Binary_package_guide/en
this is a great FEATURE - reinstalling a fresh copy of gentoo is a breeze with the emerge option --usepkg=y >>> you don't have to re-compile everything again if you already use compiled (binary) packages from your old system! _________________ " Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier " |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22447
|
Posted: Tue Jun 28, 2022 2:59 pm Post subject: |
|
|
sicr0 wrote: | Is downgrading kernel difficult? | No. Just boot back into the older kernel.
Suspend/resume is a hugely useful feature. I only perform a full shutdown if I need to do hardware maintenance and I don't have a newer kernel ready to boot into on the other side. Otherwise, I use suspend or hibernate, depending on how much power I want to save. Hibernate is as good as turning off the system, but gets all my state back quickly. |
|
Back to top |
|
|
sicr0 Apprentice
Joined: 23 Mar 2022 Posts: 180
|
Posted: Wed Jun 29, 2022 2:53 am Post subject: |
|
|
So, I've been trying to downgrade my kernel. I installed via emerge then I did all the necessary checks to switch
Code: | sicro@sicro ~ $ ls /usr/src
linux -> linux-5.17.15-gentoo
linux-5.17.15-gentoo
linux-5.18.5-gentoo
linux-5.18.6-gentoo
linux-5.18.7-gentoo
sicro@sicro ~ $ eselect kernel list
Available kernel symlink targets:
[1] linux-5.17.15-gentoo *
[2] linux-5.18.7-gentoo
sicro@sicro /usr/src $ doas cp /boot/config-5.18.7-gentoo /usr/src/linux/.config
sicro@sicro /usr/src $ doas make oldconfig
#
# No change to .config
#
<It's because I already run it and selected a couple of features I wanted and others that don't as usual>
sicro@sicro ~ $ doas make && doas make modules_install && doas make install && doas grub-mkconfig -o /boot/grub/grub.cfg
CALL scripts/checksyscalls.sh
CALL scripts/atomic/check-atomics.sh
DESCEND objtool
CHK include/generated/compile.h
Kernel: arch/x86/boot/bzImage is ready (#1)
INSTALL /lib/modules/5.17.15-gentoo/kernel/crypto/asymmetric_keys/pkcs8_key_parser.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/crypto/ecc.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/crypto/ecdh_generic.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/bluetooth/btbcm.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/bluetooth/btintel.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/bluetooth/btrtl.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/bluetooth/btusb.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/bluetooth/hci_uart.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/gpu/drm/amd/amdgpu/amdgpu.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/gpu/drm/drm_kms_helper.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/gpu/drm/drm_ttm_helper.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/gpu/drm/scheduler/gpu-sched.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/gpu/drm/ttm/ttm.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/media/common/videobuf2/videobuf2-common.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/media/common/videobuf2/videobuf2-memops.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/media/common/videobuf2/videobuf2-v4l2.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/media/common/videobuf2/videobuf2-vmalloc.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/media/usb/uvc/uvcvideo.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/mfd/mfd-core.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/net/wireless/ath/ath.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/net/wireless/ath/ath9k/ath9k.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/net/wireless/ath/ath9k/ath9k_common.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/net/wireless/ath/ath9k/ath9k_htc.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/net/wireless/ath/ath9k/ath9k_hw.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/net/wireless/intel/iwlwifi/dvm/iwldvm.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/net/wireless/intel/iwlwifi/iwlwifi.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/net/wireless/intel/iwlwifi/mvm/iwlmvm.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/nvme/host/nvme-fabrics.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/nvme/host/nvme-fc.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/nvme/host/nvme-tcp.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/thermal/intel/x86_pkg_temp_thermal.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/video/fbdev/core/fb_sys_fops.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/video/fbdev/core/syscopyarea.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/video/fbdev/core/sysfillrect.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/drivers/video/fbdev/core/sysimgblt.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/fs/efivarfs/efivarfs.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/kernel/configs.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/net/bluetooth/bluetooth.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/net/ipv4/netfilter/iptable_nat.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/net/mac80211/mac80211.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/net/netfilter/nf_log_syslog.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/net/netfilter/xt_LOG.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/net/netfilter/xt_MASQUERADE.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/net/netfilter/xt_addrtype.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/net/netfilter/xt_mark.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/net/netfilter/xt_nat.ko
INSTALL /lib/modules/5.17.15-gentoo/kernel/net/wireless/cfg80211.ko
DEPMOD /lib/modules/5.17.15-gentoo
sh ./arch/x86/boot/install.sh 5.17.15-gentoo \
arch/x86/boot/bzImage System.map "/boot"
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.18.7-gentoo
Found linux image: /boot/vmlinuz-5.18.6-gentoo
Found linux image: /boot/vmlinuz-5.17.15-gentoo
Found linux image: /boot/vmlinuz-5.17.15-gentoo.old
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
|
When I rebooted I checked which version I was running and it wasn't changed
Code: | sicro@sicro ~ $ uname -r
5.18.7-gentoo
|
|
|
Back to top |
|
|
CooSee Veteran
Joined: 20 Nov 2004 Posts: 1462 Location: Earth
|
Posted: Wed Jun 29, 2022 1:57 pm Post subject: |
|
|
Quote: | Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.18.7-gentoo
Found linux image: /boot/vmlinuz-5.18.6-gentoo
Found linux image: /boot/vmlinuz-5.17.15-gentoo
Found linux image: /boot/vmlinuz-5.17.15-gentoo.old |
it's because the 5.18.7-gentoo kernel has a higher number, so it becomes default one.
your generated kernel is the 3rd one.
you can edit /etc/default/grub:
Code: | # Default menu entry
GRUB_DEFAULT=3 | <<< 3rd one becomes default to boot >>> and run grub-mkconfig -o /boot/grub/grub.cfg again.
or when your system has startet and grub shows up, just push e for edit and choose the 3rd one to boot.
greetings _________________ " Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier " |
|
Back to top |
|
|
sicr0 Apprentice
Joined: 23 Mar 2022 Posts: 180
|
Posted: Wed Jun 29, 2022 6:02 pm Post subject: |
|
|
So, one thing that I believed was shattered.
I was able to boot into a 5.17 kernel version (verified with uname -r) and the tearing still persisted.
Now I have no clue
F |
|
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
|
|