Random System Freeze

I followed this road to add intel_idle.max_cstate=1.
Should I find this line back in my grub.cfg after updating grub?

Because I don’t.

Did you save the file before updating grub? Otherwise it wouldn’t be there i suppose.

No, after a few hours or so. It just freezes, even without touching it atm.

I removed the intel driver but nothing seems to have changed so I put them back in.
It is just so time consuming, cause it may take sometimes hours before anything happens.

I haven’t tried the latter options you mention, will do this later.

1 Like

Try them one at a time not both… and see over time. Maybe no difference but worth a shot.

Or maybe it’s wise not to fool around to much, use the lts kernel and wait for an upstream bugfix…

The command to update grub is:

    grub-mkconfig -o /boot/grub/grub.cfg
2 Likes

you can consult our bible https://endeavouros.com/wiki/ https://wiki.archlinux.org/

I know and I have done that, but the line I added is not in the grub.cfg file.

But now it is…
And I did not have a single panic attack today,hmm, maybe…

Is this the intel_idle.max_cstate=1 entry?

Yes it is.
The other changes have been reverted to how it was.

So you are going to test it and see how it is and if it is better or not?

Yes, I’m gonna leave it as it is now.
Hope this will be the solution and the frozen days are over. :wink:

Just wanted to check in with you. How are things going now?

I didn’t have a single freeze yesterday.
It only failed to boot this morning the first time, weird glitches and a grey screen and I had to do a hard power off.
The second boot went fine.

$ journalctl -b -1
-- Logs begin at Sat 2020-01-11 21:11:02 CET, end at Wed 2020-01-22 09:33:48 CET. --
jan 22 09:30:56 richard-pc kernel: microcode: microcode updated early to revision 0x368, date = 2019-04-23
jan 22 09:30:56 richard-pc kernel: Linux version 5.4.13-arch1-1 (linux@archlinux) (gcc version 9.2.0 (GCC)) #1 SMP PREEMPT Fri, 17 Jan 2020 23:09:54 +0000
jan 22 09:30:56 richard-pc kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=6dcee954-bc8a-4034-86f5-189bf448289a rw quiet intel_idle.max_cstate=1 resume=U>
jan 22 09:30:56 richard-pc kernel: KERNEL supported cpus:
jan 22 09:30:56 richard-pc kernel:   Intel GenuineIntel
jan 22 09:30:56 richard-pc kernel:   AMD AuthenticAMD
jan 22 09:30:56 richard-pc kernel:   Hygon HygonGenuine
jan 22 09:30:56 richard-pc kernel:   Centaur CentaurHauls
jan 22 09:30:56 richard-pc kernel:   zhaoxin   Shanghai  
jan 22 09:30:56 richard-pc kernel: x86/fpu: x87 FPU will use FXSAVE
jan 22 09:30:56 richard-pc kernel: BIOS-provided physical RAM map:
jan 22 09:30:56 richard-pc kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009d7ff] usable
jan 22 09:30:56 richard-pc kernel: BIOS-e820: [mem 0x000000000009d800-0x000000000009ffff] reserved
jan 22 09:30:56 richard-pc kernel: BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved
jan 22 09:30:56 richard-pc kernel: BIOS-e820: [mem 0x0000000000100000-0x000000003fffffff] usable
jan 22 09:30:56 richard-pc kernel: BIOS-e820: [mem 0x0000000040000000-0x00000000401fffff] reserved
jan 22 09:30:56 richard-pc kernel: BIOS-e820: [mem 0x0000000040200000-0x000000007a7e9fff] usable
jan 22 09:30:56 richard-pc kernel: BIOS-e820: [mem 0x000000007a7ea000-0x000000007a869fff] reserved
jan 22 09:30:56 richard-pc kernel: BIOS-e820: [mem 0x000000007a86a000-0x000000007a87bfff] ACPI data
jan 22 09:30:56 richard-pc kernel: BIOS-e820: [mem 0x000000007a87c000-0x000000007b5aafff] ACPI NVS
jan 22 09:30:56 richard-pc kernel: BIOS-e820: [mem 0x000000007b5ab000-0x000000007ba3afff] reserved
jan 22 09:30:56 richard-pc kernel: BIOS-e820: [mem 0x000000007ba3b000-0x000000007bc06fff] usable
jan 22 09:30:56 richard-pc kernel: BIOS-e820: [mem 0x000000007bc07000-0x000000007bfc4fff] reserved
jan 22 09:30:56 richard-pc kernel: BIOS-e820: [mem 0x000000007bfc5000-0x000000007bffffff] usable
jan 22 09:30:56 richard-pc kernel: BIOS-e820: [mem 0x00000000e00f8000-0x00000000e00f8fff] reserved
jan 22 09:30:56 richard-pc kernel: BIOS-e820: [mem 0x00000000fed01000-0x00000000fed01fff] reserved
jan 22 09:30:56 richard-pc kernel: BIOS-e820: [mem 0x00000000fed08000-0x00000000fed08fff] reserved
jan 22 09:30:56 richard-pc kernel: BIOS-e820: [mem 0x00000000ff980000-0x00000000ffffffff] reserved
jan 22 09:30:56 richard-pc kernel: BIOS-e820: [mem 0x0000000100000000-0x000000017fffffff] usable
jan 22 09:30:56 richard-pc kernel: NX (Execute Disable) protection: active
jan 22 09:30:56 richard-pc kernel: SMBIOS 2.8 present.
jan 22 09:30:56 richard-pc kernel: [61B blob data]
jan 22 09:30:56 richard-pc kernel: tsc: Detected 1600.000 MHz processor
jan 22 09:30:56 richard-pc kernel: e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
jan 22 09:30:56 richard-pc kernel: e820: remove [mem 0x000a0000-0x000fffff] usable
jan 22 09:30:56 richard-pc kernel: last_pfn = 0x180000 max_arch_pfn = 0x400000000
...skipping...
jan 22 09:31:45 richard-pc systemd[1]: Starting Generate shutdown-ramfs...
jan 22 09:31:45 richard-pc systemd[1]: Stopping Authorization Manager...
jan 22 09:31:45 richard-pc systemd[1]: Stopping Load/Save Random Seed...
jan 22 09:31:45 richard-pc systemd[1]: accounts-daemon.service: Succeeded.
jan 22 09:31:45 richard-pc systemd[1]: Stopped Accounts Service.
jan 22 09:31:45 richard-pc audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=accounts-daemon comm="systemd" exe="/usr/lib/systemd/systemd" hos>
jan 22 09:31:45 richard-pc kernel: audit: type=1131 audit(1579681905.526:33): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=accounts-daemon comm="systemd" exe="/>
jan 22 09:31:45 richard-pc systemd[1]: polkit.service: Succeeded.
jan 22 09:31:45 richard-pc systemd[1]: Stopped Authorization Manager.
jan 22 09:31:45 richard-pc audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=polkit comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? a>
jan 22 09:31:45 richard-pc kernel: audit: type=1131 audit(1579681905.533:34): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=polkit comm="systemd" exe="/usr/lib/s>
jan 22 09:31:45 richard-pc systemd[1]: systemd-random-seed.service: Succeeded.
jan 22 09:31:45 richard-pc systemd[1]: Stopped Load/Save Random Seed.
jan 22 09:31:45 richard-pc audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-random-seed comm="systemd" exe="/usr/lib/systemd/systemd">
jan 22 09:31:45 richard-pc kernel: audit: type=1131 audit(1579681905.646:35): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-random-seed comm="systemd" ex>
jan 22 09:31:45 richard-pc mkinitcpio[677]: ==> Starting build: none
jan 22 09:31:45 richard-pc mkinitcpio[677]:   -> Running build hook: [sd-shutdown]
jan 22 09:31:46 richard-pc mkinitcpio[677]: ==> Build complete.
jan 22 09:31:46 richard-pc systemd[1]: mkinitcpio-generate-shutdown-ramfs.service: Succeeded.
jan 22 09:31:46 richard-pc systemd[1]: Started Generate shutdown-ramfs.
jan 22 09:31:46 richard-pc audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=mkinitcpio-generate-shutdown-ramfs comm="systemd" exe="/usr/lib/>
jan 22 09:31:46 richard-pc audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=mkinitcpio-generate-shutdown-ramfs comm="systemd" exe="/usr/lib/s>
jan 22 09:31:46 richard-pc kernel: audit: type=1130 audit(1579681906.006:36): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=mkinitcpio-generate-shutdown-ramfs co>
jan 22 09:31:46 richard-pc kernel: audit: type=1131 audit(1579681906.006:37): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=mkinitcpio-generate-shutdown-ramfs co>
jan 22 09:31:46 richard-pc systemd-logind[443]: Power key pressed.
jan 22 09:31:48 richard-pc kernel: no MTRR for 80000000,1df0000 found
jan 22 09:31:48 richard-pc systemd[1]: lightdm.service: Succeeded.
jan 22 09:31:48 richard-pc audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=lightdm comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? >
jan 22 09:31:48 richard-pc systemd[1]: Stopped Light Display Manager.
jan 22 09:31:48 richard-pc kernel: audit: type=1131 audit(1579681908.986:38): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=lightdm comm="systemd" exe="/usr/lib/>
jan 22 09:31:56 richard-pc kernel: logitech-hidpp-device 0003:046D:4055.0003: HID++ 4.5 device connected.
jan 22 09:31:58 richard-pc systemd-udevd[257]: 0000:00:02.0: Worker [273] processing SEQNUM=2112 is taking a long time
jan 22 09:31:58 richard-pc systemd-logind[443]: Power key pressed.
jan 22 09:31:59 richard-pc systemd-udevd[269]: AC: Spawned process '/usr/bin/tlp auto' [335] is taking longer than 59s to complete
jan 22 09:31:59 richard-pc systemd-udevd[257]: AC: Worker [269] processing SEQNUM=2370 is taking a long time
jan 22 09:32:02 richard-pc systemd-logind[443]: Power key pressed.
jan 22 09:32:03 richard-pc systemd-logind[443]: Power key pressed.

Look at this command. To me it looks like it was taking it’s time to initialize. How long did you wait before a hard restart? Are you using tlp?

systemd-analyze blame

Maybe I didn’t wait long enough.
And I see that tlp is installed by default, so yes.

$ tlp
Usage: tlp start|true|bat|false|ac|usb|bayoff|chargeonce|discharge|setcharge|fullcharge|recalibrate|diskid

Just a heads up, I am still testing the LTS kernel. I haven’t used this laptop enough last days to make a judgement yet.

I will make some tests, use the suggestions as mentioned above and report back.

1 Like

Update:

I didn’t experienced any freeze since days. So I assume its indeed a kernel problem and changing to LTS seems to be a reliable workaround. Therefore I will mark this problem as solved.

Thanks again for everyone who replied to my post and of course for all helpful tips and suggestions.

1 Like

But keep a eye on current kernel because it become next lts also

2 Likes

Still no freezes, it only refused to boot this morning, took me 3 attempts.
It booted into a black screen, no cursor.

$ journalctl -b -1
-- Logs begin at Sat 2020-01-11 21:11:02 CET, end at Sun 2020-01-26 09:55:59 CET. --
jan 26 09:28:05 richard-pc kernel: microcode: microcode updated early to revision 0x368, date = 2019-04-23
jan 26 09:28:05 richard-pc kernel: Linux version 5.4.14-arch1-1 (linux@archlinux) (gcc version 9.2.0 (GCC)) #1 SMP PREEMPT Thu, 23 Jan 2020 10:07:05 +0000
jan 26 09:28:05 richard-pc kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=6dcee954-bc8a-4034-86f5-189bf448289a rw quiet intel_idle.max_cstate=1 resume=U>
jan 26 09:28:05 richard-pc kernel: KERNEL supported cpus:
jan 26 09:28:05 richard-pc kernel:   Intel GenuineIntel
jan 26 09:28:05 richard-pc kernel:   AMD AuthenticAMD
jan 26 09:28:05 richard-pc kernel:   Hygon HygonGenuine
jan 26 09:28:05 richard-pc kernel:   Centaur CentaurHauls
jan 26 09:28:05 richard-pc kernel:   zhaoxin   Shanghai  
jan 26 09:28:05 richard-pc kernel: x86/fpu: x87 FPU will use FXSAVE
jan 26 09:28:05 richard-pc kernel: BIOS-provided physical RAM map:
jan 26 09:28:05 richard-pc kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009d7ff] usable
jan 26 09:28:05 richard-pc kernel: BIOS-e820: [mem 0x000000000009d800-0x000000000009ffff] reserved
jan 26 09:28:05 richard-pc kernel: BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved
jan 26 09:28:05 richard-pc kernel: BIOS-e820: [mem 0x0000000000100000-0x000000003fffffff] usable
jan 26 09:28:05 richard-pc kernel: BIOS-e820: [mem 0x0000000040000000-0x00000000401fffff] reserved
jan 26 09:28:05 richard-pc kernel: BIOS-e820: [mem 0x0000000040200000-0x000000007a7e9fff] usable
jan 26 09:28:05 richard-pc kernel: BIOS-e820: [mem 0x000000007a7ea000-0x000000007a869fff] reserved
jan 26 09:28:05 richard-pc kernel: BIOS-e820: [mem 0x000000007a86a000-0x000000007a87bfff] ACPI data
jan 26 09:28:05 richard-pc kernel: BIOS-e820: [mem 0x000000007a87c000-0x000000007b5aafff] ACPI NVS
jan 26 09:28:05 richard-pc kernel: BIOS-e820: [mem 0x000000007b5ab000-0x000000007ba3afff] reserved
jan 26 09:28:05 richard-pc kernel: BIOS-e820: [mem 0x000000007ba3b000-0x000000007bc06fff] usable
jan 26 09:28:05 richard-pc kernel: BIOS-e820: [mem 0x000000007bc07000-0x000000007bfc4fff] reserved
jan 26 09:28:05 richard-pc kernel: BIOS-e820: [mem 0x000000007bfc5000-0x000000007bffffff] usable
jan 26 09:28:05 richard-pc kernel: BIOS-e820: [mem 0x00000000e00f8000-0x00000000e00f8fff] reserved
jan 26 09:28:05 richard-pc kernel: BIOS-e820: [mem 0x00000000fed01000-0x00000000fed01fff] reserved
jan 26 09:28:05 richard-pc kernel: BIOS-e820: [mem 0x00000000fed08000-0x00000000fed08fff] reserved
jan 26 09:28:05 richard-pc kernel: BIOS-e820: [mem 0x00000000ff980000-0x00000000ffffffff] reserved
jan 26 09:28:05 richard-pc kernel: BIOS-e820: [mem 0x0000000100000000-0x000000017fffffff] usable
jan 26 09:28:05 richard-pc kernel: NX (Execute Disable) protection: active
jan 26 09:28:05 richard-pc kernel: SMBIOS 2.8 present.
jan 26 09:28:05 richard-pc kernel: [61B blob data]
jan 26 09:28:05 richard-pc kernel: tsc: Detected 1600.000 MHz processor
jan 26 09:28:05 richard-pc kernel: e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
jan 26 09:28:05 richard-pc kernel: e820: remove [mem 0x000a0000-0x000fffff] usable
jan 26 09:28:05 richard-pc kernel: last_pfn = 0x180000 max_arch_pfn = 0x400000000
...skipping...
jan 26 09:29:49 richard-pc systemd[1]: systemd-rfkill.socket: Succeeded.
jan 26 09:29:49 richard-pc systemd[1]: Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
jan 26 09:29:49 richard-pc systemd[1]: Stopping Accounts Service...
jan 26 09:29:49 richard-pc systemd[1]: Stopping Light Display Manager...
jan 26 09:29:49 richard-pc systemd[1]: Starting Generate shutdown-ramfs...
jan 26 09:29:49 richard-pc systemd[1]: Stopping Authorization Manager...
jan 26 09:29:49 richard-pc systemd[1]: Stopping Load/Save Random Seed...
jan 26 09:29:49 richard-pc systemd[1]: accounts-daemon.service: Succeeded.
jan 26 09:29:49 richard-pc kernel: audit: type=1131 audit(1580027389.540:33): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=accounts-daemon comm="systemd" exe="/>
jan 26 09:29:49 richard-pc audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=accounts-daemon comm="systemd" exe="/usr/lib/systemd/systemd" hos>
jan 26 09:29:49 richard-pc systemd[1]: Stopped Accounts Service.
jan 26 09:29:49 richard-pc systemd[1]: polkit.service: Succeeded.
jan 26 09:29:49 richard-pc systemd[1]: Stopped Authorization Manager.
jan 26 09:29:49 richard-pc audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=polkit comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? a>
jan 26 09:29:49 richard-pc kernel: audit: type=1131 audit(1580027389.546:34): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=polkit comm="systemd" exe="/usr/lib/s>
jan 26 09:29:49 richard-pc audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-random-seed comm="systemd" exe="/usr/lib/systemd/systemd">
jan 26 09:29:49 richard-pc systemd[1]: systemd-random-seed.service: Succeeded.
jan 26 09:29:49 richard-pc systemd[1]: Stopped Load/Save Random Seed.
jan 26 09:29:49 richard-pc kernel: audit: type=1131 audit(1580027389.643:35): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-random-seed comm="systemd" ex>
jan 26 09:29:49 richard-pc mkinitcpio[678]: ==> Starting build: none
jan 26 09:29:49 richard-pc mkinitcpio[678]:   -> Running build hook: [sd-shutdown]
jan 26 09:29:49 richard-pc mkinitcpio[678]: ==> Build complete.
jan 26 09:29:49 richard-pc audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=mkinitcpio-generate-shutdown-ramfs comm="systemd" exe="/usr/lib/>
jan 26 09:29:50 richard-pc kernel: audit: type=1130 audit(1580027389.996:36): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=mkinitcpio-generate-shutdown-ramfs co>
jan 26 09:29:49 richard-pc systemd[1]: mkinitcpio-generate-shutdown-ramfs.service: Succeeded.
jan 26 09:29:50 richard-pc systemd[1]: Started Generate shutdown-ramfs.
jan 26 09:29:50 richard-pc audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=mkinitcpio-generate-shutdown-ramfs comm="systemd" exe="/usr/lib/s>
jan 26 09:29:50 richard-pc kernel: audit: type=1131 audit(1580027390.000:37): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=mkinitcpio-generate-shutdown-ramfs co>
jan 26 09:29:50 richard-pc systemd-logind[451]: Power key pressed.
jan 26 09:29:52 richard-pc kernel: no MTRR for 80000000,1df0000 found
jan 26 09:29:52 richard-pc audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=lightdm comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? >
jan 26 09:29:52 richard-pc systemd[1]: lightdm.service: Succeeded.
jan 26 09:29:52 richard-pc systemd[1]: Stopped Light Display Manager.
jan 26 09:29:52 richard-pc kernel: audit: type=1131 audit(1580027392.966:38): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=lightdm comm="systemd" exe="/usr/lib/>
jan 26 09:30:07 richard-pc kernel: logitech-hidpp-device 0003:046D:4055.0003: HID++ 4.5 device connected.
jan 26 09:30:15 richard-pc systemd[1]: Requested transaction contradicts existing jobs: Transaction for getty@tty4.service/start is destructive (systemd-poweroff.servic>
jan 26 09:30:15 richard-pc systemd-logind[451]: Failed to start autovt@tty4.service: Transaction for getty@tty4.service/start is destructive (systemd-poweroff.service h>
lines 1074-1110/1110 (END)