Reset xrandr (or: switch off the --scale-from setting at disconnect)xrandr: clone and scaleHow do I set my...

Why is drive/partition number still used?

Vertical tennis ball into fancy new enumerate

How could Nomadic scholars effectively memorize libraries worth of information

Could the rotation of a black hole cause other planets to rotate?

Japanese reading of an integer

Is this photo showing a woman standing in the nude before teenagers real?

Are there any examples of technologies have been lost over time?

Commercial jet accompanied by small plane near Seattle

Is cardinality continuous?

Why can't my huge trees be chopped down?

How to store my pliers and wire cutters on my desk?

Are the named pipe created by `mknod` and the FIFO created by `mkfifo` equivalent?

Why isn't there any 9.5 digit multimeter or higher?

Why isn't there a serious attempt at creating a third mass-appeal party in the US?

How did the SysRq key get onto modern keyboards if it's rarely used?

Catan Victory points

Why did House of Representatives need to condemn Trumps Tweets?

When does Haskell complain about incorrect typing in functions?

Issue with Expansions of Nested Macros

How do I stop my characters falling in love?

Why do planes need a roll motion?

Do the books ever say oliphaunts aren’t elephants?

How do I explain an exponentially complex intuitively?

How did the Axis intend to hold the Caucasus?



Reset xrandr (or: switch off the --scale-from setting at disconnect)


xrandr: clone and scaleHow do I set my monitor to widescreen mode in Mint when it doesn't recognize widescreen capability?How to modify the default setting adopted by xrandr when connecting an external monitor?xrandr not activating laptop displayHow can I override xrandr selecting lower than the preferred resolution?Xrandr doesn't scale screen under Cygwin/X and Xmingxrandr: clone and scalePrevent xrandr scaling from becoming blurryChanging resolution on touchscreenxrandr “can't open display” when changing native laptop screen resolutionxrandr with second window above, maximising problem






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







3















I recently found this topic which helped me a lot by pointing me to the --scale-from argument. I'm pretty happy with the way I can connect my projector now and have the same content displayed on both devices without any panning or clipping.
But unfortunately I don't know how to switch the setting off again after I disconnected the projector.



In my example I have my laptop screen (LVDS1 in xrandr) with a resolution of 1366x768 and the projector (VGA1) with a 1280x800 resolution. After I connect the projector I use



xrandr --output VGA1 --mode 1280x800 --output LVDS1 --scale-from 1280x800


which is inconvenient but at least logical.
But when I disconnect the projector later and want to switch back to only using the laptop screen, I need to do something like



xrandr --output VGA1 --off
xrandr --output LVDS1 --scale-from 1366x768
xrandr --fb 1366x768


which I find very inconvenient. Also I don't know of any possibility to find out if there's a scale-from setting currently in action. So my question is: Is there an easier way for this? Since 1366x768 is the preferred resolution for the laptop screen I would have expected one to exist.










share|improve this question





























    3















    I recently found this topic which helped me a lot by pointing me to the --scale-from argument. I'm pretty happy with the way I can connect my projector now and have the same content displayed on both devices without any panning or clipping.
    But unfortunately I don't know how to switch the setting off again after I disconnected the projector.



    In my example I have my laptop screen (LVDS1 in xrandr) with a resolution of 1366x768 and the projector (VGA1) with a 1280x800 resolution. After I connect the projector I use



    xrandr --output VGA1 --mode 1280x800 --output LVDS1 --scale-from 1280x800


    which is inconvenient but at least logical.
    But when I disconnect the projector later and want to switch back to only using the laptop screen, I need to do something like



    xrandr --output VGA1 --off
    xrandr --output LVDS1 --scale-from 1366x768
    xrandr --fb 1366x768


    which I find very inconvenient. Also I don't know of any possibility to find out if there's a scale-from setting currently in action. So my question is: Is there an easier way for this? Since 1366x768 is the preferred resolution for the laptop screen I would have expected one to exist.










    share|improve this question

























      3












      3








      3


      1






      I recently found this topic which helped me a lot by pointing me to the --scale-from argument. I'm pretty happy with the way I can connect my projector now and have the same content displayed on both devices without any panning or clipping.
      But unfortunately I don't know how to switch the setting off again after I disconnected the projector.



      In my example I have my laptop screen (LVDS1 in xrandr) with a resolution of 1366x768 and the projector (VGA1) with a 1280x800 resolution. After I connect the projector I use



      xrandr --output VGA1 --mode 1280x800 --output LVDS1 --scale-from 1280x800


      which is inconvenient but at least logical.
      But when I disconnect the projector later and want to switch back to only using the laptop screen, I need to do something like



      xrandr --output VGA1 --off
      xrandr --output LVDS1 --scale-from 1366x768
      xrandr --fb 1366x768


      which I find very inconvenient. Also I don't know of any possibility to find out if there's a scale-from setting currently in action. So my question is: Is there an easier way for this? Since 1366x768 is the preferred resolution for the laptop screen I would have expected one to exist.










      share|improve this question














      I recently found this topic which helped me a lot by pointing me to the --scale-from argument. I'm pretty happy with the way I can connect my projector now and have the same content displayed on both devices without any panning or clipping.
      But unfortunately I don't know how to switch the setting off again after I disconnected the projector.



      In my example I have my laptop screen (LVDS1 in xrandr) with a resolution of 1366x768 and the projector (VGA1) with a 1280x800 resolution. After I connect the projector I use



      xrandr --output VGA1 --mode 1280x800 --output LVDS1 --scale-from 1280x800


      which is inconvenient but at least logical.
      But when I disconnect the projector later and want to switch back to only using the laptop screen, I need to do something like



      xrandr --output VGA1 --off
      xrandr --output LVDS1 --scale-from 1366x768
      xrandr --fb 1366x768


      which I find very inconvenient. Also I don't know of any possibility to find out if there's a scale-from setting currently in action. So my question is: Is there an easier way for this? Since 1366x768 is the preferred resolution for the laptop screen I would have expected one to exist.







      xrandr






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 3 '17 at 13:58









      caligulacaligula

      638 bronze badges




      638 bronze badges






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I use this same workflow and stumbled on a solution today. It looks like --scale and --scale-from are convenience aliases for --transform so I think the best way to "reset" these kinds of modifications is by using the flag below:



          --transform none





          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%2f390099%2freset-xrandr-or-switch-off-the-scale-from-setting-at-disconnect%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 use this same workflow and stumbled on a solution today. It looks like --scale and --scale-from are convenience aliases for --transform so I think the best way to "reset" these kinds of modifications is by using the flag below:



            --transform none





            share|improve this answer




























              0














              I use this same workflow and stumbled on a solution today. It looks like --scale and --scale-from are convenience aliases for --transform so I think the best way to "reset" these kinds of modifications is by using the flag below:



              --transform none





              share|improve this answer


























                0












                0








                0







                I use this same workflow and stumbled on a solution today. It looks like --scale and --scale-from are convenience aliases for --transform so I think the best way to "reset" these kinds of modifications is by using the flag below:



                --transform none





                share|improve this answer













                I use this same workflow and stumbled on a solution today. It looks like --scale and --scale-from are convenience aliases for --transform so I think the best way to "reset" these kinds of modifications is by using the flag below:



                --transform none






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 43 mins ago









                whiteingewhiteinge

                1212 bronze badges




                1212 bronze badges






























                    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%2f390099%2freset-xrandr-or-switch-off-the-scale-from-setting-at-disconnect%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

                    Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                    Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                    Ciclooctatetraenă Vezi și | Bibliografie | Meniu de navigare637866text4148569-500570979m