You are not logged in.
Pages: 1
Today i configure xrandr to finally use my two monitors,everything works fine with i3 and stuff.The only problem that i have is that i have to run the: "sudo xrandr --output DP-1-0 --auto --output DP-1 --auto --right-of DP-1-0" command every time i launch to have dual monitors enabled.
Here's the xandr output:
Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 16384 x 16384
DP-1 connected primary 1920x1080+1920+0 (normal left inverted right x axis y axis) 598mm x 336mm
1920x1080 60.00*+ 165.00 144.00 120.00 119.88 50.00 59.94
1680x1050 59.95
1280x1024 75.02 60.02
1440x900 59.89
1280x960 60.00
1152x864 75.00
1280x720 60.00 50.00 59.94
1440x576 50.00
1024x768 75.03 70.07 60.00
1440x480 60.00 59.94
800x600 72.19 75.00 60.32 56.25
720x576 50.00
720x480 60.00 59.94
640x480 75.00 72.81 66.67 60.00 59.94
720x400 70.08
HDMI-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-3 disconnected (normal left inverted right x axis y axis)
DP-1-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 598mm x 336mm
1920x1080 60.00*+ 74.97 59.94 50.00
1680x1050 59.95
1600x1200 60.00
1440x900 74.98 59.89
1280x1024 75.02 60.02
1280x960 60.00
1280x720 60.00 59.94 50.00
1152x720 59.97
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x480 59.94
640x480 75.00 59.94 59.93
Offline
Welcome to the forum.
Please use code tags for terminal output
[code]
your code here
[/code]You should not need sudo for this command. If you always boot with both screens turned on, then you could execute xrandr in your i3 config.
https://wiki.archlinux.org/title/I3#Autostart
Otherwise configure an automatic tool to configure your screen and add that to your autostart.
https://archlinux.org/packages/community/any/autorandr/ or
https://archlinux.org/packages/community/x86_64/grobi/
Last edited by progandy (2023-04-28 19:55:03)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |
Offline
You probably don't want to use xrandr at all and under no circumstances sudo it.
Get the sudo-will-fix-it mentality out of your head afap.
https://wiki.archlinux.org/title/Multih … _xorg.conf
Section "Monitor"
Identifier "DP-1"
Option "Enable" "True" # this is the default anyway
Option "Primary" "True"
Option "RightOf" "DP-1-0"
EndSection
Section "Monitor"
Identifier "DP-1-0"
Option "Enable" "True"
Option "Primary" "False"
Option "LeftOf" "DP-1" # you need only one of the positional options, preferably for the optional output
EndSectionOffline
Pages: 1