It seems occasionally, after waking up the computer and unlocking it with a password, desktop background and panels are gone.
If I run plasmashell --replace
I get a working desktop again without a restart.
Is there something I can do to workaround this issue?
NAME TYPE SIZE USED PRIO
/swapfile file 512M 70.3M -2
probably need more swap space for a clean suspend/resume cycle to work
i would recommend a dedicated partition that is RAM + sqrt(RAM) in size.
just trying to help, i’d recommend to have a closer view at the logs.
an: journalctl -r
e.g. lists logs recursive. you could search in the logs as well, by piping their output, e.g. by: journalctl | grep yoursearchterm
i was hacking around with a widget problem today, and wondering if there is a specific plasma log, it seems there is an option to enable logging in QML files, but that may be a bit to specific for your problem right now.
ps: to have a comparison, that’s my swap file:
NAME TYPE SIZE USED PRIO
/swapfile file 512M 0B -2
Is there a recommended way to change swap post-install?
probably need more swap space for a clean suspend/resume cycle to work
Aren’t you confusing hibernate with suspend? Suspend to RAM doesn’t really use the swap. I suspend all the time and not a single byte of swap is touched:
free
total used free shared buff/cache available
Mem: 16222528 3629868 10287988 771412 3395340 12592660
Swap: 8388604 0 8388604
Hibernate in contrast dumps the running image to swap and that does need RAM+sqrt(ram) (a bit more than ram size)
man swapon
says the -U
switch will tell it to use the indicated partition
you can get the UUID of the partition from blkid
you can create the partition using gparted in any unallocated disk space or shorten an existing partition with free space to create some unallocated space.
so the first step is to find enough space for your partition (preferably on an SSD or nvme for speed) to accommodate your RAM + sqrt(RAM) swap partition.
you may have to do some house cleaning.
I added more swap as suggested, but the issue still happens occasionally and when it happens swap is barely used.
do you get any output from this command?
sudo update-initramfs -u
Why updating the initramfs if I made no change to it? Anyway I don´t see anything:
update-initramfs: Generating /boot/initrd.img-6.10.10-surface-1
To add more information to the symptom, when it happens, not only the panels and background are gone, but right clicking the desktop does nothing. The plasmashell
process seems to be alive though as it still shows in process list.
if there was a problem with your swap, it would issue a warning… since it did not, we can rule that out.
1 Like