xrandr commands from gdm
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
0
down vote
favorite
on debian to use my two monitors I have to run (from a running X):
$ xrandr --setprovideroutputsource modesetting NVIDIA-0
and:
$ xrandr --output HDMI-0 --mode 1920x1080 --primary --pos 0x0 --output VGA-1-1 --mode 1920x1080 --pos 1920x0
How can I make gdm run those commands for me so I don't have to type them every time?
xrandr gdm3
add a comment |Â
up vote
0
down vote
favorite
on debian to use my two monitors I have to run (from a running X):
$ xrandr --setprovideroutputsource modesetting NVIDIA-0
and:
$ xrandr --output HDMI-0 --mode 1920x1080 --primary --pos 0x0 --output VGA-1-1 --mode 1920x1080 --pos 1920x0
How can I make gdm run those commands for me so I don't have to type them every time?
xrandr gdm3
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
on debian to use my two monitors I have to run (from a running X):
$ xrandr --setprovideroutputsource modesetting NVIDIA-0
and:
$ xrandr --output HDMI-0 --mode 1920x1080 --primary --pos 0x0 --output VGA-1-1 --mode 1920x1080 --pos 1920x0
How can I make gdm run those commands for me so I don't have to type them every time?
xrandr gdm3
on debian to use my two monitors I have to run (from a running X):
$ xrandr --setprovideroutputsource modesetting NVIDIA-0
and:
$ xrandr --output HDMI-0 --mode 1920x1080 --primary --pos 0x0 --output VGA-1-1 --mode 1920x1080 --pos 1920x0
How can I make gdm run those commands for me so I don't have to type them every time?
xrandr gdm3
asked Aug 3 at 20:13
Antonio Giungato
161
161
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
You can create a shell script and place it in ~/.config/autostart
(create the directory manually if it doesn't exist) so it is executed after GDM starts.
#!/bin/bash
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --output HDMI-0 --mode 1920x1080 --primary --pos 0x0 --output VGA-1-1 --mode 1920x1080 --pos 1920x0
Make sure to make the shell script executable with chmod u+x
.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
You can create a shell script and place it in ~/.config/autostart
(create the directory manually if it doesn't exist) so it is executed after GDM starts.
#!/bin/bash
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --output HDMI-0 --mode 1920x1080 --primary --pos 0x0 --output VGA-1-1 --mode 1920x1080 --pos 1920x0
Make sure to make the shell script executable with chmod u+x
.
add a comment |Â
up vote
1
down vote
You can create a shell script and place it in ~/.config/autostart
(create the directory manually if it doesn't exist) so it is executed after GDM starts.
#!/bin/bash
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --output HDMI-0 --mode 1920x1080 --primary --pos 0x0 --output VGA-1-1 --mode 1920x1080 --pos 1920x0
Make sure to make the shell script executable with chmod u+x
.
add a comment |Â
up vote
1
down vote
up vote
1
down vote
You can create a shell script and place it in ~/.config/autostart
(create the directory manually if it doesn't exist) so it is executed after GDM starts.
#!/bin/bash
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --output HDMI-0 --mode 1920x1080 --primary --pos 0x0 --output VGA-1-1 --mode 1920x1080 --pos 1920x0
Make sure to make the shell script executable with chmod u+x
.
You can create a shell script and place it in ~/.config/autostart
(create the directory manually if it doesn't exist) so it is executed after GDM starts.
#!/bin/bash
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --output HDMI-0 --mode 1920x1080 --primary --pos 0x0 --output VGA-1-1 --mode 1920x1080 --pos 1920x0
Make sure to make the shell script executable with chmod u+x
.
answered Aug 3 at 20:21
orekix
611
611
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f460411%2fxrandr-commands-from-gdm%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password