如何查找已安装的英特尔显卡驱动程序版本?

我的笔记本电脑配备了一块集成的英特尔GPU和一块独立的Nvidia GPU。
在安装了Ubuntu 18.04之后,Nvidia服务器设置应用程序已经预先安装好了,我可以通过它查看驱动程序版本。
那么,如何查看英特尔驱动程序的版本呢?
2个回答

您可以使用lspci命令查看所有的视频适配器。
lspci -k | grep -EA3 'VGA|3D|Display'
  |    | |   |    |        \- Only VGA is not good enough,
  |    | |   |    |           because Nvidia mobile adapters
  |    | |   |    |           are shown as 3D and some AMD
  |    | |   |    |           adapters are shown as Display.
  |    | |   |    \---------  Print 3 lines after the regexp match.
  |    | |   \--------------  program for searching patterns in files
  |    | |                    (regular expressions)
  |    | \------------------  pipe used for passing the results of the
  |    |                      first command (lspci -k) to the next (grep)
  |    \--------------------  Show kernel drivers handling each device.
  \-------------------------  utility for displaying information
                              about PCI buses in the system and 
                              devices connected to them

输出将会是这样的:
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)
    DeviceName:  Onboard IGD
    Subsystem: Dell HD Graphics 620
    Kernel driver in use: i915

01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 940MX] (rev a2)
    Subsystem: Dell GM108M [GeForce 940MX]
    Kernel driver in use: nouveau
    Kernel modules: nouveau, nvidia_drm, nvidia

如你所见,我有一块Intel GPU和一块Nvidia GPU。Intel GPU使用i915驱动程序,而Nvidia则使用nouveau驱动程序。你可以在输出的Kernel driver in use:部分进行检查。

标准的Intel驱动程序是内核和Mesa 3D图形库的内置部分。因此,它没有自己的版本号;只要您拥有最新的内核和Mesa,您也就拥有了最新的Intel驱动程序。
要查看您正在使用的内核版本,请使用"uname -r"或"dpkg -l | grep linux-image"命令。
要查看您正在使用的Mesa版本,请使用"glxinfo -B"或"dpkg -l | grep mesa"命令。
在Xorg中,与Intel驱动程序的交互可能由"xserver-xorg-video-intel"模块处理。同样,使用"dpkg -l"命令来检查其版本(请注意,该软件包可能不存在,在这种情况下,Xorg通过"modesetting"接口访问相同的Intel驱动程序)。