Identifying Xorg video driver in use

egrep -i " connected|card detect|primary dev" /var/log/Xorg.0.log
The above one liner can be used to determine what card/driver is Xorg currently using. For additional information, see http://goo.gl/mDnWu
Sample Output
[    27.597] (II) RADEON(0): PCIE card detected
[    27.638] (II) RADEON(0): Output LVDS connected

-1
By: axelabs
2011-02-24 18:04:04

These Might Interest You

  • Great for telnet stream. Substitute aa with caca for colour. To see in terminal: cat video.txt Show Sample Output


    0
    mplayer -vo aa:eight:driver=curses video.avi >video.txt
    mrehqe · 2011-10-31 10:06:10 0

  • -4
    dpkg-reconfigure -phigh xserver-xorg
    raiden · 2009-02-26 21:22:57 1
  • Not always does Xorg run on :0. For times like those, this script allows you to find out which it is.


    -2
    export DISPLAY=$(tr '\000' '\n' < /proc/`pidof Xorg`/cmdline | egrep '^:[0-9]+')
    oernii2 · 2012-12-18 07:26:16 2
  • There are times when a X Window server hangs. When this happens, you can log in on a terminal and kill the Xorg process (i.e. the X Server). This one line command will do the trick.


    0
    sudo kill -9 $( ps -e | grep Xorg | awk '{ print $1 }' )
    jeffskinnerbox · 2014-06-01 22:43:32 0

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: