Announcement

Collapse
No announcement yet.

Dual screen with xrandr

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Dual screen with xrandr

    I have configured a dual screen setup with kubuntu 10.04
    I have an external monitor and i have 2 seperate activitiy on each screen
    I need to run applications from command line but i cant figure out how to select screen

    How can i run an application from commandline with selecting Laptop screen or external screen connected on my laptops vga port
    When i run an app from command line it starts on one of my screen but i need to select the screen
    Please help this is so important

    #2
    Re: Dual screen with xrandr

    Any help? I realy need this information
    I can drag windows between screens but i need to select screen which the application will show up while running the application
    DISPLAY env variable doesnt work there must be a command or something please help me
    If i can set my hardware to get separate x sessions on each screen then DISPLAY env variable will work but i cant set separate x sessions on each screen any help about this would be nice also

    Comment


      #3
      Re: Dual screen with xrandr

      you might find what your looking for under the window menu, to access it click on a application icon to get to the menu then select advanced then either special window setting or special application settings the option there can help you set may of the window setting such as remembering opening location or forcing display etc...
      Mark Your Solved Issues [SOLVED]
      (top of thread: thread tools)

      Comment


        #4
        Re: Dual screen with xrandr

        Thanks for reply but these options are not for me what i want is something like
        Code:
        DISPLAY=":0" firefox
        because i need to use this in a bash script
        But this works only with tho separate x sessions By the way in kde 4.4 each screen is an activity
        http://temporaryland.wordpress.com/2...ties-tutorial/

        Comment


          #5
          Re: Dual screen with xrandr

          Originally posted by komuthan
          Thanks for reply but these options are not for me what i want is something like
          Code:
          DISPLAY=":0" firefox
          Code:
          DISPLAY=":0.1" firefox
          should start firefox on the second screen

          Comment


            #6
            Re: Dual screen with xrandr

            I tried this but
            :~$ DISPLAY=":0.1" firefox
            Error: cannot open display: :0.1
            any ideas?

            Comment


              #7
              Re: Dual screen with xrandr

              I'm not an expert, but I believe that command only works if you're running your screens as separate X screens or sessions, as opposed to running twinview or xinerama.

              You need to tell us more about your setup. 1 or 2 video cards and their models, your xorg.conf if you have one or your log file = /var/log/Xorg.0.log, what video driver...

              Please use the attach function for these files (click on the "Additional Options..." in the lower left of the posting window) rather than cut and paste to your post. For the log file, you need to rename it to .txt to attach it.


              EDIT:
              Have you tried the special windows settings

              Open the program normally, click on the miniature icon in the upper left corner of the window in question, choose Advanced > Special Windows Settings. There you'll find a lot of options...
              Attached Files

              Please Read Me

              Comment


                #8
                Re: Dual screen with xrandr

                Originally posted by oshunluvr
                I'm not an expert, but I believe that command only works if you're running your screens as separate X screens or sessions, as opposed to running twinview or xinerama.

                You need to tell us more about your setup. 1 or 2 video cards and their models, your xorg.conf if you have one or your log file = /var/log/Xorg.0.log, what video driver...

                Please use the attach function for these files (click on the "Additional Options..." in the lower left of the posting window) rather than cut and paste to your post. For the log file, you need to rename it to .txt to attach it.


                EDIT:
                Have you tried the special windows settings

                Open the program normally, click on the miniature icon in the upper left corner of the window in question, choose Advanced > Special Windows Settings. There you'll find a lot of options...
                thank you for your answer but as i said before i need to use this in a script so windows settings is not for me

                I have a laptop with laptop screen and an extra monitor connected to vga port of the laptop and there is not any xorg.conf in kubuntu 10.04 so i didnt do any changes in xorg.conf i attached xrandr -q output and xorg.0.log output
                Attached Files

                Comment


                  #9
                  Re: Dual screen with xrandr

                  I don't understand the script part of the equation.

                  If it is a windowed program and you're using a GUI, launching from a script doesn't change the results of using the Special Window Settings as I suggested. The window will open and appear where you set it to. I guess I can't help you, good luck.

                  Please Read Me

                  Comment


                    #10
                    Re: Dual screen with xrandr

                    Originally posted by oshunluvr
                    I'm not an expert, but I believe that command only works if you're running your screens as separate X screens or sessions, as opposed to running twinview or xinerama.
                    Could be, although I vaguely remember xinerama can be setup to use screens. But you don't need separate X sessions (DISPLAYS :0.0 and :0.1 are on the same session, just different screens).

                    Luckily the compatibility is easy to test, running "echo $DISPLAY" on both monitors will reveal whether they are set up as separate displays (in which case one will output :0.0 and the other :0.1)...although judging by the "xrandr -q" output this is likely not the case.

                    You might wish to look into xrandr to set up your displays as separate screens (I can't really help you with xinerama, I'm not familiar with it), but oshunluvr's suggestion of using window settings is definitely worth a shot for a "quick" solution (even if you are using a script).

                    Comment


                      #11
                      Re: Dual screen with xrandr

                      You could be right, kubicle. It's been so long since I've needed anything except twinview I've forgotten a lot

                      Please Read Me

                      Comment

                      Working...
                      X