You are not logged in.

#1 2021-01-14 09:20:34

gtf21
Member
Registered: 2020-06-28
Posts: 18
Website

[RESOLVED] Graphical sessions crash after 5.10.x upgrade

On upgrading the system on 2020-12-31 and also 2021-01-13, I find that any graphical sessions I run eventually cause the full system to crash: mouse, keyboard, power button don't respond; screen is frozen OR if screen was "asleep", fans run at mega speed and it won't wake up. In all cases waiting does nothing, and I eventually have to hold the power button to reset the system. Curiously, this does not happen if I switch to a non-graphical TTY before logging in (I'm using lightdm to create a graphical session).

I am pretty sure this is a kernel problem, as the only really fundamental thing to be upgraded on these occasions is the kernel from 5.9.14.arch1-1 to 5.10.x. I have now tried downgrading just the kernel (changing pacman servers to https://archive.archlinux.org/repos/202 … o/os/$arch and running sudo pacman -Syy && sudo pacman -S linux). The reason I have not downgraded the whole system is that I want to see if it's just the kernel.

So far, running on the 5.9.14 kernel has not resulted in a crash.

When I check out the system logs with journalctl -xn 1000 to see if there's any hint to what's going on, I don't see anything unusual at all up until the reboot, seems everything (including system logs) are frozen in the crash.

Any help with how to debug / repair this would be much appreciated, especially as 5.9.x is now EOL.

Last edited by gtf21 (2021-01-17 13:35:17)

Offline

#2 2021-01-14 09:51:50

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 12,186

Re: [RESOLVED] Graphical sessions crash after 5.10.x upgrade

Which graphics? If intel and xf86-video-intel there are many threads on this, remove xf86-video-intel and potential custom xorg config referencing it.

Online

#3 2021-01-14 12:01:32

gtf21
Member
Registered: 2020-06-28
Posts: 18
Website

Re: [RESOLVED] Graphical sessions crash after 5.10.x upgrade

Thanks. I've removed the xf86-video-intel package and upgraded the kernel to see if that fixes the problem.

Offline

#4 2021-01-14 12:07:16

gtf21
Member
Registered: 2020-06-28
Posts: 18
Website

Re: [RESOLVED] Graphical sessions crash after 5.10.x upgrade

Could you send me a link to a suitable thread? I have done some searching but haven't found anything specifically relating to this sort of issue.

Offline

#5 2021-01-14 13:22:30

gtf21
Member
Registered: 2020-06-28
Posts: 18
Website

Re: [RESOLVED] Graphical sessions crash after 5.10.x upgrade

Ok so I did as suggested, removing the intel driver package, and  i thought the system was more stable but when I came back to my laptop it was running the fans at full speed and completely unresponsive again, so it looks like the xf86-intel-video package wasn't the (only) culprit.

Offline

#6 2021-01-14 13:26:04

gtf21
Member
Registered: 2020-06-28
Posts: 18
Website

Re: [RESOLVED] Graphical sessions crash after 5.10.x upgrade

When I downgrade the kernel, I do get some warnings which might be indicative of the problem but I'm not sure:

> sudo pacman -U /var/cache/pacman/pkg/linux-5.9.14.arch1-1-x86_64.pkg.tar.zst 
loading packages...
warning: downgrading package linux (5.10.6.arch1-1 => 5.9.14.arch1-1)
resolving dependencies...
looking for conflicting packages...

Packages (1) linux-5.9.14.arch1-1

Total Installed Size:  82.64 MiB
Net Upgrade Size:       4.31 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                       [######################################] 100%
(1/1) checking package integrity                                     [######################################] 100%
(1/1) loading package files                                          [######################################] 100%
(1/1) checking for file conflicts                                    [######################################] 100%
(1/1) checking available disk space                                  [######################################] 100%
:: Running pre-transaction hooks...
(1/2) Removing linux initcpios...
(2/2) Remove DKMS modules
==> Unable to remove module system76/1.0.11 for kernel 5.10.6-arch1-1: Not found in dkms status output.
==> Unable to remove module system76-acpi/1.0.2 for kernel 5.10.6-arch1-1: Not found in dkms status output.
:: Processing package changes...
(1/1) downgrading linux                                              [######################################] 100%
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Updating module dependencies...
(3/4) Install DKMS modules
==> Unable to install module system76/1.0.11 for kernel 5.9.14-arch1-1: Missing kernel headers.
==> Unable to install module system76-acpi/1.0.2 for kernel 5.9.14-arch1-1: Missing kernel headers.
(4/4) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.9.14-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [encrypt]
  -> Running build hook: [lvm2]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.9.14-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [encrypt]
  -> Running build hook: [lvm2]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful

Offline

#7 2021-01-14 14:42:37

seth
Member
Registered: 2012-09-03
Posts: 18,781

Re: [RESOLVED] Graphical sessions crash after 5.10.x upgrade

==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: xhci_pci

This is insignificant, but "system76" might matter - is this an optimus system?
Please post a complete system journal.

Finally see this one: https://bbs.archlinux.org/viewtopic.php?id=262561

Offline

#8 2021-01-15 00:05:55

gtf21
Member
Registered: 2020-06-28
Posts: 18
Website

Re: [RESOLVED] Graphical sessions crash after 5.10.x upgrade

It's a Lemur Pro system. I've installed the kernel headers so that those modules can be recompiled for the new kernel, but I doubt that is the issue since they weren't compiled for the 5.9 kernel either. I'll check out those links to see if I can find a solution, and I'll reinstall the 5.10 kernel so I can get the log dump of a crashed system.

Offline

#9 2021-01-15 09:40:11

seth
Member
Registered: 2012-09-03
Posts: 18,781

Re: [RESOLVED] Graphical sessions crash after 5.10.x upgrade

I'm wasn't concerned about the dkms compilation, but the hardware constellation.

Aside the previously linked i915 issues, also see https://wiki.archlinux.org/index.php/In … ver_(i965)

Offline

#10 2021-01-15 21:33:11

gtf21
Member
Registered: 2020-06-28
Posts: 18
Website

Re: [RESOLVED] Graphical sessions crash after 5.10.x upgrade

I've captured a log for a boot cycle which crashed. They don't seem to be crashing while I'm using them, anymore, ever since I removed the xf86-intel-video package, but they are still crashing on a black screen after some period of time. I noticed that there are a whole load of seemingly harmless dropbox lines at the end of the log, which has been the case more than once curiously. Could dropbox be crashing my system? This only happens on the latest kernel. I can run the machine forever on the 5.9.14 kernel without it ever crashing. To test this, I've disabled the dropbox service and will leave the machine to run to see if it crashes.

Offline

#11 2021-01-15 21:37:58

seth
Member
Registered: 2012-09-03
Posts: 18,781

Re: [RESOLVED] Graphical sessions crash after 5.10.x upgrade

It's more likely that the i915 kernel module or the iris GL driver crash the kernel than dropbox, esp. because of

this does not happen if I switch to a non-graphical TTY before logging in

Did you check the two links I posted before?

Offline

#12 2021-01-16 11:36:38

gtf21
Member
Registered: 2020-06-28
Posts: 18
Website

Re: [RESOLVED] Graphical sessions crash after 5.10.x upgrade

Looks like you were right: adding

intel_idle.max_cstate=1 i915.enable_dc=0 ahci.mobile_lpm_policy=1 

to my grub config seems to have fixed the issue, so I'll see which ones I can eliminate while still having a stable system. It seems that at least the first two have a serious impact on power consumption according to https://linuxreviews.org/Intel_graphics#Troubleshooting which means I might just stay on the 5.9.14 kernel for as long as possible to avoid shortening the battery life of my laptop (I'm often on the move).

Offline

#13 2021-01-17 13:34:58

gtf21
Member
Registered: 2020-06-28
Posts: 18
Website

Re: [RESOLVED] Graphical sessions crash after 5.10.x upgrade

Can confirm that just the `intel_idle.max_cstate=1` option is required to prevent crashes. Will register a bug somewhere.

Offline

Board footer

Powered by FluxBB