[Startx] Impossible de lancer une interface graphique (Résolu)

Xorg, Compiz, KDE / Gnome / Xfce / Fluxbox / e17 / fvwm ... GDM/KDM/XDM...
Amnesia_Undefined
Hankyu
Messages : 16
Inscription : sam. 16 janv. 2016, 07:46

[Startx] Impossible de lancer une interface graphique (Résolu)

Message par Amnesia_Undefined »

Bonjour à toutes et à tous,

Je viens vers vous aujourd'hui pour vous faire part d'un problème que je rencontre.

Je suis depuis peu sous Arch, après avoir passé près de deux ans sur Ubuntu puis Debian.
Lors de l'installation, j'ai configuré un environnement graphique selon la procédure proposée sur le wiki fr. Tout fonctionnait très bien. J'ai une CG Nvidia Geforce 600M (ou quelque chose comme ça, je pourrais être plus précis s'il le faut), ce qui m'a amené à installer bumblebee, et un pilote nvidia adapté. J'ai choisi l'environnement Gnome 3. Tout a très vite parfaitement fonctionné, jusqu'à hier. En effet, voulant connecter mon PC à un vidéoprojecteur, j'ai tapé, sur les conseils d'une internaute, la commande

Code : Tout sélectionner

sudo nvidia-xconfig
, puis, après un reboot, la commande startx n'a plus jamais fonctionné. L'uptime étant à ce moment-là de plus d'une semaine, je ne peux pas vous affirmer que cette commande est en cause, d'autant plus que j'ai pas mal touché à gnome-tweak-tool, mais, a priori, rien de sensible.
Screen no found, Device not detected, si j'en crois les logs, que vous trouvez à la fin de ce mail. J'ai désinstallé puis réinstallé tout ce qui concerne l'interface graphique, j'ai suivi un certain nombre de procédures proposées sur différents forums, mais je n'ai aucun résultat.
Je précise que j'ai deux écrans (un intégré, l'autre en VGA).

Auriez une idée pour résoudre ce problème, un lien vers un sujet que j'ai loupé... ?

Merci d'avance de votre aide !

Amnesia.

Les logs Xorg :

Code : Tout sélectionner

[  7198.631] 
X.Org X Server 1.18.0
Release Date: 2015-11-09
[  7198.636] X Protocol Version 11, Revision 0
[  7198.638] Build Operating System: Linux 4.2.5-1-ARCH x86_64 
[  7198.639] Current Operating System: XXX 4.3.3-2-ARCH #1 SMP PREEMPT Wed Dec 23 20:09:18 CET 2015 x86_64
[  7198.639] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=c6f0f168-c89d-4de7-8b9a-0c19b8c7a7d0 rw quiet
[  7198.643] Build Date: 08 January 2016  05:56:16PM
[  7198.644]  
[  7198.645] Current version of pixman: 0.32.8
[  7198.648] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[  7198.648] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  7198.653] (==) Log file: "/home/XXXX/.local/share/xorg/Xorg.0.log", Time: Sat Jan 16 01:55:23 2016
[  7198.680] (==) Using config file: "/etc/X11/xorg.conf"
[  7198.681] (==) Using config directory: "/etc/X11/xorg.conf.d"
[  7198.683] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  7198.727] (==) ServerLayout "Layout0"
[  7198.727] (**) |-->Screen "Screen0" (0)
[  7198.727] (**) |   |-->Monitor "Monitor0"
[  7198.738] (**) |   |-->Device "Device0"
[  7198.738] (**) |-->Input Device "Keyboard0"
[  7198.738] (**) |-->Input Device "Mouse0"
[  7198.738] (==) Automatically adding devices
[  7198.738] (==) Automatically enabling devices
[  7198.738] (==) Automatically adding GPU devices
[  7198.738] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  7198.776] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[  7198.776] 	Entry deleted from font path.
[  7198.776] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[  7198.777] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[  7198.777] 	Entry deleted from font path.
[  7198.777] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[  7198.777] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/,
	/usr/share/fonts/Type1/
[  7198.777] (==) ModulePath set to "/usr/lib/xorg/modules"
[  7198.777] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[  7198.777] (WW) Disabling Keyboard0
[  7198.777] (WW) Disabling Mouse0
[  7198.777] (II) Loader magic: 0x819d40
[  7198.777] (II) Module ABI versions:
[  7198.777] 	X.Org ANSI C Emulation: 0.4
[  7198.777] 	X.Org Video Driver: 20.0
[  7198.777] 	X.Org XInput driver : 22.1
[  7198.777] 	X.Org Server Extension : 9.0
[  7198.778] (++) using VT number 1

[  7198.778] (--) controlling tty is VT number 1, auto-enabling KeepTty
[  7198.782] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c2
[  7198.783] (II) xfree86: Adding drm device (/dev/dri/card0)
[  7198.783] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 8 paused 0
[  7198.785] (--) PCI:*(0:0:2:0) 8086:0046:1025:0611 rev 2, Mem @ 0xb3000000/4194304, 0xc0000000/268435456, I/O @ 0x00004050/8
[  7198.785] (--) PCI: (0:1:0:0) 10de:105a:1025:0611 rev 161, Mem @ 0xb2000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x00003000/128
[  7198.786] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[  7198.800] (II) LoadModule: "glx"
[  7198.812] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  7198.826] (II) Module glx: vendor="X.Org Foundation"
[  7198.826] 	compiled for 1.18.0, module version = 1.0.0
[  7198.826] 	ABI class: X.Org Server Extension, version 9.0
[  7198.826] (==) AIGLX enabled
[  7198.826] (II) LoadModule: "nvidia"
[  7198.827] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[  7198.912] (II) Module nvidia: vendor="NVIDIA Corporation"
[  7198.912] 	compiled for 4.0.2, module version = 1.0.0
[  7198.912] 	Module class: X.Org Video Driver
[  7198.930] (WW) LoadKernelModule: Setting of real/effective user Id to 0/0 failed[  7199.069] (EE) NVIDIA: Failed to load the NVIDIA kernel module. Please check your
[  7199.069] (EE) NVIDIA:     system's kernel log for additional error messages.
[  7199.069] (II) UnloadModule: "nvidia"
[  7199.069] (II) Unloading nvidia
[  7199.069] (EE) Failed to load module "nvidia" (module-specific error, 0)
[  7199.069] (EE) No drivers available.
[  7199.069] (EE) 
Fatal server error:
[  7199.069] (EE) no screens found(EE) 
[  7199.069] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[  7199.069] (EE) Please also check the log file at "/home/XXXX/.local/share/xorg/Xorg.0.log" for additional information.
[  7199.069] (EE) 
xorg.conf :

Code : Tout sélectionner

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 304.131  (buildmeister@swio-display-x64-rhel04-16)  Sun Nov  8 22:48:17 PST 2015


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    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
    EndSubSection
EndSection

Et le .xinitrc de mon home directory, tant que j'y suis :

Code : Tout sélectionner

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

exec gnome-session
#twm &
#xclock -geometry 50x50-1+1 &
#xterm -geometry 80x50+494+51 &
#xterm -geometry 80x20+494-0 &
#exec xterm -geometry 80x66+0+0 -name login
Dernière modification par Amnesia_Undefined le sam. 16 janv. 2016, 19:35, modifié 1 fois.
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10711
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [Startx] Impossible de lancer une interface graphique

Message par FoolEcho »

Salut,

D'une part le xorg.conf est obsolète (les configurations personnalisées sont à placer dans /etc/X11/xorg.conf.d/ ) et celui généré par nvidia-xconfig comporte trop d'infos inutiles voire problématiques. Le premier point est de supprimer ce fichier.

D'autre part, tu as intérêt à reprendre la procédure pour bumblebee, je n'en connais pas dans le détail mais au vu de la sortie des logs, soit tu as viré le pilote pour ta carte graphique (donc forcément ça marche nettement moins bien) soit tu as basculé sur ton autre carte... À ce niveau voir ce que raconte systemctl status bumblebee et cie...

Accessoirement en utilisant gnome il est préférable (plus confortable) d'utiliser gdm plutôt que startx mais ça n'est pas lié à ton problème.
«The following statement is not true. The previous statement is true.» :nage:
Amnesia_Undefined
Hankyu
Messages : 16
Inscription : sam. 16 janv. 2016, 07:46

Re: [Startx] Impossible de lancer une interface graphique

Message par Amnesia_Undefined »

Merci de ta réponse FoolEcho,

J'ai recommencé la procédure d'installation et de configuration de bumblebee, et voici ce que me retourne la commande systemctl status bumblebeed.service :

Code : Tout sélectionner

Failed to get unit for PID 2: PID 2 does not belong to any loaded unit.
● bumblebeed.service - Bumblebee C Daemon
   Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled; vendor preset: disabled)
   Active: active (running) since sam. 2016-01-16 11:35:19 CET; 31s ago
 Main PID: 649 (bumblebeed)
    Tasks: 1 (limit: 512)
   CGroup: /system.slice/bumblebeed.service
           └─649 /usr/bin/bumblebeed

janv. 16 11:35:19 X systemd[1]: Stopped Bumblebee C Daemon.
janv. 16 11:35:19 X systemd[1]: Started Bumblebee C Daemon.
janv. 16 11:35:19 X bumblebeed[649]: modprobe: FATAL: Module bbswitch not found in directory /lib/modules/4.3.3-2-ARCH
janv. 16 11:35:19 X bumblebeed[649]: [  429.955996] [ERROR]Module bbswitch could not be loaded (timeout?)
janv. 16 11:35:19 X bumblebeed[649]: [  429.956010] [WARN]No switching method available. The dedicated card will always be on.
janv. 16 11:35:19 X bumblebeed[649]: [  429.957052] [INFO]/usr/bin/bumblebeed 3.2.1 started
J'ai également supprimé le fichier xorg.conf (enfin j'ai modifié son nom), et dans le dossier xorg.conf.d, il n'y a que le fichier de configuartion de mon clavier.

J'ai continué mes recherches avec ces nouvelles infos, et je suis tombé sur ce sujet : https://bbs.archlinux.org/viewtopic.php?id=159666
Je ne comprends pas grand chose à l'anglais, et je ne voudrais pas lancer trop de commandes sans savoir ce qu'elles font, de peur de faire n'importe quoi, et de corrompre tout le système...

Merci de 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: [Startx] Impossible de lancer une interface graphique

Message par FoolEcho »

Le module bbswitch doit être recompilé/réinstallé à chaque mise à jour du kernel.
Tu peux aussi installer bbswitch-dkms (depuis AUR) qui s'en occupera. De là, redémarrer le service bumblebee et voir ce que ça donne...

https://wiki.archlinux.fr/Bumblebee#Ges ... 3.A9nergie
«The following statement is not true. The previous statement is true.» :nage:
Amnesia_Undefined
Hankyu
Messages : 16
Inscription : sam. 16 janv. 2016, 07:46

Re: [Startx] Impossible de lancer une interface graphique

Message par Amnesia_Undefined »

Voici ce le résultat final (post-compilation) de la commande yaourt -S bbswitch-dkms :

Code : Tout sélectionner

DKMS: add completed.
Error! echo
Your kernel headers for kernel 4.3.3-2-ARCH cannot be found at
/usr/lib/modules/4.3.3-2-ARCH/build
erreur: la commande n'a pas pu être exécutée correctement
J'ai tout de même tenté de redémarrer le service, et de lancer un startx, dans un dernier d'espoir, ce qui, bien sûr, n'a pas aboutit.

Les logs de xorg :

Code : Tout sélectionner

[   120.939] 
X.Org X Server 1.18.0
Release Date: 2015-11-09
[   120.942] X Protocol Version 11, Revision 0
[   120.943] Build Operating System: Linux 4.2.5-1-ARCH x86_64 
[   120.944] Current Operating System: Linux X 4.3.3-2-ARCH #1 SMP PREEMPT Wed Dec 23 20:09:18 CET 2015 x86_64
[   120.944] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=c6f0f168-c89d-4de7-8b9a-0c19b8c7a7d0 rw quiet
[   120.946] Build Date: 08 January 2016  05:56:16PM
[   120.947]  
[   120.948] Current version of pixman: 0.32.8
[   120.950] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   120.950] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   120.955] (==) Log file: "/home/X/.local/share/xorg/Xorg.0.log", Time: Sat Jan 16 13:04:44 2016
[   120.980] (==) Using config file: "/etc/X11/xorg.conf"
[   120.982] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   120.984] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   121.026] (==) ServerLayout "Layout0"
[   121.026] (**) |-->Screen "Screen0" (0)
[   121.026] (**) |   |-->Monitor "Monitor0"
[   121.037] (**) |   |-->Device "Device0"
[   121.037] (**) |-->Input Device "Keyboard0"
[   121.037] (**) |-->Input Device "Mouse0"
[   121.037] (==) Automatically adding devices
[   121.037] (==) Automatically enabling devices
[   121.037] (==) Automatically adding GPU devices
[   121.037] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   121.075] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[   121.075] 	Entry deleted from font path.
[   121.075] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[   121.075] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[   121.076] 	Entry deleted from font path.
[   121.076] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[   121.076] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/,
	/usr/share/fonts/Type1/
[   121.076] (==) ModulePath set to "/usr/lib/xorg/modules"
[   121.076] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[   121.076] (WW) Disabling Keyboard0
[   121.076] (WW) Disabling Mouse0
[   121.076] (II) Loader magic: 0x819d40
[   121.076] (II) Module ABI versions:
[   121.076] 	X.Org ANSI C Emulation: 0.4
[   121.076] 	X.Org Video Driver: 20.0
[   121.076] 	X.Org XInput driver : 22.1
[   121.076] 	X.Org Server Extension : 9.0
[   121.077] (++) using VT number 1

[   121.077] (--) controlling tty is VT number 1, auto-enabling KeepTty
[   121.080] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[   121.081] (II) xfree86: Adding drm device (/dev/dri/card0)
[   121.081] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 8 paused 0
[   121.083] (--) PCI:*(0:0:2:0) 8086:0046:1025:0611 rev 2, Mem @ 0xb3000000/4194304, 0xc0000000/268435456, I/O @ 0x00004050/8
[   121.083] (--) PCI: (0:1:0:0) 10de:105a:1025:0611 rev 161, Mem @ 0xb2000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x00003000/128
[   121.083] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   121.088] (II) LoadModule: "glx"
[   121.100] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   121.231] (II) Module glx: vendor="X.Org Foundation"
[   121.231] 	compiled for 1.18.0, module version = 1.0.0
[   121.231] 	ABI class: X.Org Server Extension, version 9.0
[   121.231] (==) AIGLX enabled
[   121.231] (II) LoadModule: "nvidia"
[   121.244] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[   121.302] (II) Module nvidia: vendor="NVIDIA Corporation"
[   121.302] 	compiled for 4.0.2, module version = 1.0.0
[   121.302] 	Module class: X.Org Video Driver
[   121.303] (II) NVIDIA dlloader X Driver  358.16  Mon Nov 16 18:32:40 PST 2015
[   121.303] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   121.304] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[   121.304] (EE) No devices detected.
[   121.304] (EE) 
Fatal server error:
[   121.304] (EE) no screens found(EE) 
[   121.304] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   121.304] (EE) Please also check the log file at "/home/adrien/.local/share/xorg/Xorg.0.log" for additional information.
[   121.304] (EE) 
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10711
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [Startx] Impossible de lancer une interface graphique

Message par FoolEcho »

[quote="Amnesia_Undefined"]Voici ce le résultat final (post-compilation) de la commande yaourt -S bbswitch-dkms :

Code : Tout sélectionner

DKMS: add completed.
Error! echo
Your kernel headers for kernel 4.3.3-2-ARCH cannot be found at
/usr/lib/modules/4.3.3-2-ARCH/build
erreur: la commande n'a pas pu être exécutée correctement
Tu as besoin de linux-headers pour la compilation.
«The following statement is not true. The previous statement is true.» :nage:
Amnesia_Undefined
Hankyu
Messages : 16
Inscription : sam. 16 janv. 2016, 07:46

Re: [Startx] Impossible de lancer une interface graphique

Message par Amnesia_Undefined »

Ça fonctionne, merci beaucoup !!

Bonne soirée, et féliciation par avance pour ton 10.000 ème message !
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10711
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [Startx] Impossible de lancer une interface graphique

Message par FoolEcho »

Amnesia_Undefined a écrit :Bonne soirée, et féliciation par avance pour ton 10.000 ème message !
:mrgreen:
«The following statement is not true. The previous statement is true.» :nage:
Répondre