I usually use my laptop at my office desk connected to another monitor, using an extended desktop (dual monitors).
Sometimes, I leave the office. But then my laptop doesn't realise that a monitor is missing, and I can't use the computer.
I can solve this problem each time by changing the file /etc/X11/xorg.conf (I have a working copy of each version of xorg.conf so I can just copy the relevant version). However, that is a bit of a pain as either I have to remember to do this before shutting down, or I must boot in a recovery mode and make the change.
Question: Is it possible to write a script to check automatically when booting, and copy the relevent xorg.conf to /etc/X11?
Bookmarks