I have an awkward screen resolution problem and I can't figure out the problem.
My xsession (xfce/debian on a laptop, I am the only user, lightdm autologged in, a setup with 2 additional monitors) seems to open more or less randomly in two different states regarding screen resolution. The most visible symptom is the size of the fonts in my xterm/gnuscreen window. Here are the links to two screenshots (exactly the same size) showing this:
First state(I called it bad, it's only not the one I want) :
Second state(the good one, the one I want) :
Problem is the xdpyinfo output is exactly the same in both cases :
fmeyer@ganymede:~$ diff goodsmall badlarge fmeyer@ganymede:~$
The Xorg logs do not show anything obvious, a
grep -i dpi in them is inline here :
Ideally, I am searching for a way to fix this randomness in a way or another.
Less ideally, I am looking for a way to identify in which state the server is so I can script the adjustment of my xterm font size.
Any idea on what is happening here and where it is happening?
EDIT: Summary of ideas, attempts and their outcome as of 20180518_0950UTC :
made sure that xrandr outputs (not only modes but also verbose outputs) were identical in both cases. Checked.
made sure that xdpyinfo outputs were identical in both cases. Checked.
made sure xterm was allways called with same geometry, font and fontsize, checked.
made sure the problem also appears in single monitor configuration ; same outcome, checked
EDIT #2 Question unanswered but problem solved : I replaced the lightdm autologin with a getty autologin + startx from .bashrc and it seemingly solved the issue.
So the original problem seems to arise from an obfuscated conflict/race/your_guess between lightdm and the X server. I wont investigate further, unless someone reading this wants to track down the issue to its very origin. Thanks to dirkt for his help ruling out some potential causes.