]> git.ipfire.org Git - thirdparty/linux.git/commit
fbcon: don't suspend/resume when vc is graphics mode
authorLu Yao <yaolu@kylinos.cn>
Thu, 30 Apr 2026 06:01:37 +0000 (14:01 +0800)
committerHelge Deller <deller@gmx.de>
Tue, 9 Jun 2026 14:00:10 +0000 (16:00 +0200)
commit70d9d5f5fcd940f627bd403aaa6f65de724eef6b
treeb0153119eb7bc5fb19a3086b60ad772b46820f41
parent92a91dc8bd6aa31a0a59144de6bee6221cd20833
fbcon: don't suspend/resume when vc is graphics mode

Don't need to do suspend/resume for fbcon in graphic mode.

Doing this may cause error, eg:
  At the beginning, starting the Xorg with single screen and then an
  external screen was plugged in. After logging out in Xorg, fbdev
  info may using screen which is connected later on for info always
  using first connected connector in list in func 'drm_setup_crtcs_fb'.
  Then, S3 executed, fbcon found that the information did not match
  and do atomic to switch fb. However, Xorg will not re-bind the crtc
  fb but continues doing ioctl. At this time, the fb is incorrect.

With some modifications by Helge Deller.

Signed-off-by: Lu Yao <yaolu@kylinos.cn>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/core/fbcon.c