make xrandr output on two monitors

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











up vote
0
down vote

favorite












My notebook has an HDMI connection to external monitor. I want have xrandr to pass parameters so that the image is displayed on both internal and external monitors, and when the external monitor is disconnected, the image continues to be displayed on the internal.



Currently I turn it off it manually:



xrandr --output LVDS1 --off --output HDMI1 --auto


And turn on:



xrandr --output LVDS1 --auto --output HDMI1 --auto


So I want to put xrandr command with correct parameters in $HOME/.xinitrc, so that video would go out on both monitors.







share|improve this question


















  • 1




    man xrandr, read up on --same-as.
    – dirkt
    Oct 20 '17 at 6:35










  • @dirkt, thanks for pointing this option, but does --same-as go along with --output option? Can you give example?
    – Mark
    Oct 21 '17 at 1:19






  • 3




    Possible duplicate of xrandr clone monitor autodetect resolution
    – Evan Carroll
    Apr 28 at 19:42










  • I'd say it is not a duplicate. The linked question is about setting the second display to a video mode with the same screen pixel area, but this is not required in this question.
    – njsg
    Apr 29 at 21:14










  • @Mark, it is a "per-output" option, so it must come after an --output option. So xrandr --output HDMI1 --same-as LVDS1 to make HDMI1 show the same as LVDS1.
    – njsg
    Apr 29 at 23:57














up vote
0
down vote

favorite












My notebook has an HDMI connection to external monitor. I want have xrandr to pass parameters so that the image is displayed on both internal and external monitors, and when the external monitor is disconnected, the image continues to be displayed on the internal.



Currently I turn it off it manually:



xrandr --output LVDS1 --off --output HDMI1 --auto


And turn on:



xrandr --output LVDS1 --auto --output HDMI1 --auto


So I want to put xrandr command with correct parameters in $HOME/.xinitrc, so that video would go out on both monitors.







share|improve this question


















  • 1




    man xrandr, read up on --same-as.
    – dirkt
    Oct 20 '17 at 6:35










  • @dirkt, thanks for pointing this option, but does --same-as go along with --output option? Can you give example?
    – Mark
    Oct 21 '17 at 1:19






  • 3




    Possible duplicate of xrandr clone monitor autodetect resolution
    – Evan Carroll
    Apr 28 at 19:42










  • I'd say it is not a duplicate. The linked question is about setting the second display to a video mode with the same screen pixel area, but this is not required in this question.
    – njsg
    Apr 29 at 21:14










  • @Mark, it is a "per-output" option, so it must come after an --output option. So xrandr --output HDMI1 --same-as LVDS1 to make HDMI1 show the same as LVDS1.
    – njsg
    Apr 29 at 23:57












up vote
0
down vote

favorite









up vote
0
down vote

favorite











My notebook has an HDMI connection to external monitor. I want have xrandr to pass parameters so that the image is displayed on both internal and external monitors, and when the external monitor is disconnected, the image continues to be displayed on the internal.



Currently I turn it off it manually:



xrandr --output LVDS1 --off --output HDMI1 --auto


And turn on:



xrandr --output LVDS1 --auto --output HDMI1 --auto


So I want to put xrandr command with correct parameters in $HOME/.xinitrc, so that video would go out on both monitors.







share|improve this question














My notebook has an HDMI connection to external monitor. I want have xrandr to pass parameters so that the image is displayed on both internal and external monitors, and when the external monitor is disconnected, the image continues to be displayed on the internal.



Currently I turn it off it manually:



xrandr --output LVDS1 --off --output HDMI1 --auto


And turn on:



xrandr --output LVDS1 --auto --output HDMI1 --auto


So I want to put xrandr command with correct parameters in $HOME/.xinitrc, so that video would go out on both monitors.









share|improve this question













share|improve this question




share|improve this question








edited Apr 28 at 19:41









Evan Carroll

4,59683674




4,59683674










asked Oct 20 '17 at 2:33









Mark

4582621




4582621







  • 1




    man xrandr, read up on --same-as.
    – dirkt
    Oct 20 '17 at 6:35










  • @dirkt, thanks for pointing this option, but does --same-as go along with --output option? Can you give example?
    – Mark
    Oct 21 '17 at 1:19






  • 3




    Possible duplicate of xrandr clone monitor autodetect resolution
    – Evan Carroll
    Apr 28 at 19:42










  • I'd say it is not a duplicate. The linked question is about setting the second display to a video mode with the same screen pixel area, but this is not required in this question.
    – njsg
    Apr 29 at 21:14










  • @Mark, it is a "per-output" option, so it must come after an --output option. So xrandr --output HDMI1 --same-as LVDS1 to make HDMI1 show the same as LVDS1.
    – njsg
    Apr 29 at 23:57












  • 1




    man xrandr, read up on --same-as.
    – dirkt
    Oct 20 '17 at 6:35










  • @dirkt, thanks for pointing this option, but does --same-as go along with --output option? Can you give example?
    – Mark
    Oct 21 '17 at 1:19






  • 3




    Possible duplicate of xrandr clone monitor autodetect resolution
    – Evan Carroll
    Apr 28 at 19:42










  • I'd say it is not a duplicate. The linked question is about setting the second display to a video mode with the same screen pixel area, but this is not required in this question.
    – njsg
    Apr 29 at 21:14










  • @Mark, it is a "per-output" option, so it must come after an --output option. So xrandr --output HDMI1 --same-as LVDS1 to make HDMI1 show the same as LVDS1.
    – njsg
    Apr 29 at 23:57







1




1




man xrandr, read up on --same-as.
– dirkt
Oct 20 '17 at 6:35




man xrandr, read up on --same-as.
– dirkt
Oct 20 '17 at 6:35












@dirkt, thanks for pointing this option, but does --same-as go along with --output option? Can you give example?
– Mark
Oct 21 '17 at 1:19




@dirkt, thanks for pointing this option, but does --same-as go along with --output option? Can you give example?
– Mark
Oct 21 '17 at 1:19




3




3




Possible duplicate of xrandr clone monitor autodetect resolution
– Evan Carroll
Apr 28 at 19:42




Possible duplicate of xrandr clone monitor autodetect resolution
– Evan Carroll
Apr 28 at 19:42












I'd say it is not a duplicate. The linked question is about setting the second display to a video mode with the same screen pixel area, but this is not required in this question.
– njsg
Apr 29 at 21:14




I'd say it is not a duplicate. The linked question is about setting the second display to a video mode with the same screen pixel area, but this is not required in this question.
– njsg
Apr 29 at 21:14












@Mark, it is a "per-output" option, so it must come after an --output option. So xrandr --output HDMI1 --same-as LVDS1 to make HDMI1 show the same as LVDS1.
– njsg
Apr 29 at 23:57




@Mark, it is a "per-output" option, so it must come after an --output option. So xrandr --output HDMI1 --same-as LVDS1 to make HDMI1 show the same as LVDS1.
– njsg
Apr 29 at 23:57















active

oldest

votes











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',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
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%2f399256%2fmake-xrandr-output-on-two-monitors%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f399256%2fmake-xrandr-output-on-two-monitors%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay