Re: [PLUG] generating an Xorg.conf file for static configuration

2022-05-17 Thread King Beowulf
On 5/16/22 17:36, Keith Lofstrom wrote:
> I am transitioning my desktop from an ancient Redhat 7 distro
> to MATE UBUNTU 20.04 (and later to 22.04.1), which uses
> lightdm as the display manager.  Part of the transition is
> visually comparing thousands of old webpages and documents
> to new, side by side, making sure most information survived
> the transition.
>
> My screens are two rotated displays on KVM switches.  I can
> set up the screens with the GUI, but after I switch one of the
> screens to the other machine, some unknown process loses the
> X configuration.  When I switch back, the display is sideways.
>
> I have a working kludge that fixes that, a looping shell script
> using xrandr that corrects lightdm's poorly designed automatic
> "help" adapting to the "new" screen it badly auto-configures.
>
> The PROPER way might be creating an xorg.conf file that
> permanently configures the screen, preempting lightdm's
> auto-configuration.  However, the format and magic words
> for xorg.conf have evolved beyond the documentation I have,
> and recent man pages are way too generic and nonspecific.
>
> I HOPE to find a TOOL or SCRIPT that probes my displays and
> auto-generates a permanent, static, SPECIFIC xorg.conf file
> that I can install somewhere in the systemd startup maze.
> Failing that, a big collection of RECENT xorg.conf examples
> online, which I can frankenstein into my own static file?
>
> 
> DOES ANYONE KNOW OF SUCH AN xorg.conf GENERATION TOOL,
> and where on the web to find instructions to use it?
> 
>

You can set stuff up with carefully crafted xrandr commands, that you
run when you flip the KVM switch etc, or via commandline after stopping
and exiting X, usually as root, perhaps 'sudo' works. 

# X -configure

or

# Xorg -configure

see 'man Xorg'

The xorg.conf file will be in the home directory.  If you are running
systemd, YMMV.

-Ed





[PLUG] generating an Xorg.conf file for static configuration

2022-05-16 Thread Keith Lofstrom
I am transitioning my desktop from an ancient Redhat 7 distro
to MATE UBUNTU 20.04 (and later to 22.04.1), which uses
lightdm as the display manager.  Part of the transition is
visually comparing thousands of old webpages and documents
to new, side by side, making sure most information survived
the transition.

My screens are two rotated displays on KVM switches.  I can
set up the screens with the GUI, but after I switch one of the
screens to the other machine, some unknown process loses the
X configuration.  When I switch back, the display is sideways.

I have a working kludge that fixes that, a looping shell script
using xrandr that corrects lightdm's poorly designed automatic
"help" adapting to the "new" screen it badly auto-configures.

The PROPER way might be creating an xorg.conf file that 
permanently configures the screen, preempting lightdm's
auto-configuration.  However, the format and magic words
for xorg.conf have evolved beyond the documentation I have,
and recent man pages are way too generic and nonspecific.

I HOPE to find a TOOL or SCRIPT that probes my displays and
auto-generates a permanent, static, SPECIFIC xorg.conf file
that I can install somewhere in the systemd startup maze. 
Failing that, a big collection of RECENT xorg.conf examples
online, which I can frankenstein into my own static file?


DOES ANYONE KNOW OF SUCH AN xorg.conf GENERATION TOOL,
and where on the web to find instructions to use it? 


I've found *MANY* web pages with vague, useless, incorrect,
or outdated instructions.  For web-search tools, "X Window"
returns pages about Windows 10.

Keith

P.S.  Pejoratives about wide screens and low Neanderthal
foreheads unhealthily obsessed about, but omitted.

P.P.S.  https://en.wikipedia.org/wiki/Number_12_Looks_Just_Like_You

-- 
Keith Lofstrom  kei...@keithl.com