Installazione dei driver VIA

Da EcoTux.

Jump to: navigation, search

Il chipset grafico nell'EcoTux Senior è supportato dai driver openChrome disponibili nella maggior parte delle distribuzioni recenti, e dovrebbe essere riconosciuto automaticamente da X.org.

Per eventuali problemi residui vedere l'articolo Troubleshooting di openChrome.

Questa pagina viene lasciata per ragioni storiche, e per chi volesse usare distribuzioni datate.

L'EcoTux Senior comprende una scheda grafica VIA CX700 supportata non dai driver standard di x.org, ma dai driver openchrome.

Attenzione: i driver openchrome sono un progetto in continua evoluzione, e alcune versioni potrebbero causare instabilità al sistema. Se si incontrano problemi, usare il driver vesa di xorg è un'alternativa stabile.

Contents

Prerequisiti

  • Un kernel recente (il 2.6.23 sembra funzionare, ci sono delle patch per i 2.6.2[12])
  • I tool di compilazione ed alcuni header
  • I driver openchrome

Installazione

  • Installare i tool di configurazione e gli header di xorg, tramite i pacchetti della propria distribuzione
In debian, ad esempio

apt-get install subversion build-essential automake1.9 libtool pkg-config
apt-get install xserver-xorg-dev x11proto-core-dev x11proto-fonts-dev \
x11proto-randr-dev x11proto-render-dev x11proto-xf86dri-dev libdrm-dev  x11proto-gl-dev
apt-get install libxvmc-dev libgl1-mesa-dev

openchrome

  • Scaricare e compilare i driver openchrome da [1]

svn co http://svn.openchrome.org/svn/trunk openchrome
cd openchrome
./autogen.sh
./configure --prefix=/usr --enable-maintainer-mode
make
make install

per alcune schede video come la CX700 dell'EcoTux Senior potrebbe essere necessario il branch sperimentale: usare questo comando per il download

svn co http://svn.openchrome.org/svn/branches/experimental_branch openchrome

e procedere come sopra.

Moduli del kernel

  • Scaricare e compilare un kernel recente (>=2.6.23 è testato e funzionante)
È consigliabile compilare il modulo "via-agp" nel kernel, mentre drm-via e drm possono essere moduli; il .config deve contenere:

CONFIG_AGP_VIA=y
CONFIG_DRM_VIA=m
CONFIG_DRM=m

configurazione di x.org

  • Modificare /etc/X11/xorg.conf:
Nella sezione "Device" mettere:

Section "Device"
        Identifier      "VIA graphics"
        Driver          "via"
        BusID           "PCI:1:0:0"

        Option  "SWCursor"      "true"
        Option  "EnableAGPDMA"  "true"
        Option  "NoAGPFor2D"    "true"
EndSection

Si possono anche provare varianti con le seguenti opzioni:

# Option "AccelMethod"  "exa"
# Option "ExaScratchSize" "8192"
# Option "MigrationHeuristic" "greedy"
#
# Option "AgpMem" "62488"
# Option "MaxDriMem" "16384"
# Option "DisableXvBWCheck" "true"
#
# Option  "DisableIRQ"          "true"
# Option  "VBEModes"            "true"

ma alcune possono dare problemi di stabilità.

Prova dell'installazione

  • Avviare X e controllare che funzioni
  • Per provare l'accelerazione hardware si può usare:

glxinfo | grep direct

che dovrebbe dire "yes" e

glxgears -printfps

dove valori attorno al 600 e oltre indicano che l'accelerazione viene usata.

*ubuntu hardy

I driver openchrome sono inclusi in ubuntu 8.04 hardy e si possono installare con

sudo apt-get install xserver-xorg-video-openchrome

e selezionare usando

         Driver          "openchrome"

in /etc/X11/xorg.conf.

Esempio di configurazione

Questo è un esempio di /etc/X11/xorg.conf funzionante per *ubuntu.

Nota: in debian i font sono sotto /usr/share/fonts/X11/ invece di /usr/share/X11/fonts/.

Section "Files"
	FontPath	"/usr/share/fonts/X11/misc"
	FontPath	"/usr/X11R6/lib/X11/fonts/misc"
	FontPath	"/usr/share/fonts/X11/cyrillic"
	FontPath	"/usr/X11R6/lib/X11/fonts/cyrillic"
	FontPath	"/usr/share/fonts/X11/100dpi/:unscaled"
	FontPath	"/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
	FontPath	"/usr/share/fonts/X11/75dpi/:unscaled"
	FontPath	"/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
	FontPath	"/usr/share/fonts/X11/Type1"
	FontPath	"/usr/X11R6/lib/X11/fonts/Type1"
	FontPath	"/usr/share/fonts/X11/100dpi"
	FontPath	"/usr/X11R6/lib/X11/fonts/100dpi"
	FontPath	"/usr/share/fonts/X11/75dpi"
	FontPath	"/usr/X11R6/lib/X11/fonts/75dpi"
	# path to defoma fonts
	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
	Load	"i2c"
	Load	"bitmap"
	Load	"ddc"
	Load	"dri"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"vbe"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc104"
	Option		"XkbLayout"	"us"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ImPS/2"
	Option		"Emulate3Buttons"	"true"
EndSection

Section "Device"
	Identifier	"VIA graphics"
	Driver		"via"
	BusID		"PCI:1:0:0"

	Option	"SWCursor"	"true"
	Option	"EnableAGPDMA"	"true"
	Option	"NoAGPFor2D"	"true"

# Some option you can want 
#
# Option "AccelMethod"	"exa"
# Option "ExaScratchSize" "8192"
# Option "MigrationHeuristic" "greedy"
#
# Option "AgpMem" "62488"
# Option "MaxDriMem" "16384"
# Option "DisableXvBWCheck" "true"
#
# Option  "DisableIRQ"		"true"
# Option  "VBEModes"		"true"

EndSection

Section "Monitor"
	Identifier	"Monitor Generico"
	Option		"DPMS"
	HorizSync	28-96
	VertRefresh	50-75
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"VIA graphics"
	Monitor		"Monitor Generico"
	DefaultDepth	24
	SubSection "Display"
		Depth		1
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		4
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		8
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		15
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
EndSection

Section "DRI"
	Mode	0666
EndSection

# You really want EXA Acceleration to have a good composition
# But EXA is still unstable, even with VIA
#
# Section "Extensions"
# 	Option "Composite"	"enable"
# EndSection

Vedi anche

Personal tools
Altre lingue