Results 1 to 5 of 5

Thread: check if graphics card is in use

  1. #1
    Join Date
    Jun 2006
    Location
    netherlands
    Beans
    198
    Distro
    Ubuntu 11.04 Natty Narwhal

    check if graphics card is in use

    I installed bumblebee to work with my two graphic cards (Nvidia optimus).

    I can find both cards and still have 3d with intel, so that looks good. The lspci | grep VGA shows both.

    With what command can I check which card is in actual use at the moment/for any specific program?

    A second question. How can I check performance? glxgears gives me output, but not for optirun64 glxgears since it just gives the optirun output 'bumblebee on.. ok'
    We seek to resolve frustration and abide in a comfortable, relaxed mind. We call that 'happiness'. And still I believe in that next upgrade...
    --dell xps m1330 t9300 2.5ghz 4gb 320Gb Nvidia 8400m gs--
    --lenovo w520 2720QM 8Gb Nvidia Quadro 1000

  2. #2
    Join Date
    Nov 2010
    Beans
    48
    Distro
    Ubuntu

    Re: check if graphics card is in use

    Quote Originally Posted by bro View Post
    With what command can I check which card is in actual use at the moment/for any specific program? '
    Code:
    egrep -i " connected|card detect|primary dev" /var/log/Xorg.0.log

  3. #3
    Join Date
    Jun 2006
    Location
    netherlands
    Beans
    198
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: check if graphics card is in use

    Thanks. That is Intel. Does this mean the Nvidia isn't using any battery at the moment either?
    We seek to resolve frustration and abide in a comfortable, relaxed mind. We call that 'happiness'. And still I believe in that next upgrade...
    --dell xps m1330 t9300 2.5ghz 4gb 320Gb Nvidia 8400m gs--
    --lenovo w520 2720QM 8Gb Nvidia Quadro 1000

  4. #4
    Join Date
    Nov 2010
    Beans
    48
    Distro
    Ubuntu

    Re: check if graphics card is in use

    Quote Originally Posted by bro View Post
    Thanks. That is Intel. Does this mean the Nvidia isn't using any battery at the moment either?
    No, it just indicates which driver is in use, not whether the unused card is still being powered.

    Try this:

    Code:
    sudo cat /sys/kernel/debug/vgaswitcheroo/switch
    It should show something like this:

    Code:
    $ sudo cat /sys/kernel/debug/vgaswitcheroo/switch
    0:IGD:+:Pwr:0000:00:02.0
    1:DIS: :Off:0000:01:00.0
    IGD refers to the integrated graphics card (intel), in use (+), powered on
    DIS refers to the discrete graphics card (radeon in my case), not in use, powered off

    To un-power the discrete card type:

    Code:
    sudo su
    echo OFF>/sys/kernel/debug/vgaswitcheroo/switch

  5. #5
    Join Date
    Jun 2006
    Location
    netherlands
    Beans
    198
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: check if graphics card is in use

    Ach.. unfortunately that doesn't work. 'no such file or directory'
    We seek to resolve frustration and abide in a comfortable, relaxed mind. We call that 'happiness'. And still I believe in that next upgrade...
    --dell xps m1330 t9300 2.5ghz 4gb 320Gb Nvidia 8400m gs--
    --lenovo w520 2720QM 8Gb Nvidia Quadro 1000

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •