How to check nvidia driver version linux

A Simple Way To Check NVIDIA Drivers Version on Linux

Nvidia Corporation is an American multinational technology company incorporated in Delaware and based in Santa Clara, California. It is a fabless company which designs graphics processing units (GPUs) for the gaming and professional markets, as well as system on a chip units (SoCs) for the mobile computing and automotive market. Its primary GPU line, labeled “GeForce”, is in direct competition with the GPUs of the “Radeon” brand by Advanced Micro Devices (AMD). Nvidia expanded its presence in the gaming industry with its handheld game consoles Shield Portable, Shield Tablet, and Shield Android TV and its cloud gaming service GeForce Now. Its professional line of GPUs are used in workstations for applications in such fields as architecture, engineering and construction, media and entertainment, automotive, scientific research, and manufacturing design.

In addition to GPU manufacturing, Nvidia provides an application programming interface (API) called CUDA that allows the creation of massively parallel programs which utilize GPUs. They are deployed in supercomputing sites around the world. More recently, it has moved into the mobile computing market, where it produces Tegra mobile processors for smartphones and tablets as well as vehicle navigation and entertainment systems. In addition to AMD, its competitors include Intel and Qualcomm.

The idea of this tutorial

The objective of this tutorial is to show how to check the NVIDIA driver version installed on your Linux system. There are few places you may have a look to check what NVIDIA driver you have installed on your Linux system.

NVIDIA X server settings

Check nvidia version on linux system

Let’s start with the most obvious attempt to find out NVIDIA driver version by running NVIDIA X server settings application from your GUI menu.

System Management Interface

Use command line and consult nvidia-smi utility to reveal NVIDIA driver version:

# nvidia-smi Fri Dec 25 16:49:12 2015 +------------------------------------------------------+ | NVIDIA-SMI 352.63 Driver Version: 352.63 | |-------------------------------+----------------------+  Code language: PHP (php)

Please note that both above solutions will work only if the actual NVIDIA module is loaded.

Читайте также:  Linux how to chmod

Check Xorg X server logs

Another place where to find NVIDIA driver version is to consult Xorg X server log files:

# grep "X Driver" /var/log/Xorg.0.log [ 10.295] (II) NVIDIA dlloader X Driver 352.63 Sat Nov 7 20:29:25 PST 2015  Code language: PHP (php)

Retrieve module version

If all above commands fail because you are unable to load NVIDIA module you can always see NVIDIA version number by directly retrieving nvidia.ko module version using modinfo command. The below command will check for NVIDIA driver version under your currently running kernel:

# modinfo /usr/lib/modules/$(uname -r)/kernel/drivers/video/nvidia.ko | grep ^version version: 352.63  Code language: PHP (php)

The above will work even if NVIDIA module is not loaded. Run the below command to locate your nvidia.ko module file:

# find /usr/lib/modules -name nvidia.ko  Code language: PHP (php)

Alternatively, run modinfo command on all results returned from find command:

# find /usr/lib/modules -name nvidia.ko -exec modinfo <> \; filename: /usr/lib/modules/3.10.0-229.20.1.el7.x86_64/kernel/drivers/video/nvidia.ko alias: char-major-195-* version: 352.63 supported: external license: NVIDIA rhelversion: 7.1 alias: pci:v000010DEd00000E00sv*sd*bc04sc80i00* alias: pci:v000010DEd*sv*sd*bc03sc02i00* alias: pci:v000010DEd*sv*sd*bc03sc00i00* depends: drm,i2c-core vermagic: 3.10.0-229.20.1.el7.x86_64 SMP mod_unload modversions parm: NVreg_Mobile:int parm: NVreg_ResmanDebugLevel:int parm: NVreg_RmLogonRC:int parm: NVreg_ModifyDeviceFiles:int parm: NVreg_DeviceFileUID:int parm: NVreg_DeviceFileGID:int parm: NVreg_DeviceFileMode:int parm: NVreg_UpdateMemoryTypes:int parm: NVreg_InitializeSystemMemoryAllocations:int parm: NVreg_UsePageAttributeTable:int parm: NVreg_MapRegistersEarly:int parm: NVreg_RegisterForACPIEvents:int parm: NVreg_CheckPCIConfigSpace:int parm: NVreg_EnablePCIeGen3:int parm: NVreg_EnableMSI:int parm: NVreg_MemoryPoolSize:int parm: NVreg_RegistryDwords:charp parm: NVreg_RmMsg:charp parm: NVreg_AssignGpus:charp Code language: PHP (php)

Источник

How to check NVIDIA driver version on your Linux system

The objective of this tutorial is to show how to check the NVIDIA driver version installed on your Linux system. There are few places you may have a look to check what NVIDIA driver you have installed on your Linux system. This will allow you to check that you have the latest version installed and optionally upgrade to a new NVIDIA driver for better support and features.

In this tutorial you will learn:

  • How to check NVIDIA driver version on Linux

How to check NVIDIA driver version on Linux

Software Requirements and Linux Command Line Conventions
Category Requirements, Conventions or Software Version Used
System Any Linux distro
Software NVIDIA driver
Other Privileged access to your Linux system as root or via the sudo command.
Conventions # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ – requires given linux commands to be executed as a regular non-privileged user
Читайте также:  Запустить ssh сервис linux

NVIDIA X server settings

Let’s start with the most obvious attempt to find out NVIDIA driver version by running NVIDIA X server settings application from your GUI menu.

Check nvidia version on linux system

System Management Interface

Use command line and consult nvidia-smi utility to reveal NVIDIA driver version:

# nvidia-smi Fri Dec 25 16:49:12 2015 +------------------------------------------------------+ | NVIDIA-SMI 352.63 Driver Version: 352.63 | |-------------------------------+----------------------+

Please note that both above solutions will work only if the actual NVIDIA module is loaded.

Check Xorg X server logs

Another place where to find NVIDIA driver version is to consult Xorg X server log files:

# grep "X Driver" /var/log/Xorg.0.log [ 10.295] (II) NVIDIA dlloader X Driver 352.63 Sat Nov 7 20:29:25 PST 2015

Retrieve module version

If all above commands fail because you are unable to load NVIDIA module you can always see NVIDIA version number by directly retrieving nvidia.ko module version using modinfo command. The below command will check for NVIDIA driver version under your currently running kernel:

# modinfo /usr/lib/modules/$(uname -r)/kernel/drivers/video/nvidia.ko | grep ^version version: 352.63

The above will work even if NVIDIA module is not loaded. Run the below command to locate your nvidia.ko module file:

# find /usr/lib/modules -name nvidia.ko

Alternatively, run modinfo command on all results returned from find command:

# find /usr/lib/modules -name nvidia.ko -exec modinfo <> \; filename: /usr/lib/modules/3.10.0-229.20.1.el7.x86_64/kernel/drivers/video/nvidia.ko alias: char-major-195-* version: 352.63 supported: external license: NVIDIA rhelversion: 7.1 alias: pci:v000010DEd00000E00sv*sd*bc04sc80i00* alias: pci:v000010DEd*sv*sd*bc03sc02i00* alias: pci:v000010DEd*sv*sd*bc03sc00i00* depends: drm,i2c-core vermagic: 3.10.0-229.20.1.el7.x86_64 SMP mod_unload modversions parm: NVreg_Mobile:int parm: NVreg_ResmanDebugLevel:int parm: NVreg_RmLogonRC:int parm: NVreg_ModifyDeviceFiles:int parm: NVreg_DeviceFileUID:int parm: NVreg_DeviceFileGID:int parm: NVreg_DeviceFileMode:int parm: NVreg_UpdateMemoryTypes:int parm: NVreg_InitializeSystemMemoryAllocations:int parm: NVreg_UsePageAttributeTable:int parm: NVreg_MapRegistersEarly:int parm: NVreg_RegisterForACPIEvents:int parm: NVreg_CheckPCIConfigSpace:int parm: NVreg_EnablePCIeGen3:int parm: NVreg_EnableMSI:int parm: NVreg_MemoryPoolSize:int parm: NVreg_RegistryDwords:charp parm: NVreg_RmMsg:charp parm: NVreg_AssignGpus:charp

Closing Thoughts

In this tutorial, we learned how to check the installed version of the Nvidia driver on a Linux system. This included checking the Nvidia X server settings, system management interface, Xorg X server logs, and the module version.

Comments and Discussions

Источник

Как проверить версию драйвера NVIDIA в вашей системе Linux

Есть несколько мест, где вы можете посмотреть, какой драйвер NVIDIA установлен в вашей системе Linux.

Читайте также:  Comm command in linux

Настройки сервера NVIDIA X

Начнем с самой очевидной попытки узнать версию драйвера NVIDIA, запустив Настройки сервера NVIDIA X приложение из вашего меню графического интерфейса.

Проверить версию nvidia в системе linux

Интерфейс управления системой

Используйте командную строку и проконсультируйтесь nvidia-smi утилита для определения версии драйвера NVIDIA:

# nvidia-smi Пт 25 дек 16:49:12 2015 ++ | NVIDIA-SMI 352.63 Версия драйвера: 352.63 | | ++

Обратите внимание, что оба приведенных выше решения будут работать, только если загружен фактический модуль NVIDIA.

Проверьте журналы X-сервера Xorg

Еще одно место, где можно найти версию драйвера NVIDIA, — это просмотреть файлы журнала сервера Xorg X:

# grep "Драйвер X" /var/log/Xorg.0.log. [10.295] (II) Драйвер NVIDIA dlloader X 352.63 Сб, 7 ноября, 20:29:25 PST 2015.

Получить версию модуля

Если все вышеперечисленные команды не работают из-за того, что вы не можете загрузить модуль NVIDIA, вы всегда можете увидеть номер версии NVIDIA, напрямую получив версию модуля nvidia.ko, используя

# modinfo / usr / lib / modules / $ (uname -r) /kernel/drivers/video/nvidia.ko | grep ^ версия. версия: 352.63.0

Вышеупомянутое будет работать, даже если модуль NVIDIA не загружен. Выполните приведенную ниже команду, чтобы найти свой nvidia.ko файл модуля:

# найдите / usr / lib / modules -name nvidia.ko.

В качестве альтернативы запустите modinfo команда для всех результатов, возвращаемых командой find:

# найти / usr / lib / modules -name nvidia.ko -exec modinfo <> \; имя файла: /usr/lib/modules/3.10.0-229.20.1.el7.x86_64/kernel/drivers/video/nvidia.ko псевдоним: char-major-195- * версия: 352.63. поддерживается: внешний. лицензия: NVIDIA. Версия: 7.1. псевдоним: pci: v000010DEd00000E00sv * sd * bc04sc80i00 * псевдоним: pci: v000010DEd * sv * sd * bc03sc02i00 * псевдоним: pci: v000010DEd * sv * sd * bc03sc00i00 * зависит: drm, i2c-core. vermagic: 3.10.0-229.20.1.el7.x86_64 SMP mod_unload modversions parm: NVreg_Mobile: int. параметр: NVreg_ResmanDebugLevel: int. параметр: NVreg_RmLogonRC: int. parm: NVreg_ModifyDeviceFiles: int. параметр: NVreg_DeviceFileUID: int. параметр: NVreg_DeviceFileGID: int. параметр: NVreg_DeviceFileMode: int. parm: NVreg_UpdateMemoryTypes: int. parm: NVreg_InitializeSystemMemoryAllocations: int. параметр: NVreg_UsePageAttributeTable: int. parm: NVreg_MapRegisters Раннее: int. parm: NVreg_RegisterForACPIEvents: int. параметр: NVreg_CheckPCIConfigSpace: int. параметр: NVreg_EnablePCIeGen3: int. параметр: NVreg_EnableMSI: int. параметр: NVreg_MemoryPoolSize: int. parm: NVreg_RegistryDwords: charp. параметр: NVreg_RmMsg: charp. parm: NVreg_AssignGpus: charp.

Подпишитесь на новостную рассылку Linux Career Newsletter, чтобы получать последние новости, вакансии, советы по карьере и рекомендуемые руководства по настройке.

LinuxConfig ищет технических писателей, специализирующихся на технологиях GNU / Linux и FLOSS. В ваших статьях будут представлены различные руководства по настройке GNU / Linux и технологии FLOSS, используемые в сочетании с операционной системой GNU / Linux.

Ожидается, что при написании статей вы сможете идти в ногу с технологическим прогрессом в вышеупомянутой технической области. Вы будете работать самостоятельно и сможете выпускать как минимум 2 технических статьи в месяц.

Источник

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