Lock up requiring hard restart - happens 1-2 times a day

Hi all, I'm fairly new to Linux. I have been having daily PC lock ups that require a long press on the power button for a hard restart. Sometimes if I am lucky I can catch it as it is beginning to freeze and hit CTRL + ALT + Backspace to end KDE and restart it.

I read about what could be going on and discovered that my graphics drivers could be missing but I have ensured I am fully up to date. I play a lot of games and it seems to occur more often while playing games. Normally it is occurring when there is a lot of lag. Typically when entering a new location or starting a new level. It also seems to happen pretty soon after I start using the computer for the first time of each day.

I have also read online that "If your computer is hard locking it isn't a Linux problem, it is a software problem". But I am fairly put off by that answer due to the fact that I haven't encountered issues like this on Windows since before windows 10. Is this something I really will have to deal with if I plan to run Linux as my primary OS?

What trouble shooting steps can I take to get this fixed? I have been dealing with it for around 30 days now and it is the only thing that is between me and loving switching to Linux as my primary OS.

Hello,

There is a way to check that:
inxi -Fxxxza --no-host
mhwd -li
from termina. Share the output here. Use ``` above and bellow that text for proper formatting.

Where you read that and since when Linux is not software?

Are two different beasts, work and act different.

How did you deal with it, what have you done?

Thank you for responding. Here is what was returned:

inxi -Fxxxza --no-host returned:

System: Kernel: 5.4.28-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.3.0 parameters: BOOT_IMAGE=/boot/vmlinuz-5.4-x86_64 root=UUID=e4c3ad22-87ce-44c2-92cc-2cd88518c561 rw quiet apparmor=1 security=apparmor udev.log_priority=3 Desktop: KDE Plasma 5.18.3 tk: Qt 5.14.1 info: latte-dock wm: kwin_x11 dm: SDDM Distro: Manjaro Linux Machine: Type: Desktop System: Micro-Star product: MS-7B48 v: 1.0 serial: <filter> Mobo: Micro-Star model: Z370-A PRO (MS-7B48) v: 1.0 serial: <filter> UEFI: American Megatrends v: 2.30 date: 12/21/2017 Battery: Device-1: hidpp_battery_0 model: Logitech Wireless Mouse MX Master serial: <filter> charge: 10% (should be ignored) rechargeable: yes status: Discharging CPU: Topology: 6-Core model: Intel Core i7-8700K bits: 64 type: MT MCP arch: Kaby Lake family: 6 model-id: 9E (158) stepping: A (10) microcode: CA L2 cache: 12.0 MiB flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 88824 Speed: 800 MHz min/max: 800/4700 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 9: 800 10: 800 11: 800 12: 800 Vulnerabilities: Type: itlb_multihit status: KVM: Split huge pages Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable Type: mds mitigation: Clear CPU buffers; SMT vulnerable Type: meltdown mitigation: PTI Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW, STIBP: conditional, RSB filling Type: tsx_async_abort mitigation: Clear CPU buffers; SMT vulnerable Graphics: Device-1: NVIDIA GP106 [GeForce GTX 1060 6GB] vendor: ASUSTeK driver: nvidia v: 440.64 bus ID: 02:00.0 chip ID: 10de:1c03 Display: x11 server: X.Org 1.20.7 driver: nvidia compositor: kwin_x11 resolution: 2560x1080~60Hz, 1920x1080~60Hz OpenGL: renderer: GeForce GTX 1060 6GB/PCIe/SSE2 v: 4.6.0 NVIDIA 440.64 direct render: Yes Audio: Device-1: Intel 200 Series PCH HD Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus ID: 00:1f.3 chip ID: 8086:a2f0 Device-2: NVIDIA GP106 High Definition Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel bus ID: 02:00.1 chip ID: 10de:10f1 Device-3: Blue Microphones Yeti Stereo Microphone type: USB driver: hid-generic,snd-usb-audio,usbhid bus ID: 1-11.3:6 chip ID: b58e:9e84 serial: <filter> Sound Server: ALSA v: k5.4.28-1-MANJARO Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Micro-Star MSI driver: r8169 v: kernel port: d000 bus ID: 04:00.0 chip ID: 10ec:8168 IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter> Drives: Local Storage: total: 2.39 TiB used: 248.32 GiB (10.1%) ID-1: /dev/sda vendor: Toshiba model: THNSNJ128GCST size: 119.24 GiB block size: physical: 512 B logical: 512 B speed: 6.0 Gb/s serial: <filter> rev: 0102 scheme: GPT ID-2: /dev/sdb vendor: Seagate model: ST1000DM003-1ER162 size: 931.51 GiB block size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s rotation: 7200 rpm serial: <filter> rev: CC46 scheme: GPT ID-3: /dev/sdc vendor: Hitachi model: HDS721050CLA362 size: 465.76 GiB block size: physical: 512 B logical: 512 B speed: 3.0 Gb/s rotation: 7200 rpm serial: <filter> rev: A39C scheme: MBR ID-4: /dev/sdd vendor: Samsung model: SSD 860 EVO 1TB size: 931.51 GiB block size: physical: 512 B logical: 512 B speed: 6.0 Gb/s serial: <filter> rev: 1B6Q scheme: GPT Partition: ID-1: / raw size: 931.50 GiB size: 915.88 GiB (98.32%) used: 248.29 GiB (27.1%) fs: ext4 dev: /dev/sdd2 Sensors: System Temperatures: cpu: 41.0 C mobo: N/A gpu: nvidia temp: 55 C Fan Speeds (RPM): N/A gpu: nvidia fan: 30% Info: Processes: 300 Uptime: 5h 00m Memory: 7.74 GiB used: 3.10 GiB (40.1%) Init: systemd v: 244 Compilers: gcc: 9.3.0 Shell: bash v: 5.0.16 running in: yakuake inxi: 3.0.37

mhwd -li returned:
`

Installed PCI configs:


              NAME               VERSION          FREEDRIVER           TYPE

video-nvidia-440xx            2019.10.25               false            PCI
       video-linux            2018.05.04                true            PCI

`

Sorry, to be more specific I believe they meant it is a problem with the software I have installed and am running, not the OS.

By "dealing with it" I mean tolerating having the freezes. I have just had to hard reset my computer when it happens.

Two things i can read from what you provided (the format is so bad it hearts my eyes) :slight_smile:

Have you tried a different Mouse, with cable?

That should be removed since you use video-nvidia-440xx
I honestly can't read the inxi.

1 Like

Yep, i actually wondered how he managed to remove any format from the inxi output.
Probably a sed master at work. : )

2 Likes

That formatting is awful. :nauseated_face:

Could you be running out of ram? It looks like you have 8GB and no swap, but I'm not sure because of the formatting.

1 Like

Apologies

System:    Kernel: 5.4.28-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.3.0 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.4-x86_64 root=UUID=e4c3ad22-87ce-44c2-92cc-2cd88518c561 rw quiet apparmor=1 
           security=apparmor udev.log_priority=3 
           Desktop: KDE Plasma 5.18.3 tk: Qt 5.14.1 info: latte-dock wm: kwin_x11 dm: SDDM Distro: Manjaro Linux 
Machine:   Type: Desktop System: Micro-Star product: MS-7B48 v: 1.0 serial: <filter> 
           Mobo: Micro-Star model: Z370-A PRO (MS-7B48) v: 1.0 serial: <filter> UEFI: American Megatrends v: 2.30 
           date: 12/21/2017 
Battery:   Device-1: hidpp_battery_0 model: Logitech Wireless Mouse MX Master serial: <filter> charge: 10% (should be ignored) 
           rechargeable: yes status: Discharging 
CPU:       Topology: 6-Core model: Intel Core i7-8700K bits: 64 type: MT MCP arch: Kaby Lake family: 6 model-id: 9E (158) 
           stepping: A (10) microcode: CA L2 cache: 12.0 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 88824 
           Speed: 800 MHz min/max: 800/4700 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 
           9: 800 10: 800 11: 800 12: 800 
           Vulnerabilities: Type: itlb_multihit status: KVM: Split huge pages 
           Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
           Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
           Type: meltdown mitigation: PTI 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW, STIBP: conditional, RSB filling 
           Type: tsx_async_abort mitigation: Clear CPU buffers; SMT vulnerable 
Graphics:  Device-1: NVIDIA GP106 [GeForce GTX 1060 6GB] vendor: ASUSTeK driver: nvidia v: 440.64 bus ID: 02:00.0 
           chip ID: 10de:1c03 
           Display: x11 server: X.Org 1.20.7 driver: nvidia compositor: kwin_x11 resolution: 2560x1080~60Hz, 1920x1080~60Hz 
           OpenGL: renderer: GeForce GTX 1060 6GB/PCIe/SSE2 v: 4.6.0 NVIDIA 440.64 direct render: Yes 
Audio:     Device-1: Intel 200 Series PCH HD Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
           chip ID: 8086:a2f0 
           Device-2: NVIDIA GP106 High Definition Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel bus ID: 02:00.1 
           chip ID: 10de:10f1 
           Device-3: Blue Microphones Yeti Stereo Microphone type: USB driver: hid-generic,snd-usb-audio,usbhid 
           bus ID: 1-11.3:6 chip ID: b58e:9e84 serial: <filter> 
           Sound Server: ALSA v: k5.4.28-1-MANJARO 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Micro-Star MSI driver: r8169 v: kernel 
           port: d000 bus ID: 04:00.0 chip ID: 10ec:8168 
           IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 2.39 TiB used: 248.32 GiB (10.1%) 
           ID-1: /dev/sda vendor: Toshiba model: THNSNJ128GCST size: 119.24 GiB block size: physical: 512 B logical: 512 B 
           speed: 6.0 Gb/s serial: <filter> rev: 0102 scheme: GPT 
           ID-2: /dev/sdb vendor: Seagate model: ST1000DM003-1ER162 size: 931.51 GiB block size: physical: 4096 B 
           logical: 512 B speed: 6.0 Gb/s rotation: 7200 rpm serial: <filter> rev: CC46 scheme: GPT 
           ID-3: /dev/sdc vendor: Hitachi model: HDS721050CLA362 size: 465.76 GiB block size: physical: 512 B logical: 512 B 
           speed: 3.0 Gb/s rotation: 7200 rpm serial: <filter> rev: A39C scheme: MBR 
           ID-4: /dev/sdd vendor: Samsung model: SSD 860 EVO 1TB size: 931.51 GiB block size: physical: 512 B logical: 512 B 
           speed: 6.0 Gb/s serial: <filter> rev: 1B6Q scheme: GPT 
Partition: ID-1: / raw size: 931.50 GiB size: 915.88 GiB (98.32%) used: 248.29 GiB (27.1%) fs: ext4 dev: /dev/sdd2 
Sensors:   System Temperatures: cpu: 41.0 C mobo: N/A gpu: nvidia temp: 55 C 
           Fan Speeds (RPM): N/A gpu: nvidia fan: 30% 
Info:      Processes: 300 Uptime: 5h 00m Memory: 7.74 GiB used: 3.10 GiB (40.1%) Init: systemd v: 244 Compilers: gcc: 9.3.0 
           Shell: bash v: 5.0.16 running in: yakuake inxi: 3.0.37 

Is this any better?

2 Likes

Would that have been something that should've been set up on installation?

Much better thanks.

Pretty much, but it's not always necessary. I always manually partition so no idea if the installer should do it for you.

If you had 64GB of ram then a swap probably wouldn't be necessary, unless you want to hibernate, but with 8GB it's probably best to have one. I sometimes use all my ram and I have 16GB.

Do you have space to make a partition?

I have around 3TB or so spread between several drives. How do I go about making a swap?

You can use gparted to make a partition, select linux-swap as the filesystem. Once it's made you can right click on it and select information, copy the UUID. You can also select swapon, to activate the swap.

Then add this to /etc/fstab:

UUID=<uuid here> none swap defaults,nofail 0 0

Obviously replace the <uuid here> bit with the UUID you copied from gparted.

You can also create a swap file, but I've never actually done that.
https://wiki.archlinux.org/index.php/Swap#Swap_file

Alternatively:
https://wiki.manjaro.org/index.php?title=Swap#Using_a_Swapfile

2 Likes

There is new BIOS for it from 2020
https://www.msi.com/Motherboard/support/Z370-A-PRO
Since you are on KDE Plasma and have GeForce GTX 1060 GPU, consider adding this to /etc/X11/mhwd.d/nvidia.conf right under NoLogo:

Option "NoLogo" "1" #from here
Option         "TripleBuffer"  "On"
Option  "ConnectToAcpid"    "Off"
Option "metamodes" "nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
EndSection #this is the end of the section, do not duplicate it

Then create the file /etc/profile.d/kwin.sh with this content:

export KWIN_TRIPLE_BUFFER=1
export __GL_YIELD=USLEEP
export __GL_MaxFramesAllowed=1

Reboot.

Most of things got mentioned already above by the other forum members. Take the suggestions one by one, do not do all in one go. :wink:

1 Like

I had a very similar situation, but on Cinnamon. I have had literally hundreds of freezes on Cinnamon the last couple of months and had to restart Cinnamon using CTRL+ALT+ESCAPE (which almost always worked for me). That is solved now, it was an applet and the author of that applet is notified. I think on KDE they are called plasmoids? I might be wrong about that, but anyway, if none of the above suggestions work, I would start to remove applets/plasmoids and see if removing one of them helps.

Personally, I made a clean install, with NO applets (except the preinstalled ones) and ran that for a week without crashes. I then added one applet, and ran that for a week without crashes, and kept going until I found the problem. Now my system is stable as a rock again (with one less applet), and I love it. :slight_smile:

I implemented this yesterday and wanted to make sure everything ran smoothly before marking it as the solution. Turns out this fixed it! Thanks a bunch for all the help to everyone who responded.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by