Switch screens on Slax Linux (xrandr, FluxBox)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















I use Slax Linux as a Live Linux on a USB drive and I have a problem with multiple monitor configuration.



My computer has two screens, this is the output of xrandr:



Screen 0: minimum 320 x 200, current 3200 x 1200, maximum 16384 x 16384
DVI-I-1 connected primary 1920x1200+0+0 (normal left inverted right x axis y axis) 518mm x 324mm
1920x1200 59.95*+
1600x1200 60.00
1280x1024 75.02 60.02
1280x960 60.00
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
DVI-I-2 connected 1280x1024+1920+0 (normal left inverted right x axis y axis) 376mm x 301mm
1280x1024 60.02*+ 75.02
1280x960 60.00
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
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)


When Slax is started, it looks like this: (50% scale)
Screenshot 1
Which is perfect, except, to get the mouse on the left screen, I have to move it out of the right of the right screen. So I want to switch the screens. First I tried:



xrandr --output DVI-I-1 --auto --output DVI-I-2 --auto --left-of DVI-I-1


Now the mouse moves the right way, but the screens look like this:



Screenshot 2



If I do instead:



xrandr --output DVI-I-1 --off --output DVI-I-2 --off
xrandr --output DVI-I-1 --auto --output DVI-I-2 --auto --left-of DVI-I-1


It seems to work at first, my screens looks like the first picture and the mouse moves okay. But when I click on the four squares to start a program, the screens look like this:



Screenshot 3



How can I switch the screens and get FluxBox (version 1.3.5) to work normally? Note that I'll be using this installation on different computers, so I don't want any permanent configuration, just a few lines of code that I can run after startup when I'm using this particular computer. Editing of configuration files is allowed though, Slax uses a temporary file system and changes will be lost on reboot anyway.










share|improve this question


























    0















    I use Slax Linux as a Live Linux on a USB drive and I have a problem with multiple monitor configuration.



    My computer has two screens, this is the output of xrandr:



    Screen 0: minimum 320 x 200, current 3200 x 1200, maximum 16384 x 16384
    DVI-I-1 connected primary 1920x1200+0+0 (normal left inverted right x axis y axis) 518mm x 324mm
    1920x1200 59.95*+
    1600x1200 60.00
    1280x1024 75.02 60.02
    1280x960 60.00
    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
    DVI-I-2 connected 1280x1024+1920+0 (normal left inverted right x axis y axis) 376mm x 301mm
    1280x1024 60.02*+ 75.02
    1280x960 60.00
    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
    HDMI-1 disconnected (normal left inverted right x axis y axis)
    DP-1 disconnected (normal left inverted right x axis y axis)


    When Slax is started, it looks like this: (50% scale)
    Screenshot 1
    Which is perfect, except, to get the mouse on the left screen, I have to move it out of the right of the right screen. So I want to switch the screens. First I tried:



    xrandr --output DVI-I-1 --auto --output DVI-I-2 --auto --left-of DVI-I-1


    Now the mouse moves the right way, but the screens look like this:



    Screenshot 2



    If I do instead:



    xrandr --output DVI-I-1 --off --output DVI-I-2 --off
    xrandr --output DVI-I-1 --auto --output DVI-I-2 --auto --left-of DVI-I-1


    It seems to work at first, my screens looks like the first picture and the mouse moves okay. But when I click on the four squares to start a program, the screens look like this:



    Screenshot 3



    How can I switch the screens and get FluxBox (version 1.3.5) to work normally? Note that I'll be using this installation on different computers, so I don't want any permanent configuration, just a few lines of code that I can run after startup when I'm using this particular computer. Editing of configuration files is allowed though, Slax uses a temporary file system and changes will be lost on reboot anyway.










    share|improve this question
























      0












      0








      0








      I use Slax Linux as a Live Linux on a USB drive and I have a problem with multiple monitor configuration.



      My computer has two screens, this is the output of xrandr:



      Screen 0: minimum 320 x 200, current 3200 x 1200, maximum 16384 x 16384
      DVI-I-1 connected primary 1920x1200+0+0 (normal left inverted right x axis y axis) 518mm x 324mm
      1920x1200 59.95*+
      1600x1200 60.00
      1280x1024 75.02 60.02
      1280x960 60.00
      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
      DVI-I-2 connected 1280x1024+1920+0 (normal left inverted right x axis y axis) 376mm x 301mm
      1280x1024 60.02*+ 75.02
      1280x960 60.00
      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
      HDMI-1 disconnected (normal left inverted right x axis y axis)
      DP-1 disconnected (normal left inverted right x axis y axis)


      When Slax is started, it looks like this: (50% scale)
      Screenshot 1
      Which is perfect, except, to get the mouse on the left screen, I have to move it out of the right of the right screen. So I want to switch the screens. First I tried:



      xrandr --output DVI-I-1 --auto --output DVI-I-2 --auto --left-of DVI-I-1


      Now the mouse moves the right way, but the screens look like this:



      Screenshot 2



      If I do instead:



      xrandr --output DVI-I-1 --off --output DVI-I-2 --off
      xrandr --output DVI-I-1 --auto --output DVI-I-2 --auto --left-of DVI-I-1


      It seems to work at first, my screens looks like the first picture and the mouse moves okay. But when I click on the four squares to start a program, the screens look like this:



      Screenshot 3



      How can I switch the screens and get FluxBox (version 1.3.5) to work normally? Note that I'll be using this installation on different computers, so I don't want any permanent configuration, just a few lines of code that I can run after startup when I'm using this particular computer. Editing of configuration files is allowed though, Slax uses a temporary file system and changes will be lost on reboot anyway.










      share|improve this question














      I use Slax Linux as a Live Linux on a USB drive and I have a problem with multiple monitor configuration.



      My computer has two screens, this is the output of xrandr:



      Screen 0: minimum 320 x 200, current 3200 x 1200, maximum 16384 x 16384
      DVI-I-1 connected primary 1920x1200+0+0 (normal left inverted right x axis y axis) 518mm x 324mm
      1920x1200 59.95*+
      1600x1200 60.00
      1280x1024 75.02 60.02
      1280x960 60.00
      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
      DVI-I-2 connected 1280x1024+1920+0 (normal left inverted right x axis y axis) 376mm x 301mm
      1280x1024 60.02*+ 75.02
      1280x960 60.00
      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
      HDMI-1 disconnected (normal left inverted right x axis y axis)
      DP-1 disconnected (normal left inverted right x axis y axis)


      When Slax is started, it looks like this: (50% scale)
      Screenshot 1
      Which is perfect, except, to get the mouse on the left screen, I have to move it out of the right of the right screen. So I want to switch the screens. First I tried:



      xrandr --output DVI-I-1 --auto --output DVI-I-2 --auto --left-of DVI-I-1


      Now the mouse moves the right way, but the screens look like this:



      Screenshot 2



      If I do instead:



      xrandr --output DVI-I-1 --off --output DVI-I-2 --off
      xrandr --output DVI-I-1 --auto --output DVI-I-2 --auto --left-of DVI-I-1


      It seems to work at first, my screens looks like the first picture and the mouse moves okay. But when I click on the four squares to start a program, the screens look like this:



      Screenshot 3



      How can I switch the screens and get FluxBox (version 1.3.5) to work normally? Note that I'll be using this installation on different computers, so I don't want any permanent configuration, just a few lines of code that I can run after startup when I'm using this particular computer. Editing of configuration files is allowed though, Slax uses a temporary file system and changes will be lost on reboot anyway.







      live-usb multi-monitor xrandr fluxbox






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 5 at 16:13









      PaulPaul

      1012




      1012




















          1 Answer
          1






          active

          oldest

          votes


















          0














          I figured it out. Rubber duck debugging at its best. Found it here.



          The solution is to change ~/.fluxbox/init permanently. Change session.screen0.allowRemoteActions: false to
          session.screen0.allowRemoteActions: true. FluxBox needs to be restarted for this to work, or simply do a reboot.



          Then, when needed FluxBox can be restarted after a xrandr command. In my case:



          xrandr --output DVI-I-1 --auto --output DVI-I-2 --auto --left-of DVI-I-1
          fluxbox-remote restart





          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f504531%2fswitch-screens-on-slax-linux-xrandr-fluxbox%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I figured it out. Rubber duck debugging at its best. Found it here.



            The solution is to change ~/.fluxbox/init permanently. Change session.screen0.allowRemoteActions: false to
            session.screen0.allowRemoteActions: true. FluxBox needs to be restarted for this to work, or simply do a reboot.



            Then, when needed FluxBox can be restarted after a xrandr command. In my case:



            xrandr --output DVI-I-1 --auto --output DVI-I-2 --auto --left-of DVI-I-1
            fluxbox-remote restart





            share|improve this answer



























              0














              I figured it out. Rubber duck debugging at its best. Found it here.



              The solution is to change ~/.fluxbox/init permanently. Change session.screen0.allowRemoteActions: false to
              session.screen0.allowRemoteActions: true. FluxBox needs to be restarted for this to work, or simply do a reboot.



              Then, when needed FluxBox can be restarted after a xrandr command. In my case:



              xrandr --output DVI-I-1 --auto --output DVI-I-2 --auto --left-of DVI-I-1
              fluxbox-remote restart





              share|improve this answer

























                0












                0








                0







                I figured it out. Rubber duck debugging at its best. Found it here.



                The solution is to change ~/.fluxbox/init permanently. Change session.screen0.allowRemoteActions: false to
                session.screen0.allowRemoteActions: true. FluxBox needs to be restarted for this to work, or simply do a reboot.



                Then, when needed FluxBox can be restarted after a xrandr command. In my case:



                xrandr --output DVI-I-1 --auto --output DVI-I-2 --auto --left-of DVI-I-1
                fluxbox-remote restart





                share|improve this answer













                I figured it out. Rubber duck debugging at its best. Found it here.



                The solution is to change ~/.fluxbox/init permanently. Change session.screen0.allowRemoteActions: false to
                session.screen0.allowRemoteActions: true. FluxBox needs to be restarted for this to work, or simply do a reboot.



                Then, when needed FluxBox can be restarted after a xrandr command. In my case:



                xrandr --output DVI-I-1 --auto --output DVI-I-2 --auto --left-of DVI-I-1
                fluxbox-remote restart






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 5 at 16:32









                PaulPaul

                1012




                1012



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f504531%2fswitch-screens-on-slax-linux-xrandr-fluxbox%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown






                    Popular posts from this blog

                    Peggy Mitchell

                    Palaiologos

                    The Forum (Inglewood, California)