Compiz - 3 Boyutlu masaüstü ortamını ayarlanması

Truva Linux Wiki sitesinden
Atlantis (Mesaj) tarafından oluşturulmuş 15:05, 23 Mayıs 2008 tarihli sürüm (Xorg.conf dosyasının düzenlenmesi)

(fark) ← Önceki hâli | en güncel halini göster (fark) | Sonraki hâli → (fark)
Atla: kullan, ara

Bu makale halen tasarım aşamasındadır. Dikkatli olmanızda fayda vardır.

Xorg.conf dosyasının düzenlenmesi

Truva Linux altında 3 boyutlu masaüstü ortamını ayarlamak için yapmanız gerekenler aşağıda anlatılmıştır. Bu işlemler Truva Linux 2.0 deneme sürümleri ve Intel ekran kartı üzerinde denenmiştir.


Öncelikle yapmanız gereken /etc/X11/xorg.conf dosyasını ekran kartınıza göre yapılandırmaktır. Biz şu an için ayarlı olduğunu farzediyoruz.

 kdesu /etc/X11/xorg.conf 

komutu ile xorg.conf dosyasını açıyoruz.


Section "Module" yazan kısıma aşağıdaki satırı ekliyoruz.

 Load "glx"


Section "Device" yazan kısıma aşağıdaki satırları ekliyoruz.

 
 Option "RenderAccel"             "true"
 Option "AllowGLXWithComposite"   "true"
 Option "XAANoOffscreenPixmaps"   "true"
 Option "AddARGBGLXVisuals"       "true"


Section "ServerLayout" yazan kısıma aşağıdaki satırı ekliyoruz.

 
 Option  "AIGLX"  "true"


Dosyanın sonuna aşağıdaki satırları ekliyoruz.

 Section "Extensions"
   Option  "Composite"  "Enable"
 EndSection


ATI ekran kartları için ekstradan;

Section "Module" yazan kısıma aşağıdaki satırı ekliyoruz.

 Load "dri"

Section "Device" yazan kısıma aşağıdaki satırı ekliyoruz.

 Option  "DRI" "true"

Dosyanın sonuna aşağıdaki satırları ekliyoruz.

 Section "DRI"
    Mode 0666
 EndSection


Tüm bu ayarlar yapıldıktan sonra Compiz'i başlatmak için gereken betiği hazırlıyoruz. Bir metin editörü açıp aşağıdakileri metin editörüne kopyalıyoruz ve "baslat" gibi bir isim verip kaydediyoruz.

 #!/bin/sh
 LIBGL_ALWAYS_INDIRECT=1 compiz --indirect-rendering --replace decoration clone minimize move place png regex \ esize screenshot svg water blur zoom wobbly fade cube switcher scale rotate &
 kde-window-decorator --replace &


Compiz'i sonlandırmak için de aşağıda yazanları da yine metin editörü açıp kopyalıyoruz ve "bitir" gibi bir isimle kaydediyoruz.

 #!/bin/sh
 killall kde-window-decorator
 killall compiz


Artık X ortamını yeniden başlatın ve masaüstü açıldıktan sonra konsoldan "basla" betiğini çalıştırın ve 3 boyutlu masaüstü keyfini yaşamaya başlayın.

Örnek Xorg.conf dosyaları

Aşağıda çeşitli ekran kartlarına ait örnek Xorg.conf dosyaları verilmiştir.

Intel Ekran Kartı

Section "Files"
	RgbPath      "/usr/share/X11/rgb"
	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "/usr/share/fonts/TTF"
	FontPath     "/usr/share/fonts/OTF"
	FontPath     "/usr/share/fonts/Type1"
	FontPath     "/usr/share/fonts/misc"
	FontPath     "/usr/share/fonts/75dpi/:unscaled"
EndSection

Section "Module"
	Load  "synaptics"
	Load  "xtrap"
	Load  "dbe"
	Load  "dri"
	Load  "GLcore"
	Load  "extmod"
	Load  "record"
	Load  "glx"
	Load  "freetype"
	Load  "type1"
EndSection

Section "ServerFlags"
#    Option     "NoTrapSignals"
#    Option     "DontVTSwitch"
#    Option     "DontZap"
#    Option     "DontZoom"
#    Option     "DisableVidModeExtension"
#    Option     "AllowNonLocalXvidtune"
#    Option     "DisableModInDev"
#    Option     "AllowNonLocalModInDev"
#    Option      "blank time"    "10"    # 10 minutes
#    Option      "standby time"  "20"
#    Option      "suspend time"  "30"
#    Option      "off time"      "60"

# Option   "EstimateSizesAggresively" "0"

EndSection

Section "dri"
# Access to OpenGL ICD is allowed for all users:
    Mode 0666
# Access to OpenGL ICD is restricted to a specific user group:
#    Group 100    # users
EndSection

Section "Extensions"
        Option "Composite" "Enable"
EndSection

Section "InputDevice"
	Identifier	"Keyboard1"
	Driver	"kbd"
#	Option     "Protocol"      "Xqueue"
#	Option     "AutoRepeat"    "500 5"
#	Option     "Xleds" "1 2 3"
#	Option     "XkbDisable"

	Option     "XkbRules"      "xorg"
	Option     "XkbModel"      "pc105"
	Option     "XkbLayout"     "tr"
#	Option     "XkbVariant"    "us"
	Option     "XkbOptions"    ""
EndSection

Section "InputDevice"
# Identifier and driver
	Identifier "Mouse1"
	Driver	     "mouse"
	Option	     "Protocol" "Auto"
	Option	     "Device" "/dev/mouse"
#	Option     "Protocol" "Xqueue"
#	Option     "BaudRate" "9600"
#	Option     "SampleRate"	"150"
#	Option     "Emulate3Buttons"
#	Option     "Emulate3Timeout" "50"
#	Option     "ChordMiddle"
	Option     "ZAxisMapping" "4 5"
EndSection

Section "InputDevice" 
	Identifier    "Pad1" 
	Driver        "synaptics" 
	Option           "Protocol" "auto-dev" 
	Option           "Device" "/dev/tp1" 
	Option        "LeftEdge"      "1700" 
	Option        "RightEdge"     "5300" 
	Option        "TopEdge"       "1700" 
	Option        "BottomEdge"    "4200" 
	Option        "FingerLow"     "25" 
	Option        "FingerHigh"    "30" 
	Option        "MaxTapTime"    "180" 
	Option        "MaxTapMove"    "220" 
	Option        "VertScrollDelta" "100" 
	Option        "MinSpeed"      "0.09" 
	Option        "MaxSpeed"      "0.18" 
	Option        "AccelFactor"   "0.0015" 
	Option        "SHMConfig"     "on" 
EndSection 

Section "Monitor"
	Identifier     "Monitor1"
	VendorName   "LGP"
	ModelName    "657"

	Modeline "1024x768_60.004" 65.000000 1024 1048 1184 1344 768 771 777 806 -HSync -VSync	
	
        HorizSync 31.5 - 50.0
        VertRefresh 40-90
        Option "UseEdidFreqs" "1"

	Option "ReducedBlanking"
EndSection

Section "Device"
	Identifier     "Videocard1"
	VendorName  "Intel Corporation"
	BoardName   "82852/855GM Integrated Graphics Device"
	Driver     "intel"
	BusID       "PCI:0:2:0"
	Option "RenderAccel" "true"
	Option "AllowGLXWithComposite" "true"
	Option "XaanoOffscreenPixmaps" "true"
	Option "AddARGBGLXVisuals" "true"
	Option "DRI" "true"
EndSection

Section "Screen"
    Identifier  "Videoconfig"
    Device      "Videocard1"
    Monitor     "Monitor1"

   DefaultDepth 24

    Subsection "Display"
        Depth       8
        Modes "1024x768_60.004" "1280x1024" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes "1024x768_60.004" "1280x1024" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes "1024x768_60.004" "1280x1024" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       32
        Modes "1024x768_60.004" "1280x1024" "1024x768" "800x600" "640x480"
    EndSubsection
EndSection

Section "ServerLayout"
	Identifier		"Simple Layout"
	Screen			"Videoconfig"
	InputDevice		"Mouse1" "CorePointer"
	InputDevice		"Pad1" "SendCoreEvents"
	InputDevice		"Keyboard1" "CoreKeyboard"
	Option "AIXGL" "true"
EndSection


Nvidia Ekran Kartı

ATI Ekran Kartı