Ubuntu (**Budgie**) 21.10 freezes at a random time.
 PC info:
 Host: 81TD Lenovo Yoga C740-15IML
 Kernel: 5.13.0-20-generic 
 CPU: Intel i7-10510U
 GPU: Intel CometLake-U GT2 [UHD Graphics]
 (Mesa Intel® UHD Graphics (CML GT2)

 free -h
               total        used        free      shared  buff/cache   available
Mem:            15Gi       2,7Gi       4,8Gi       631Mi       7,8Gi        11Gi
Swap:          979Mi       2,0Mi       977Mi

As far as my knowledge goes, Intel GPU drivers are updated VIA kernel releases and so. I was googling around for similar errors, which occur to people using dual GPU or just Intel GPU. And so far, the best solution is to downgrade to the kernel version that was released on Ubuntu 20.01 ( not sure what version it was ). But, so far, I didn't try that.

I'm thinking of upgrading kernel 5.14.xx. ( using ukuu app ) If so, what version is stable?

Or do I downgrade to some kernel version? And again, what is one to go so?

At first, I thought my GPU would be a happy place and needed to replace MBO. PIC of freeze: https://ibb.co/ZVybnt6 When it freeze, the only thing that helps is force power-off. I'm not good at log files, so not sure how to provide them. ( if they get recorded at all )

This issue was reported as a kernel bug and so far was not fixed. If any have some words of wisdom, please share it or how to deal with it...

❯ swapon -s
Filename                Type        Size    Used    Priority
/dev/dm-2                               partition   1003516 0   -2
❯ grep -i swap /etc/fstab~
grep: /etc/fstab~: No such file or directory
❯ grep -i swap /etc/fstab
/dev/mapper/vgubuntu--budgie-swap_1 none            swap    sw              0       0
❯ swapon -s
Filename                Type        Size    Used    Priority
/dev/dm-2                               partition   1003516 0   -2
❯ grep -i swap /etc/fstab
/dev/mapper/vgubuntu--budgie-swap_1 none            swap    sw              0       0
❯ sudo dmidecode -s bios-version
  • When I first looked at your question, I thought swap problem, with only 1G swap, but then I looked at your screenshot. That's not a swap problem. The Intel video uses shared memory. So, first things first. Go to memtest86.com and download/run their free memtest to test your memory. Get at least one complete pass of all the 4/4 tests to confirm good memory. This may take a few hours to complete. Report back. Start comments to me with @heynnema or I'll miss them.
    – heynnema
    Oct 25, 2021 at 19:46
  • @heynnema Will try that. Is there any other opinion on possible problems ? Increase swap size ? Note. I'm using ubuntu LUKS encryption for SSD. Is there any possible issue that I might run to it ?
    – dMatija
    Oct 25, 2021 at 20:22
  • We'll discuss the possible swap problem after you run memtest.
    – heynnema
    Oct 25, 2021 at 20:27
  • @heynnema All PASS ok: ibb.co/4d3H8FW Also got some read: omgubuntu.co.uk/2021/08/linux-kernel-5-14-new-features for kernel 5.14. So far I didn't try it
    – dMatija
    Oct 26, 2021 at 11:08
  • Edit your question and show me swapon -s and grep -i swap /etc/fstab.
    – heynnema
    Oct 26, 2021 at 13:45

1 Answer 1


As promised, here's the info about adding a 4G /swapfile to your system.

It's a bit more complicated as you already have a LVM swap partition, but this will create an additional /swapfile, and will allow you to go back to the prior setup if this doesn't help with the problem.

Note: Incorrect use of the rm and dd commands can cause data loss. Suggest copy/paste.

In the terminal...

sudo dd if=/dev/zero of=/swapfile bs=1M count=4096

sudo chmod 600 /swapfile  # set proper file protections
sudo mkswap /swapfile     # init /swapfile

Edit /etc/fstab, using sudo -H gedit /etc/fstab or sudo pico /etc/fstab.

Leave this line alone...

/dev/mapper/vgubuntu--budgie-swap_1 none            swap    sw              0       0

Add this additional /swapfile line to the bottom of /etc/fstab... use SPACES in this line... confirm NO TABS...

/swapfile  none  swap  sw  0  0

swapon -a # start all swap locations

swapon -s # confirm two swap locations, /swapfile and /dev/dm-2

reboot # reboot and verify operation

  • all pass without any errors.
    – dMatija
    Oct 26, 2021 at 16:55
  • @dMatija What does free -h and swapon -s show now?
    – heynnema
    Oct 26, 2021 at 16:56
  • free -h total used free shared buff/cache available Mem: 15Gi 2,5Gi 10Gi 533Mi 2,8Gi 12Gi Swap: 5,0Gi 0B 5,0Gi''' Filename Type Size Used Priority /swapfile file 4194300 0 -2 /dev/dm-2 partition 1003516 0 -3
    – dMatija
    Oct 26, 2021 at 16:59
  • Sry for extra edit. will leave it for a while to check it will all be ok.
    – dMatija
    Oct 26, 2021 at 17:02
  • I didn't help. So far from extra swap happened 2x time. I thought to upgrade the 5.14 kernel or downgrading to kernel version for 20.01
    – dMatija
    Oct 26, 2021 at 17:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.