I’ve removed the “resume=‘UUID’” from the kernel command line and replaced it with “noresume”, (using YaST2 -> Boot Loader).
“/boot/grub2/grub.cfg” has been recreated and the kernel command line is correct there.
After reboot, out of curiosity I looked through the journal for “resume”
paul@Orion-15:~$ sudo journalctl -b | grep -i resume
[sudo] password for root:
Apr 25 12:02:21 Orion-15 kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-5.0.8-1-default root=UUID=ea5c2b1b-ac33-497d-b286-2c06a23623a2 noresume libata.force=noncq showopts
Apr 25 12:02:21 Orion-15 kernel: Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.0.8-1-default root=UUID=ea5c2b1b-ac33-497d-b286-2c06a23623a2 noresume libata.force=noncq showopts
Apr 25 12:02:21 Orion-15 systemd-hibernate-resume-generator[177]: Found "noresume" on the kernel command line, quitting.
Apr 25 12:02:21 Orion-15 dracut-cmdline[229]: Using kernel command line parameters: resume=UUID=8595c8af-adce-47f8-b9e4-9f46348154ac root=UUID=ea5c2b1b-ac33-497d-b286-2c06a23623a2 rootfstype=ext4 rootflags=rw,noatime BOOT_IMAGE=/boot/vmlinuz-5.0.8-1-default root=UUID=ea5c2b1b-ac33-497d-b286-2c06a23623a2 noresume libata.force=noncq showopts
Apr 25 12:02:24 Orion-15 systemd-hibernate-resume-generator[372]: Found "noresume" on the kernel command line, quitting.
paul@Orion-15:~$
All appears OK except for the rather strange line which commences “dracut-cmdline[229]: Using kernel command line parameters:” which (still) contains the original “resume=‘UUID’” at the start of the line.
I later noticed, following a “zypper dup” that when mkinitrd runs that also still has the “resume=‘UUID’”. Relevant fragment of “/var/log/YaST2/mkinitrd.log”
Either way it doesn’t really seem to matter, even when there is a resume=UUID the noresume takes precedence.
Background:
This machine never has played nicely when it resumes, black screen and unusable. I’ve already removed the hibernate/suspend options from KDE by adding a polkit rule
I changed the command line options using YaST2 bootloader from:
GRUB_CMDLINE_LINUX_DEFAULT=“splash=silent quiet showopts resume=/dev/disk/by-uuid/17795bce-b153-47bf-b60c-2a6d431553e7” to
GRUB_CMDLINE_LINUX_DEFAULT=“splash=silent quiet showopts”
.
Changes from journal dracut-cmdline were from:
I agree with that. But better still would be to prevent hibernation from happening, rather than prevent resuming.
I currently have Tumbleweed in two different VMs. And they are similar, as far as I can tell.
In the first image, I always get a hibernate option on shutdown (from KDE), unless I do a “swapoff -a” first.
In the second image, I never get a hibernate option on shutdown from KDE (X11), but I do get that option if I shutdown from KDE (Wayland). And I’ve tried with a new user account, and that works the same way. I suppose that there’s a reason for the difference between the systems, but I have no idea what that is.
Note, however, that I’m not seriously concerned about it. Rather, it is more of a curiosity.
Yes, I had already gone some way towards that by creating a polkit rule to disable hibernate/suspend options from appearing on the KDE desktop. (See post #5), and by appropriate setting of the power management options in (KDE’s) setup.
However, I never underestimate the ingenuity of my partner, if she’s able to accidentally find a way to hibernate/suspend, then she will! rotfl! …