20.04 显示问题 - 似乎无法通过 Intel UHD 620 进行刷新

20.04 显示问题 - 似乎无法通过 Intel UHD 620 进行刷新

我希望有人能帮助我解决 HP Elitebook X360 搭载英特尔 UHE 620 显卡的问题

自从我开始使用这个设备以来,我有时会遇到问题(取决于内核。内部显示器似乎无法正确刷新。

一些例子:

  1. 在登录屏幕上,如果我将鼠标推到某个位置,我会在鼠标停止的任何地方看到一个鼠标箭头。
  2. 如果我输入我的登录信息,我不会在显示屏上看到任何输入的内容,但我确实已登录。如果我用鼠标悬停在登录字段上,我会突然看到我输入了一些内容。
  3. 当使用下拉菜单(例如 Librecad)登录后,菜单会一直停留在屏幕上,直到我用鼠标悬停在它上面,然后它就会消失。
  4. 如果我按下仪表盘图标,大约 95% 的屏幕将不会更新/刷新,直到我将鼠标从显示屏顶部移到底部。然后它将被刷新。

仅有的出现在内部显示屏上。在通过 HDMI 镜像的外部显示屏上,完全没有问题。

在过去的两年中,我一直在等待下一个内核或再下一个内核来解决这个问题,同时停留在最后一个可以工作的内核上。

但是现在我使用内核 5.8.0-63 等待了很长时间,仍然没有遇到任何问题。

我实际上正在使用带有显示驱动程序 i915 的 Ubuntu 20.04.4,或者在双启动的情况下,我正在使用 Windows,没有任何问题。

任何5.8.0-63 之后的内核我遇​​到了这些问题。今天我尝试了 22.04 的 alpha 版本。使用内核 5.15.0.18 时,仍然有同样的问题。

我希望有人能在这里帮助我。我所有其他的 Ubuntu 问题我都能够通过在网上寻找解决方案来解决,但这次我什么也找不到……我只找到了一些显示冻结的东西……

如果您告诉我您的需求,我会很乐意提供更多信息。

以下是当出现问题时所请求的输出:

xrandr(坏的)

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 309mm x 174mm
   1920x1080     60.03*+  60.01    59.97    59.96    59.93    40.02  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1440x900      59.89  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1360x768      59.80    59.96  
   1280x800      59.99    59.97    59.81    59.91  
   1152x864      60.00  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   800x512       60.17  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   720x450       59.89  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   680x384       59.80    59.96  
   640x400       59.88    59.98  
   576x432       60.06  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)

uname -a(坏的)

Linux x360 5.13.0-40-generic #45~20.04.1-Ubuntu SMP Mon Apr 4 09:38:31 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

inxi -F(坏的)

System:    Host: x360 Kernel: 5.13.0-40-generic x86_64 bits: 64 Desktop: Gnome 3.36.9 Distro: Ubuntu 20.04.4 LTS (Focal Fossa) 
Machine:   Type: Convertible System: HP product: HP EliteBook x360 1040 G6 v: N/A serial: <superuser/root required> 
           Mobo: HP model: 857F v: KBC Version 60.44.00 serial: <superuser/root required> UEFI: HP v: R90 Ver. 01.12.20 
           date: 03/15/2022 
Battery:   ID-1: BAT0 charge: 33.5 Wh condition: 38.1/56.2 Wh (68%) 
CPU:       Topology: Quad Core model: Intel Core i5-8265U bits: 64 type: MT MCP L2 cache: 6144 KiB 
           Speed: 818 MHz min/max: 400/1400 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 
Graphics:  Device-1: Intel UHD Graphics 620 driver: i915 v: kernel 
           Display: x11 server: X.Org 1.20.13 driver: fbdev unloaded: modesetting,vesa resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa Intel UHD Graphics 620 (WHL GT2) v: 4.6 Mesa 21.2.6 
Audio:     Device-1: Intel Cannon Point-LP High Definition Audio driver: sof-audio-pci-intel-cnl 
           Sound Server: ALSA v: k5.13.0-40-generic 
Network:   Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi 
           IF: wlp108s0 state: up mac: dc:fb:48:52:47:57 
Drives:    Local Storage: total: 953.87 GiB used: 390.79 GiB (41.0%) 
           ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLB1T0HBLR-000H1 size: 953.87 GiB 
Partition: ID-1: / size: 71.59 GiB used: 64.15 GiB (89.6%) fs: ext4 dev: /dev/nvme0n1p4 
Sensors:   System Temperatures: cpu: 41.0 C mobo: 40.0 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 359 Uptime: 7m Memory: 14.99 GiB used: 2.62 GiB (17.5%) Shell: bash inxi: 3.0.38 

lsmod | grep i915(糟糕,问题依然存在):

i915                 2400256  9  
drm_kms_helper        253952  1 i915  
cec                    53248  2 drm_kms_helper,i915
i2c_algo_bit           16384  1 i915
drm                   557056  9 drm_kms_helper,i915
video                  53248  1 i915`

现在我提供文件,一切正常(没有问题):

xrandr(好的,没问题)

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 309mm x 174mm
   1920x1080     60.03*+  60.01    59.97    59.96    59.93    40.02  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1440x900      59.89  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1360x768      59.80    59.96  
   1280x800      59.99    59.97    59.81    59.91  
   1152x864      60.00  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   800x512       60.17  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   720x450       59.89  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   680x384       59.80    59.96  
   640x400       59.88    59.98  
   576x432       60.06  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)

uname -a(好的,没问题)

Linux x360 5.8.0-63-generic #71~20.04.1-Ubuntu SMP Thu Jul 15 17:46:08 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

inxi -F(好的,没问题)

System:    Host: x360 Kernel: 5.8.0-63-generic x86_64 bits: 64 Desktop: Gnome 3.36.9 Distro: Ubuntu 20.04.4 LTS (Focal Fossa) 
Machine:   Type: Convertible System: HP product: HP EliteBook x360 1040 G6 v: N/A serial: <superuser/root required> 
           Mobo: HP model: 857F v: KBC Version 60.44.00 serial: <superuser/root required> UEFI: HP v: R90 Ver. 01.12.20 
           date: 03/15/2022 
Battery:   ID-1: BAT0 charge: 31.3 Wh condition: 38.1/56.2 Wh (68%) 
CPU:       Topology: Quad Core model: Intel Core i5-8265U bits: 64 type: MT MCP L2 cache: 6144 KiB 
           Speed: 1068 MHz min/max: 400/1400 MHz Core speeds (MHz): 1: 900 2: 900 3: 900 4: 900 5: 901 6: 900 7: 900 8: 900 
Graphics:  Device-1: Intel UHD Graphics 620 driver: i915 v: kernel 
           Display: x11 server: X.Org 1.20.13 driver: fbdev unloaded: modesetting,vesa resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa Intel UHD Graphics 620 (WHL GT2) v: 4.6 Mesa 21.2.6 
Audio:     Device-1: Intel Cannon Point-LP High Definition Audio driver: sof-audio-pci 
           Sound Server: ALSA v: k5.8.0-63-generic 
Network:   Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi 
           IF: wlp108s0 state: up mac: dc:fb:48:52:47:57 
Drives:    Local Storage: total: 953.87 GiB used: 390.76 GiB (41.0%) 
           ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLB1T0HBLR-000H1 size: 953.87 GiB 
Partition: ID-1: / size: 71.59 GiB used: 64.13 GiB (89.6%) fs: ext4 dev: /dev/nvme0n1p4 
Sensors:   System Temperatures: cpu: 40.0 C mobo: 40.0 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 373 Uptime: 3m Memory: 15.00 GiB used: 2.79 GiB (18.6%) Shell: bash inxi: 3.0.38 

lsmod | grep i915(好的,没问题):

i915                 2203648  8  
drm_kms_helper        217088  1 i915  
cec                    53248  2 drm_kms_helper,i915
i2c_algo_bit           16384  1 i915 
drm                   552960  8 drm_kms_helper,i915
video
i915                 2203648  8
drm_kms_helper        217088  1 i915
cec                    53248  2 drm_kms_helper,i915
i2c_algo_bit           16384  1 i915
drm                   552960  8 drm_kms_helper,i915
video                  49152  1
i915                   49152  1 i915

根据此处的要求提供更多输出

答案1

我建议您尝试修改驱动程序配置,并采取一些措施。

  1. 创建/etc/X11/xorg.conf.d/i915.conf 包含以下内容的文件(參考

     Section "Device"
        Identifier "Device0"
        Driver "intel"
     EndSection
    

    注销并重新登录。

  2. 添加选项 (參考

     GRUB_CMDLINE_LINUX="i915.alpha_support=1"
    

    使用nano /etc/default/grub,保存文件,运行sudo update-grub并重新启动。

在此期间,请发帖在原帖中以下命令的输出,仅插入内部监视器,内核为 5.8 和 5.13。

$ lsmod | grep i915
$ modinfo i915
$ lspci -knn | grep i915 -B3

有关的

  1. https://wiki.archlinux.org/title/intel_graphics

答案2

这听起来像是面板自我刷新功能,旨在节省电量(仅刷新屏幕上脏的部分)

https://unix.stackexchange.com/a/696835/350793解决方案

答案3

我的解决方案是将参数添加intel_idle.max_cstate=4到内核中/etc/default/grub

来源:https://gitlab.freedesktop.org/drm/intel/-/issues/5569

答案4

今天我安装了一个全新的Ubuntu Voyager22.04 内核 5.15.0-43 也遇到了同样的问题,后来我通过以下方式安装了最新的内核 5.19.0主线 GUI哇,再也没有问题了!

我很高兴(但是不得不等待很长时间!)

问候,迈克尔

PS:我没有尝试过这两者之间的任何内核。

相关内容