What determines {default} location of :0, :1 & :2?

Felix Miata mrmazda at earthlink.net
Mon Jul 8 22:44:07 PDT 2013


On 2013-07-08 19:09 (GMT+0200) Thomas Lübking composed:

> Felix Miata wrote:

>> On 2013-07-07 20:28 (GMT+0200) Thomas Lübking composed:

>>> Occupy vt1-6
>>> https://wiki.archlinux.org/index.php/Systemd_FAQ#Q:_How_do_I_change_the_number_of_gettys_running_by_default.3F

>> It helps. I don't use Arch.

> The distro does actually not matter (ultimately one point about systemd)

In theory. It seems distro personalities typically require some form of 
deviation.

>>    sed -i 's/TTYVTDisallocate=yes/TTYVTDisallocate=no/'

> I don't think that would have any direct impact on the current issue.

True, but it is related, and also required following each new installation. 
Two birds, one stone.

>> In Fedora 19 and Mageia 3, prompts get started on vts 1-6, KDM
>> goes to vt7, but on vt4, where I login to run startx -- :1, is
>> where the 2nd X session is found instead of as expected on vt8.

> echo $XDG_VTNR
> unset it in doubt

Unset it where....?

> the interpretation is likely done in /etc/X11/xinit/xserverrc

In Mageia 3:
No xserverrc file anywhere in /.
XDG_VTNR # matches vt # where startx was run, or 7 if session started via KDM 
running prior to startx.

:(

In Fedora 19:
/etc/X11/xinit/xserverrc last written in Feb. 2009 contains no such string 
XDG or VTNR.
XDG_VTNR # matches vt # where startx was run, or 7 if session started via KDM 
running prior to startx.

:-(

FWIW:
When troubleshooting X I run the script following in Konsole on session start 
to capture a summary of system and X configuration. I created it originally 
as a means of self-identifying configuration of fullscreen X session 
screenshots I commonly attach to bug reports.

# run this in X terminal
echo "$ grep 'using VT' /var/log/Xorg.`echo ${DISPLAY##*:}`.log"
grep 'using VT' /var/log/Xorg.`echo ${DISPLAY##*:}`.log
echo $ grep PRETTY /etc/os-release
grep PRETTY /etc/os-release
echo "$ head -n7 /var/log/Xorg.`echo ${DISPLAY##*:}`.log"
head -n7 /var/log/Xorg.`echo ${DISPLAY##*:}`.log
echo "$ grep Output /var/log/Xorg.`echo ${DISPLAY##*:}`.log | egrep -v 
'disconnected|no monitor'"
grep Output /var/log/Xorg.`echo ${DISPLAY##*:}`.log | egrep -v 
'disconnected|no monitor'
#grep Output /var/log/Xorg.`echo $DISPLAY|cut -d: -f2`.log | egrep -v 
'disconnected|no monitor'
echo $ 'grep -v ^\# /etc/X11/xorg.conf.d/50-monitor.conf | grep DisplaySize'
grep -v ^\# /etc/X11/xorg.conf.d/50-monitor.conf | grep DisplaySize
echo $ 'grep -v ^\# /etc/X11/xorg.conf | grep DisplaySize'
grep -v ^\# /etc/X11/xorg.conf | grep DisplaySize
echo $ 'grep -v ^\# /etc/X11/xorg.conf.d/50-monitor.conf | grep PreferredMode'
grep -v ^\# /etc/X11/xorg.conf.d/50-monitor.conf | grep PreferredMode
echo $ 'grep -v ^\# /etc/X11/xorg.conf | grep PreferredMode'
grep -v ^\# /etc/X11/xorg.conf | grep PreferredMode
echo "$ xrdb -query | grep dpi"
xrdb -query | grep dpi
echo "$ xdpyinfo | egrep 'dime|ution'"
xdpyinfo | egrep 'dime|ution'
echo "$ xrandr | head -n5"
xrandr | head -n5
-- 
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

  Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/


More information about the xorg mailing list