Vai al sommario della pagina
 

Miniguida per abilitare XGL su Ubuntu Dapper (schede nvidia >5600fx)

ATTENZIONE: questa guida è obsoleta. Consiglio a tutti di farsi un giro su http://pollycoke.wordpress.com/ e provare alcune delle sue guide :)

Il contenuto di questa pagina è tratto da XGL Install and General Tips For Gnome and Nvidia e HowTo XGL.

Screenshot

Il cubo con sullo sfondo l'effetto skydome VLC in azione Lo switcher aggiornato Il plugin Opacity in azione sul filmato visualizzato tramite VLC Zoom e Skydome Skydome animato ed immagine svg applicata al lato superiore del cubo: il nuovo Compiz presente su ubuntuforums permette anche questo. Finestre "liquide". Zoom

Filmati

Aggiornare il sistema

Abilitare il repository universe.

Aggiornare il sistema:

sudo apt-get update
sudo apt-get upgrade

Installare driver scheda grafica

Da shell eseguire il seguente comando:

sudo apt-get install nvidia-kernel-common nvidia-glx

Configurare X

Da shell eseguire:

sudo gedit /etc/X11/xorg.conf

Nella finestra che si apre trovare la sezione Section “Module” commentare le righe che richiamano i moduli Glcore e dri ed aggiungere il modulo glx in questo modo:

# Load "GLcore" 
# Load "dri"
  Load "glx"

Modificare il contenuto della sezione Section “Devices” come segue, facendo attenzione a non modificare la riga Identifier:

Section "Device"
  Identifier ...
  Driver    "nvidia"
  BusID     "PCI:1:0:0"
  Option    "RenderAccel"            "true"
  Option    "AllowGLXWithComposite"  "true" 
EndSection

Salvare e chiudere il file.

Installare XGL

Da terminale eseguire:

sudo apt-get install compiz xserver-xgl libgl1-mesa xserver-xorg libglitz-glx1 compiz-gnome

Sul forum di ubuntu è ora disponibile la versione aggiornata dei pacchetti compiz e compiz-gnome con supporto alle immagini svg (necessita dei pacchetti libsvg e libsvg-cairo) che abilitano di default anche gli effetti “opacity” e “skydome” (semplice ed animato) oltre ad apportare vari miglioramenti ed aumentare la stabilità e compatibilità con gli altri programmi. Una volta scaricati i nuovi pacchetti è sufficiente installarli con dpkg -i nomepacchetto.deb avendo cura di installare prima i pacchetti libsvg*.deb. Per abilitare l’effetto opacity è necessario aggiungere opacity alla lista dei plugin disponibili.

Per eseguire XGL all’avvio di gnome:

sudo gedit /etc/gdm/gdm.conf-custom

Eliminarne tutto il contenuto del file (si perdono eventuali eventuali personalizzazioni) e sostituirlo con il seguente:

# GDM Configuration Customization file.
#
# This file is the appropriate place for specifying your customizations to the
# GDM configuration.   If you run gdmsetup, it will automatically edit this
# file for you and will cause the daemon and any running GDM GUI programs to
# automatically update with the new configuration.  Not all configuration
# options are supported by gdmsetup, so to modify some values it may be
# necessary to modify this file directly by hand.
#
# To hand-edit this file, simply add or modify the key=value combination in
# the appropriate section in the template below.  Refer to the comments in the
# gdm.conf file for information about each option.  Also refer to the reference
# documentation.
#
# If you hand edit a GDM configuration file, you should run the following
# command to get the GDM daemon to notice the change.  Any running GDM GUI
# programs will also be notified to update with the new configuration.
#
# gdmflexiserver --command="UPDATE_CONFIG <configuration key>"
#
# For example, the "Enable" key in the "[debug]" section would be specified by
# "debug/Enable".
#
# You can also run gdm-restart or gdm-safe-restart to cause GDM to restart and
# re-read the new configuration settings.  You can also restart GDM by sending
# a HUP or USR1 signal to the daemon.  HUP behaves like gdm-restart and causes
# any user session started by GDM to exit immediately while USR1 behaves like
# gdm-safe-restart and will wait until all users log out before restarting GDM.
#
# For full reference documentation see the gnome help browser under
# GNOME|System category.  You can also find the docs in HTML form on
# http://www.gnome.org/projects/gdm/
#
# NOTE: Lines that begin with "#" are considered comments.
#
# Have fun!

[daemon]

[security]

[xdmcp]

[gui]

[greeter]

[chooser]

[debug]

[servers]# Override display 1 to use Xgl (DISPLAY 1 IMPORTANT FOR ATI FGLRX). 
0=Xgl 

[server-Xgl] 
name=Xgl server 
command=/usr/bin/Xgl :0 -fullscreen -ac -accel glx:pbuffer -accel xv:fbo 
flexible=true

Abilitare compiz

Metodo 1 (manuale)

Creare un file da eseguire all’avvio di Gnome contenente i comandi necessari per eseguire compiz:

sudo gedit /usr/bin/StartCompiz

Inserire nel file vuoto appena creato il seguente contenuto:

#!/bin/bash
gnome-window-decorator &  compiz --replace gconf decoration wobbly fade minimize cube rotate zoom scale move resize place switcher &

Se si è installata l’ultima versione di compiz è necessario aggiungere il plugin opacity alla lista dei plugin disponibili per abilitare l’effetto di trasparenza delle finestre: gnome-window-decorator & compiz –replace gconf decoration wobbly fade minimize cube rotate zoom scale move resize place switcher opacity &

Salvare il file e renderlo eseguibile:

sudo chmod 755 /usr/bin/StartCompiz

Ora da shell inserire il comando StartCompiz per abilitare il tutto.

Metodo 2 (Gnome Session Manager)

Con Gnome in esecuzione premere la sequenza di tasti ALT+F2 ed inserire nella riga di comando il seguente contenuto:

compiz --replace gconf decoration wobbly fade minimize cube rotate zoom scale move resize place menu switcher

Poi selezionare il menu Sistema –> Preferenze –> Sessioni –> Programmi d’avvio –> Aggiungi. Ed inserire il comando gnome-window-decorator; ripetere la stessa procedura ed inserire il comando compiz gconf.

Uscire (logout) e rientrare in Gnome per abilitare il tutto.

Risoluzione problemi vari

Scattosità finestre

Eseguire il comando gconf-editor, poi selezionare apps –> compiz –> general –> screen0 –> option e disabilitare l’opzione detect_refresh_rate. Infine impostare l’opzione refresh_rate a 60.

Problemi layout tastiera

Eseguire da shell il seguente comando per risolvere eventuali problemi con il riconoscimento della tastiera:

setxkbmap -model pc105 -layout it -variant basic

Compiz non funziona correttamente

Da shell eseguire:

sudo gedit /etc/X11/xorg.conf

Aggiungere alla fine del file di configurazione di X la seguente sezione:

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

Link utili

 
linux/vari/guida_xgl_ubuntu.txt · Ultima modifica: 27/10/2006 15:35
 

Contenuto disponibile sotto GNU Free Documentation License

Recent changes RSS feed GNU Free Documentation License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki