Lenovo Thinkpad x1 loses sync with 5.12 series kernels

I have Lenovo Thinkpad X1 Carbon 20BS laptop. After Tumbleweed regular updates updated kernel to 5.12 series, laptop started losing its own display’s sync ca. every 1.5 seconds causing screen to blink. During blink display contents may be seen unaligned or mislocated, which is why I suspect losing sync.

This misbehaviour starts immediately when boot process switches from initramfs root to real /. It thus starts before X server gets started and it presents itself also on text consoles. External display connected to hdmi port works as normal. I also tested diffetent resolutions in X session with no avail.

It seems laptop is using i915 display driver. Below is what dmesg logs about it.

    6.219282] **i915** 0000:00:02.0: vgaarb: deactivate vga console 
    6.223185] **i915** 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=io+mem 
    7.393848] [drm] Initialized **i915** 1.6.0 20201103 for 0000:00:02.0 on minor 0 
    7.400940] fbcon: **i915**drmfb (fb0) is primary device 
    7.401054] **i915** 0000:00:02.0: [drm] Reducing the compressed framebuffer size. This may lead to less power savings than a non-reduced-size. Try to
 increase stolen memory size if available in BIOS. 
    7.439943] **i915** 0000:00:02.0: [drm] fb0: **i915**drmfb frame buffer device 
   12.708176] snd_hda_intel 0000:00:03.0: bound 0000:00:02.0 (ops **i915**_audio_component_bind_ops **i915**])

Display memory size in BIOS is maximum, 512 MB.

Has anybody else run to this kind of problem? Is there any other information I could provide for helping for resolve this issue?

Here is some additional information:


**#** inxi -Gay 
**Graphics:**
  **Device-1:** Intel HD Graphics 5500 **vendor:** Lenovo **driver:** i915 **v:** kernel  
  **bus-ID:** 00:02.0 **chip-ID:** 8086:1616 **class-ID:** 0300  
  **Device-2:** Chicony Integrated Camera **type:** USB **driver:** uvcvideo **bus-ID:** 1-8:5  
  **chip-ID:** 04f2:b45d **class-ID:** 0e02 **serial:** 0x0001  
  **Display:****server:** X.org 1.20.11 **compositor:** kwin_x11 **driver:****loaded:** intel  
  **unloaded:** fbdev,modesetting,vesa **tty:** 149x51  
  **Message:** Advanced graphics data unavailable in console for root.

This is probably the same problem I’m having wit ha Lenovo, the i915 driver (framebuffer) and kernel 5.12

See

https://forums.opensuse.org/showthread.php/553383-Today-s-Zypper-dup-to-kernel-5-12-breaks-several-things

There is a bug report mentioned on there which addresses a similar problem

https://bugzilla.opensuse.org/show_bug.cgi?id=1185601

although that seems to be aimed more at hardware that has two graphics cards

I can get a stable display in kernel 5.12 by editing

/etc/default/grub

and adding

GRUB_CMDLINE_LINUX="i915.modeset=0"

(and ten updating grub by )

sudo grub2-mkconfig -o /boot/grub2/grub.cfg

but the video display is then rather poor - video tearing on youtube videos etc

So I’ve reverted to the 5.11-16 kernel, and made set things so I boot that kernel by default, and that purge-kernels does not remove the 5.11-16 kernel

I ought to add I haven’t tried the repo mentioned in the bugzilla thread, been too busy

That says that issue should be fixed in the Kernel 5.12.3 release (hopefully)

Currently, it’s 5.12.2-1-default

Thanks for your reply. I agree that my problem seems to match your case although phenomenon is different. Upstream comments refer to Dell and Macbook laptops.

I tested
GRUB_CMDLINE_LINUX=“i915.modeset=0”
and with that blinkin stops but side effect is that there is no graphical desktop.

I wish TW gets 5.12.3 kernel soon. I’ll keep waiting.

I have also old Thinkpad x200s and a HP Compaq 6910p. With 5.12 series kernels they start graphical desktop, but hang up shortly after that. Hanging here means that there is no action on frozen desktop and no traffic on network. I haven’t investigated those any further yet. I propably do that when 5.12.3 is on TW.

TW has now 5.12.3 kernel in latest snapshot. It solves my problem with Lenovo Thinkpad X1.

OK, that’s good

Unfortunately I’ve still got a broken i915 framebuffer

I’m just going to try some other settings in /etc/default/grub and then maybe file a bug report that’s more specific to my laptop


inxi -Gay
Graphics:
  Device-1: Intel HD Graphics 5500 vendor: Lenovo driver: i915 v: kernel 
  bus-ID: 00:02.0 chip-ID: 8086:1616 class-ID: 0300 
  Device-2: Syntek Lenovo EasyCamera type: USB driver: uvcvideo bus-ID: 2-6:3 
  chip-ID: 174f:14be class-ID: 0e02 serial: 200901010001 
  Display: x11 server: X.Org 1.20.11 driver: loaded: intel 
  unloaded: fbdev,modesetting,vesa display-ID: :0.0 screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") 
  s-diag: 582mm (22.9") 
  Monitor-1: eDP1 res: 1920x1080 hz: 60 dpi: 128 size: 380x210mm (15.0x8.3") 
  diag: 434mm (17.1") 
  OpenGL: renderer: Mesa DRI Intel HD Graphics 5500 (BDW GT2) 
  v: 4.6 Mesa 21.1.0 compat-v: 3.0 direct render: Yes