vendredi 29 janvier 2010

Karmix and xorg.conf

To my big surprise Vmware 7 and Karmix are working together perfectly.
For now CPP4, arp warp, phenix are install easly without any trouble.
I just got some difficulties with imosflm.
It appears when the X11 is not well setup that imosflm display extremely big and ugly fonts.
The only way to fix that is to configure properly the X11.
Only trouble no more xorg.conf in the karmix. BOUH!!!!!

However after some tricks, you can create one which by default will not work, but gives the framework.

You have to stop the x server
sudo service gdm stop

Note: replace gdm by kdm depending of your Ubuntu version.

Login

And now we will create a default xorg.conf

sudo Xorg -configure

this will create in your home directory a file call:

xorg.conf.new

Which looks like:

# Section "ServerLayout"
# Identifier "X.org Configured"
# Screen 0 "Screen0" 0 0
# InputDevice "Mouse0" "CorePointer"
# InputDevice "Keyboard0" "CoreKeyboard"
# EndSection
# Section "Files"
# ModulePath "/usr/lib/xorg/modules"
# FontPath "/usr/share/fonts/X11/misc"
# FontPath "/usr/share/fonts/X11/cyrillic"
# FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
# FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
# FontPath "/usr/share/fonts/X11/Type1"
# FontPath "/usr/share/fonts/X11/100dpi"
# FontPath "/usr/share/fonts/X11/75dpi"
# FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
# FontPath "built-ins"
# EndSection
#Section "Module"
# Load "record"
# Load "dbe"
# Load "dri"
# Load "dri2"
# Load "glx"
# Load "extmod"
#EndSection
#Section "InputDevice"
# Identifier "Keyboard0"
# Driver "kbd"
#EndSection
#Section "InputDevice"
# Identifier "Mouse0"
# Driver "mouse"
# Option "Protocol" "auto"
# Option "Device" "/dev/input/mice"
# Option "ZAxisMapping" "4 5 6 7"
# EndSection
#Section "Monitor"
# Identifier "Monitor0"
# VendorName "Monitor Vendor"
# ModelName "Monitor Model"
#EndSection
# Section "Device"
# ### Available Driver options are:-
# ### Values: : integer, : float, : "True"/"False",
# ### : "String", : " Hz/kHz/MHz"
# ### [arg]: arg optional
# #Option "HWcursor" # []
# #Option "Xinerama" # []
# #Option "StaticXinerama" #
# Identifier "Card0"
# Driver "vmware"
# VendorName "VMware"
# BoardName "SVGA II Adapter"
# BusID "PCI:0:15:0"
# EndSection
#Section "Screen"
# Identifier "Screen0"
# Device "Card0"
# Monitor "Monitor0"
# SubSection "Display"
# Viewport 0 0
# Depth 1
# EndSubSection
# SubSection "Display"
# Viewport 0 0
# Depth 4
# EndSubSection
# SubSection "Display"
# Viewport 0 0
# Depth 8
# EndSubSection
# SubSection "Display"
# Viewport 0 0
# Depth 15
# EndSubSection
# SubSection "Display"
# Viewport 0 0
# Depth 16
# EndSubSection
# SubSection "Display"
# Viewport 0 0
# Depth 24
# EndSubSection
#EndSection

So now you have to make some modifications about the Screen section and the Monitor section, which are controlled by vmware.

for the monitor replace the section by:


Section "Monitor"
Identifier "vmware"
VendorName "VMware, Inc"
HorizSync 1-10000
VertRefresh 1-10000
EndSection

And for the display (for me a laptop 15” screen)

Section "Screen"
Identifier "Default Screen"
Device "VMware SVGA"
Monitor "vmware"
# Don't specify DefaultColorDepth unless you know what you're
# doing. It will override the driver's preferences which can
# cause the X server not to run if the host doesn't support the
# depth.
Subsection "Display"
# VGA mode: better left untouched
Depth 4
Modes "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 8
Modes "1366x768"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 15
Modes "1366x768"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 16
Modes "1366x768"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 24
Modes "1366x768"
ViewPort 0 0
EndSubsection
EndSection

Becarefull to change also the Section "ServerLayout"
by replacing
Screen0
by

Default Screen

Record your modified xorg.conf under
/etc/X11/
Restart
And it should work
Mosflm has a correct display
tata!!!!