Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

migrated from Feb 25 '11 at 14:58

This question came from our site for professional and enthusiast programmers.


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.

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
share|improve this answer
Is this tow part thing the linux video driver model? – smwikipedia Feb 14 '11 at 16:20
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. – shellholic Feb 15 '11 at 0:31
If the glxinfo command is not available, run sudo apt-get install mesa-utils. – JJD Jun 19 '14 at 8:30

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
share|improve this answer

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'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+"

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

If you need to find out the specific location of driver-file and version'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/
(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
share|improve this answer
This answer only applies to older distros. The newer versions appear to have moved away from xorg.conf – spuder Jul 18 '13 at 17:50
I'm on 12.04 and xorg.conf doesn't seem to exist, only xorg.conf.failsafe and xorg.conf.backup. – Aditya M P Oct 13 '13 at 14:20

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).

This is a list of your video driver's information. my video driver's information

share|improve this answer

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
share|improve this answer
It says, No such file or directory – Scotia 웃 Feb 9 at 3:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.