Results 1 to 4 of 4

Thread: Detecting video settings in terminal

  1. #1
    Join Date
    Dec 2010
    Location
    Fukuoka, Japan
    Beans
    1,064
    Distro
    Kubuntu 14.04 Trusty Tahr

    Detecting video settings in terminal

    I want to write a script that will toggle video settings. I have two sets of settings saved using auto-disper/autorandr. One set of settings is for single monitor mode and the other is for dual monitor mode. I want my script to detect the current settings and then toggle to the other set of settings. Ive got most of it laid out, but I cant figure out how to detect if my second monitor is active or not. I know that is has something to do with the program nvidia-settings, but dont know which attribute to look at. Any help??

    OS: Kubuntu 11.10 with KDE 4.8
    Graphics: Nvidia GeForce GTX 550 Ti

  2. #2
    Join Date
    Jan 2012
    Beans
    342

    Re: Detecting video settings in terminal

    Quote Originally Posted by whatthefunk View Post
    I want to write a script that will toggle video settings. I have two sets of settings saved using auto-disper/autorandr. One set of settings is for single monitor mode and the other is for dual monitor mode. I want my script to detect the current settings and then toggle to the other set of settings. Ive got most of it laid out, but I cant figure out how to detect if my second monitor is active or not. I know that is has something to do with the program nvidia-settings, but dont know which attribute to look at. Any help?i
    Whatever the card it'll be using/provding a 'framebuffer', so fbset should provide information about the device and its current settings.

    HTH ... khay

  3. #3
    Join Date
    Dec 2010
    Location
    Fukuoka, Japan
    Beans
    1,064
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Detecting video settings in terminal

    Tried that....none of the options for fbset show whether my second monitor is activated or not.

  4. #4
    Join Date
    Dec 2010
    Location
    Fukuoka, Japan
    Beans
    1,064
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: buy zithromax by cod buy zithromycin

    May have figured it out.
    The outputs of disper -l -v from the auto-dipser script vary depending on which monitors are active. As long as the variations are consistant, I can write a script to pick up on these differences. Will play around and see if this works....

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
  •