Xorg wizards

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Xorg wizards

Karl Godt
Administrator
Xorg has evolved and is creating weird /root/xorg.conf.new when run as Xorg -configure .

Partly probably because of the evolved 3.X kernel series .

While 2.6.30s and Xorg create "normal" xorg.conf , I get two or three monitor sections, even when only one monitor connected to the pc or the
netbook LED screen is the only active one and no second monitor is attached .

Here I want to exchange experiences and collect links to the murga-forum , which are about multi-monitor setups .

This one is one I remember :  http://murga-linux.com/puppy/viewtopic.php?t=79870 Dual Monitor setup for desktop .....Don't delay, step on up!

Goal is to handle new and old xorg.conf sections by xorgwizard .
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Xorg wizards

Karl Godt
Administrator
Here's Slacko with second monitor attached to EEEpc 1005HAG that has a resolution of 1024x600 . Second monitor is 1920x1080 .

Slacko 561 Xorg 1.12

Here's Macpup Foxy3 based on Puppy 4.3 Xorg-1.3.0 kernel 3.9.9-KRG-iCore2-smp-pae-srv1000gz

Fox3 Puppy 4.3 Xorg-1.3.0

Please tell me any resolution enhancements .

Thanks.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Xorg wizards

Karl Godt
Administrator
Today booted the AsusTeK 1005HAG into the current Slacko-5.6.1 without having attached the second monitor to it .
When X was up , I attached the second monitor and it stayed uninitialized .
Doing a wmexit, the second monitor became active .

Starting xwin gave me that resolution :

Monitor attached after starting the machine 


At the commandline again I typed xorgwizard-cli and there have chosen the modesetting driver entry.
I thought that this modesetting entry would reload the driver i915 with modeset=1 parameter.
Honestly, I was believing, that this entry would be some kind of joke.
Running xwin gave me this screen layout :

/usr/lib/xorg/modules/drivers/modesetting_drv.so

The 2nd monitor was displaying the correct resolution of 1920x1080 and the netbook's monitor stayed off .
Curiously I navigated to  /usr/lib/xorg/modules/drivers/ and behold, there really is one modesetting_drv.so
The source can be found at ftp://ftp.freedesktop.org/pub/xorg/individual/driver/ 
, it is not a standard driver in ftp://ftp.freedesktop.org/pub/xorg/current/src/driver/ directory.
Manualpage found here : http://www.manpager.com/linux/man4/modesetting.4.html

Both these new xorgwizard 's lack the feature to force the redrawing of the dive icons if resolution changes.
The xorgwizard script checks for Xserver version and without informing the user, switches to xorgwizard-cli if Xserver ge 1.11.0 .
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Xorg wizards

Karl Godt
Administrator
/usr/sbin/ddcprobe is another problem .

It only seems to detect one monitor or card or output port, even if there are several possible to be probed .

ddcprobe output was constantly giving the netbooks specs , even in modesetting driver mode :

vbe: VESA 3.0 detected.
oem: Intel(r) 82945GM Chipset Family Graphics Chip Accelerated VGA BIOS
vendor: Intel Corporation
product: Intel(r) 82945GM Chipset Family Graphics Controller Hardware Version 0.0
memory: 7872kb
mode: 1280x1024x256
mode: 1280x1024x64k
mode: 1280x1024x16m
mode: 1024x768x256
mode: 1024x768x64k
mode: 1024x768x16m
mode: 640x480x16m
mode: 800x600x64k
mode: 800x600x16m
mode: 640x480x256
mode: 800x600x256
mode: 640x480x64k
edid: 
edid: 1 3
id: 03e9
eisa: HSD03e9
serial: 0000dc72
manufacture: 26 2009
input: analog signal.
screensize: 22 13
gamma: 2.200000
dpms: RGB, no active off, no suspend, no standby
dtiming: 1024x600@64
monitorrange: 34-41, 55-65
monitorname: HSD100IFW1

When the 2nd monitor was attached before powering on the machine, ddcprobe only showed specs for the externally attached monitor :
vbe: VESA 3.0 detected.
oem: Intel(r) 82945GM Chipset Family Graphics Chip Accelerated VGA BIOS
vendor: Intel Corporation
product: Intel(r) 82945GM Chipset Family Graphics Controller Hardware Version 0.0
memory: 7872kb
mode: 1280x1024x256
mode: 1280x1024x64k
mode: 1280x1024x16m
mode: 1024x768x256
mode: 1024x768x64k
mode: 1024x768x16m
mode: 640x480x16m
mode: 800x600x64k
mode: 800x600x16m
mode: 640x480x256
mode: 800x600x256
mode: 640x480x64k
edid: 
edid: 1 3
id: 08ab
eisa: SAM08ab
serial: 30323136
manufacture: 39 2012
input: separate sync, composite sync, sync on green, analog signal.
screensize: 48 27
gamma: 2.200000
dpms: RGB, active off, no suspend, no standby
timing: 720x400@70 Hz (VGA 640x400, IBM)
timing: 720x400@88 Hz (XGA2)
timing: 640x480@60 Hz (VGA)
timing: 640x480@67 Hz (Mac II, Apple)
timing: 640x480@72 Hz (VESA)
timing: 640x480@75 Hz (VESA)
timing: 800x600@60 Hz (VESA)
timing: 800x600@72 Hz (VESA)
timing: 800x600@75 Hz (VESA)
timing: 832x624@75 Hz (Mac II)
timing: 1024x768@87 Hz Interlaced (8514A)
timing: 1024x768@70 Hz (VESA)
timing: 1024x768@75 Hz (VESA)
timing: 1280x1024@75 (VESA)
ctiming: 1152x864@75
ctiming: 1280x800@60
ctiming: 1280x1280@60
ctiming: 1280x1024@60
ctiming: 1440x1440@60
ctiming: 1600x1000@60
ctiming: 1680x1680@60
dtiming: 1920x1080@67
monitorrange: 30-81, 56-75
monitorname: S22B300
monitorserial: H4MC910537

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Xorg wizards

Karl Godt
Administrator
In reply to this post by Karl Godt
One has to notice, that since around xserver-1.7 modesetting for intel's i915.ko driver needs to be enabled when the kernel driver gets loaded,
 to get xinit launching Xorg . Othererwise Xorg will not detect devices .

Xorg -configure puts in intel into /root/xorg.conf.new, even if i915 is loaded with modeset=0 .

Loading i915.ko with as /sbin/modprobe -vr  i915;/sbin/modprobe -v i915 modeset=1 does not automatically alter the linux console prompt.
fbcon.ko then has to be automatically pulled in by i915.ko or loaded afterwards manually ( if not compiled into the kernel ) .

When fbcon finally changes the linux console, I get for xsever-1.7.7 until xserver-1.9.5 at the very ends Segmentation Fault at Xorg -configure - the /root/xorg.conf.new gets written correctly though and Xorg starts also correctly with "xwin" script . Without the altered console this segmentation fault does not occur .


FontPath     "PREFIX/lib/X11/fonts/misc/" up till xserver-1.7.7 had changed in 1.8.2 to   FontPath     "PREFIX/share/fonts/X11/misc/"
 

xserver-1.9 introduced         ### <percent>: "<f>%"    in the  "Device" Section;
the '%'percent sign breaks Puppy-4 xorgwizard that use
 $(cat /root/xorg.conf.new | tr '\n' '%' | sed 's/EndSection/EndSection\n/g' )
I worked around that by using
$(cat /root/xorg.conf.new | busybox sed 's%$%D__ELIMITE__R%' | tr -d '\n' | sed 's/EndSection/EndSection\n/g' )
and
$(echo "$ASECTION" | busybox sed 's%D__ELIMITE__R%\n%g')
 5 lines up.
I am not sure if that
## My (Dougal) alternate code:
######################################################################
#  Rather than pipe data to "while read", I use "here document" (at bottom),
#  so that the loop doesn't run in a subshell -- hence variables
#  (like HORIZSYNC0) are retained after the loop has ended..
is up-to-date or useful at all any more .
It is quite useful to write the sections into different files in
[ 22533.831] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
directory like
01_ServerLayout.conf
03_Files.conf
05_Module.conf
and so on.
The line about ' config directory "/usr/share/X11/xorg.conf.d" ' appears for me first with xserver-1.8 .
I configure with --prefix=/usr/X11* and would have expected ' config directory "PREFIX/share/X11/xorg.conf.d" ' .
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Xorg wizards

Karl Godt
Administrator
In reply to this post by Karl Godt
Today I played a bit with xrandr :

# xrandr --output VGA1 --auto
# xrandr --output VGA1 --below LVDS1
# xrandr -q
Screen 0: minimum 320 x 200, current 1280 x 1624, maximum 4096 x 4096
LVDS1 connected 1024x600+0+0 (normal left inverted right x axis y axis) 220mm x 129mm
   1024x600       65.0*+
   800x600        60.3  
VGA1 connected 1280x1024+0+600 (normal left inverted right x axis y axis) 376mm x 301mm
   1280x1024      60.0*+   75.0  
   1280x960       75.0     60.0  
   1152x864       75.0  
   1024x768       75.1     70.1     60.0  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   640x480        72.8     75.0     66.7     60.0  
   720x400        70.1  

/root/.jwmrc-tray for to place the taskbar somewhere useful :
<Tray  autohide="false" insert="right" x="0" y="600" border="1" height="40" >

xrandr experiments

I tried before with editing xorg.conf to achieve that Xorg handles both screens separately at their max resolutions at 1024x600 and 1280x1024 and failed :
Section "ServerLayout"
	Identifier "Default Layout"
	Screen "Screen0" 0 0
	Screen "Screen1" 0 0
	InputDevice "Keyboard0" "CoreKeyboard"
	InputDevice "Mouse0" "CorePointer"
	InputDevice "SynapticsMouse" "AlwaysCore" #serverlayoutsynaptics
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option      "XkbRules" "xorg"
	Option      "XkbModel" "pc102"
	Option      "XkbLayout" "de" #xkeymap0
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Device" "/dev/input/mice"
	Option	    "Protocol" "IMPS/2" #mouse0protocol
	#Option      "Emulate3Buttons"
	#Option      "Emulate3Timeout" "50"
	Option      "ZAxisMapping" "4 5" #scrollwheel
EndSection

Section "InputDevice"
	Identifier "SynapticsMouse"
	Driver "synaptics"
	Option "SHMConfig" "on"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
	HorizSync    34-45
	VertRefresh  59-65
	UseModes     "Modes0" #monitor0usemodes
	Option      "PreferredMode" "1024x600"
EndSection

Section "Monitor"
	Identifier   "Monitor1"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
	HorizSync    34-45
	VertRefresh  59-65
	UseModes     "Modes1" #monitor1usemodes
	Option      "PreferredMode" "1280x1024"
EndSection

Section "Modes"
	Identifier "Modes0"
	ModeLine "1024x600" 51.00  1024 1117 1152 1230  600 617 622 638 -hsync -vsync #modes0modeline0
EndSection

Section "Modes"
	Identifier "Modes1"
	ModeLine "1280x1024" 108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync #modes1modeline0
EndSection

Section "Device"
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "DRI"                	# [<bool>]
        #Option     "ColorKey"           	# <i>
        #Option     "VideoKey"           	# <i>
        #Option     "FallbackDebug"      	# [<bool>]
        #Option     "Tiling"             	# [<bool>]
        #Option     "LinearFramebuffer"  	# [<bool>]
        #Option     "Shadow"             	# [<bool>]
        #Option     "SwapbuffersWait"    	# [<bool>]
        #Option     "TripleBuffer"       	# [<bool>]
        #Option     "XvMC"               	# [<bool>]
        #Option     "XvPreferOverlay"    	# [<bool>]
        #Option     "DebugFlushBatches"  	# [<bool>]
        #Option     "DebugFlushCaches"   	# [<bool>]
        #Option     "DebugWait"          	# [<bool>]
        #Option     "HotPlug"            	# [<bool>]
        #Option     "RelaxedFencing"     	# [<bool>]
        #Option     "BufferCache"        	# [<bool>]
	Identifier  "card0"
	Driver      "intel" #card0driver
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	DefaultDepth 24
	#Option         "metamodes" "1024x600_60 +0+0" #METAMODES_0
	Subsection "Display"
		Depth       24
		Modes       "Modes0" "1024x600"
	EndSubsection
EndSection

Section "Screen"
	Identifier "Screen1"
	Device     "Card0"
	Monitor    "Monitor1"
	DefaultDepth 24
	#Option         "metamodes" "1024x600_60 +0+0" #METAMODES_0
	Subsection "Display"
		Depth       24
		Modes       "Modes1" "1280x1024"
	EndSubsection
EndSection
#PuppyHardwareProfile=Intel_r__82945GM_ChipsetHSD100IFW1

Loading...