[installation] connexion au serveur X impossible [Résolu]

Questions et astuces concernant l'installation et la configuration d'archlinux
samArch
Hankyu
Messages : 15
Inscription : sam. 31 mars 2012, 16:08

[installation] connexion au serveur X impossible [Résolu]

Message par samArch »

Bonjour,

suite installation de arch sur mon nouveau pc, je ne parviens pas à faire un test avec startx. Ce qui me bloque pour la suite.

message d'erreur :

Code : Tout sélectionner

xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
voici le retour de lspci :

Code : Tout sélectionner

samuel@samarch ~ $ lspci | grep -e VGA -e 3D
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)
01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] (rev a1)
il semble que ma carte graphique soit une hybride :lol:
mais du coup j'ai chercher toute une journée sur le net pour ne par trouver de solution.
j'ai installé Bumblebee et j'ai suivi les instructions mais j'ai toujours le même message d'erreur...

quelqu'un à une idée? je suis preneur car là je suis en panne...
merci par avance :mrgreen:
Dernière modification par samArch le mer. 30 janv. 2019, 23:40, modifié 1 fois.
-fab1en-
Daikyu
Messages : 80
Inscription : lun. 27 févr. 2017, 16:45

Re: [installation] connexion au serveur X impossible

Message par -fab1en- »

Salut,

Peux-tu donner le fichier /var/log/Xorg.0.log
samArch
Hankyu
Messages : 15
Inscription : sam. 31 mars 2012, 16:08

Re: [installation] connexion au serveur X impossible

Message par samArch »

voici le fichier en question :

Code : Tout sélectionner

[  1916.696] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[  1916.696] 
X.Org X Server 1.20.3
X Protocol Version 11, Revision 0
[  1916.697] Build Operating System: Linux Arch Linux
[  1916.698] Current Operating System: Linux samarch 4.20.4-arch1-1-ARCH #1 SMP PREEMPT Wed Jan 23 00:12:22 UTC 2019 x86_64
[  1916.698] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=b14c56c4-229f-4b79-9867-8340b4180d60 rw nomodeset quiet
[  1916.699] Build Date: 25 October 2018  04:42:32PM
[  1916.699]  
[  1916.699] Current version of pixman: 0.36.0
[  1916.700]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[  1916.700] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1916.702] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Jan 28 21:45:08 2019
[  1916.703] (==) Using config directory: "/etc/X11/xorg.conf.d"
[  1916.703] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  1916.705] (==) No Layout section.  Using the first Screen section.                                                                                                
[  1916.705] (==) No screen section available. Using defaults.                                                                                                       
[  1916.705] (**) |-->Screen "Default Screen Section" (0)                                                                                                            
[  1916.705] (**) |   |-->Monitor "<default monitor>"                                                                                                                
[  1916.705] (==) No monitor specified for screen "Default Screen Section".                                                                                          

[  1916.705] (==) Automatically adding devices                                                                                                                       
[  1916.705] (==) Automatically enabling devices                                                                                                                     
[  1916.705] (==) Automatically adding GPU devices                                                                                                                   
[  1916.705] (==) Automatically binding GPU devices                                                                                                                  
[  1916.705] (==) Max clients allowed: 256, resource mask: 0x1fffff                                                                                                  
[  1916.706] (WW) The directory "/usr/share/fonts/misc" does not exist.                                                                                              
[  1916.706]    Entry deleted from font path.                                                                                                                        
[  1916.707] (WW) The directory "/usr/share/fonts/OTF" does not exist.                                                                                               
[  1916.707]    Entry deleted from font path.                                                                                                                        
[  1916.707] (WW) The directory "/usr/share/fonts/Type1" does not exist.                                                                                             
[  1916.707]    Entry deleted from font path.                                                                                                                        
[  1916.707] (WW) The directory "/usr/share/fonts/100dpi" does not exist.                                                                                            
[  1916.707]    Entry deleted from font path.                                                                                                                        
[  1916.707] (WW) The directory "/usr/share/fonts/75dpi" does not exist.                                                                                             
[  1916.707]    Entry deleted from font path.                                                                                                                        
[  1916.707] (==) FontPath set to:                                                                                                                                   

[  1916.707] (==) ModulePath set to "/usr/lib/xorg/modules"                                                                                                          
[  1916.707] (II) The server relies on udev to provide the list of input devices.                                                                                    

[  1916.707] (II) Module ABI versions:                                                                                                                               
[  1916.707]    X.Org ANSI C Emulation: 0.4                                                                                                                          
[  1916.707]    X.Org Video Driver: 24.0                                                                                                                             
[  1916.707]    X.Org XInput driver : 24.1                                                                                                                           
[  1916.707]    X.Org Server Extension : 10.0                                                                                                                        
[  1916.708] (++) using VT number 1                                                                                                                                  

[  1916.709] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31                                                                        
[  1916.710] (--) PCI:*(0@0:2:0) 8086:3e9b:1043:1041 rev 0, Mem @ 0xa2000000/16777216, 0x80000000/268435456, I/O @ 0x00006000/64, BIOS @ 0x????????/131072           
[  1916.710] (--) PCI: (1@0:0:0) 10de:1c8c:1043:1041 rev 161, Mem @ 0xa3000000/16777216, 0x90000000/268435456, 0xa0000000/33554432, I/O @ 0x00005000/128, BIOS @ 0x????????/524288                                                                                                                                                        
[  1916.710] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)                                                                               
[  1916.711] (II) LoadModule: "glx"                                                                                                                                  
[  1916.712] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so                                                                                                 
[  1916.720] (II) Module glx: vendor="X.Org Foundation"
[  1916.720]    compiled for 1.20.3, module version = 1.0.0
[  1916.720]    ABI class: X.Org Server Extension, version 10.0
[  1916.720] (==) Matched intel as autoconfigured driver 0
[  1916.720] (==) Matched modesetting as autoconfigured driver 1
[  1916.720] (==) Matched fbdev as autoconfigured driver 2
[  1916.720] (==) Matched vesa as autoconfigured driver 3
[  1916.720] (==) Assigned the driver to the xf86ConfigLayout
[  1916.720] (II) LoadModule: "intel"
[  1916.720] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[  1916.724] (II) Module intel: vendor="X.Org Foundation"
[  1916.724]    compiled for 1.20.3, module version = 2.99.917
[  1916.724]    Module class: X.Org Video Driver
[  1916.724]    ABI class: X.Org Video Driver, version 24.0
[  1916.724] (II) LoadModule: "modesetting"
[  1916.724] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[  1916.726] (II) Module modesetting: vendor="X.Org Foundation"
[  1916.726]    compiled for 1.20.3, module version = 1.20.3
[  1916.726]    Module class: X.Org Video Driver
[  1916.726]    ABI class: X.Org Video Driver, version 24.0
[  1916.726] (II) LoadModule: "fbdev"
[  1916.727] (WW) Warning, couldn't open module fbdev
[  1916.727] (EE) Failed to load module "fbdev" (module does not exist, 0)
[  1916.727] (II) LoadModule: "vesa"
[  1916.727] (WW) Warning, couldn't open module vesa
[  1916.727] (EE) Failed to load module "vesa" (module does not exist, 0)
[  1916.727] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
        i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
        915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
        Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
        GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[  1916.727] (II) intel: Driver for Intel(R) HD Graphics
[  1916.727] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[  1916.727] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[  1916.727] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[  1918.744] intel: waited 2020 ms for i915.ko driver to load
[  1918.748] (EE) open /dev/dri/card0: No such file or directory
[  1918.748] (WW) Falling back to old probe method for modesetting
[  1918.748] (EE) open /dev/dri/card0: No such file or directory
[  1918.748] (EE) Screen 0 deleted because of no matching config section.
[  1918.748] (II) UnloadModule: "modesetting"
[  1918.748] (EE) Device(s) detected, but none match those in the config file.
[  1918.748] (EE) 
Fatal server error:
[  1918.748] (EE) no screens found(EE) 
[  1918.748] (EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
[  1918.748] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  1918.748] (EE) 
[  1918.751] (EE) Server terminated with error (1). Closing log file.
c'est vrai que je ne l'ai pas consulté et il me pose des questions, je vais aussi chercher de mon côté :)
-fab1en-
Daikyu
Messages : 80
Inscription : lun. 27 févr. 2017, 16:45

Re: [installation] connexion au serveur X impossible

Message par -fab1en- »

Tu as quoi comme fichier(s) de config pour Xorg?

As-tu bien tout lu et installé tous les drivers?

Dommage que benjarobin ne soit pas dispo en ce moment, il te règle ça en 2 post....

https://wiki.archlinux.org/index.php/bumblebee

https://wiki.archlinux.fr/Bumblebee
samArch
Hankyu
Messages : 15
Inscription : sam. 31 mars 2012, 16:08

Re: [installation] connexion au serveur X impossible

Message par samArch »

en fichier de conf j'ai :

Code : Tout sélectionner

/etc/X11/xorg.conf.d $ ls
00-keyboard.conf  10-monitor.conf
dont le détail : pour 00-keyboard.conf :

Code : Tout sélectionner

Section "InputClass"
        Identifier              "keyboard Layout"
        MatchIskeyboard         "on"
        Option "Xkblayout"      "fr, de, se"
        Option "XkbOptions"     "grp:shifts_toggle"
        option "XkbVariant"     "latin9"
EndSection
10-monitor.conf :

Code : Tout sélectionner

Section "Monitor"
        Identifier      "Monitor0"
        Modeline        "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
        Option          "PreferredMode" "1440x900"
EndSection
et dans /usr/share/X11/xorg.conf.d $ ls
10-nvidia-drm-outputclass.conf 10-quirks.conf 40-libinput.conf

dont le détail est :
10-nvidia-drm-outputclass.conf :

Code : Tout sélectionner

Section "OutputClass"
    Identifier "intel"
    MatchDriver "i915"
    Driver "modesetting"
EndSection

Section "OutputClass"
    Identifier "nvidia"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    Option "PrimaryGPU" "yes"
    ModulePath "/usr/lib/nvidia/xorg"
    ModulePath "/usr/lib/xorg/modules"
EndSection
10-quirks.conf :

Code : Tout sélectionner

# Collection of quirks and blacklist/whitelists for specific devices.                                                                                


# Accelerometer device, posts data through ABS_X/ABS_Y, making X unusable                                                                            
# http://bugs.freedesktop.org/show_bug.cgi?id=22442                                                                                                  
Section "InputClass"
        Identifier "ThinkPad HDAPS accelerometer blacklist"
        MatchProduct "ThinkPad HDAPS accelerometer data"
        Option "Ignore" "on"
EndSection

# https://bugzilla.redhat.com/show_bug.cgi?id=523914
# Mouse does not move in PV Xen guest
# Explicitly tell evdev to not ignore the absolute axes.
Section "InputClass"
        Identifier "Xen Virtual Pointer axis blacklist"
        MatchProduct "Xen Virtual Pointer"
        Option "IgnoreAbsoluteAxes" "off"
        Option "IgnoreRelativeAxes" "off"
EndSection

# https://bugs.freedesktop.org/show_bug.cgi?id=55867
# Bug 55867 - Doesn't know how to tag XI_TRACKBALL
Section "InputClass"
        Identifier "Tag trackballs as XI_TRACKBALL"
        MatchProduct "trackball"
        MatchDriver "evdev"
        Option "TypeName" "TRACKBALL"
EndSection

# https://bugs.freedesktop.org/show_bug.cgi?id=62831
# Bug 62831 - Mionix Naos 5000 mouse detected incorrectly
Section "InputClass"
        Identifier "Tag Mionix Naos 5000 mouse XI_MOUSE"
        MatchProduct "La-VIEW Technology Naos 5000 Mouse"
        MatchDriver "evdev"
        Option "TypeName" "MOUSE"
EndSection
40-libinput.conf :

Code : Tout sélectionner

# Match on all types of devices but joysticks                                                                                                        
Section "InputClass"                                                                                                                                 
        Identifier "libinput pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput tablet catchall"
        MatchIsTablet "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection
Voilà sinon j'ai installé selon https://wiki.archlinux.fr/Bumblebee, il me semble avoir tout bien suivi mais ça cadre pas :

Code : Tout sélectionner

$ glxgears
Error: couldn't open display (null)
il semble qu'il n'arrive pas à ouvrir des fichiers qui en plus ne sont pas installés... :?:
laurent85
Elfe
Messages : 951
Inscription : mar. 16 oct. 2018, 21:05

Re: [installation] connexion au serveur X impossible

Message par laurent85 »

Bonjour,
Je ne connais pas Bumblebee mais nomodeset en paramètre du noyau il faut l'enlever. Et il y a un problème avec le pilote noyau Intel i915 non chargé d'après Xorg.

Code : Tout sélectionner

[  1916.698] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=b14c56c4-229f-4b79-9867-8340b4180d60 rw nomodeset quiet

Code : Tout sélectionner

[  1918.744] intel: waited 2020 ms for i915.ko driver to load
-fab1en-
Daikyu
Messages : 80
Inscription : lun. 27 févr. 2017, 16:45

Re: [installation] connexion au serveur X impossible

Message par -fab1en- »

Une piste? Extrait de tes logs:

Code : Tout sélectionner

 1918.748] (EE) Screen 0 deleted because of no matching config section.
[  1918.748] (II) UnloadModule: "modesetting"
[  1918.748] (EE) Device(s) detected, but none match those in the config file.
Ne manquerait-il pas un truc du genre:

Code : Tout sélectionner

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    Option         "metamodes" "nvidia-auto-select +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
    Option         "AllowIndirectGLXProtocol" "off"
    Option         "TripleBuffer" "on"
EndSection
Lorsque Archlinux était installé sur mon portable avec bumblebee, les fichiers de conf étaient beaucoup plus simple.

Je crois que tu devrais tout mettre dans

Code : Tout sélectionner

/etc/X11/xorg.conf.d
Si je ne dis pas de sonnerie

Code : Tout sélectionner

/usr/share/X11/xorg.conf.d/
contient les fichiers par défaut.

Le wiki ne s'arrête pas là

Code : Tout sélectionner

$ glxgears
Error: couldn't open display (null)
by the way...

Consulte aussi la version anglaise, si tu peux.
samArch
Hankyu
Messages : 15
Inscription : sam. 31 mars 2012, 16:08

Re: [installation] connexion au serveur X impossible [Résolu]

Message par samArch »

laurent85 a écrit : mar. 29 janv. 2019, 22:57 Bonjour,
Je ne connais pas Bumblebee mais nomodeset en paramètre du noyau il faut l'enlever. Et il y a un problème avec le pilote noyau Intel i915 non chargé d'après Xorg.

Code : Tout sélectionner

[  1916.698] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=b14c56c4-229f-4b79-9867-8340b4180d60 rw nomodeset quiet

Code : Tout sélectionner

[  1918.744] intel: waited 2020 ms for i915.ko driver to load
à oui ok bien vu, j'ai supprimé nomodeset et entre temps j'avais installé les pilotes et bumbelbee. j'ai fait un test avec startx, cela à fonctionné. j'ai lancé SDDM.service et tout a fonctionné.
je pense faire quelques tests pour voir si tout ce que j'ai installé est nessaire et je vais essayer de comprendre tout ça.

encore un grand merci vous 2 de m'avoir répondu :bravo:
Répondre