Two problems (freeze and pixel distortion) and solutions for my PC with i5-12400

Hello,

I had two serious problems when installing openSUSE Leap 15.4 on my PC
(relatively recent, Dec. 2022). Solving these problems took me a considerable
amount of time and research and many dozens of test boots, configuration
experiments, test hibernate/wake-ups etc. once in a while spread over more
than one year.

In case that I am not the only one having these troubles with a PC like mine,
I want to describe the problems and the solutions I found eventually, so that
others can possibly profit from the time I invested.

None of these problems occur with Windows 11 on the same PC.

My system is:

OS: openSUSE Leap 15.4
Kernel: 5.14.21-150400.24.100-default
CPU: i5-12400 with UHD 730
Mainboard: MSI PRO B660M-A DDR4

Problem 1: Pixel distortion.

Problem description:

  • Some GUI elements (menus, text input fields, icons) are covered by
    irregular short stripes of white pixels and are reacting slowly to user
    interactions.

  • Moving the affected window or using scroll bar may correct the rendering
    temporarily.

Affected session types/Window managers.

  • Occurring with: Fluxbox 1.3.7, IceWM 1.4.2
  • Not occurring with session types:
    GNOME, Gnome Classic, Gnome Xorg, Plasma (X11), Xfce4

Affected application programs I tried.

  • Occurring with: yast2, texworks, firefox, k3b, kolourpaint
  • Not occurring with: xterm, emacs, evince

A solution I found for my system that solves this problem for my computer:

  • Create file 20-intel.conf in /etc/X11/xorg.conf.d with content:

Section “Device”
Identifier “Intel Graphics”
Driver “modesetting”
Option “TearFree” “true”
Option “AccelMethod” “uxa”
EndSection

Problem 2: Freezes at boot and waking-up from hibernate.

Problem description:

  • Computer freezes at different points in time at every 5th to 7th boot or
    at waking up from hibernate: some times with black screen even before the
    Grub2 menu appears, some times while Grub2 counts down seconds to boot,
    some times while recreating system from hibernate but never later. When
    the system was up and running, it did not freeze.

    When the freeze occurred, “Reset”-button or pressing the “Power”-button on
    the PC case helped. Sometimes, 3 or even 4 trials were necessary for a
    boot or wake-up from hibernate without freeze. Eventually, it was
    possible to boot or wake-up without data loss.

  • In case booting or waking up from hibernate has been finished
    successfully, the computer ran without freezing until shutdown or
    hibernate.

  • High CPU load before hibernate increased the probability of a freeze later
    at waking up.

A solution I found for my system that solves this problem for my computer:

(1) In the BIOS-setup there is some setting named something like “initial
graphic adapter”. In my computer, it was set to PEG from the beginning,
even though I have no separate graphics card but am using the integrated
graphics of the i5-12400. Switching this setting from PEG to IGD made the
freezes disappear finally.

Before step (1), I also did the following (including grub2-mkconfig etc., of
course):

(2) In file /etc/default/grub:
Change GRUB_TERMINAL=“gfxterm” to GRUB_TERMINAL=“console”.

(3) In file /etc/default/grub:
GRUB_CMDLINE_LINUX_DEFAULT=“… intel_idle.max_cstate=0”

(4) In file /etc/default/grub:
GRUB_CMDLINE_LINUX_DEFAULT=“… intel_idle.max_cstate=1”

I do not know whether (2), (3) and/or (4) are necessary. The freezes
disappeared after step (1).

When did you experience those issues? Because as of time of writing, openSUSE Leap 15.4 is EOL as far as I can see. If I’m not wrong, Kernel 5.14 was released in August 2021 while your CPU is from January 2022. Idk how much of the driver stuff got back-ported to the 5.14 kernel, but that might be a problem as well.

While I appreciate your effort to help other people to participate in the solutions you found, please consider to use a supported version of openSUSE Leap and maybe get a newer kernel if your hardware is not supported yet by the default one installed.

These issues occurred from the beginning (Dec 2022) and at that time 15.4 was current.
The freezes problem persisted with recent 15.4 updates installed.

The boot/hibernate-wakeup freezes were not distro-specific and not even
Linux-specific as they occurred with FreeBSD bootloader on the same
computer, too, but not with Windows 11.

Is there a central place for Linux troubleshooting hints and tips for Linux users in case of problems that are not distro-specific?

Your problems with fresh CPU + iGPU are distro-specific.
For Leap you can use newer kernel + newer Mesa 3D.

Your problems with fresh CPU + iGPU are distro-specific.

Thanks for the information. Have you installed a recent version on some PC with i5-12400 on MSI PRO B660M-A?

Did your troubleshooting process ever include a check for, or installation of, a UEFI firmware update?

I have an i5-11400 with UHD 730 graphics in an Asus B-560M-A. Its firmware graphics setup for “primary display” has 4 selections:

  1. Auto
  2. CPU Graphics
  3. PEG
  4. PCIE

I’m using Auto with 3 connected displays.

Other graphics options are:

  • iGPU Multi-Monitor (for use of both integrated and discrete GPUs)
  • DVMT Pre-Allocated (for graphics memory)
  • RC6 (Render Standby; ?meaning?)

I’v’e never experienced any distortion or freezing that I can recall on it.

I have similar random freeze issues. Sometimes freeze when I use the computer. And then I cannot boot system, it has no video output, not even show grub menu.

Operating System: openSUSE Tumbleweed 20240131
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.114.0
Qt Version: 5.15.12
Kernel Version: 6.7.2-1-default (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7C94
System Version: 1.0

Please, when you do not have exact the same issue as is discussed in a thread and thus can add information to help with that issue, then start a new thread with a good title.

It is the best way to draw the attention of people to your problem. Most people will inspect titles of new thread to see if they can help there. They will not inspect new posts to older threads were they do not participate already.