Linux see graphics driver

How do I find version of Intel graphics card drivers installed?

My laptop came with an integrated intel GPU and with a discrete Nvidia GPU. After the installation of ubuntu 18.04, the Nvidia server settings app was already installed and I am able to view the driver version through that. How do I do this for the Intel driver?

2 Answers 2

You can view all your video adapters with the lspci command

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 

The output will be something like this:

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 

As you can see, I have an Intel GPU and an Nvidia GPU. The Intel GPU is using the i915 driver and the Nvidia is using nouveau. You can check this in the Kernel driver in use: section of the output.

Источник

Как узнать какой видеодрайвер и видеокарта используются в linux?

Несколько советов, которые помогут вам узнать об установленной видеокарте и используемом драйвере в вашей системе Linux.

Часто бывает необходимо узнать подробности об используемых видеокарте и драйвере. В этой инструкции я расскажу и покажу, как посмотреть информацию о видеокарте и видео драйвере в системе Linux.

lspci

Во-первых, нужно обновить базу данных PCI-устройств:

Дальше вводим команду lspci, которая выводит подробную информацию об устройствах PCI в Linux системах. Большинство видеокарт, как правило, вставлено в слоты PCI на материнской плате.

lspci

lshw

Команду lshw также можно использовать для отображения различной информации об оборудовании, включая вашу видеокарту. Эта утилита немного отличается от приведенной выше команды lspci. Команда lshw показывает дополнительную информацию, такую ​​как тактовая частота, скорость шины, адрес памяти.

lshw

HARDINFO

Ещё можно посмотреть информацию о видеокарте в программе Hardinfo. Это один из самых простых способов получить всю информацию о вашем оборудовании, включая видеокарту.

Hardinfo

sudo apt install hardinfo (для Ubuntu и связанных)
sudo dnf install hardinfo (для Fedora и связанных)
pacman -S hardinfo (для Arch)

После установки вы можете запустить Hardinfo и получить необходимую информацию.

Читайте также:  Linux on ipod touch 5

KInfoCenter

Если вы используете KDE Plasma, то у него есть собственный KInfoCenter(Информация о системе), который отображает всю информацию о вашей системе.

KInfoCenter

Я надеюсь, что эти инструменты помогут вам узнать о видеокарте, ее драйверах и других деталях вашей системы Linux.

Источник

How to find out what graphics driver is installed?

I installed Xubuntu 13.04 two months ago. But I don’t know to find out which driver is installed for my GPU ( I mean graphic card driver ) or is it installed? I’m feeling something is wrong with my pc graphics.

4 Answers 4

Run sudo lshw -c video | grep ‘configuration’ to see the video driver used, or sudo lshw -c video for more detail. i915, for example, means your video adapter uses the Intel 915 drivers; nouveau means you have the Open Source drivers for NVIDIA.

In the Xubuntu menu click on Settings Manager. This will open the Settings window.

enter image description here

In the Settings window under the Hardware heading, click on the Additional Drivers icon. This will open the Software & Updates window and show the Additional Drivers tab.

enter image description here

If you have a graphics card driver installed, there will be a black dot appearing to the left of it, showing that it is installed. The recommended graphics card driver, if there is one in the list, is the one that has [Recommended] appearing after it. You can install the Recommended driver by selecting the Recommended driver from the list of drivers, clicking the Apply Changes button in the lower right corner of Additional Drivers, and then reboot to enable the graphics card driver.

You can also automatically install the same packages that recommended drivers option of Additional Drivers installs by using the install option of the ubuntu-drivers program from the terminal. The install command of ubuntu-drivers installs drivers that are appropriate for automatic installation including their dependencies.

sudo ubuntu-drivers install && sudo reboot 

Источник

How to check the information of current installed video drivers?

My CPU usage is high when I do trivial things such as scrolling through a PDF file. So I think my video driver is not properly installed. I want to confirm that by checking the information of my currently installed video driver, such as if there’s a driver installed and what version it is. Then I could decide whether to install a new one if it is not up to date. On Windows, I could use the device manager, how to do that on Ubuntu Linux? I don’t expect a GUI solution for this. Command line will be just good enough.

7 Answers 7

In Linux, there is two parts for the video driver, the kernel part and the X server part.

  1. Let’s identify your hardware first. By typing lspci | grep VGA in a terminal, you should see a line with you graphic card description (even if not configured at all).
  2. Let’s check the correct kernel driver is loaded find /dev -group video .
  3. Let’s check the correct X driver is loaded glxinfo | grep -i vendor .
Читайте также:  Check write permissions linux

If you want more help, I would like the result of following commands: (Remember, never trust command line that people ask you to execute without knowing what it does.)

lspci | grep VGA lsmod | grep "kms\|drm" find /dev -group video cat /proc/cmdline find /etc/modprobe.d/ cat /etc/modprobe.d/*kms* ls /etc/X11/xorg.conf glxinfo | grep -i "vendor\|rendering" grep LoadModule /var/log/Xorg.0.log 

If you copy-paste the last 4 lines in a terminal and add the result at the end of your question (edit), it will be easier to answer your question. But remember not to execute untrusted commands. Perhaps some stackoverflow trusted users could proof read them and acknowledge in comments.

The easiest way is to run

lspci -k | grep -EA3 'VGA|3D|Display' 
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06) Subsystem: ASUSTeK Computer Inc. HD Graphics 530 Kernel driver in use: i915 Kernel modules: i915 -- 01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 950M] (rev a2) Subsystem: ASUSTeK Computer Inc. GM107M [GeForce GTX 950M] Kernel driver in use: nvidia Kernel modules: nvidiafb, nouveau, nvidia_375_drm, nvidia_375 

This command will show all video PCI devices and kernel modules installed and in use.

Only VGA is not good enough, because Nvidia mobile adapters are shown as 3D and some AMD adapters are shown as Display .

Thanks! I run command, it showed two controllers as in your example. Now how to find out what driver does what?

@Martian2020 It is unclear what you are asking. You see all drivers and which is used. You can ask a new question if you are more specific.

I meant what driver controls display output at the moment. I’ve understood glxinfo | grep «OpenGL» could be used for that.

I use this command to see what Xorg is currently using:

egrep -i " connected|card detect|primary dev|Setting driver" /var/log/Xorg.0.log 

Here is an easier solution, using GUI instead of command line. on the Ubuntu desktop, choose:

System Settings > Software and updates (in the bottom) -> Other drivers (the right most tab).

my video driver's information

This is a list of your video driver’s information.

For nvidia drivers at least, I usually use the following command in the terminal:

cat /proc/driver/nvidia/version 

Which will output something similar to the following:

NVRM version: NVIDIA UNIX x86_64 Kernel Module 346.96 Sun Aug 23 22:29:21 PDT 2015 

I’m running a 64bit Ubuntu 10.04 here. Here’s what I found out:

lspci will give you a list of found devices. Usually the video card is listed as «VGA controller» or somesuch, on my system it says:

01:00.0 VGA compatible controller: nVidia Corporation G92 [GeForce 9800 GTX] (rev a2) 

If you meant X.org’s video driver, see /etc/X11/xorg.conf and look for Driver in Section «Device» (there might be multiple):

Section "Device" Identifier "Device0" Driver "nvidia" VendorName "NVIDIA Corporation" BoardName "GeForce 9800 GTX/9800 GTX+" EndSection Section "Device" Identifier "Device1" Driver "nvidia" VendorName "NVIDIA Corporation" BoardName "GeForce 9800 GTX/9800 GTX+" BusID "PCI:1:0:0" Screen 1 EndSection 

If you need to find out the specific location of driver-file and version X.org’s using, try cat /var/log/Xorg.0.log and look for line which says something like LoadModule «‘Driver in the Device-section of xorg.conf’, in my case:

(II) LoadModule: "nvidia" (II) Loading /usr/lib/xorg/extra-modules/nvidia_drv.so (II) Module nvidia: vendor="NVIDIA Corporation" compiled for 4.0.2, module version = 1.0.0 Module class: X.Org Video Driver (II) NVIDIA dlloader X Driver 195.36.24 Thu Apr 22 19:18:54 PDT 2010 (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs (II) Primary Device is: PCI 01@00:00:0 

This answer only applies to older distros. The newer versions appear to have moved away from xorg.conf

Читайте также:  Kali linux после windows

X.org auto-probes everything these days so there is no xorg.conf configuration file (unless you’ve explicitly made one). *However the part about inspecting the X server log is still perfectly valid: less /var/log/Xorg.0.log

This should work with any unix-like operating system.

First to list all PCI devices, run:

-nn flag tells lspci to show PCI vendor and device codes as both numbers and names.

00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD/ATI] RS400 Host Bridge [1002:5a33] (rev 01) 00:02.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] RS4xx PCI Express Port [ext gfx] [1002:5a34] 00:11.0 IDE interface [0101]: Advanced Micro Devices, Inc. [AMD/ATI] IXP SB400 Serial ATA Controller [1002:437a] (rev 80) 00:12.0 IDE interface [0101]: Advanced Micro Devices, Inc. [AMD/ATI] IXP SB4x0 Serial ATA Controller [1002:4379] (rev 80) 00:13.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] IXP SB4x0 USB Host Controller [1002:4375] (rev 80) 00:13.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] IXP SB4x0 USB2 Host Controller [1002:4373] (rev 80) 00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD/ATI] IXP SB4x0 SMBus Controller [1002:4372] (rev 81) 00:14.1 IDE interface [0101]: Advanced Micro Devices, Inc. [AMD/ATI] IXP SB4x0 IDE Controller [1002:4376] (rev 80) 00:14.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] IXP SB4x0 High Definition Audio Controller [1002:437b] (rev 01) 00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD/ATI] IXP SB4x0 PCI-PCI Bridge [1002:4371] (rev 80) 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation G96 [GeForce 9500 GT] [10de:0640] (rev a1) 02:02.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL-8100/8101L/8139 PCI Fast Ethernet Adapter [10ec:8139] (rev 10) 
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation G96 [GeForce 9500 GT] [10de:0640] (rev a1) 

Finally run

sudo lspci -vvv -d 10de:0640 

sudo and -vvv make it more verbose and helps display everything that it is able to parse. -d is for device in the format []:[]

The final command will list out all the possible capabilities and the kernel driver in use.

Источник

Оцените статью
Adblock
detector