Dodawanie wpisów do xorg.conf - compiz

Zagadnienia dotyczące menadżerów okien, środowisk graficznych - X, KDE, GNOME, Fluxbox, XFCE., Compiz itp.
BHOY
Posty: 10
Rejestracja: 15 lutego 2010, 18:49

Dodawanie wpisów do xorg.conf - compiz

Post autor: BHOY »

Cześć.
Dla umilenia pracy postanowiłem zainstalować Compiza. Instalacja przebiegła bez problemu, pojawia się on dopiero przy dodawaniu wpisów do xorg.conf.

Jak poprawnie dodać te wpisy z http://wiki.debian.org/Compiz tak by grafika się nie posypała?
Używam karty graficznej od Nvidi, sterowniki do niej są zainstalowane.

Mój oryginalny xorg.conf:

Kod: Zaznacz cały

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	"dri"
	Load  "extmod"
	Load  "dbe"
	Load	"glx"
	Load  "dri2"
	Load  "record"
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: [i]: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "SWcursor"           	# [<bool>]
        #Option     "HWcursor"           	# [<bool>]
        #Option     "NoAccel"            	# [<bool>]
        #Option     "ShadowFB"           	# [<bool>]
        #Option     "UseFBDev"           	# [<bool>]
        #Option     "Rotate"             	# [<str>]
        #Option     "VideoKey"           	# [i]
        #Option     "FlatPanel"          	# [<bool>]
        #Option     "FPDither"           	# [<bool>]
        #Option     "CrtcNumber"         	# [i]
        #Option     "FPScale"            	# [<bool>]
        #Option     "FPTweak"            	# [i]
        #Option     "DualHead"           	# [<bool>]
	Identifier  "Card0"
	Driver	"nvidia"
	Option      "Coolbits"	"1"
	Option      "AddARGBGLXVisuals"	"true"
	Option      "TripleBuffer"	"false"
	VendorName  "nVidia Corporation"
	BoardName   "G94 [GeForce 9600 GT]"
	BusID       "PCI:2:0: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

Section "Extensions"
#	Option      "Composite"	"disable"
#	Option      "RENDER"	"disable"
EndSection
Awatar użytkownika
RA1D3N
Posty: 22
Rejestracja: 13 lipca 2009, 00:14

Post autor: RA1D3N »

Do xorg.conf dodaj takie coś

Kod: Zaznacz cały

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

Section "DRI"
	Mode 0666
EndSection
i w Section "Module" dodaj

Kod: Zaznacz cały

        Load    "i2c"
        Load    "bitmap"
   	Load 	"dbe"
        Load    "ddc"
        Load    "dri"
	Load	"drm"
        Load    "extmod"
        Load    "freetype"
	Load 	"type1"
        Load    "glx"
        Load    "int10"
        Load    "vbe"
a do Section "Device" dodaj

Kod: Zaznacz cały

        Option          "AddARGBGLXVisuals"     "True"
        Option          "RenderAccel"           "True"
	Option          "AllowGLXWithComposite" "True"
BHOY
Posty: 10
Rejestracja: 15 lutego 2010, 18:49

Post autor: BHOY »

Dodałem te wpisy, nic się nie wysypało, grafika działa ale po wpisaniu polecenia:

Kod: Zaznacz cały

compiz -replace
dalej znikają obramowania okien.

xorg.conf po edycji:

Kod: Zaznacz cały

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

Section "DRI"
    Mode 0666
EndSection
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	"dri"
	Load  "extmod"
	Load  "dbe"
	Load	"glx"
	Load  "dri2"
	Load  "record"
   	Load    "i2c"
        Load    "bitmap"
        Load     "dbe"
        Load    "ddc"
        Load    "dri"
   	Load    "drm"
        Load    "extmod"
        Load    "freetype"
    	Load     "type1"
        Load    "glx"
        Load    "int10"
        Load    "vbe"
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: [i]: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "SWcursor"           	# [<bool>]
        #Option     "HWcursor"           	# [<bool>]
        #Option     "NoAccel"            	# [<bool>]
        #Option     "ShadowFB"           	# [<bool>]
        #Option     "UseFBDev"           	# [<bool>]
        #Option     "Rotate"             	# [<str>]
        #Option     "VideoKey"           	# [i]
        #Option     "FlatPanel"          	# [<bool>]
        #Option     "FPDither"           	# [<bool>]
        #Option     "CrtcNumber"         	# [i]
        #Option     "FPScale"            	# [<bool>]
        #Option     "FPTweak"            	# [i]
        #Option     "DualHead"           	# [<bool>]
	Identifier  "Card0"
	Driver	"nvidia"
	Option      "Coolbits"	"1"
	Option      "AddARGBGLXVisuals"	"true"
	Option      "TripleBuffer"	"false"
	Option          "AddARGBGLXVisuals"     "True"
        Option          "RenderAccel"           "True"
    	Option          "AllowGLXWithComposite" "True"
VendorName  "nVidia Corporation"
BoardName   "G94 [GeForce 9600 GT]"	
BusID       "PCI:2:0: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

Section "Extensions"
#	Option      "Composite"	"disable"
#	Option      "RENDER"	"disable"
EndSection
Awatar użytkownika
RA1D3N
Posty: 22
Rejestracja: 13 lipca 2009, 00:14

Post autor: RA1D3N »

Sekcja "Screen" powinna wyglądać tak

Kod: Zaznacz cały

    Identifier "Screen0" 
    Device     "Card0" 
    Monitor    "Monitor0" 
    SubSection "Display" 
   DefaultDepth    24
    SubSection "Display" 
        Viewport   0 0 
        Depth     24 
    EndSubSection
i usuń z końca

Kod: Zaznacz cały

Section "Extensions" 
#    Option      "Composite"    "disable" 
#    Option      "RENDER"    "disable" 
EndSection 
giaur
Member
Posty: 1915
Rejestracja: 25 maja 2007, 22:16

Post autor: giaur »

Nie trzeba nic dotykać do konfiguracji xorg-a. Warunki:
- najnowszy xorg
- najnowszy kernel
- najnowsze sterowniki do karty (i, na Zeusa NIE Z REPOZYTORIUM tylko od producenta)
BHOY
Posty: 10
Rejestracja: 15 lutego 2010, 18:49

Post autor: BHOY »

No niestety coś robię nie tak i Compiz nie chce działać. Mimo wszystko dzięki za pomoc.
Andros
Posty: 48
Rejestracja: 11 marca 2009, 17:27
Lokalizacja: Lublin

Post autor: Andros »

Może ktoś jednak zna jakieś rozwiązanie bo też mam ten sam problem

[ Dodano: |23 Lut 2010|, 2010 21:08 ]
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder75) Tue Dec 8 21:04:28 PST 2009

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
moja konfiguracja X'ow, comipz niby dziala ale mam dziwny problem, obramowanie okien jest ale nie można otwartym oknem ruszać, minimalizować itp
ODPOWIEDZ