Talk:Xrandr

From ArchWiki
Latest comment: 21 March by BBamba in topic Toggle external monitor script

The last section needs to show how to make this change permanent

The one about the interlace pattern artifact. Using the command shown fixes the issue, but once you change the resolution again, the problem comes back. —This unsigned comment is by Ezequiel.ezb (talk) 19:25, 2 June 2021‎. Please sign your posts with ~~~~!

Are you referring to Xrandr#Dynamic_interlace_pattern_artifacts_with_AOC_G2590PX? Aren't other examples, such as Xrandr#Permanently_adding_undetected_resolutions, sufficient to demonstrate how to make the change permanent? Regid (talk) 16:57, 30 October 2022 (UTC)Reply[reply]

Toggle external monitor script

Refer: Xrandr#Toggle external monitor

If, for some reason, the $extern is not detected by Xrandr and the script is run on Autostarting#On Xorg startup, then isn't the user left with no display?

The xrandr | grep "$extern disconnected" defaults to false if external display is not detected, consequently leading to xrandr --output "$intern" --off which turns off the default display/laptop screen.

Isn't the following a better way to approach this:

if xrandr | grep "$extern connected"; then

xrandr --output "$intern" --off --output "$extern" --auto

else

xrandr --output "$intern" --auto BBamba (talk) 03:55, 21 March 2024 (UTC)Reply[reply]