How to troubleshoot a freezing desktop PC

Hello,

I am using OpenSuse to setup a PC (Lenovo ThinkCentre) and each time the screen shuts down after 10 minutes delay, I have to reboot the PC : no action on the keyboard or the mouse or the power button has any effec (I have to press the shutdown button to restart the PC).

This is the second time I am using OpenSuse for my offline PCs and the other one (a Dell) is a little longer to wake up after the sreen went OFF but it ever freezes this way.

When I tried to remove the sreen shutdown to be able to set the PC until the end, then after a while, the screen was completly frozen and I had to reboot the PC all the same.

=> What am I missing ? I tried to go to the BioS and did not find any hard drive shutdown feature and I set the PC as Desktop in OpenSuse configuration.
=> As I am new to OpenSuse, I am not completly at ease with the way it reports any trouble. Is there only in journalctl that I could find any information on start-up and shutdown ? It is really big, what should I look for ?

Thanks.

Are you sleeping/hibernating?

What video card and driver?

This is possibly the default X11 screen “power-off” time-out.

  • Please check if your terminal screen supports DPMS.
  • Please check the “/var/log/Xorg.*.log” files for anything unusual: (you need to search for the markers mentioned in the following code example):

  7629.797] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (**WW**) warning, (**EE**) error, (NI) not implemented, (??) unknown.

  • Please check the journal entries of the previous boots: for example:
# journalctl --since=yesterday

Search for “– Reboot –” after typing “G” (to jump to the current last journal entry) and the “g” (to jump to the first journal entry).

Many thanks.

I will try to look more deeply into these logs.

You still have not indicated what graphics card you have.

My laptop, with Intel graphics, has had this problem since 2010 (when I purchased it). Using KDE, I set the power settings to never dim the screen. That seems to greatly reduce the frequency of freezes. For me, power the screen off (power savings mode), does not seem to be a problem. Rather it is dimming the screen or restoring to full brightness after dimming.

Hello,

I had the following error in the journalctl. I need to add that at first, I was working with a DP cable between the PC and the screen. Then as I read that DP was sometimes the root cause for DPMS troubles, I also add a VGA cable between the screen and the PC. It is not a laptop, it is a desktop. As for the video card, it is the default one, I will to find its name.

Lookin into DPMS, I found this and tried it but the screen went immedialty black and never turned on unless I rebooted the PC:

“xset dpms force off
When working, the display blanks and a few seconds later goes into energy saving mode turning off the backlight. With the broken driver, the screen blanks, but the backlight stays on indefinitely.”

I need to add that at the time the DP entry went black, the VGA entry was still on but turning off each time I moved the mouse as if it was interfering with the screen management. I add to reboot the PC to get the relevant information in the journal.

Jul 25 10:48:06 linux-27so dbus[786]: [system] Successfully activated service ‘org.kde.powerdevil.backlighthelper’
Jul 25 10:49:21 linux-27so dbus[786]: [system] Activating service name=‘org.kde.powerdevil.backlighthelper’ (using servicehelper)
Jul 25 10:49:21 linux-27so dbus[786]: [system] Successfully activated service ‘org.kde.powerdevil.backlighthelper’
Jul 25 10:56:57 linux-27so dbus[786]: [system] Activating service name=‘org.kde.powerdevil.backlighthelper’ (using servicehelper)
Jul 25 10:56:57 linux-27so dbus[786]: [system] Successfully activated service ‘org.kde.powerdevil.backlighthelper’
Jul 25 10:56:57 linux-27so kernel: [drm:gen8_irq_handler [i915]] ERROR CPU pipe B FIFO underrun
Jul 25 11:00:01 linux-27so cron[5683]: pam_unix(crond:session): session opened for user root by (uid=0)
Jul 25 11:00:01 linux-27so systemd[5684]: pam_unix(systemd-user:session): session opened for user root by (uid=0)
Jul 25 11:00:01 linux-27so CRON[5683]: pam_unix(crond:session): session closed for user root
Jul 25 11:02:16 linux-27so smartd[795]: Device: /dev/sda [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 71 to 70
Jul 25 11:03:14 linux-27so systemd[5855]: Failed at step EXEC spawning /usr/bin/routage-labo: Permission denied
Jul 25 11:03:41 linux-27so routage-labo[5875]: SIOGIFINDEX: No such device
Jul 25 11:03:41 linux-27so routage-labo[5875]: SIOGIFINDEX: No such device
Jul 25 11:03:41 linux-27so routage-labo[5875]: SIOGIFINDEX: No such device
Jul 25 11:03:41 linux-27so kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
Jul 25 11:03:41 linux-27so kernel: nf_conntrack version 0.5.0 (65536 buckets, 262144 max)
Jul 25 11:05:16 linux-27so kernel: ------------ cut here ]------------
Jul 25 11:05:16 linux-27so kernel: WARNING: CPU: 3 PID: 893 at …/drivers/gpu/drm/i915/intel_pm.c:3317 skl_update_other_pipe_wm+0x164/0x170 i915
Jul 25 11:05:16 linux-27so kernel: WARN_ON(!wm_changed)
Jul 25 11:05:16 linux-27so kernel: Modules linked in:
Jul 25 11:05:16 linux-27so kernel: iptable_filter xt_nat xt_tcpudp iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack ip_tables x_tabl
Jul 25 11:05:16 linux-27so kernel: processor btrfs xor hid_generic usbhid raid6_pq crc32c_intel xhci_pci xhci_hcd usbcore usb_common i915 i2c_algo_bit drm_kms_h
Jul 25 11:05:16 linux-27so kernel: CPU: 3 PID: 893 Comm: X Not tainted 4.1.12-1-default #1
Jul 25 11:05:16 linux-27so kernel: Hardware name: LENOVO 10FGS1VF00/SKYBAY, BIOS FWKT53A 06/06/2016
Jul 25 11:05:16 linux-27so kernel: 0000000000000000 ffffffffa0196c60 ffffffff81658898 ffff880231f776c8
Jul 25 11:05:16 linux-27so kernel: ffffffff810688e1 ffff880232023000 ffff880231f777e0 ffff880231f77750
Jul 25 11:05:16 linux-27so kernel: ffff88003726b000 0000000000000000 ffffffff8106895a ffffffffa01a6caf
Jul 25 11:05:16 linux-27so kernel: Call Trace:
Jul 25 11:05:16 linux-27so kernel: <ffffffff8100559c>] dump_trace+0x8c/0x340
Jul 25 11:05:16 linux-27so kernel: <ffffffff8100594c>] show_stack_log_lvl+0xfc/0x1a0
Jul 25 11:05:16 linux-27so kernel: <ffffffff81006ea1>] show_stack+0x21/0x50
Jul 25 11:05:16 linux-27so kernel: <ffffffff81658898>] dump_stack+0x47/0x67
Jul 25 11:05:16 linux-27so kernel: <ffffffff810688e1>] warn_slowpath_common+0x81/0xb0
Jul 25 11:05:16 linux-27so kernel: <ffffffff8106895a>] warn_slowpath_fmt+0x4a/0x50
Jul 25 11:05:16 linux-27so kernel: <ffffffffa00e2b14>] skl_update_other_pipe_wm+0x164/0x170 [i915]
Jul 25 11:05:16 linux-27so kernel: <ffffffffa00e2cca>] skl_update_wm+0x1aa/0x6f0 [i915]
Jul 25 11:05:16 linux-27so kernel: <ffffffffa0146b9c>] haswell_crtc_enable+0x48c/0xb50 [i915]
Jul 25 11:05:16 linux-27so kernel: <ffffffffa0144238>] __intel_set_mode+0xae8/0xcd0 [i915]
Jul 25 11:05:16 linux-27so kernel: <ffffffffa014b0e6>] intel_crtc_set_config+0xab6/0xfe0 [i915]
Jul 25 11:05:16 linux-27so kernel: <ffffffffa0039468>] drm_mode_set_config_internal+0x68/0x100 [drm]
Jul 25 11:05:16 linux-27so kernel: <ffffffffa003d4b9>] drm_mode_setcrtc+0xd9/0x5f0 [drm]
Jul 25 11:05:16 linux-27so kernel: <ffffffffa002e928>] drm_ioctl+0x308/0x590 [drm]
Jul 25 11:05:16 linux-27so kernel: <ffffffff811f0f4f>] do_vfs_ioctl+0x2ff/0x510
Jul 25 11:05:16 linux-27so kernel: <ffffffff811f11e1>] SyS_ioctl+0x81/0xa0
Jul 25 11:05:16 linux-27so kernel: <ffffffff8165f032>] system_call_fastpath+0x16/0x75
Jul 25 11:05:16 linux-27so kernel: <00007f31f65d2be7>] 0x7f31f65d2be7
Jul 25 11:05:16 linux-27so kernel: — end trace a60cdc995fd3ffa8 ]—
Jul 25 11:06:32 linux-27so dbus[786]: [system] Activating service name=‘org.kde.powerdevil.backlighthelper’ (using servicehelper)
Jul 25 11:06:32 linux-27so dbus[786]: [system] Successfully activated service ‘org.kde.powerdevil.backlighthelper’
Jul 25 11:06:50 linux-27so dbus[786]: [system] Activating service name=‘org.kde.powerdevil.backlighthelper’ (using servicehelper)
Jul 25 11:06:50 linux-27so kernel: [drm:gen8_irq_handler [i915]] ERROR CPU pipe A FIFO underrun
Jul 25 11:06:50 linux-27so dbus[786]: [system] Successfully activated service ‘org.kde.powerdevil.backlighthelper’
Jul 25 11:06:52 linux-27so kernel: [drm:gen8_irq_handler [i915]] ERROR CPU pipe B FIFO underrun
Jul 25 11:07:29 linux-27so kernel: ------------ cut here ]------------
Jul 25 11:07:29 linux-27so kernel: WARNING: CPU: 3 PID: 893 at …/drivers/gpu/drm/i915/intel_pm.c:3317 skl_update_other_pipe_wm+0x164/0x170 i915
Jul 25 11:07:29 linux-27so kernel: WARN_ON(!wm_changed)
Jul 25 11:07:29 linux-27so kernel: Modules linked in:
Jul 25 11:07:29 linux-27so kernel: iptable_filter xt_nat xt_tcpudp iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack ip_tables x_tabl
Jul 25 11:07:29 linux-27so kernel: processor btrfs xor hid_generic usbhid raid6_pq crc32c_intel xhci_pci xhci_hcd usbcore usb_common i915 i2c_algo_bit drm_kms_h
Jul 25 11:07:29 linux-27so kernel: CPU: 3 PID: 893 Comm: X Tainted: G W 4.1.12-1-default #1
Jul 25 11:07:29 linux-27so kernel: Hardware name: LENOVO 10FGS1VF00/SKYBAY, BIOS FWKT53A 06/06/2016
Jul 25 11:07:29 linux-27so kernel: 0000000000000000 ffffffffa0196c60 ffffffff81658898 ffff880231f776f8
Jul 25 11:07:29 linux-27so kernel: ffffffff810688e1 ffff88003726b000 ffff880231f77810 ffff880231f77780
Jul 25 11:07:29 linux-27so kernel: ffff880232023000 0000000000000000 ffffffff8106895a ffffffffa01a6caf
Jul 25 11:07:29 linux-27so kernel: Call Trace:
Jul 25 11:07:29 linux-27so kernel: <ffffffff8100559c>] dump_trace+0x8c/0x340
Jul 25 11:07:29 linux-27so kernel: <ffffffff8100594c>] show_stack_log_lvl+0xfc/0x1a0
Jul 25 11:07:29 linux-27so kernel: <ffffffff81006ea1>] show_stack+0x21/0x50
Jul 25 11:07:29 linux-27so kernel: <ffffffff81658898>] dump_stack+0x47/0x67
Jul 25 11:07:29 linux-27so kernel: <ffffffff810688e1>] warn_slowpath_common+0x81/0xb0
Jul 25 11:07:29 linux-27so kernel: <ffffffff8106895a>] warn_slowpath_fmt+0x4a/0x50
Jul 25 11:07:29 linux-27so kernel: <ffffffffa00e2b14>] skl_update_other_pipe_wm+0x164/0x170 [i915]
Jul 25 11:07:29 linux-27so kernel: <ffffffffa00e2cca>] skl_update_wm+0x1aa/0x6f0 [i915]
Jul 25 11:07:29 linux-27so kernel: <ffffffffa014319b>] haswell_crtc_disable+0x15b/0x3b0 [i915]
Jul 25 11:07:29 linux-27so kernel: <ffffffffa0143b14>] __intel_set_mode+0x3c4/0xcd0 [i915]
Jul 25 11:07:29 linux-27so kernel: <ffffffffa014b0e6>] intel_crtc_set_config+0xab6/0xfe0 [i915]
Jul 25 11:07:29 linux-27so kernel: <ffffffffa0039468>] drm_mode_set_config_internal+0x68/0x100 [drm]
Jul 25 11:07:29 linux-27so kernel: <ffffffffa003d4b9>] drm_mode_setcrtc+0xd9/0x5f0 [drm]
Jul 25 11:07:29 linux-27so kernel: <ffffffffa002e928>] drm_ioctl+0x308/0x590 [drm]
Jul 25 11:07:29 linux-27so kernel: <ffffffff811f0f4f>] do_vfs_ioctl+0x2ff/0x510
Jul 25 11:07:29 linux-27so kernel: <ffffffff811f11e1>] SyS_ioctl+0x81/0xa0
Jul 25 11:07:29 linux-27so kernel: <ffffffff8165f032>] system_call_fastpath+0x16/0x75
Jul 25 11:07:29 linux-27so kernel: <00007f31f65d2be7>] 0x7f31f65d2be7
Jul 25 11:07:29 linux-27so kernel: — end trace a60cdc995fd3ffa9 ]—
Jul 25 11:07:29 linux-27so kernel: [drm:gen8_irq_handler [i915]] ERROR CPU pipe B FIFO underrun
– Reboot –

In lspci

00:00.0 Host bridge: Intel Corporation Sky Lake Host Bridge/DRAM Registers (rev 07)
Subsystem: Lenovo Device 30bc
Flags: bus master, fast devsel, latency 0
Capabilities: [e0] Vendor Specific Information: Len=10 <?>

00:02.0 VGA compatible controller: Intel Corporation Sky Lake Integrated Graphics (rev 06) (prog-if 00 [VGA controller])
Subsystem: Lenovo Device 30bc
Flags: bus master, fast devsel, latency 0, IRQ 122
Memory at de000000 (64-bit, non-prefetchable) [size=16]
Memory at c0000000 (64-bit, prefetchable) [size=256]
I/O ports at f000 [size=64]
Expansion ROM at <unassigned> [disabled]
Capabilities: [40] Vendor Specific Information: Len=0c <?>
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 2
Capabilities: [100] #1b
Capabilities: [200] Address Translation Service (ATS)
Capabilities: [300] #13
Kernel driver in use: i915
Kernel modules: i915

In dmidecode -t motherboard
Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
Manufacturer: LENOVO
Product Name: SKYBAY
Version: NOK
Serial Number:
Asset Tag:
Features:
Board is a hosting board
Board is replaceable
Location In Chassis: Default string
Chassis Handle: 0x0003
Type: Motherboard
Contained Object Handles: 0

Handle 0x0020, DMI type 10, 6 bytes
On Board Device Information
Type: Video
Status: Enabled
Description: To Be Filled By O.E.M.

and in yast

P: /devices/pci0000:00/0000:00:02.0
E: DEVPATH=/devices/pci0000:00/0000:00:02.0
E: DRIVER=i915
E: ID_PCI_CLASS_FROM_DATABASE=Display controller
E: ID_PCI_INTERFACE_FROM_DATABASE=VGA controller
E: ID_PCI_SUBCLASS_FROM_DATABASE=VGA compatible controller
E: ID_VENDOR_FROM_DATABASE=Intel Corporation
E: MODALIAS=pci:v00008086d00001912sv000017AAsd000030BCbc03sc00i00
E: PCI_CLASS=30000
E: PCI_ID=8086:1912
E: PCI_SLOT_NAME=0000:00:02.0
E: PCI_SUBSYS_ID=17AA:30BC
E: SUBSYSTEM=pci
E: USEC_INITIALIZED=75646

P: /devices/pci0000:00/0000:00:02.0/backlight/acpi_video0
E: DEVPATH=/devices/pci0000:00/0000:00:02.0/backlight/acpi_video0
E: ID_PATH=pci-0000:00:02.0
E: ID_PATH_TAG=pci-0000_00_02_0
E: SUBSYSTEM=backlight
E: SYSTEMD_WANTS=systemd-backlight@backlight:acpi_video0.service
E: TAGS=:systemd:
E: USEC_INITIALIZED=2975717[/size][/size][/size]

Please put output between CODE tags, the # in the editor’s layout section.

I made some research on the error I got

[drm:gen8_irq_handler [i915]] *ERROR* CPU pipe A FIFO underrun

It seems it has to do with Sky Lake Integrated Graphics and 4.1.x kernel. The kernel supports the graphic but is highly instabme (as per https://bugzilla.opensuse.org/show_bug.cgi?id=960021).

So I tried to update the kernel to the latest stable one. As I run an offline PC, I downloaded the rpm file for the kernel but was unable to reolve the depencies. I installed it. As grubs manages several kernels, I tried to boot on the second kernel but it failed (missing linux). The old boot entry is still working and it does not fail any more.

Is it possible that although the new kernel is not running, some drivers (including the one for the graphics) got upgraded anyway ?

I used yast to install the rpm file as I was unsure wether using the rpm -i command would end up installing multiple kernel versions as per https://doc.opensuse.org/documentation/leap/reference/html/book.opensuse.reference/cha.tuning.multikernel.html. Do you know wether installing linux as well is enough in my case ?

Don’t think so since it takes 4.3+ to properly handle skylake. You must have ALL dependencies for any program to work. Being off line it does make it awkward :stuck_out_tongue:

=> Yes, I know but it is a strong requirement. OpenSuse is a good helper with that respect. Installing offline with the DVD is still possible and much easier than with other Linux.
I installed a 4.7 kernel, the latest one.

For the time being, having installed a second kernel through yast solved my issue even though I still don’t understand how.

Please take a look at this note: Intel graphics: Skylake support: <Intel graphics - ArchWiki;
Especially: “i915.preliminary_hw_support=1” and:

Note: If the system appears to hang after “Loading Initial Ramdisk”, make sure that the IGD aperture size in BIOS is less than 4GB.

Thanks. Seems relevant. I will try to find out more after my break.

Thanks for your help. I will be away for some weeks starting from now.