You are not logged in.
Pages: 1
Hi, guys.
I am using Arch on my laptop. When I am at home, I use my laptop plugged in a 23" flat screen via HDMI port.
But when I use it plugged in to the external monitor, the system boots showing the image only on the external screen, like I want. But when X starts, it mirrors between both screens, in a 1024x768 resolution and I need to change manually by the laptop hotkeys to change screen to "only external".
Is there any way to make X starts only on external monitor when the monitor is plugged in? Then when I am out, using only the laptop, it appears normally (like it currently does) on the laptop resolution. Like:
Case 1
X will detect that the external monitor is plugged in then will show the image only on the external monitor, on its native resolution (1920x1080).
Case 2
External monitor is not plugged in. So X will start with the image running normally on the laptop screen, with its native resolution (1366x768).
Thanks in advance for any help,
R.
Offline
I'm guessing you could use this script. Automating it should be possible by creating a udev rule which basically executes the script when the external monitor is detected.
Burninate!
Offline
Sorry about bumping an old thread. I was away for a long time.
Looks like this script can be useful, but is there any way for it to detect the displays before GDM starts, and when GDM starts, it already loads with the right resolution, instead of the low-resolution clone?
Thanks anyway, Gcool. Your reply was really helpful.
Offline
/proc and /sys provide ways of checking for monitor presence. Try adapting the script to use these before GDM is started and xrandr after.
6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.
Offline
Pages: 1