help installazione driver e due schede video debian testing

17 risposte [Ultimo contenuto]
Ritratto di daniel_tex
daniel_tex
(Junior)
Offline
Junior
Iscritto: 16/10/2011
Messaggi: 9

Ciao,
ho due schede video un intel hd integrata e una nvidia geforce gt540.
con il comando lspci

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: nVidia Corporation GF106 [GeForce GT 555M SDDR3] (rev a1)

ho installato i driver nvidia da questa guida http://wiki.debian.org/it/NvidiaGraphicsDrivers#Libraries
ho prvaoto a creare il file xorg.conf così:
# apt-get install nvidia-xconfig
# nvidia-xconfig

questo è il file xorg.conf che mi crea nvidia:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 280.13  (pbuilder@cake)  Mon Aug  8 15:37:15 UTC 2011
 
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
    EndSubS

però non va mi dice che non trova lo screen e il device,ho dovuto rimuore il file /etc/X11/xorg.conf.
provato a usare il file che ha creato nvidia modificandolo a mano ma niente.

è possibile usare entranbe le shcede video oppure ne posso utilizzare solo una? Impostare una di default e l'altra se voglio utilizzarla a mio piacimento.

Come DE ho KDE e se vado in centro d'informazione--->impostazioni grafiche--->OpenGL mi da l'errore impossibile imizializzare opengl.

Help... Confused

Grazie

Ritratto di mcortese
mcortese
(Guru)
Offline
Guru
Iscritto: 27/02/2009
Messaggi: 639

Credo che tu debba dire esplicitamente a X quale delle due schede vuoi usare, modificando la sezione Device così:

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusID          "PCI:1:0:0"
EndSection

Ritratto di daniel_tex
daniel_tex
(Junior)
Offline
Junior
Iscritto: 16/10/2011
Messaggi: 9

Provato a aggiungere la riga ma niente. riavvio il pc schermo nero.
ho dovuto rimovere il file xorg.conf
sotto c'è la configurazione del file xorg

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 280.13  (pbuilder@cake)  Mon Aug  8 15:37:15 UTC 2011
 
Section "Module"
   Load		"glx"
EndSection
 
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"
    BusID	   "PCI:1:0:0"
EndSection
 
Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Confused Confused
Crying

con il comando lsmod | grep nvida

  nvidia              11817658  0 
i2c_core               23909  7 videodev,nvidia,i915,drm_kms_helper,drm,i2c_algo_bit,i2c_i801
 

con il comando glxinfo | grep rendering

Invalid MIT-MAGIC-COOKIE-1 keyError: unable to open display :0

Ora sono senza fil xorg appena installata la debian avevo come scheda video di default la intel hd integrata ma niente file xorg in /etc/X11/xorg.conf.

Dopo che ho fatto l'installazione dei driver nvidia ora non ho nememno la La scheda integrata.

Ritratto di daniel_tex
daniel_tex
(Junior)
Offline
Junior
Iscritto: 16/10/2011
Messaggi: 9

ho provato anche a dare questo comando Xorg -configure il file che mi crea è questo:

Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	Screen      1  "Screen1" RightOf "Screen0"
	Screen      2  "Screen2" RightOf "Screen1"
	Screen      3  "Screen3" RightOf "Screen2"
	Screen      4  "Screen4" RightOf "Screen3"
	Screen      5  "Screen5" RightOf "Screen4"
	Screen      6  "Screen6" RightOf "Screen5"
	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  "glx"
	Load  "extmod"
	Load  "dri"
	Load  "record"
	Load  "dri2"
	Load  "dbe"
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 "Monitor"
	Identifier   "Monitor1"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection
 
Section "Monitor"
	Identifier   "Monitor2"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection
 
Section "Monitor"
	Identifier   "Monitor3"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection
 
Section "Monitor"
	Identifier   "Monitor4"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection
 
Section "Monitor"
	Identifier   "Monitor5"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection
 
Section "Monitor"
	Identifier   "Monitor6"
	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",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "SWcursor"           	# [<bool>]
        #Option     "HWcursor"           	# [<bool>]
        #Option     "NoAccel"            	# [<bool>]
        #Option     "ShadowFB"           	# [<bool>]
        #Option     "VideoKey"           	# <i>
        #Option     "WrappedFB"          	# [<bool>]
        #Option     "GLXVBlank"          	# [<bool>]
        #Option     "ZaphodHeads"        	# <str>
        #Option     "PageFlip"           	# [<bool>]
	Identifier  "Card0"
	Driver      "nouveau"
	BusID       "PCI:1:0:0"
EndSection
 
Section "Device"
	Identifier  "Card1"
	Driver      "nvidia"
	BusID       "PCI:1:0:0"
EndSection
 
Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "DRI"                	# [<bool>]
        #Option     "ColorKey"           	# <i>
        #Option     "VideoKey"           	# <i>
        #Option     "FallbackDebug"      	# [<bool>]
        #Option     "Tiling"             	# [<bool>]
        #Option     "LinearFramebuffer"  	# [<bool>]
        #Option     "Shadow"             	# [<bool>]
        #Option     "SwapbuffersWait"    	# [<bool>]
        #Option     "TripleBuffer"       	# [<bool>]
        #Option     "XvMC"               	# [<bool>]
        #Option     "XvPreferOverlay"    	# [<bool>]
        #Option     "DebugFlushBatches"  	# [<bool>]
        #Option     "DebugFlushCaches"   	# [<bool>]
        #Option     "DebugWait"          	# [<bool>]
        #Option     "HotPlug"            	# [<bool>]
        #Option     "RelaxedFencing"     	# [<bool>]
	Identifier  "Card2"
	Driver      "intel"
	BusID       "PCI:0:2:0"
EndSection
 
Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "ShadowFB"           	# [<bool>]
        #Option     "Rotate"             	# <str>
        #Option     "fbdev"              	# <str>
        #Option     "debug"              	# [<bool>]
	Identifier  "Card3"
	Driver      "fbdev"
	BusID       "PCI:0:2:0"
EndSection
 
Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "ShadowFB"           	# [<bool>]
        #Option     "Rotate"             	# <str>
        #Option     "fbdev"              	# <str>
        #Option     "debug"              	# [<bool>]
	Identifier  "Card4"
	Driver      "fbdev"
	BusID       "PCI:1:0:0"
EndSection
 
Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "ShadowFB"           	# [<bool>]
        #Option     "DefaultRefresh"     	# [<bool>]
        #Option     "ModeSetClearScreen" 	# [<bool>]
	Identifier  "Card5"
	Driver      "vesa"
	BusID       "PCI:0:2:0"
EndSection
 
Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "ShadowFB"           	# [<bool>]
        #Option     "DefaultRefresh"     	# [<bool>]
        #Option     "ModeSetClearScreen" 	# [<bool>]
	Identifier  "Card6"
	Driver      "vesa"
	BusID       "PCI:1: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 "Screen"
	Identifier "Screen1"
	Device     "Card1"
	Monitor    "Monitor1"
	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 "Screen"
	Identifier "Screen2"
	Device     "Card2"
	Monitor    "Monitor2"
	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 "Screen"
	Identifier "Screen3"
	Device     "Card3"
	Monitor    "Monitor3"
	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 "Screen"
	Identifier "Screen4"
	Device     "Card4"
	Monitor    "Monitor4"
	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 "Screen"
	Identifier "Screen5"
	Device     "Card5"
	Monitor    "Monitor5"
	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 "Screen"
	Identifier "Screen6"
	Device     "Card6"
	Monitor    "Monitor6"
	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

l'ho provato ma niente.

Ritratto di mcortese
mcortese
(Guru)
Offline
Guru
Iscritto: 27/02/2009
Messaggi: 639

In /var/log dovresti trovare dei file chiamati Xorg.*.log, lì dentro sono riportati gli eventuali errori preceduti da (EE). Vedi se riesci a darci qualche info in più, perché la frase «l'ho provato ma niente» non permette una diagnosi.

Ritratto di daniel_tex
daniel_tex
(Junior)
Offline
Junior
Iscritto: 16/10/2011
Messaggi: 9

Vi allego i files logs... uno è un vecchio file log.

Leggendo vedo che non riesce ad inizializare i driver GLX e non trova il driver X per Nvidia

Grazie

AllegatoDimensione
xorg.0.log_.1.txt 30.14 KB
xorg.0.log_.txt 31.2 KB
Ritratto di mcortese
mcortese
(Guru)
Offline
Guru
Iscritto: 27/02/2009
Messaggi: 639

Entrambi i log riportano che non hanno trovato alcun file di configurazione e quindi usano una configurazione preimpostata, secondo la quale, trovando due schede video, quella da usare è la prima:

[    16.519] (--) PCI:*(0:0:2:0) 8086:0116:1043:1642 rev 9, Mem @ 0xdc400000/4194304, 0xb0000000/268435456, I/O @ 0x0000e000/64
[    16.519] (--) PCI: (0:1:0:0) 10de:0df4:1043:1642 rev 161, Mem @ 0xdb000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000d000/128, BIOS @ 0x????????/524288

L'asterisco indica che la scheda all'indirizzo PCI:0:0:2:0 (cioè la Intel) è quella in uso, e infatti va avanti caricando il driver "intel" etc. Probabilmente se a questo punto colleghi un monitor alla scheda Intel vedrai che X sta girando.

Il problema è che nessuno dei duei log sembra essere relativo a quando X carica uno dei file di configurazione che hai postato precedentemente. Si dovrebbero vedere molte righe precedute da (**) e dovrebbe citare i nomi delle sezioni che hai definito nel file di configurazione. Guarda qui:

[    16.444] (**) |-->Screen "Default Screen Section" (0)
[    16.444] (**) |   |-->Monitor "<default monitor>"

Se avesse letto i file di configurazione da te citati, dovresti invece avere nomi come "Screen0" e "Monitor0". Sei sicuro di averli installati correttamente in /etc/X11/xorg.conf?

Ritratto di lucazpf
lucazpf
(Newbie)
Offline
Newbie
Iscritto: 16/10/2011
Messaggi: 3

Ciao, hai provato ad installare i driver della tua scheda video nvidia usando module-assistant?
io con quello ho risolto i miei problemi relativi alle schede video
qui c'è la descrizione di come ho fatto
http://bit.uz/F1k

Ritratto di Marco-S
Marco-S
(Geek)
Offline
Geek
Iscritto: 08/04/2005
Messaggi: 90

Ciao, i portatili nuovi con processore intel, montano quasi tutti Sandy Bridge, architettura di decima generazione prodotta da intel. Tra le varie caratteristiche tecniche di questa nuova architettura, c'è anche un comparto grafico; una scheda grafica integrata (intel);
nVidia per le schede dedicate da montare sui portatili con questa architettura, ha sviluppato la Tecnologia Optimus, che entra in funzione "solo" nel momento in cui hai bisogno di accelerazione 3D e potenza grafica; questa nuova tecnologia permette quindi di avere un buon risparmio energetico sulla batteria.

nVidia Optimus

Ora il punto qual'è? Che tutto questo bellissimo sistema è stato sviluppato e ottimizzato solo per Windows, e funziona anche bene. Ma non per linux. Cioè invidia non ha messo a disposizione driver per gestire la scheda quando è richiesto.

Se vuoi quindi utilizzare il Pc, devi utilizzare la scheda Intel.

Comunque sia, un Team di sviluppo fatto da utenti si è messo all'opera per far funzionare la shceda nVidia sotto Linux.

dai un'occhio qui: http://forums.nvidia.com/index.php?showtopic=159508

Spero di essere stato un pò utile.

Ritratto di daniel_tex
daniel_tex
(Junior)
Offline
Junior
Iscritto: 16/10/2011
Messaggi: 9

@ mcortese
Ora ho rimosso tutto quello che è nvidia. Quando creavo il file xorg e avviavo il pc vedevo scremo nero. eliminaol il file xorg dalla cartella X11 il pc partiva.

@ lucazpf
provato ma niente.

@ Marco-S
In due parole attualmente non posso utilizzare le due schede video insieme. Fin quì tutto OK.
Se volessi utilizzare solo la scheda nvidia non potrei farlo.

****************

A questo punto non capisco dove cavolo va a prendere il file di configurazione. Confused

Ora come ora... non so come muovermi. Sad

Ritratto di Marco-S
Marco-S
(Geek)
Offline
Geek
Iscritto: 08/04/2005
Messaggi: 90

Quello che per ora ti consiglio di fare è: utilizza il pc con la scheda intel; da quello che leggo ti parte tranquillamente se non configuri xorg.conf
Per quanto riguarda l'utilizzo della scheda nVidia, secondo me i tempi non sono ancora maturi.

QUI trovi un how-to su come poter installare dei driver ad HOC e switchare su nVidia quando hai bisogno. Attenzione però, passi alla scheda nVidia solo per utilizzare gli applicativi; in pratica Xorg parte con la Intel e poi se vuoi, lanci un'applicazione facendole utilizzare la scheda nVidia. Il problema è che la cosa non è in automatico, come accade per su Windows; sei tu che manualmente devi lanciare l'applicazione dicendole di utilizzare la scheda nVidia.