Impossible d'accéder à mes tty [RÉSOLU]

Xorg, Compiz, KDE / Gnome / Xfce / Fluxbox / e17 / fvwm ... GDM/KDM/XDM...
Répondre
albakham
newbie
Messages : 8
Inscription : dim. 04 mars 2018, 19:52

Impossible d'accéder à mes tty [RÉSOLU]

Message par albakham »

Bonjour à toutes et à tous,

Alors voilà, depuis quelques jours : impossible d'accéder à mes tty par Ctrl + Alt + f1/2/3/etc alors que cela marchait très bien auparavant...
Je ne sais pas trop ce qui a changé depuis, je me suis simplement mis à utiliser KDE.
Les tty affichent maintenant un écran noir, sans aucune information, voici ce que me donne ps aux | grep tty :

Code : Tout sélectionner

ps aux | grep tty
root       527  6.1  1.5 493932 59300 tty7     Ssl+ 19:45   1:18 /usr/lib/xorg-server/Xorg :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
titelive  1572  0.0  0.0  10884  2408 pts/1    S+   20:07   0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn tty
Si quelqu'un pouvait m'aider car là je bloque, à noter que je n'ai pas de /etc/X11/xorg.conf et que j'utilise le noyau lts.

Merci d'avoir lu mon post.
Dernière modification par albakham le lun. 19 mars 2018, 16:58, modifié 1 fois.
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17186
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [TTY] Impossible d'accéder à mes tty

Message par benjarobin »

Peux tu donner la sortie de :

Code : Tout sélectionner

systemctl status getty@tty1.service
systemctl cat getty@tty1.service | head -1
tree /etc/systemd/system
Zsh | KDE | PC fixe : core i7, carte nvidia
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
albakham
newbie
Messages : 8
Inscription : dim. 04 mars 2018, 19:52

Re: [TTY] Impossible d'accéder à mes tty

Message par albakham »

Alors voilà ;
systemctl status getty@tty1.service

Code : Tout sélectionner

● getty@tty1.service - Getty on tty1
   Loaded: loaded (/usr/lib/systemd/system/getty@.service; enabled; vendor preset: enable>
   Active: inactive (dead)
     Docs: man:agetty(8)
           man:systemd-getty-generator(8)
           http://0pointer.de/blog/projects/serial-console.html
lines 1-6/6 (END)
Il me semble déja qu'il y a un problème, le tty 1 est marqué comme "inactif"...

ensuite voici systemctl cat getty@tty1.service | head -1

Code : Tout sélectionner

# /usr/lib/systemd/system/getty@.service
et enfin :

Code : Tout sélectionner

/etc/systemd/system
├── bluetooth.target.wants
│   └── bluetooth.service -> /usr/lib/systemd/system/bluetooth.service
├── dbus-org.bluez.service -> /usr/lib/systemd/system/bluetooth.service
├── dbus-org.freedesktop.NetworkManager.service -> /usr/lib/systemd/system/NetworkManager.service
├── dbus-org.freedesktop.nm-dispatcher.service -> /usr/lib/systemd/system/NetworkManager-dispatcher.service
├── display-manager.service -> /usr/lib/systemd/system/lightdm.service
├── getty.target.wants
│   └── getty@tty1.service -> /usr/lib/systemd/system/getty@.service
├── multi-user.target.wants
│   ├── laptop-mode.service -> /usr/lib/systemd/system/laptop-mode.service
│   ├── NetworkManager.service -> /usr/lib/systemd/system/NetworkManager.service
│   ├── openvpn-client@.service -> /usr/lib/systemd/system/openvpn-client@.service
│   ├── pamac-cleancache.timer -> /usr/lib/systemd/system/pamac-cleancache.timer
│   ├── remote-fs.target -> /usr/lib/systemd/system/remote-fs.target
│   └── ufw.service -> /usr/lib/systemd/system/ufw.service
├── network-online.target.wants
│   └── NetworkManager-wait-online.service -> /usr/lib/systemd/system/NetworkManager-wait-online.service
├── systemd-fsck-root.service
└── systemd-fsck@.service

4 directories, 15 files
à noter que l'entrée laptop-mode.service est obsolète... je l'ai donc supprimé avec un

Code : Tout sélectionner

sudo systemctl disable laptop-mode.service 
maintenant donc

Code : Tout sélectionner

Removed /etc/systemd/system/multi-user.target.wants/laptop-mode.service.
 titelive@titelive  ~  tree /etc/systemd/system                              
/etc/systemd/system
├── bluetooth.target.wants
│   └── bluetooth.service -> /usr/lib/systemd/system/bluetooth.service
├── dbus-org.bluez.service -> /usr/lib/systemd/system/bluetooth.service
├── dbus-org.freedesktop.NetworkManager.service -> /usr/lib/systemd/system/NetworkManager.service
├── dbus-org.freedesktop.nm-dispatcher.service -> /usr/lib/systemd/system/NetworkManager-dispatcher.service
├── display-manager.service -> /usr/lib/systemd/system/lightdm.service
├── getty.target.wants
│   └── getty@tty1.service -> /usr/lib/systemd/system/getty@.service
├── multi-user.target.wants
│   ├── NetworkManager.service -> /usr/lib/systemd/system/NetworkManager.service
│   ├── openvpn-client@.service -> /usr/lib/systemd/system/openvpn-client@.service
│   ├── pamac-cleancache.timer -> /usr/lib/systemd/system/pamac-cleancache.timer
│   ├── remote-fs.target -> /usr/lib/systemd/system/remote-fs.target
│   └── ufw.service -> /usr/lib/systemd/system/ufw.service
├── network-online.target.wants
│   └── NetworkManager-wait-online.service -> /usr/lib/systemd/system/NetworkManager-wait-online.service
├── systemd-fsck-root.service
└── systemd-fsck@.service

4 directories, 14 files
Voilà...
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17186
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [TTY] Impossible d'accéder à mes tty

Message par benjarobin »

Peux tu donner la sortie suivante (en root) :

Code : Tout sélectionner

systemctl start getty@tty2.service
systemctl status -l --no-pager getty@tty2.service
Et la même chose pour tty1.

Suite au start, as tu quelque chose quand tu switch vers le tty2 ?
Zsh | KDE | PC fixe : core i7, carte nvidia
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
albakham
newbie
Messages : 8
Inscription : dim. 04 mars 2018, 19:52

Re: [TTY] Impossible d'accéder à mes tty

Message par albakham »

Merci !
ça marche, j'ai activé la commande sur tout les tty et ils sont revenus, par contre je ne comprends pas comment ça a pu se modifier sans changement de configuration manuellement...
par contre, comment passer le sujet en résolu ?
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17186
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [TTY] Impossible d'accéder à mes tty

Message par benjarobin »

Ce n'est pas résolu, au mieux contourné. C'est normalement automatique.

Peux tu donner la sortie de :

Code : Tout sélectionner

grep -Ev "^ *#|^ *$" /etc/systemd/logind* /usr/lib/systemd/logind* /run/systemd/logind*
Zsh | KDE | PC fixe : core i7, carte nvidia
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
albakham
newbie
Messages : 8
Inscription : dim. 04 mars 2018, 19:52

Re: [TTY] Impossible d'accéder à mes tty

Message par albakham »

Bon,
en fait le problème n'est pas résolu ;

Code : Tout sélectionner

$                 tree /etc/systemd/system                      #montre que tout les tty sont présents,
tree /etc/systemd/system                         
/etc/systemd/system
├── dbus-org.freedesktop.NetworkManager.service -> /usr/lib/systemd/system/NetworkManager.service
├── dbus-org.freedesktop.nm-dispatcher.service -> /usr/lib/systemd/system/NetworkManager-dispatcher.service
├── display-manager.service -> /usr/lib/systemd/system/lightdm.service
├── getty.target.wants
│   ├── getty@tty1.service -> /usr/lib/systemd/system/getty@.service
│   ├── getty@tty2.service -> /usr/lib/systemd/system/getty@.service
│   ├── getty@tty3.service -> /usr/lib/systemd/system/getty@.service
│   ├── getty@tty4.service -> /usr/lib/systemd/system/getty@.service
│   ├── getty@tty5.service -> /usr/lib/systemd/system/getty@.service
│   ├── getty@tty6.service -> /usr/lib/systemd/system/getty@.service
│   └── getty@tty.service -> /usr/lib/systemd/system/getty@.service
├── multi-user.target.wants
│   ├── cpupower.service -> /usr/lib/systemd/system/cpupower.service
│   ├── dhcpcd.service -> /usr/lib/systemd/system/dhcpcd.service
│   ├── NetworkManager.service -> /usr/lib/systemd/system/NetworkManager.service
│   ├── org.cups.cupsd.path -> /usr/lib/systemd/system/org.cups.cupsd.path
│   ├── pamac-cleancache.timer -> /usr/lib/systemd/system/pamac-cleancache.timer
│   ├── remote-fs.target -> /usr/lib/systemd/system/remote-fs.target
│   └── ufw.service -> /usr/lib/systemd/system/ufw.service
├── printer.target.wants
│   └── org.cups.cupsd.service -> /usr/lib/systemd/system/org.cups.cupsd.service
└── sockets.target.wants
    └── org.cups.cupsd.socket -> /usr/lib/systemd/system/org.cups.cupsd.socket
de plus,

Code : Tout sélectionner

 systemctl status -l --no-pager getty@ttyN.service 
avec N étant un chiffre de 2 à 6 j'obtiens la même sortie, à savoir tty actif... :

Code : Tout sélectionner

● getty@tty2.service - Getty on tty2
   Loaded: loaded (/usr/lib/systemd/system/getty@.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2018-03-10 17:51:36 CET; 8min ago
     Docs: man:agetty(8)
           man:systemd-getty-generator(8)
           http://0pointer.de/blog/projects/serial-console.html
 Main PID: 488 (agetty)
    Tasks: 1 (limit: 4535)
   CGroup: /system.slice/system-getty.slice/getty@tty2.service
           └─488 /sbin/agetty -o -p -- \u --noclear tty2 linux

mars 10 17:51:36 titelive systemd[1]: Started Getty on tty2.
toutefois, le tty numéro 1 est 'dead'

Code : Tout sélectionner

$                        systemctl status -l --no-pager getty@tty1.service

● getty@tty1.service - Getty on tty1
   Loaded: loaded (/usr/lib/systemd/system/getty@.service; enabled; vendor preset: enabled)
   Active: inactive (dead)
     Docs: man:agetty(8)
           man:systemd-getty-generator(8)
           http://0pointer.de/blog/projects/serial-console.html
Globalement, aucun tty n'est accessible, quand j'allume mon ordinateur je vois les messages systemd jusqu'a un certain moment, ensuite je n'ai qu'un écran noir. Quand j'éteins mon ordi, que ce soit graphiquement ou avec poweroff, je ne vois pas les messages systemd...

J'ajoute le fait que la dernière commande proposé ne peut rien donner :

Code : Tout sélectionner

$           grep -Ev "^ *#|^ *$" /etc/systemd/logind* /usr/lib/systemd/logind* /run/systemd/logind*
zsh: no matches found: /usr/lib/systemd/logind*
albakham
newbie
Messages : 8
Inscription : dim. 04 mars 2018, 19:52

Re: [TTY] Impossible d'accéder à mes tty

Message par albakham »

Du nouveau,

désormais je peux accéder à mes tty, toutefois un paquet d'erreur s'ajoute à l'arrêt de l'ordinateur, du genre :

Code : Tout sélectionner

sd-remou [XXXX] failed to remount '/oldroot/sys/fs/cgroup/pids        read only : device or resource busy
sd-remou [XXXX] failed to remount '/oldroot/sys/fs/cgroup/devices        read only : device or resource busy
sd-remou [XXXX] failed to remount '/oldroot/sys/fs/cgroup/systemd        read only : device or resource busy
sd-remou [XXXX] failed to remount '/oldroot/sys/fs/cgroup/ .....        read only : device or resource busy
sd-remou [XXXX] failed to unmount /oldroot/sys
sd-remou [XXXX] failed to unmount /oldroot/
......
Et des dizaines d'autres lignes de ce genre...
Une explication ? est-ce lié à mon précédent "bug" ?
Avatar de l’utilisateur
onyx67
Elfe
Messages : 766
Inscription : dim. 06 nov. 2011, 18:12
Localisation : Alsace

Re: [TTY] Impossible d'accéder à mes tty

Message par onyx67 »

Salut,

Non, visiblement il s'agit d'un bug de systemd (j'ai les mêmes messages) . Voir ce post
"La complication est un effet de la simplicité mal acquise"

Intel i5-2320; Nvidia GeForce GT 520; ATA Hitachi 2To; ArchLinux-KDE
albakham
newbie
Messages : 8
Inscription : dim. 04 mars 2018, 19:52

Re: [TTY] Impossible d'accéder à mes tty

Message par albakham »

Ok, je peux donc compter ça comme résolu, pas trop compris quand même....
Répondre