Kubuntu 18,第七代英特尔显卡,最大分辨率不正确

Kubuntu 18,第七代英特尔显卡,最大分辨率不正确

因此,我最近在 Ubuntu 18 上从 Gnome 切换到使用 KDE。系统设置 > 显示配置将显示三个显示器,但除非我切换到使用 Nvidia 驱动程序(它会运行笔记本电脑中的风扇,我觉得这很烦人),否则不会让我同时激活它们。这适用于使用 Gnome 3 的 Ubuntu 18.04,因为 Intel HD 630 在 DisplayPort 上支持最多 3 个 4k 显示器(https://www.intel.com/content/www/us/en/support/articles/000025675/graphics-drivers.html)。

Ubuntu 17(Gnome)也存在此问题,并在 Ubuntu 18 中得到解决 - 第 7 代英特尔 GPU 的最大分辨率边界可以是 16384 x 16384,而不是 8192 x 8192。我正在运行 4.17 内核,但 xrandr 仍报告最大尺寸为 8192 x 8192。(如果我使用 nvidia-390 驱动程序,它会变为 32767 x 32767)。

我真的很喜欢 KDE 5.6,比 Gnome 更好——一切似乎都运行得更好,包括 4k 显示器上的显示缩放。但由于软件中存在这种不应该存在的明显限制,我要么听从这些粉丝的意见,要么放弃显示器。有人知道可能的解决方法吗?

谢谢!

为了完整性,添加了 i915 和 nvidia 驱动程序的 xrandr 输出:

英特尔第一:

$ xrandr
Screen 0: minimum 320 x 200, current 7680 x 2160, maximum 8192 x 8192
eDP-1 connected primary 3840x2160+3840+0 (normal left inverted right x axis y axis) 346mm x 194mm
   3840x2160     60.00*+  59.98    59.97  
   3200x1800     59.96    59.94  
   2880x1620     59.96    59.97  
   2560x1600     59.99    59.97  
   2560x1440     59.99    59.99    59.96    59.95  
   2048x1536     60.00  
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   2048x1152     59.99    59.98    59.90    59.91  
   1920x1200     59.88    59.95  
   1920x1080     60.01    59.97    59.96    59.93  
   1600x1200     60.00  
   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 connected (normal left inverted right x axis y axis)
   2560x1440     59.95 +
   1280x720      59.86  
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-2 connected 3840x2160+0+0 (normal left inverted right x axis y axis) 598mm x 336mm
   3840x2160     24.00* 
   1024x768      60.00  
   800x600       60.32  
   640x480       60.00    59.94  
HDMI-2 disconnected (normal left inverted right x axis y axis)

Nvidia 驱动程序:

$ xrandr    
Screen 0: minimum 8 x 8, current 10240 x 2160, maximum 32767 x 32767
    eDP-1-1 connected primary 3840x2160+3840+0 (normal left inverted right x axis y axis) 346mm x 194mm
       3840x2160     60.00*+  59.98    59.97  
       3200x1800     59.96    59.94  
       2880x1620     59.96    59.97  
       2560x1600     59.99    59.97  
       2560x1440     59.99    59.99    59.96    59.95  
       2048x1536     60.00  
       1920x1440     60.00  
       1856x1392     60.01  
       1792x1344     60.01  
       2048x1152     59.99    59.98    59.90    59.91  
       1920x1200     59.88    59.95  
       1920x1080     60.01    59.97    59.96    59.93  
       1600x1200     60.00  
       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-1 connected 2560x1440+7680+360 (normal left inverted right x axis y axis) 597mm x 336mm
       2560x1440     59.95*+
       1280x720      59.86  
    HDMI-1-1 disconnected (normal left inverted right x axis y axis)
    DP-1-2 connected 3840x2160+0+0 (normal left inverted right x axis y axis) 598mm x 336mm
       3840x2160     24.00* 
       1024x768      60.00  
       800x600       60.32  
       640x480       60.00    59.94  
    HDMI-1-2 disconnected (normal left inverted right x axis y axis)

答案1

我在配备第 8 代 i7 GPU(也有 HD 630)的 Ubuntu 18.04 上遇到了这个问题。

它之所以能在 Ubuntu 18.04 上运行,是因为您在 Wayland 上运行 GNOME,出于某种原因,它会忽略驱动程序报告的最大分辨率输出。另一方面,X 则不会,因此超过 8192 边界会导致 X 服务器出错。

如果您查看内核源代码,特别是 i915 驱动程序,您会注意到英特尔开发人员在第 3 代之后停止检查 GPU 版本(这是几年前的事了),并且任何非第 3 代或更低版本的 GPU 默认最大输出为 8192x8192。即使第 6 代及更高版本(或大约)都支持 16384x16384。

补丁非常简单,所以没有修复很奇怪。它实际上是用一个

/* maximum framebuffer dimensions */
if (IS_GEN2(dev_priv)) {
    dev->mode_config.max_width = 2048;
    dev->mode_config.max_height = 2048;
} else if (IS_GEN3(dev_priv)) {
    dev->mode_config.max_width = 4096;
    dev->mode_config.max_height = 4096;
} else if (IS_GEN4(dev_priv) || IS_GEN5(dev_priv)) {
    dev->mode_config.max_width = 8192;
    dev->mode_config.max_height = 8192;
} else {
    dev->mode_config.max_width = 16384;
    dev->mode_config.max_height = 16384;
}

以供参考:https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/i915/intel_display.c

相关内容