dual monitor window arrangement

Forum Forums New users New Users and General Questions dual monitor window arrangement

  • This topic has 13 replies, 4 voices, and was last updated May 3-12:30 pm by nbah.
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #5900
    Member
    nbah

      Greetings, I have a netbook with external VGA monitor attached. On boot, grub detects it and kernel messages are printed on both screens once video is triggered — did some config in /etc/default/grub to allow access tty1-6 correctly, instead of a tty7 freezed GUI screen. Slim launches login prompt (with the greyed train station background, no mouse input, default antix stuff) in extended display mode on both screens. But it is inverted since VGA monitor is left of netbook. Did add sessionstart_cmd /home/nbah/bin/VGAleft
      in slim.conf which runs

       #!/bin/sh
      xrandr --output LVDS1 --primary --mode 1024x600 --pos 1280x120 --rotate normal --right-of VGA1 --output VGA1 --mode 1280x720 --pos 0x0 --rotate normal 

      As you realize, this runs after Slim launch. After successfull login, Screen gets placed as command but in odd fashion of window positions. Please see attached image right in this post. Those windows are maximized in tiny portion across both screens. Also background seems incorrectly tiled instead of at the end, precisely between the edges, of the two screens.
      → How to cancel output of login prompt in external monitor, so it only launches Slim login prompt at netbook LCD, single screen. Maybe this corrects this window position error.

      • This topic was modified 5 years, 3 months ago by rokytnji.
      • This topic was modified 5 years, 3 months ago by nbah.
      • This topic was modified 5 years, 3 months ago by nbah.
      Attachments:
      #5903
      Member
      nbah
        Helpful
        Up
        0
        ::

        where is my post??
        redit = delet?

        Edit by Rok: Read your intro thread for my reply. Sorry . I cannot help with this thread. Not enough skills.

        • This reply was modified 5 years, 3 months ago by rokytnji.
        #5909
        Forum Admin
        rokytnji
          Helpful
          Up
          0
          ::

          After a 2nd thought. How is external monitor hooked up to the netbook? VGA cable or what?
          What keyboard strokes for the netbook enable dual monitors. I know my M&A companion netbook keystrokes differ from my Chromebook keystokes.

          Got a link to your netbook review? Also. How about a

          inxi -Fxz

          report out of terminal as well as a

          xrandr

          report for good measure. The more info the better.

          Sometimes I drive a crooked road to get my mind straight.
          Not all who Wander are Lost.
          I'm not outa place. I'm from outer space.

          Linux Registered User # 475019
          How to Search for AntiX solutions to your problems

          #5915
          Member
          nbah
            Helpful
            Up
            0
            ::

            Ext. mon. hooked by VGA cable.
            I set shortcut key to open Arandr, not to enable dual monitors.
            support.hp.com/us-en/product/HP-Mini-210-1000-PC-series/4075896/model/4126174

            
            $ inxi -Fxz
            System:    Host: NETPUM Kernel: 4.10.5-antix.3-amd64-smp x86_64 bits: 64 gcc: 6.3.0
                       Desktop: IceWM 1.4.2 Distro: antiX-17_x64-base Heather Heyer 24 October 2017
            Machine:   Device: laptop System: Hewlett-Packard product: HP Mini 210-1000 v: N/A serial: N/A
                       Mobo: Hewlett-Packard model: 3660 v: 48.26 serial: N/A
                       BIOS: Hewlett-Packard v: F.22 date: 05/24/2010
            CPU:       Single core Intel Atom N450 (-MT-) arch: Bonnell rev.10 cache: 512 KB
                       flags: (lm nx sse sse2 sse3 ssse3) bmips: 3326
                       clock speeds: max: 1666 MHz 1: 1666 MHz 2: 1666 MHz
            Graphics:  Card: Intel Atom Processor D4xx/D5xx/N4xx/N5xx Integrated Graphics Controller
                       bus-ID: 00:02.0
                       Display Server: X.Org 1.19.2 driver: intel
                       Resolution: 1024x600@59.98hz, 1280x720@59.86hz
                       OpenGL: renderer: Mesa DRI Intel Pineview M
                       version: 2.1 Mesa 13.0.6 Direct Render: Yes
            Audio:     Card Intel NM10/ICH7 Family High Def. Audio Controller
                       driver: snd_hda_intel bus-ID: 00:1b.0
                       Sound: Advanced Linux Sound Architecture v: k4.10.5-antix.3-amd64-smp
            Network:   Card-1: Realtek RTL8101/2/6E PCIE Fast/Gigabit Ethernet controller
                       driver: r8169 v: 2.3LK-NAPI port: 5000 bus-ID: 01:00.0
                       IF: eth0 state: down mac: <filter>
                       Card-2: Broadcom Limited BCM4312 802.11b/g LP-PHY driver: wl bus-ID: 02:00.0
                       IF: wlan0 state: up mac: <filter>
            Drives:    HDD Total Size: 250.1GB (2.1% used)
                       ID-1: /dev/sda model: WDC_WD2500BEKT size: 250.1GB
            Partition: ID-1: / size: 59G used: 3.2G (6%) fs: ext4 dev: /dev/sda6
                       ID-2: swap-1 size: 2.09GB used: 0.00GB (0%) fs: swap dev: /dev/sda7
            Sensors:   System Temperatures: cpu: 64.0C mobo: N/A
                       Fan Speeds (in rpm): cpu: N/A
            Info:      Processes: 154 Uptime: 34 min Memory: 558.6/1991.3MB
                       Init: SysVinit runlevel: 5 Gcc sys: 6.3.0
                       Client: Shell (bash 4.4.121) inxi: 2.3.53 
            
            
            $ xrandr
            Screen 0: minimum 320 x 200, current 2304 x 720, maximum 4096 x 4096
            LVDS1 connected primary 1024x600+1280+120 (normal left inverted right x axis y axis) 222mm x 125mm
               1024x600      59.98*+
               800x600       60.32    56.25  
               640x480       59.94  
            VGA1 connected 1280x720+0+0 (normal left inverted right x axis y axis) 372mm x 209mm
               1280x720      59.86*+  75.02  
               1280x800      59.81  
               1024x768      75.03    70.07    60.00  
               800x600       72.19    75.00    60.32    56.25  
               640x480       75.00    72.81    59.94  
               720x400       70.08
            

            can’t correct set backticks on first post, which gets hidden to me afterwards.

            UPDATE 1st post: actually slim.conf three sessionstart_cmd lines isn’t working?
            the script VGAleft doesn’t apply VGA right of LCD (netbook), remains what is default by Slim launch.
            but WIFIlaunch script line does work, which runs wifi on \n dhclient -4 wlan0 .
            and the first line is standard sessreg stuff.
            So I comment out all customized stuff in slim.conf and wrote those entries in startup file of ~/.desktop-session/ , reboot and seems xrandr line to place VGA right of LCD is applied but incorrectly resolution, same old.

            • This reply was modified 5 years, 3 months ago by nbah.
            • This reply was modified 5 years, 3 months ago by nbah.
            #5923
            Moderator
            BobC
              Helpful
              Up
              0
              ::

              I put my primary screen at 0x0 and work from there. You should start simple and tweak, IMO.

              My initial xrandr value

              pdv9917d:/# xrandr
              Screen 0: minimum 320 x 200, current 1440 x 900, maximum 4096 x 4096
              LVDS-1 connected primary 1440x900+0+0 (normal left inverted right x axis y axis) 367mm x 230mm
                 1440x900      60.00*+
                 1152x864      59.96
                 1024x768      59.92
                 800x600       59.86
                 640x480       59.38
                 720x400       59.55
                 640x400       59.95
                 640x350       59.77
              VGA-1 connected (normal left inverted right x axis y axis)
                 1680x1050     59.95 +
                 1600x1200     60.00
                 1400x1050     59.98
                 1280x1024     75.02
                 1440x900      74.98    59.89
                 1280x960      60.00
                 1360x768      59.80
                 1152x864      75.00
                 1024x768      75.03    70.07    60.00
                 832x624       74.55
                 800x600       72.19    75.00    60.32    56.25
                 640x480       75.00    72.81    66.67    59.94
                 720x400       70.08
              TV-1 connected (normal left inverted right x axis y axis)
                 720x576       50.00 +
                 1024x768      50.00
                 800x600       50.00
                 720x480       50.00
                 640x480       50.00
                 400x300       50.00
                 320x240       50.00
                 320x200       50.00

              My VGA screen is above the laptop so I say the laptop screen is below the VGA. My VGA starts at 900×0 because the laptop screen below is 900 high
              root@hpdv9917d:/# xrandr –output LVDS-1 –primary –mode 1440×900 –pos 0x0 –rotate normal –below VGA-1 –output VGA-1 –mode 1680×1050 –pos 900×0 –rotate normal

              Ok, looking at yours…
              xrandr –output LVDS1 –primary –mode 1024×600 –pos 1280×120 –rotate normal –right-of VGA1 –output VGA1 –mode 1280×720 –pos 0x0 –rotate normal

              Just guessing, but if the laptop is primary and the extra VGA screen is to the left of it, I would try…
              xrandr –output VGA1 –mode 1280×720 –pos 0x0 –rotate normal –output LVDS1 –primary –mode 1024×600 –pos 1280×0 –rotate normal –right-of VGA1

              I’m sorry, I don’t run slim. I suggest you get it to work right from a command line, then put it in a script someplace.

              • This reply was modified 5 years, 3 months ago by BobC.
              #5925
              Moderator
              BobC
                Helpful
                Up
                0
                ::

                You do realize that you can figure this out and rearrange it graphically, rather than via command line? And then you can save the layout to a script file that you change to make executable and run from one of the startup programs. See attached pic. Control center, Session, Screen Resolution

                Attachments:
                #5942
                Member
                nbah
                  Helpful
                  Up
                  0
                  ::

                  I did as @BobC suggests: to get two screens lined at bottom edge, –right-of and –left-of must not be added to cmd.
                  VGAleft script rather be: ` #!/bin/sh
                  xrandr –output VGA1 –mode 1280×720 –pos 0x0 –rotate normal –output LVDS1 –primary –mode 1024×600 –pos 1280x120 –rotate normal
                  There is still occurrence of the window position and maximizing issue. Please zoom in the images to enhance the awareness of the previous description.
                  Second, the screen resolution of Slim login prompt, how to set only single netbook display to output login prompt? Not both screens (extended) as currently presented.
                  Last, why slim.conf sessionstart_cmd lines aren’t resolving? Is it allowed more than one sessionstart_cmd entry? Script VGAleft doesn’t apply.
                  @BobC, your #5925 post was a missed assumption.

                  #5945
                  Moderator
                  BobC
                    Helpful
                    Up
                    0
                    ::

                    You do realize that you can figure this out and rearrange it graphically, rather than via command line? And then you can save the layout to a script file that you change to make executable and run from one of the startup programs. See attached pic. Control center, Session, Screen Resolution

                    Please try what I suggested. You just turn things on and off and drag the screens to where you want them until its how you want, apply it, and then you save it to create the script. I showed a picture of it on my screen there.

                    PS: I forgot to say “apply it”

                    • This reply was modified 5 years, 3 months ago by BobC.
                    #5947
                    Member
                    nbah
                      Helpful
                      Up
                      0
                      ::

                      @BobC this doesn’t resolve my situation at all. please move on.

                      #5952
                      Moderator
                      BobC
                        Helpful
                        Up
                        0
                        ::

                        I couldn’t make it work either with the primary monitor on the right, and I ended up with a mess like yours on the screens, but it did work with the primary monitor on the left after restarting the session.

                        I’m no Linux guru, and was just trying to help. I’m sure you’ll figure it out.

                        #5953
                        Forum Admin
                        Dave
                          Helpful
                          Up
                          0
                          ::

                          AFAIK slim only allows one session start command. I am not sure on the dual login prompts from slim as I can only get one (and have purposely tried to get two). If I am thinking correctly you are seeing mirrored displays at the login prompt. This can be changed via an Xorg configuration file by setting the one screen as the primary screen and the other screen as an “optional” screen. On that note this would also set your displays as you want for the desktop session without needing xrandr commands.

                          I am not sure how “aware” icewm is for a dual monitor setup… from my memory I have always had a little bit of a screen overlap with icewm; where a window on screen one would marginally show on screen two and the other way around. As well as the toolbar trying to fit across both screens, which was fine as long as the resolution was the same… when they were different the toolbar would seem to dissappear. I think this is because icewm sees both screens as one big screen. Which would also make sense in your situation as the windows are opening in the centre of the desktop which happens to be between the two screens. Fluxbox on the other hand is much more aware of a dual screen setup. It is much more successful for me. Perhaps it is worth a try in your setup as is by right clicking on the desktop to get the menu, going to desktops -> other desktops and selecting one of the fluxbox options (space-fluxbox is my preference)

                          Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown

                          #5994
                          Member
                          nbah
                            Helpful
                            Up
                            0
                            ::

                            @BobC I didn’t mean to be rude, let’s try other workarounds. Try to be less excessive on your instructions, I understood the first time you said to arrange monitors graphically (arandr). You aren’t talking to a baby, even if I were newbie user, OK?
                            Will write later on after trying what Dave said.
                            Regards

                            #5996
                            Moderator
                            BobC
                              Helpful
                              Up
                              0
                              ::

                              Its ok.

                              I am using lightdm instead of slim. Dave is an expert, I just happen to have multiscreen systems that work, but am no linux guru

                              #9875
                              Member
                              nbah
                                Helpful
                                Up
                                0
                                ::

                                Hello,

                                This can be changed via an Xorg configuration file

                                That summarizes it all.
                                The ways it is implemented, one can create a file e.g. 10-monitor.conf in /etc/X11/xorg.conf.d/ and setup accordingly.
                                I have used: Two “Section “Monitor””, One “Section “Device””, Two “Section “Screen””.
                                Within Section Monitor, the block related to VGA external monitor, add “Option “Disable” “true”” and comment out or remove the line “Option “PreferredMode” “XxY””, otherwise it will override the former.
                                Obs: X is horizontal pixels and Y, vertical.
                                On the other hand, “Option “Enable” “false”” might work instead.
                                Remove first and last quotes from the triggering compound sentences (configuration parameters).

                                Then is suggested to add in desktop-session’s startup, a xrandr command to deal with dual monitor setup.

                              Viewing 14 posts - 1 through 14 (of 14 total)
                              • You must be logged in to reply to this topic.