View previous topic :: View next topic |
Author |
Message |
linux_os2 Apprentice
Joined: 29 Aug 2018 Posts: 252 Location: Zedelgem Belgium
|
Posted: Thu Apr 18, 2024 7:35 am Post subject: SOLVED systemd-sleep[47832]: Failed to set EFI variable Hibe |
|
|
Hi,
Since one of the last updates "hibernation" does not work anymore
followings is posted in journalctl: Code: | Apr 18 09:26:47 localhost systemd-logind[1855]: The system will hibernate now!
Apr 18 09:26:48 localhost systemd[1]: Reached target Sleep.
Apr 18 09:26:48 localhost systemd[1]: Starting System Hibernate...
Apr 18 09:26:48 localhost systemd-sleep[47832]: Failed to set EFI variable HibernateLocation: Invalid argument
Apr 18 09:26:48 localhost systemd[1]: systemd-hibernate.service: Main process exited, code=exited, status=1/FAILURE
Apr 18 09:26:48 localhost systemd[1]: systemd-hibernate.service: Failed with result 'exit-code'.
Apr 18 09:26:48 localhost systemd[1]: Failed to start System Hibernate.
Apr 18 09:26:48 localhost systemd[1]: Dependency failed for System Hibernation.
Apr 18 09:26:48 localhost systemd[1]: hibernate.target: Job hibernate.target/start failed with result 'dependency'.
Apr 18 09:26:48 localhost systemd[1]: Stopped target Sleep.
Apr 18 09:26:48 localhost systemd-logind[1855]: Operation 'hibernate' finished |
google on Code: | Failed to set EFI variable HibernateLocation | gives https://github.com/systemd/systemd/pull/32043
will try sys-apps/systemd-255.4
Last edited by linux_os2 on Wed Apr 24, 2024 6:11 pm; edited 4 times in total |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2433
|
Posted: Thu Apr 18, 2024 7:49 am Post subject: |
|
|
Do you have efivars loaded/enabled in your kernel?
Best Regards,
Georgi |
|
Back to top |
|
|
linux_os2 Apprentice
Joined: 29 Aug 2018 Posts: 252 Location: Zedelgem Belgium
|
Posted: Thu Apr 18, 2024 7:56 am Post subject: |
|
|
logrusx wrote: | Do you have efivars loaded/enabled in your kernel?
Best Regards,
Georgi |
Code: | mount | grep efivars
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime) |
see my edit on first post: will install new version of systemd |
|
Back to top |
|
|
linux_os2 Apprentice
Joined: 29 Aug 2018 Posts: 252 Location: Zedelgem Belgium
|
Posted: Thu Apr 18, 2024 8:49 am Post subject: |
|
|
installed sys-apps/systemd-255.4: no succes
installed sys-apps/systemd-9999: no succes
installed sys-apps/systemd-255.4: no succes
rolled back to installed sys-apps/systemd-254.8-rc1: also no succes
booted backup of couple of days: hibernate ok
so my guess is that systemd is not responsible. or the patch does not work for me. |
|
Back to top |
|
|
linux_os2 Apprentice
Joined: 29 Aug 2018 Posts: 252 Location: Zedelgem Belgium
|
Posted: Fri Apr 19, 2024 8:20 am Post subject: |
|
|
restored a backup of 14/04/2024
upgraded system: no problem any more
so what happened ?????
any way put as SOLVED |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2433
|
Posted: Fri Apr 19, 2024 8:35 am Post subject: |
|
|
What are the updates? If you still haven't updated world after the restore, could you post the output of
Code: | emerge -DuUav @world |
command please?
The pull request you linked is related to resume while your problem is with hibernating the system. This is consistent with the error message you posted is only seen in src/sleep/sleep.c.
Also if this happens again, dmesg output may contain additional useful information.
Best Regards,
Georgi |
|
Back to top |
|
|
linux_os2 Apprentice
Joined: 29 Aug 2018 Posts: 252 Location: Zedelgem Belgium
|
Posted: Fri Apr 19, 2024 9:23 am Post subject: |
|
|
Code: | emerge -DuUav @world
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 29.04 s (backtrack: 0/20).
Total: 0 packages, Size of downloads: 0 KiB
Nothing to merge; quitting.
|
will let know the list of upgraded/reinstalled packages |
|
Back to top |
|
|
linux_os2 Apprentice
Joined: 29 Aug 2018 Posts: 252 Location: Zedelgem Belgium
|
Posted: Fri Apr 19, 2024 1:44 pm Post subject: |
|
|
Packages upgraded/reinstalled:app-portage/elt-patches
sys-libs/libseccomp-2.5.5-r1
dev-libs/libunistring
app-arch/rar
dev-libs/openssl
sys-libs/libxcrypt
sys-apps/merge-usr
media-libs/imlib2
sys-libs/talloc
dev-ruby/rdoc
sys-libs/tdb
sys-apps/less
app-misc/pax-utils
app-crypt/p11-kit
x11-libs/gtk+
media-libs/libreplaygain
dev-util/librnp
media-sound/musepack-tools
app-antivirus/clamtk
dev-python/lxml
dev-python/tree-sitter
dev-libs/libgusb
app-misc/lirc
sys-apps/pkgcore
dev-libs/tree-sitter-bash
dev-python/irc
dev-util/pkgcheck
net-libs/webkit-gtk-2.44.1-r410
net-libs/webkit-gtk-2.44.1-r600
net-libs/gnome-online-accounts
www-client/epiphany
dev-libs/folks
gnome-extra/gnome-calendar
gnome-extra/gnome-contacts
x11-base/xorg-server
x11-drivers/xf86-input-libinput
dev-qt/qtbase
dev-qt/qttools
dev-qt/qttranslations
dev-qt/qtsvg
net-fs/cifs-utils
gnome-base/gnome-control-center
app-emulation/libvirt
mail-client/thunderbird
media-sound/easyeffects
www-client/firefox-115.10.0
gnome-extra/gnome-tweaks
gnome-remote-desktop-45.1-r1
remmina-1.4.35-r1
sys-kernel/linux-firmware-20240410
for me none of these packages could be responsible for th error |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2433
|
Posted: Fri Apr 19, 2024 3:54 pm Post subject: |
|
|
sys-apps/merge-usr ?
emerge --info please.
Best Regards,
Georgi |
|
Back to top |
|
|
linux_os2 Apprentice
Joined: 29 Aug 2018 Posts: 252 Location: Zedelgem Belgium
|
Posted: Fri Apr 19, 2024 4:24 pm Post subject: |
|
|
Code: | emerge --info
Portage 3.0.61 (python 3.11.8-final-0, default/linux/amd64/23.0/systemd, gcc-13, glibc-2.38-r11, 6.8.3-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-6.8.3-gentoo-x86_64-x86_64-Intel-R-_Xeon-R-_CPU_E5-2640_v4_@_2.40GHz-with-glibc2.38
KiB Mem: 131888440 total, 127292608 free
KiB Swap: 488385532 total, 488385532 free
Timestamp of repository gentoo: Fri, 19 Apr 2024 08:00:00 +0000
Head commit of repository gentoo: 358b77102784a6e4c693c0fe7b2650ddeaae9dba
Timestamp of repository edgets: Thu, 04 Apr 2024 01:22:33 +0000
Head commit of repository edgets: c73c01278bd9402e5d909be5e298cd7d36ca8844
Timestamp of repository zugaina: Fri, 16 Jun 2023 08:32:15 +0000
Head commit of repository zugaina: a31fcec20b159a13ccd069d4e13b92d18bc0ffec
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0
distcc 3.4 x86_64-pc-linux-gnu [disabled]
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.1_p16-r6::gentoo
dev-build/autoconf: 2.13-r8::gentoo, 2.71-r6::gentoo
dev-build/automake: 1.16.5-r2::gentoo
dev-build/cmake: 3.28.3::gentoo
dev-build/libtool: 2.4.7-r4::gentoo
dev-build/make: 4.4.1-r1::gentoo
dev-build/meson: 1.3.2::gentoo
dev-java/java-config: 2.3.3-r1::gentoo
dev-lang/perl: 5.38.2-r2::gentoo
dev-lang/python: 3.10.14_p1::gentoo, 3.11.8_p1::gentoo, 3.12.3::gentoo
dev-lang/rust: 1.75.0-r1::gentoo
sys-apps/baselayout: 2.14-r2::gentoo
sys-apps/sandbox: 2.38::gentoo
sys-apps/systemd: 255.3-r1::gentoo
sys-devel/binutils: 2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang: 17.0.6::gentoo
sys-devel/gcc: 11.4.1_p20240111::gentoo, 13.2.1_p20240210::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/lld: 17.0.6::gentoo
sys-devel/llvm: 17.0.6::gentoo
sys-kernel/linux-headers: 6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.38-r11::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: False
sync-rsync-verify-jobs: 1
sync-rsync-verify-metamanifest: yes
sync-rsync-extra-opts:
sync-rsync-verify-max-age: 24
edgets
location: /var/db/repos/edgets
sync-type: git
sync-uri: https://github.com/gentoo-mirror/edgets.git
masters: gentoo
volatile: False
local
location: /var/db/repos/local
masters: gentoo
volatile: False
zugaina
location: /var/db/repos/zugaina
sync-type: git
sync-uri: https://github.com/gentoo-mirror/zugaina.git
masters: gentoo
volatile: False
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /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"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/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 pkgdir-index-trusted 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="https://mirror.netcologne.de/gentoo/ https://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ https://ftp.halifax.rwth-aachen.de/gentoo/ https://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j40"
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="acl amd64 bzip2 cet crypt cups gdbm iconv ipv6 libtirpc multilib ncurses nls openmp pam pcre readline seccomp ssl systemd test-rust udev unicode xattr zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="emu efi-32 efi-64 pc" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" SANE_BACKENDS="epson epson2 canon" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto 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, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS |
|
|
Back to top |
|
|
linux_os2 Apprentice
Joined: 29 Aug 2018 Posts: 252 Location: Zedelgem Belgium
|
Posted: Sun Apr 21, 2024 9:09 am Post subject: |
|
|
logrusx wrote: | What are the updates? If you still haven't updated world after the restore, could you post the output of
Also if this happens again, dmesg output may contain additional useful information.
Best Regards,
Georgi |
after upgrading system again Code: | emerge -DuUav @world |
hibernate fails again: Code: | systemctl hibernate |
dmsg output: https://bpa.st/QA3A
will let know which updates were done |
|
Back to top |
|
|
linux_os2 Apprentice
Joined: 29 Aug 2018 Posts: 252 Location: Zedelgem Belgium
|
Posted: Sun Apr 21, 2024 10:29 am Post subject: |
|
|
following updates were done1713597133: ::: completed emerge (1 of 4) net-misc/curl-8.7.1-r2 to /
1713597733: ::: completed emerge (2 of 4) net-libs/nodejs-20.12.1 to /
1713598646: ::: completed emerge (3 of 4) mail-client/thunderbird-115.10.1 to /
1713609071: ::: completed emerge (4 of 4) www-client/chromium-124.0.6367.60 to /
|
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2433
|
Posted: Sun Apr 21, 2024 3:46 pm Post subject: |
|
|
None of those can be related. Either there were other updates or the issue is intermittent. I don't see anything useful in dmesg either, which means it might not be kernel's fault.
You mentioned you updated the system after the restore, but it might be necessary to restart or login again for the issue to appear. Can you remember if you did that after the update?
How do you hibernate your system? More info on the system? Does `echo disk > /sys/power/state` work?
Best Regards,
Georgi |
|
Back to top |
|
|
linux_os2 Apprentice
Joined: 29 Aug 2018 Posts: 252 Location: Zedelgem Belgium
|
Posted: Sun Apr 21, 2024 7:08 pm Post subject: |
|
|
rebooted several times after the uprade.
an UPS is connected to the system and a script /etc/apcupsd/doshutdown is calling Code: | /usr/bin/systemctl hibernate |
script: Code: | /bin/bash
# Hibernate the system - designed to be called via symlink from /etc/apcupsd
# directory in case of apcupsd initiating a shutdown/reboot. Can also be used
# interactively or from any script to cause a hibernate.
# Do the hibernate
/usr/bin/systemctl hibernate
# At this point system should be hibernated - when it comes back, we resume this script here
# On resume, tell controlling script (/etc/apcupsd/apccontrol) NOT to continue with default action (i.e. shutdown).
exit 99 |
when Code: | systemctl hibernate | is done same error appears
Code: | echo disk > /sys/power/state | does seem to work: the disk busy light lits for some seconds and the system powers off
but during powerup a fsck of my 90TB home disk array is forced (5min 45seconds) and system boots normally, does not resume.
dmesg of boot: https://bpa.st/H6DQ |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2433
|
Posted: Mon Apr 22, 2024 6:04 am Post subject: |
|
|
Unfortunately I can't suggest anything more here. Here's my dmesg after systemctl hibernate: https://bpa.st/RJ2Q. I don't have this script you posted, but I doubt it matters.
Note that there's no mention of hibernate in your failed hibernate dmesg and no mention of resume image in your failed resume dmesg. Maybe restore from backup again and inspect dmesg output of working hibernate/resume scenario.
Best Regards,
Georgi |
|
Back to top |
|
|
linux_os2 Apprentice
Joined: 29 Aug 2018 Posts: 252 Location: Zedelgem Belgium
|
Posted: Mon Apr 22, 2024 6:14 am Post subject: |
|
|
logrusx wrote: |
Note that there's no mention of hibernate in your failed hibernate dmesg and no mention of resume image in your failed resume dmesg. Maybe restore from backup again and inspect dmesg output of working hibernate/resume scenario.
Best Regards,
Georgi |
dmesg_susccesfull
Your paste can be seen here: https://bpa.st/TGFA
journalctl_susccesfull
Your paste can be seen here: https://bpa.st/4ANA |
|
Back to top |
|
|
linux_os2 Apprentice
Joined: 29 Aug 2018 Posts: 252 Location: Zedelgem Belgium
|
Posted: Mon Apr 22, 2024 4:30 pm Post subject: |
|
|
removed the ubuntu partitions.
did restore of the efi partition
did factory restore of the firmware
ran memtest for 8 hours
did grub-mkconfig
no succes. |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2433
|
Posted: Mon Apr 22, 2024 7:41 pm Post subject: |
|
|
Found it: https://github.com/systemd/systemd/issues/32331
Username bears certain similarity with yours, if it was you, reopen it.
One more thing I could suggest is to inspect your emerge.log and see if you can emerge the version which was updated prior to the restore from backup, i.e. one before the one in the backup.
p.s. the earlier issue you linked mentions something about clearing a stale value from the variable, maybe you had it there all along and when it got cleared, you lost the ability to hibernate because it cannot be set.
p.s.2 I'm with 255.3
Best Regards,
Georgi |
|
Back to top |
|
|
linux_os2 Apprentice
Joined: 29 Aug 2018 Posts: 252 Location: Zedelgem Belgium
|
Posted: Tue Apr 23, 2024 8:51 am Post subject: |
|
|
Indeed it was me; reopened issue. Quote: |
One more thing I could suggest is to inspect your emerge.log and see if you can emerge the version which was updated prior to the restore from backup, i.e. one before the one in the backup. |
systemd was updated:
initial version: systemd-251.2
systemd-251.4
systemd-251.7
systemd-251.8
systemd-252.4-r1
systemd-252.7
systemd-253.3-r1
systemd-254.7-r1
systemd-254.8-r1
systemd-255.3-r1
already went back to systemd-254.8-r1
but then Code: | Failed to set EFI variable HibernateLocation: No space left on device | is posted
I fixed it by deleting some entries with
afterwards the original error occurred again
now I am building a new system from scratch on another partition.
i keep the other partitions. |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2433
|
Posted: Tue Apr 23, 2024 1:16 pm Post subject: |
|
|
I updated to 255.4 and didn't encounter the issue. I suspect it might be hardware support issue as your CPU model indicates it's an older computer.
However there's another clue in the pull request that introduced that feature: "for resume without kernel cmdline". I remember I looked into your dmesg and didn't see a resume kernel parameter. I have it set built into the kernel and for now I can't come up with easy enough solution to test it without having it set.
EDIT: I tested it, it doesn't break for me. Test it for yourself with resume kernel command line parameter and see what happens.
Just for reference: this is the commit, you can follow it to the pull request and the issue from there: https://github.com/systemd/systemd/commit/90efe8a6d4c0035c6a01d42805be87d99fb12f9a
It is the same commit in systemd and systemd-stable.
Best Regards,
Georgi |
|
Back to top |
|
|
linux_os2 Apprentice
Joined: 29 Aug 2018 Posts: 252 Location: Zedelgem Belgium
|
Posted: Wed Apr 24, 2024 6:11 pm Post subject: |
|
|
the resume kernel cmdline parameter used to be present, but strangely disappeared.
added resume=UUID=b4b1cbec-4e1f-4da7-88d7-5ebc50492090
now the "systemctl hibernate" works.
the resume is also ok.
thanks a lot. |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2433
|
Posted: Wed Apr 24, 2024 8:30 pm Post subject: |
|
|
linux_os2 wrote: | the resume kernel cmdline parameter used to be present, but strangely disappeared.
added resume=UUID=b4b1cbec-4e1f-4da7-88d7-5ebc50492090
now the "systemctl hibernate" works.
the resume is also ok.
thanks a lot. |
Are you sure this is not one of those backup restores that work? If you are, I'm glad I was able to help. In the process I found out I don't need the resume parameter anymore.
EDIT: actually I still need it. I had an efi stub loader enabled kernel that still had it and I thought it worked without it, but I was wrong. I'm not sure if this new mechanism is a bust or I need to use systemd's bootloader.
Best Regards,
Georgi |
|
Back to top |
|
|
linux_os2 Apprentice
Joined: 29 Aug 2018 Posts: 252 Location: Zedelgem Belgium
|
Posted: Thu Apr 25, 2024 6:58 pm Post subject: |
|
|
I am sure: did hibernate with and without the resume parameter,
thanks again. |
|
Back to top |
|
|
e8root Tux's lil' helper
Joined: 09 Feb 2024 Posts: 94
|
Posted: Sat Apr 27, 2024 6:27 am Post subject: |
|
|
Here is my hibernate script I made to not have to type systemctl each time I want to hibernate
Code: | # donotrm -i /sys/firmware/efi/efivars/* 2>/dev/null
systemctl hibernate |
Notice the first line. I added it after one time wanting to hibernate complained with pretty much the same error messages as OP. Since I added removing efivars preemptively so far I didn't see any such issues or any other issues.
That said I implemented it but later read it might not be the best solution for all systems and having efivars mounted to RW in systemd did cause some controversy: https://github.com/systemd/systemd/issues/2402
I use MSI MS-7E06 1.0 motherboard and thankfully it isn't bricked yet.
But you know - you have been warned. Probably best to do some research on internets about it. Googline "systemd efivars rw" might be a good place to start.
EDIT//
Obfuscated the code for ctrl-c ctrl-v first, read rest of the post later people
!DO NOT USE THIS CODE!
Even with the same board it might cause issues
BTW. Also never ever remove recursively files from /. Especially on systemd systems.
[Moderator note: further mangled the potentially dangerous rm, just in case someone decides to rewrite donotrm or is sloppy with a copy and loses the first few characters. -Hu] _________________ Unix Wars - Episode V: AT&T Strikes Back
Last edited by e8root on Sat Apr 27, 2024 8:50 am; edited 2 times in total |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2433
|
Posted: Sat Apr 27, 2024 7:58 am Post subject: |
|
|
e8root wrote: |
Code: | <--this should be removed from the original post-->
systemctl hibernate |
|
You should absolutely not do that. Please remove it from your post so no one sees it and tries it. It can hard brick somebody's system.
Best Regards,
Georgi |
|
Back to top |
|
|
|