<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ejs &#187; XOrg</title>
	<atom:link href="http://ejs.seniejitrakai.net/tag/xorg/feed/" rel="self" type="application/rss+xml" />
	<link>http://ejs.seniejitrakai.net</link>
	<description>a snaphot of time</description>
	<lastBuildDate>Mon, 09 Jan 2012 22:10:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>More complicated KDM and Xorg configuration on my laptop</title>
		<link>http://ejs.seniejitrakai.net/2007/01/10/more-complicated-xorg-configuration-on-my-laptop/</link>
		<comments>http://ejs.seniejitrakai.net/2007/01/10/more-complicated-xorg-configuration-on-my-laptop/#comments</comments>
		<pubDate>Tue, 09 Jan 2007 22:08:09 +0000</pubDate>
		<dc:creator>ejs</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[Cinerella]]></category>
		<category><![CDATA[virtual desktop]]></category>
		<category><![CDATA[XOrg]]></category>

		<guid isPermaLink="false">http://ejs.seniejitrakai.net/?p=40</guid>
		<description><![CDATA[The 1024&#215;768 screen of my laptop from ESC is quite small. I got it when I had to change some preferences in Cinelerra. The confirmation buttons were far below the edge of the screen. Well, manually editing files in ~/.bcast is a bit time-consuming, so i really needed these buttons There were two ways to [...]]]></description>
			<content:encoded><![CDATA[<p><a class="imagelink" target="_new" href="http://ejs.seniejitrakai.net/wp-content/uploads/desktop.png" title="the initial size of the desktop"><img class="right" src="http://ejs.seniejitrakai.net/wp-content/uploads/desktop.thumbnail.png" alt="the initial size of the desktop" /></a></p>
<p>The 1024&#215;768 screen of my laptop from ESC is quite small. I got it when I had to change some preferences in Cinelerra. The confirmation buttons were far below the edge of the screen.</p>
<p>
Well, manually editing files in ~/.bcast is a bit time-consuming, so i really needed these buttons <img src='http://ejs.seniejitrakai.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>There were two ways to press the button: either use bigger, so called &#8216;virtual&#8217; desktop, or try to run two X serers with different layouts.<br />
Using virtual desktops is more simple. Just add &#8220;Virtual x y&#8221; lines to /etc/X11/xorg.conf and you are done. The minor problem is that when the window gets maximized, it expand over the whole virtual desktop, not just the visible part of it.<br />
The other way is more interesting. I should mention I prefer KDM as desktop manager.<br />
So, good old Goooooogle showed me the way: <a href="//http://www.oclug.on.ca/archives/oclug/2004-August/040531.html">[1]</a> and <a href="http://www.phildev.net/linux/x.html">[2]</a>. The first one is quite interesting, but seems like kdm from KDE 3.5.5 is not reading Xservers file at all.<br />
The temporary workaround is to use the ugly XDM as desktop manager. <span id="more-40"></span></p>
<p>So, the XDM solution is:<br />
edit /etc/X11/xdm/Xservers and choose one of the methods proposed:</p>
<blockquote><p>
# three ways: either use &#8216;-layout&#8217; option and specify ServerLayout:<br />
:0 local /usr/bin/X :0 vt7 -nolisten tcp -layout Default<br />
:1 local /usr/bin/X :1 vt8 -nolisten tcp -layout Huge</p>
<p># or use separate xorg.conf file, like this<br />
#:0 local /usr/bin/X :0 vt7 -nolisten tcp -config /etc/X11/xorg.conf<br />
#:1 local /usr/bin/X :1 vt8 -nolisten tcp -config /etc/X11/xorg.virtual.conf</p>
<p># or use &#8216;-screen&#8217; option<br />
#:0 local /usr/bin/X :0 vt7 -nolisten tcp -screen Default\ Screen<br />
#:1 local /usr/bin/X :1 vt8 -nolisten tcp -screen Huge\ Screen
</p>
</blockquote>
<p>and either create xorg.virtual.conf or edit xorg.conf accordingly:</p>
<blockquote><p>
&#8230;<br />
Section &#8220;Screen&#8221;<br />
        Identifier      &#8220;Default Screen&#8221;<br />
        Device          &#8220;Generic Video Card&#8221;<br />
        Monitor         &#8220;Generic Monitor&#8221;<br />
        DefaultDepth    24<br />
        &#8230;<br />
        SubSection &#8220;Display&#8221;<br />
                Depth           24<br />
                Modes            &#8220;1024&#215;768&#8243; &#8220;1280&#215;1024&#8243; &#8220;1600&#215;1200&#8243;<br />
        EndSubSection<br />
EndSection</p>
<p>Section &#8220;Screen&#8221;<br />
        Identifier      &#8220;Huge Screen&#8221;<br />
        Device          &#8220;Generic Video Card&#8221;<br />
        Monitor         &#8220;Generic Monitor&#8221;<br />
        DefaultDepth    24<br />
        &#8230;<br />
        SubSection &#8220;Display&#8221;<br />
                Depth           24<br />
                Modes            &#8220;1024&#215;768&#8243; &#8220;1280&#215;1024&#8243; &#8220;1600&#215;1200&#8243;<br />
                Virtual         2400 1600<br />
        EndSubSection<br />
EndSection</p>
<p>Section &#8220;ServerLayout&#8221;<br />
        Identifier      &#8220;Default&#8221;<br />
        Screen          &#8220;Default Screen&#8221;<br />
        &#8230;<br />
EndSection</p>
<p>Section &#8220;ServerLayout&#8221;<br />
        Identifier      &#8220;Huge&#8221;<br />
        Screen          &#8220;Huge Screen&#8221;<br />
    &#8230;<br />
EndSection
</p>
</blockquote>
<p>stop KDM, start XDM and you&#8217;re done.</p>
<p><a class="imagelink" href="http://ejs.seniejitrakai.net/wp-content/uploads/huge_desktop.png" target="_new" alt="my current desktop on vt8" > <img src="http://ejs.seniejitrakai.net/wp-content/uploads/huge_desktop.thumbnail.png" alt="my current desktop on vt8" /></a></p>
<p>And now, the most interesting part (for me): KDM configuration.</p>
<p>I used single xorg.conf file with multiple ServerLayout&#8217;s</p>
<p>/etc/kde3/kdm/kdmrc:</p>
<blockquote><p>
# KDM master configuration file<br />
&#8230;<br />
[General]<br />
&#8230;<br />
# List of permanent displays. Displays with a hostname are foreign. A display<br />
# class may be specified separated by an underscore.<br />
# Default is &#8220;:0&#8243;<br />
StaticServers=:0,:1<br />
# List of on-demand displays. See StaticServers for syntax.<br />
# Default is &#8220;&#8221;<br />
ReserveServers=:2,:3<br />
# VTs to allocate to X-servers. A negative number means that the VT will be<br />
# used only if it is free. If all VTs in this list are used up, the next free<br />
# one greater than the last one in this list will be allocated.<br />
# Default is &#8220;&#8221;<br />
ServerVTs=-7,-8,-9,-10<br />
# TTYs (without /dev/) to monitor for activity while in console mode.<br />
# Default is &#8220;&#8221;<br />
ConsoleTTYs=tty1,tty2,tty3,tty4,tty5,tty6<br />
&#8230;</p>
<p># Greeter config for all displays<br />
[X-*-Greeter]<br />
&#8230;<br />
LogoArea=Clock<br />
&#8230;<br />
# Default is &#8220;Welcome to Debian at %n&#8221;<br />
GreetString=Welcome to Debian at %n %d<br />
&#8230;</p>
<p># Core config for 1st local display<br />
[X-:0-Core]<br />
# The VT the X-server should run on; auto-assign if zero, don&#8217;t assign if -1.<br />
# Better leave it zero and use ServerVTs.<br />
# Default is 0<br />
#ServerVT=7<br />
&#8230;<br />
ServerArgsLocal=-nolisten tcp -layout Default</p>
<p># Core config for local displays<br />
[X-:1-Core]<br />
ServerAttempts=2<br />
ServerVT=8<br />
# The command line to start the X-server, without display number and VT spec.<br />
# This string is subject to word splitting.<br />
# Default is &#8220;/usr/bin/X -br&#8221;<br />
ServerCmd=/usr/bin/X :1 -br<br />
# Additional arguments for the X-servers for local sessions.<br />
# This string is subject to word splitting.<br />
# Default is &#8220;&#8221;<br />
ServerArgsLocal=-nolisten tcp -layout Huge<br />
AllowNullPasswd=true<br />
AllowShutdown=All</p>
<p># Greeter config for 1st local display<br />
[X-:0-Greeter]<br />
&#8230;
</p>
</blockquote>
<p>That&#8217;s all. Enjoy.</p>
<p><a class="imagelink" href="http://ejs.seniejitrakai.net/wp-content/uploads/very_huge_desktop.png" title="my really huge desktop" target="_new" ><img class='center' src="http://ejs.seniejitrakai.net/wp-content/uploads/very_huge_desktop.thumbnail.png" alt="my really huge desktop" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://ejs.seniejitrakai.net/2007/01/10/more-complicated-xorg-configuration-on-my-laptop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

