[displaylink] echec de la compilation du driver

Reconnaissance et configuration du matériel / kernel linux
Répondre
genesis
Hankyu
Messages : 10
Inscription : jeu. 23 sept. 2010, 16:50

[displaylink] echec de la compilation du driver

Message par genesis »

bonjour,

J'ai recemment fait l'acquisition d'une docking station avec un chipset displaylink pour utiliser sur mon portable sous arch.
J'ai donc suivi ce tuto : https://wiki.archlinux.org/index.php/DisplayLink
mais l'installation de xf86-video-fbdev-for-displaylink echoue avec un code erreur :

Code : Tout sélectionner

In file included from /usr/include/xorg/globals.h:8:0,
                 from /usr/include/xorg/opaque.h:34,
                 from /usr/include/xorg/xf86_OSproc.h:127,
                 from fbdev.c:14:
/usr/include/xorg/extinit.h:107:38: fatal error: X11/extensions/XResproto.h: No such file or directory
compilation terminated.
make[2]: *** [fbdev.lo] Error 1
Effectivement je n'ai aucun fichier XResproto.h dans /usr/include/X11/extensions/
Il semble que le probleme soit évoqué ici :
https://bugs.archlinux.org/task/32146
ou il est question d'un patch du configure.ac file envoyé a xorg-devel....
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10711
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [displaylink] echec de la compilation du driver

Message par FoolEcho »

Salut,

Code : Tout sélectionner

$ pkgfile XResproto.h                                                                      
extra/resourceproto
La dépendance manque donc au PKGBUILD (peut-être faudrait-il xorg-server-devel d'ailleurs...).
«The following statement is not true. The previous statement is true.» :nage:
genesis
Hankyu
Messages : 10
Inscription : jeu. 23 sept. 2010, 16:50

Re: [displaylink] echec de la compilation du driver

Message par genesis »

merci pour ta réponse FoolEcho :)
Je ne connaissais pas la commande pkgfile, bien utile...
J'ai installé resourceproto correctement, la compilation de xf86-video-fbdev-for-displaylink passe "autogen.sh" mais plante sur le "make", comme suit :

Code : Tout sélectionner

make  all-recursive
make[1]: Entering directory `/tmp/yaourt-tmp-stephane/aur-xf86-video-fbdev-for-displaylink/src/xf86-video-fbdev'
Making all in src
make[2]: Entering directory `/tmp/yaourt-tmp-stephane/aur-xf86-video-fbdev-for-displaylink/src/xf86-video-fbdev/src'
  CC       fbdev.lo
fbdev.c: In function 'FBDevFreeRec':
fbdev.c:222:2: warning: 'Xfree' is deprecated (declared at /usr/include/xorg/os.h:234) [-Wdeprecated-declarations]
fbdev.c: In function 'FBDevPciProbe':
fbdev.c:257:9: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
fbdev.c:264:27: warning: assignment from incompatible pointer type [enabled by default]
fbdev.c: In function 'FBDevProbe':
fbdev.c:314:10: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
fbdev.c:379:28: warning: assignment from incompatible pointer type [enabled by default]
fbdev.c:391:2: warning: 'Xfree' is deprecated (declared at /usr/include/xorg/os.h:234) [-Wdeprecated-declarations]
fbdev.c: In function 'FBDevPreInit':
fbdev.c:432:2: warning: passing argument 3 of 'fbdevHWInit' discards 'const' qualifier from pointer target type [enabled by default]
In file included from fbdev.c:32:0:
/usr/include/xorg/fbdevhw.h:21:23: note: expected 'char *' but argument is of type 'const char *'
fbdev.c:488:2: warning: 'Xalloc' is deprecated (declared at /usr/include/xorg/os.h:215) [-Wdeprecated-declarations]
fbdev.c: In function 'FBDevScreenInit':
fbdev.c:728:2: warning: passing argument 1 of 'fbdevHWAdjustFrame' makes pointer from integer without a cast [enabled by default]
In file included from fbdev.c:32:0:
/usr/include/xorg/fbdevhw.h:50:23: note: expected 'ScrnInfoPtr' but argument is of type 'int'
fbdev.c:728:2: error: too many arguments to function 'fbdevHWAdjustFrame'
In file included from fbdev.c:32:0:
/usr/include/xorg/fbdevhw.h:50:23: note: declared here
fbdev.c:773:22: warning: assignment from incompatible pointer type [enabled by default]
fbdev.c:774:23: warning: assignment from incompatible pointer type [enabled by default]
fbdev.c:780:6: warning: 'Xcalloc' is deprecated (declared at /usr/include/xorg/os.h:221) [-Wdeprecated-declarations]
fbdev.c:938:23: warning: assignment from incompatible pointer type [enabled by default]
fbdev.c: In function 'FBDevCloseScreen':
fbdev.c:969:6: warning: 'Xfree' is deprecated (declared at /usr/include/xorg/os.h:234) [-Wdeprecated-declarations]
fbdev.c:973:4: warning: 'Xfree' is deprecated (declared at /usr/include/xorg/os.h:234) [-Wdeprecated-declarations]
fbdev.c:981:2: warning: passing argument 1 of 'pScreen->CloseScreen' makes pointer from integer without a cast [enabled by default]
fbdev.c:981:2: note: expected 'ScreenPtr' but argument is of type 'int'
fbdev.c:981:2: error: too many arguments to function 'pScreen->CloseScreen'
fbdev.c: In function 'FBDevDGASetMode':
fbdev.c:1168:5: warning: passing argument 1 of 'pScrn->SwitchMode' makes pointer from integer without a cast [enabled by default]
fbdev.c:1168:5: note: expected 'ScrnInfoPtr' but argument is of type 'int'
fbdev.c:1168:5: error: too many arguments to function 'pScrn->SwitchMode'
fbdev.c:1170:5: warning: passing argument 1 of 'pScrn->AdjustFrame' makes pointer from integer without a cast [enabled by default]
fbdev.c:1170:5: note: expected 'ScrnInfoPtr' but argument is of type 'int'
fbdev.c:1170:5: error: too many arguments to function 'pScrn->AdjustFrame'
fbdev.c: In function 'FBDevDGASetViewport':
fbdev.c:1178:5: warning: passing argument 1 of 'pScrn->AdjustFrame' makes pointer from integer without a cast [enabled by default]
fbdev.c:1178:5: note: expected 'ScrnInfoPtr' but argument is of type 'int'
fbdev.c:1178:5: error: too many arguments to function 'pScrn->AdjustFrame'
fbdev.c: In function 'FBDevDGAAddModes':
fbdev.c:1208:2: warning: 'Xrealloc' is deprecated (declared at /usr/include/xorg/os.h:227) [-Wdeprecated-declarations]
make[2]: *** [fbdev.lo] Error 1
make[2]: Leaving directory `/tmp/yaourt-tmp-stephane/aur-xf86-video-fbdev-for-displaylink/src/xf86-video-fbdev/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/yaourt-tmp-stephane/aur-xf86-video-fbdev-for-displaylink/src/xf86-video-fbdev'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10711
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [displaylink] echec de la compilation du driver

Message par FoolEcho »

Il faut sans doute que tu utilises les sources les plus récentes de fbdev (cf. version des dépôts officiels) et donc que tu modifies le PKGBUILD en conséquence (le "numéro" de version de ce PKGBUILD étant pour le moins... heum... fantaisiste :roll: ).
«The following statement is not true. The previous statement is true.» :nage:
genesis
Hankyu
Messages : 10
Inscription : jeu. 23 sept. 2010, 16:50

Re: [displaylink] echec de la compilation du driver

Message par genesis »

Merci, voila ce que j'ai fait :
git clone http://git.plugable.com/webdav/xf86-video-fbdev
puis cd xf86-video-fbdev
./autogen.sh
jusque la tout va bien
puis make :

Code : Tout sélectionner

fbdev.c: In function 'FBDevFreeRec':
fbdev.c:222:2: warning: 'Xfree' is deprecated (declared at /usr/include/xorg/os.h:234) [-Wdeprecated-declarations]
fbdev.c: In function 'FBDevPciProbe':
fbdev.c:257:9: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
fbdev.c:264:27: warning: assignment from incompatible pointer type [enabled by default]
fbdev.c: In function 'FBDevProbe':
fbdev.c:314:10: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
fbdev.c:379:28: warning: assignment from incompatible pointer type [enabled by default]
fbdev.c:391:2: warning: 'Xfree' is deprecated (declared at /usr/include/xorg/os.h:234) [-Wdeprecated-declarations]
fbdev.c: In function 'FBDevPreInit':
fbdev.c:432:2: warning: passing argument 3 of 'fbdevHWInit' discards 'const' qualifier from pointer target type [enabled by default]
In file included from fbdev.c:32:0:
/usr/include/xorg/fbdevhw.h:21:23: note: expected 'char *' but argument is of type 'const char *'
fbdev.c:488:2: warning: 'Xalloc' is deprecated (declared at /usr/include/xorg/os.h:215) [-Wdeprecated-declarations]
fbdev.c: In function 'FBDevScreenInit':
fbdev.c:728:2: warning: passing argument 1 of 'fbdevHWAdjustFrame' makes pointer from integer without a cast [enabled by default]
In file included from fbdev.c:32:0:
/usr/include/xorg/fbdevhw.h:50:23: note: expected 'ScrnInfoPtr' but argument is of type 'int'
fbdev.c:728:2: error: too many arguments to function 'fbdevHWAdjustFrame'
In file included from fbdev.c:32:0:
/usr/include/xorg/fbdevhw.h:50:23: note: declared here
fbdev.c:773:22: warning: assignment from incompatible pointer type [enabled by default]
fbdev.c:774:23: warning: assignment from incompatible pointer type [enabled by default]
fbdev.c:780:6: warning: 'Xcalloc' is deprecated (declared at /usr/include/xorg/os.h:221) [-Wdeprecated-declarations]
fbdev.c:938:23: warning: assignment from incompatible pointer type [enabled by default]
fbdev.c: In function 'FBDevCloseScreen':
fbdev.c:969:6: warning: 'Xfree' is deprecated (declared at /usr/include/xorg/os.h:234) [-Wdeprecated-declarations]
fbdev.c:973:4: warning: 'Xfree' is deprecated (declared at /usr/include/xorg/os.h:234) [-Wdeprecated-declarations]
fbdev.c:981:2: warning: passing argument 1 of 'pScreen->CloseScreen' makes pointer from integer without a cast [enabled by default]
fbdev.c:981:2: note: expected 'ScreenPtr' but argument is of type 'int'
fbdev.c:981:2: error: too many arguments to function 'pScreen->CloseScreen'
fbdev.c: In function 'FBDevDGASetMode':
fbdev.c:1168:5: warning: passing argument 1 of 'pScrn->SwitchMode' makes pointer from integer without a cast [enabled by default]
fbdev.c:1168:5: note: expected 'ScrnInfoPtr' but argument is of type 'int'
fbdev.c:1168:5: error: too many arguments to function 'pScrn->SwitchMode'
fbdev.c:1170:5: warning: passing argument 1 of 'pScrn->AdjustFrame' makes pointer from integer without a cast [enabled by default]
fbdev.c:1170:5: note: expected 'ScrnInfoPtr' but argument is of type 'int'
fbdev.c:1170:5: error: too many arguments to function 'pScrn->AdjustFrame'
fbdev.c: In function 'FBDevDGASetViewport':
fbdev.c:1178:5: warning: passing argument 1 of 'pScrn->AdjustFrame' makes pointer from integer without a cast [enabled by default]
fbdev.c:1178:5: note: expected 'ScrnInfoPtr' but argument is of type 'int'
fbdev.c:1178:5: error: too many arguments to function 'pScrn->AdjustFrame'
fbdev.c: In function 'FBDevDGAAddModes':
fbdev.c:1208:2: warning: 'Xrealloc' is deprecated (declared at /usr/include/xorg/os.h:227) [-Wdeprecated-declarations]
make[2]: *** [fbdev.lo] Error 1
make[2]: Leaving directory `/home/***/Documents/xf86-video-fbdev/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/***/Documents/xf86-video-fbdev'
make: *** [all] Error 2
[root@amadeus xf86-video-fbdev]# make
make  all-recursive
make[1]: Entering directory `/home/***/Documents/xf86-video-fbdev'
Making all in src
make[2]: Entering directory `/home/***/Documents/xf86-video-fbdev/src'
  CC       fbdev.lo
fbdev.c: In function 'FBDevFreeRec':
fbdev.c:222:2: warning: 'Xfree' is deprecated (declared at /usr/include/xorg/os.h:234) [-Wdeprecated-declarations]
fbdev.c: In function 'FBDevPciProbe':
fbdev.c:257:9: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
fbdev.c:264:27: warning: assignment from incompatible pointer type [enabled by default]
fbdev.c: In function 'FBDevProbe':
fbdev.c:314:10: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
fbdev.c:379:28: warning: assignment from incompatible pointer type [enabled by default]
fbdev.c:391:2: warning: 'Xfree' is deprecated (declared at /usr/include/xorg/os.h:234) [-Wdeprecated-declarations]
fbdev.c: In function 'FBDevPreInit':
fbdev.c:432:2: warning: passing argument 3 of 'fbdevHWInit' discards 'const' qualifier from pointer target type [enabled by default]
In file included from fbdev.c:32:0:
/usr/include/xorg/fbdevhw.h:21:23: note: expected 'char *' but argument is of type 'const char *'
fbdev.c:488:2: warning: 'Xalloc' is deprecated (declared at /usr/include/xorg/os.h:215) [-Wdeprecated-declarations]
fbdev.c: In function 'FBDevScreenInit':
fbdev.c:728:2: warning: passing argument 1 of 'fbdevHWAdjustFrame' makes pointer from integer without a cast [enabled by default]
In file included from fbdev.c:32:0:
/usr/include/xorg/fbdevhw.h:50:23: note: expected 'ScrnInfoPtr' but argument is of type 'int'
fbdev.c:728:2: error: too many arguments to function 'fbdevHWAdjustFrame'
In file included from fbdev.c:32:0:
/usr/include/xorg/fbdevhw.h:50:23: note: declared here
fbdev.c:773:22: warning: assignment from incompatible pointer type [enabled by default]
fbdev.c:774:23: warning: assignment from incompatible pointer type [enabled by default]
fbdev.c:780:6: warning: 'Xcalloc' is deprecated (declared at /usr/include/xorg/os.h:221) [-Wdeprecated-declarations]
fbdev.c:938:23: warning: assignment from incompatible pointer type [enabled by default]
fbdev.c: In function 'FBDevCloseScreen':
fbdev.c:969:6: warning: 'Xfree' is deprecated (declared at /usr/include/xorg/os.h:234) [-Wdeprecated-declarations]
fbdev.c:973:4: warning: 'Xfree' is deprecated (declared at /usr/include/xorg/os.h:234) [-Wdeprecated-declarations]
fbdev.c:981:2: warning: passing argument 1 of 'pScreen->CloseScreen' makes pointer from integer without a cast [enabled by default]
fbdev.c:981:2: note: expected 'ScreenPtr' but argument is of type 'int'
fbdev.c:981:2: error: too many arguments to function 'pScreen->CloseScreen'
fbdev.c: In function 'FBDevDGASetMode':
fbdev.c:1168:5: warning: passing argument 1 of 'pScrn->SwitchMode' makes pointer from integer without a cast [enabled by default]
fbdev.c:1168:5: note: expected 'ScrnInfoPtr' but argument is of type 'int'
fbdev.c:1168:5: error: too many arguments to function 'pScrn->SwitchMode'
fbdev.c:1170:5: warning: passing argument 1 of 'pScrn->AdjustFrame' makes pointer from integer without a cast [enabled by default]
fbdev.c:1170:5: note: expected 'ScrnInfoPtr' but argument is of type 'int'
fbdev.c:1170:5: error: too many arguments to function 'pScrn->AdjustFrame'
fbdev.c: In function 'FBDevDGASetViewport':
fbdev.c:1178:5: warning: passing argument 1 of 'pScrn->AdjustFrame' makes pointer from integer without a cast [enabled by default]
fbdev.c:1178:5: note: expected 'ScrnInfoPtr' but argument is of type 'int'
fbdev.c:1178:5: error: too many arguments to function 'pScrn->AdjustFrame'
fbdev.c: In function 'FBDevDGAAddModes':
fbdev.c:1208:2: warning: 'Xrealloc' is deprecated (declared at /usr/include/xorg/os.h:227) [-Wdeprecated-declarations]
make[2]: *** [fbdev.lo] Error 1
make[2]: Leaving directory `/home/***/Documents/xf86-video-fbdev/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/***/Documents/xf86-video-fbdev'
make: *** [all] Error 2
Y-a-t-il d'autres sources pour fbdev ?
genesis
Hankyu
Messages : 10
Inscription : jeu. 23 sept. 2010, 16:50

Re: [displaylink] echec de la compilation du driver

Message par genesis »

bon du nouveau: j'ai réussi a compiler xf86-video-fbdev
j'ai récuperer les sources ici : http://cgit.freedesktop.org/xorg/driver ... deo-fbdev/

Code : Tout sélectionner

./autogen.sh
make
make install
Ensuite j'installe libdlo

Code : Tout sélectionner

yaourt -S libdlo
puis je charge udlfb (modprobe udlfb) mais lorsque je lance : libdlo-test1 il me donne :

Code : Tout sélectionner

libdlo-test1 
test: argv[0]: libdlo-test1
test: init...
test: no DisplayLink devices found
test: error 0 'Successful'
le docking station est bien connecté
dmesg:

Code : Tout sélectionner

usb 2-3: USB disconnect, device number 6
[ 3304.572742] usb 2-3.1: USB disconnect, device number 7
[ 3306.929910] usb 2-3: new high-speed USB device number 8 using ehci_hcd
[ 3307.054264] hub 2-3:1.0: USB hub found
[ 3307.054401] hub 2-3:1.0: 7 ports detected
[ 3307.319959] usb 2-3.1: new high-speed USB device number 9 using ehci_hcd
[ 3307.414954] scsi8 : usb-storage 2-3.1:2.0
[ 3308.417209] scsi scan: INQUIRY result too short (5), using 36
[ 3308.417228] scsi 8:0:0:0: CD-ROM                                           PQ: 0 ANSI: 0
[ 3308.420300] sr1: scsi3-mmc drive: 8x/40x writer xa/form2 cdda tray
[ 3308.420956] sr 8:0:0:0: Attached scsi CD-ROM sr1
et lsusb :

Code : Tout sélectionner

lsusb
Bus 002 Device 008: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub
Bus 002 Device 003: ID 10f1:1a09 Importek 
Bus 003 Device 002: ID 138a:0001 Validity Sensors, Inc. VFS101 Fingerprint Reader
Bus 003 Device 003: ID 03f0:171d Hewlett-Packard Bluetooth 2.0 Interface [Broadcom BCM2045]
Bus 005 Device 002: ID 09da:8090 A4 Tech Co., Ltd X-718BK Oscar Optical Gaming Mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 009: ID 17e9:02ea DisplayLink 
donc il voit bien le docking station usb displaylink (17e9:02ea) mais j'ai l'impression qu'il ne le reconnait pas comme une carte graphique. Il me semble que je devrais voir /dev/fb0 ou /dev/fb1 dans dmesg, non ?
Bon, dehors c'est le déluge mais la je seche totalement ;)
Dernière modification par FoolEcho le ven. 26 oct. 2012, 18:25, modifié 1 fois.
Raison : [code]
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10711
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [displaylink] echec de la compilation du driver

Message par FoolEcho »

Ceci étant, à moins que les modifications aient été incorporées depuis, les sources de freedesktop.org ne sont pas celles, patchées, que le PKGBUILD voudrait... et si ces dernières ne sont pas/plus maintenues, faudra trouver autre chose... :(
«The following statement is not true. The previous statement is true.» :nage:
genesis
Hankyu
Messages : 10
Inscription : jeu. 23 sept. 2010, 16:50

Re: [displaylink] echec de la compilation du driver

Message par genesis »

j'ai trouvé ceci :
http://libdlo.freedesktop.org/wiki/DeviceQuirks

Je crois que c'est la solution, en effet mon docking station est bien vu comme un cdrom, (dans dmesg des messages précedents), a priori pour que windaub puisse le monter et installer les drivers automatiquement (livré sans CD).
Je vais donc essayer ca dés que possible et je vous tiens au courant de la suite
genesis
Hankyu
Messages : 10
Inscription : jeu. 23 sept. 2010, 16:50

Re: [displaylink] echec de la compilation du driver

Message par genesis »

bien, ca avance. Aprés avoir créer la regle udev le moniteur s'allume ! vert :(
mais le libdlo-test1 affiche bien des carrés de couleurs sur le moniteur.
Donc soyons positif, la carte graphique displaylink est bien reconnu via USB et le bon driver est chargé.
Reste a adapter ma configuration xorg pour finir tout cela en beauté. Je posterai la conf dés que possible.
genesis
Hankyu
Messages : 10
Inscription : jeu. 23 sept. 2010, 16:50

Re: [displaylink] echec de la compilation du driver

Message par genesis »

donc maintenant le docking station est bien connecté, le test libdlo-test1 m'affiche bien toutes sortes de jolis carrés de couleurs sur l'écran. Je passe a la configuration de xorg ! comme je m'y attendais : la galèeeeeere...
comme je n'avais pas de xorg.conf, j'en ai généré un avec X -configure. puis j'ai rajouté les sections tels que décrit la (https://wiki.archlinux.org/index.php/DisplayLink) et voila le résultat :

Code : Tout sélectionner

Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	Screen      1  "DisplayLinkScreen"
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
	Option		"Xinerama" "on"
EndSection

Section "Files"
	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "/usr/share/fonts/misc/"
	FontPath     "/usr/share/fonts/TTF/"
	FontPath     "/usr/share/fonts/OTF/"
	FontPath     "/usr/share/fonts/Type1/"
	FontPath     "/usr/share/fonts/100dpi/"
	FontPath     "/usr/share/fonts/75disohunt argopi/"
EndSection

Section "Module"
	Load  "glx"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option "XkbLayout" "fr"
        Option "XkbVariant" "latin9"
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",
        ### <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>]
        #Option     "SwapLimit"          	# <i>
        #Option     "AsyncUTSDFS"        	# [<bool>]
	Identifier  "Card0"
	Driver      "nouveau"
	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 "Device"
       Identifier      "DisplayLinkDevice"
       Driver          "fbdev"
       BusID           "USB"               # needed to use multiple DisplayLink devices 
       Option          "fbdev" "/dev/fb0"  # change to whatever device you want to use
#      Option          "rotate" "CCW"      # uncomment for rotation
EndSection

Section "Monitor"
       Identifier      "DisplayLinkMonitor"
EndSection

Section "Screen"
       Identifier      "DisplayLinkScreen"
       Device          "DisplayLinkDevice"
       Monitor         "DisplayLinkMonitor"
       DefaultDepth    16
EndSection
Evidemment, cela ne marche pas. J'ai bien l'ecran (moniteur) interne de mon laptop fonctionnel mais toujours l'écran bleu immuable coté displaylink (le test libdlo-test1 affiche finalement un ecran bleu.
merci encore pour votre aide !
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10711
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [displaylink] echec de la compilation du driver

Message par FoolEcho »

Quoi qu'il en soit, il ne faut plus utiliser de xorg.conf pour utiliser au mieux la détection automatique mais mettre toute personnalisation dans /etc/X11/xorg.conf.d/.
«The following statement is not true. The previous statement is true.» :nage:
genesis
Hankyu
Messages : 10
Inscription : jeu. 23 sept. 2010, 16:50

Re: [displaylink] echec de la compilation du driver

Message par genesis »

merci,
J'ai supprimé le fichier xorg.conf et j'ai crée plusieurs fichiers (01-files.conf / 02-modules.conf / 04-inputdevices.conf / 15-devices.conf / 15-monitors.conf / 20-screens.conf / 30-serverlayout.conf) et voici un extrait de /var/log/Xorg.0.log :

Code : Tout sélectionner

[  2279.279] (II) LoadModule: "fbdev"
[  2279.279] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[  2279.292] (II) Module fbdev: vendor="X.Org Foundation"
[  2279.292] 	compiled for 1.13.0, module version = 0.4.3
[  2279.292] 	Module class: X.Org Video Driver
[  2279.292] 	ABI class: X.Org Video Driver, version 13.0
[  2279.292] (II) FBDEV: driver for framebuffer: fbdev
[  2279.292] (--) using VT number 7

[  2279.296] (WW) Falling back to old probe method for fbdev
[  2279.296] (II) Loading sub module "fbdevhw"
[  2279.296] (II) LoadModule: "fbdevhw"
[  2279.297] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[  2279.326] (II) Module fbdevhw: vendor="X.Org Foundation"
[  2279.326] 	compiled for 1.13.0, module version = 0.0.2
[  2279.326] 	ABI class: X.Org Video Driver, version 13.0
[  2279.326] (II) FBDEV(0): using /dev/fb0
[  2279.326] (II) FBDEV(0): Creating default Display subsection in Screen section
	"DisplayLinkScreen" for depth/fbbpp 24/32
[  2279.326] (**) FBDEV(0): Depth 24, (--) framebuffer bpp 32
[  2279.326] (==) FBDEV(0): RGB weight 888
[  2279.326] (==) FBDEV(0): Default visual is TrueColor
[  2279.326] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[  2279.326] (II) FBDEV(0): hardware: nouveaufb (video memory: 4000kB)
[  2279.326] (**) FBDEV(0): Option "fbdev" "/dev/fb0"
[  2279.326] (II) FBDEV(0): checking modes against framebuffer device...
[  2279.326] (II) FBDEV(0): checking modes against monitor...
[  2279.326] (--) FBDEV(0): Virtual size is 1280x800 (pitch 1280)
[  2279.326] (**) FBDEV(0):  Built-in mode "current"
[  2279.326] (==) FBDEV(0): DPI set to (96, 96)
[  2279.326] (II) Loading sub module "fb"
[  2279.326] (II) LoadModule: "fb"
[  2279.340] (II) Loading /usr/lib/xorg/modules/libfb.so
[  2279.359] (II) Module fb: vendor="X.Org Foundation"
[  2279.359] 	compiled for 1.13.0, module version = 1.0.0
[  2279.359] 	ABI class: X.Org ANSI C Emulation, version 0.4
[  2279.359] (**) FBDEV(0): using shadow framebuffer
[  2279.359] (II) Loading sub module "shadow"
[  2279.359] (II) LoadModule: "shadow"
[  2279.359] (II) Loading /usr/lib/xorg/modules/libshadow.so
[  2279.368] (II) Module shadow: vendor="X.Org Foundation"
[  2279.368] 	compiled for 1.13.0, module version = 1.1.0
[  2279.368] 	ABI class: X.Org ANSI C Emulation, version 0.4
[  2279.368] (==) Depth 24 pixmap format is 32 bpp
[  2280.436] (==) FBDEV(0): Backing store disabled
[  2280.437] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
[  2280.437] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
[  2280.437] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
[  2280.437] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
[  2280.437] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
[  2280.437] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
[  2280.437] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
[  2280.437] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
[  2280.437] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
[  2280.437] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
visiblement il y a pas mal d'erreurs avec le module fbdev. Que puis je changer dans ma configuration pour corriger ces erreurs ?
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10711
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [displaylink] echec de la compilation du driver

Message par FoolEcho »

Tu peux oublier files, modules et inputdevices.
Et te concentrer sur devices, monitors... et peut-être screen (mais devices en priorité).

Sinon, je ne sais pas pour displaylink (peut-être un Matchquelquechose plutôt que le BusId...). :(
Le log en entier peut-être ?
«The following statement is not true. The previous statement is true.» :nage:
Répondre