rotation écran au démarrage en mode portrait au lieu de paysage [Solved]
rotation écran au démarrage en mode portrait au lieu de paysage
Bonjour,
L'écran de démarrage est en mode portrait, après saisi du mdp c'est bien en mode paysage.
Le problème se produit également sur linux mint
Le pc est un IDEAPAD LENOVO MIIX 310 -101 CR qui ne trouve pas le wifi mais qui fonctionne en bluetooth.
J'ai modifié le fichier etc/xdg/autostart/autorandr.desktop dans nano sans grand résultat :
j'ai ajouté la ligne suivante : xrandr --output DSI-1 --rotate normal
que ce soit en rotate normal ou right l'écran au démarrage est toujours en mode portrait.
J'ai ajouté également dans le grub :
GRUB_CMDLINE_LINUX="nomodeset i915.modeset=1 fbcon=rotate:1"
GRUB_GFXPAYLOAD_LINUX=keep
toujours pareil
Je vous adresse des copies du terminal :
GNU nano 5.4 /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(unset PRETTY_NAME; (. /etc/lsb-release; echo ${PRETTY_NAME:?}) 2>/dev/null || e>
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=1024x768
[ Le fichier « /etc/default/grub » n'est pas accessible en écriture ]
^G Aide ^O Écrire ^W Chercher ^K Couper ^T Exécuter ^C EmplacementM-U Annuler
^X Quitter ^R Lire fich. ^\ Remplacer ^U Coller ^J Justifier ^_ Aller ligneM-E Refaire
Patrick@MXPatrick:~
$ xrandr -q
Screen 0: minimum 320 x 200, current 1280 x 800, maximum 16384 x 16384
DSI-1 connected 1280x800+0+0 right (normal left inverted right x axis y axis) 0mm x 0mm
800x1280 60.00*+
1280x800 59.99 59.97 59.81 59.91
1280x720 60.00 59.99 59.86 59.74
1024x768 60.04 60.00
960x720 60.00
928x696 60.05
896x672 60.01
1024x576 59.95 59.96 59.90 59.82
960x600 59.93 60.00
960x540 59.96 59.99 59.63 59.82
800x600 60.00 60.32 56.25
840x525 60.01 59.88
864x486 59.92 59.57
800x512 60.17
700x525 59.98
800x450 59.95 59.82
640x512 60.02
720x450 59.89
700x450 59.96 59.88
640x480 60.00 59.94
720x405 59.51 58.99
684x384 59.88 59.85
680x384 59.80 59.96
640x400 59.88 59.98
576x432 60.06
640x360 59.86 59.83 59.84 59.32
512x384 60.00
512x288 60.00 59.92
480x270 59.63 59.82
400x300 60.32 56.34
432x243 59.92 59.57
320x240 60.05
360x202 59.51 59.13
320x180 59.84 59.32
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
Patrick@MXPatrick:~
$ cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(unset PRETTY_NAME; (. /etc/lsb-release; echo ${PRETTY_NAME:?}) 2>/dev/null || echo Debian)"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_CMDLINE_LINUX="nomodeset i915.modeset=1 fbcon=rotate:1"
GRUB_GFXPAYLOAD_LINUX=keep
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=1024x768
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
GRUB_DISABLE_OS_PROBER=false
#export GRUB_MENU_PICTURE="/usr/share/backgrounds/MXLinux/grub/linen-gradientblu-grub.png"
#export GRUB_MENU_PICTURE="/usr/share/backgrounds/MX18ALPHAWALL.png"
GRUB_THEME="/boot/grub/themes/mx_linux/theme.txt"
Patrick@MXPatrick:~
$ cat /etc/lightdm/lightdm-gtk-greeter.conf.d/99_linuxmint.conf
cat: /etc/lightdm/lightdm-gtk-greeter.conf.d/99_linuxmint.conf: Aucun fichier ou dossier de ce type
Patrick@MXPatrick:~
$ cat /etc/lightdm/slick-greeter.conf
cat: /etc/lightdm/slick-greeter.conf: Aucun fichier ou dossier de ce type
Patrick@MXPatrick:~
Voici des liens que j'ai trouvé sur le net :
https://cod-box.net/ubuntu-fix-rotate-s ... k-desktop/
https://doc.ubuntu-fr.org/lenovo_miix_320_10icr
(cela concerne le miix 320)
Si vous avez une idée.
D'avance merci
L'écran de démarrage est en mode portrait, après saisi du mdp c'est bien en mode paysage.
Le problème se produit également sur linux mint
Le pc est un IDEAPAD LENOVO MIIX 310 -101 CR qui ne trouve pas le wifi mais qui fonctionne en bluetooth.
J'ai modifié le fichier etc/xdg/autostart/autorandr.desktop dans nano sans grand résultat :
j'ai ajouté la ligne suivante : xrandr --output DSI-1 --rotate normal
que ce soit en rotate normal ou right l'écran au démarrage est toujours en mode portrait.
J'ai ajouté également dans le grub :
GRUB_CMDLINE_LINUX="nomodeset i915.modeset=1 fbcon=rotate:1"
GRUB_GFXPAYLOAD_LINUX=keep
toujours pareil
Je vous adresse des copies du terminal :
GNU nano 5.4 /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(unset PRETTY_NAME; (. /etc/lsb-release; echo ${PRETTY_NAME:?}) 2>/dev/null || e>
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=1024x768
[ Le fichier « /etc/default/grub » n'est pas accessible en écriture ]
^G Aide ^O Écrire ^W Chercher ^K Couper ^T Exécuter ^C EmplacementM-U Annuler
^X Quitter ^R Lire fich. ^\ Remplacer ^U Coller ^J Justifier ^_ Aller ligneM-E Refaire
Patrick@MXPatrick:~
$ xrandr -q
Screen 0: minimum 320 x 200, current 1280 x 800, maximum 16384 x 16384
DSI-1 connected 1280x800+0+0 right (normal left inverted right x axis y axis) 0mm x 0mm
800x1280 60.00*+
1280x800 59.99 59.97 59.81 59.91
1280x720 60.00 59.99 59.86 59.74
1024x768 60.04 60.00
960x720 60.00
928x696 60.05
896x672 60.01
1024x576 59.95 59.96 59.90 59.82
960x600 59.93 60.00
960x540 59.96 59.99 59.63 59.82
800x600 60.00 60.32 56.25
840x525 60.01 59.88
864x486 59.92 59.57
800x512 60.17
700x525 59.98
800x450 59.95 59.82
640x512 60.02
720x450 59.89
700x450 59.96 59.88
640x480 60.00 59.94
720x405 59.51 58.99
684x384 59.88 59.85
680x384 59.80 59.96
640x400 59.88 59.98
576x432 60.06
640x360 59.86 59.83 59.84 59.32
512x384 60.00
512x288 60.00 59.92
480x270 59.63 59.82
400x300 60.32 56.34
432x243 59.92 59.57
320x240 60.05
360x202 59.51 59.13
320x180 59.84 59.32
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
Patrick@MXPatrick:~
$ cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(unset PRETTY_NAME; (. /etc/lsb-release; echo ${PRETTY_NAME:?}) 2>/dev/null || echo Debian)"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_CMDLINE_LINUX="nomodeset i915.modeset=1 fbcon=rotate:1"
GRUB_GFXPAYLOAD_LINUX=keep
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=1024x768
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
GRUB_DISABLE_OS_PROBER=false
#export GRUB_MENU_PICTURE="/usr/share/backgrounds/MXLinux/grub/linen-gradientblu-grub.png"
#export GRUB_MENU_PICTURE="/usr/share/backgrounds/MX18ALPHAWALL.png"
GRUB_THEME="/boot/grub/themes/mx_linux/theme.txt"
Patrick@MXPatrick:~
$ cat /etc/lightdm/lightdm-gtk-greeter.conf.d/99_linuxmint.conf
cat: /etc/lightdm/lightdm-gtk-greeter.conf.d/99_linuxmint.conf: Aucun fichier ou dossier de ce type
Patrick@MXPatrick:~
$ cat /etc/lightdm/slick-greeter.conf
cat: /etc/lightdm/slick-greeter.conf: Aucun fichier ou dossier de ce type
Patrick@MXPatrick:~
Voici des liens que j'ai trouvé sur le net :
https://cod-box.net/ubuntu-fix-rotate-s ... k-desktop/
https://doc.ubuntu-fr.org/lenovo_miix_320_10icr
(cela concerne le miix 320)
Si vous avez une idée.
D'avance merci
You do not have the required permissions to view the files attached to this post.
Re: rotation écran au démarrage en mode portrait au lieu de paysage
Puisque c'est seulement à l'écran de connexion et les points communs de Mint et MX : Pas besoin de jouer avec d'autres paramètres, c'est lié à LightDM.
Alors, que faire ?
Vous pouvez essayer (au moins pour voir ce qui se passe) avec celles qui utilisent d'autres Display Managers :
Disons, n'importe quelle distro KDE (y compris MX KDE) : elles utilisent généralement SDDM (en session live, vous pouvez simplement vous déconnecter et vous connecter pour voir cet écran de connexion).
Aussi antiX utilise SLIM, le plus simpliste (même la version de base fera l'affaire, un iso plus petit et d'ailleurs vous aurez essayé antiX).
Ou vous pouvez installer SLIM (ou un autre DM) et essayer.
________________________________________________________
Ou bien :
décommentez cette ligne (supprimez le # au début) sous l'onglet [SeatDefaults]
#greeter-setup-script=
et changez-la en :
sauvegarder, fermer et redémarrer.
Alors, que faire ?
Vous pouvez essayer (au moins pour voir ce qui se passe) avec celles qui utilisent d'autres Display Managers :
Disons, n'importe quelle distro KDE (y compris MX KDE) : elles utilisent généralement SDDM (en session live, vous pouvez simplement vous déconnecter et vous connecter pour voir cet écran de connexion).
Aussi antiX utilise SLIM, le plus simpliste (même la version de base fera l'affaire, un iso plus petit et d'ailleurs vous aurez essayé antiX).
Ou vous pouvez installer SLIM (ou un autre DM) et essayer.
________________________________________________________
Ou bien :
Code: Select all
sudo tee /etc/lightdm/patrick.sh <<!
#!/bin/bash
xrandr -o right
exit 0
!
Code: Select all
sudo chmod +x /etc/lightdm/patrick.sh
Code: Select all
sudo nano /etc/lightdm/lightdm.conf
#greeter-setup-script=
et changez-la en :
Code: Select all
greeter-setup-script=/etc/lightdm/patrick.sh
Re: rotation écran au démarrage en mode portrait au lieu de paysage
P.S.
P.P.S.
Lorsque vous collez le 1er dans le terminal ( sudo tee ... ), il est normal qu'il vous avertisse à propos de la sécurité, il suffit de cliquer sur "coller" puis d'appuyer sur Entrée . (Ou bien, bien sûr, vous pouvez créer un tel fichier manuellement si vous le souhaitez, c'est juste pour vous faciliter la tâche).
- Vous pouvez bien sûr utiliser votre éditeur de texte préféré au lieu de nano, par exemple :
Code: Select all
sudo featherpad /etc/lightdm/lightdm.conf
- Si cela ne fonctionne pas, essayez sans la ligne exit 0 dans sh
- Si la direction est mauvaise, essayez avec ... - o left au lieu de ... - o right dans le sh.
- Vous pouvez d'abord essayer d'ajouter ceci directement dans ce fichier (à nouveau, après la ligne [SeatDefaults] ...) :
Code: Select all
display-setup-script=xrandr -o right
P.P.S.
Lorsque vous collez le 1er dans le terminal ( sudo tee ... ), il est normal qu'il vous avertisse à propos de la sécurité, il suffit de cliquer sur "coller" puis d'appuyer sur Entrée . (Ou bien, bien sûr, vous pouvez créer un tel fichier manuellement si vous le souhaitez, c'est juste pour vous faciliter la tâche).
Re: rotation écran au démarrage en mode portrait au lieu de paysage
À propos, pour les sorties de terminaux, en particulier celles qui sont longues, nous procédons de cette manière pour les rendre plus lisibles, plus faciles à faire défiler et occupant moins d'espace) :)
You do not have the required permissions to view the files attached to this post.
Re: rotation écran au démarrage en mode portrait au lieu de paysage
j'ai suivi vos conseils :
sudo tee /etc/lightdm/patrick.sh <<!
#!/bin/bash
xrandr -o right
exit 0
!
sudo chmod +x /etc/lightdm/patrick.sh
sudo nano /etc/lightdm/lightdm.conf
décommentez cette ligne (supprimez le # au début) sous l'onglet [SeatDefaults]
#greeter-setup-script=
et changez-la en :
greeter-setup-script=/etc/lightdm/patrick.sh
sauvegarder, fermer et redémarrer
Pour information : greeter-setup-script = n'existe pas, j'ai mis : greeter-setup-script=/etc/lightdm/patrick.sh
A l'ouverture du PC :
Welcome to MX Linux§ powered by Debian.
MXPatrick login : xxxx
Password : xxxxx
Last login: Thu Oct 27 12:24:30 CEST on tty1
You have no mail.
Patrick@MXPatrick :~
Et là j'avoue, je ne sais quoi faire.
sudo tee /etc/lightdm/patrick.sh <<!
#!/bin/bash
xrandr -o right
exit 0
!
sudo chmod +x /etc/lightdm/patrick.sh
sudo nano /etc/lightdm/lightdm.conf
décommentez cette ligne (supprimez le # au début) sous l'onglet [SeatDefaults]
#greeter-setup-script=
et changez-la en :
greeter-setup-script=/etc/lightdm/patrick.sh
sauvegarder, fermer et redémarrer
Pour information : greeter-setup-script = n'existe pas, j'ai mis : greeter-setup-script=/etc/lightdm/patrick.sh
A l'ouverture du PC :
Welcome to MX Linux§ powered by Debian.
MXPatrick login : xxxx
Password : xxxxx
Last login: Thu Oct 27 12:24:30 CEST on tty1
You have no mail.
Patrick@MXPatrick :~
Et là j'avoue, je ne sais quoi faire.
Re: rotation écran au démarrage en mode portrait au lieu de paysage
j'ai suivi vos conseils :
sudo tee /etc/lightdm/patrick.sh <<!
#!/bin/bash
xrandr -o right
exit 0
!
sudo chmod +x /etc/lightdm/patrick.sh
sudo nano /etc/lightdm/lightdm.conf
décommentez cette ligne (supprimez le # au début) sous l'onglet [SeatDefaults]
#greeter-setup-script=
et changez-la en :
greeter-setup-script=/etc/lightdm/patrick.sh
sauvegarder, fermer et redémarrer
Pour information : greeter-setup-script = n'existe pas, j'ai mis : greeter-setup-script=/etc/lightdm/patrick.sh
A l'ouverture du PC :
Welcome to MX Linux§ powered by Debian.
MXPatrick login : xxxx
Password : xxxxx
Last login: Thu Oct 27 12:24:30 CEST on tty1
You have no mail.
Patrick@MXPatrick :~
Et là j'avoue, je ne sais quoi faire.
sudo tee /etc/lightdm/patrick.sh <<!
#!/bin/bash
xrandr -o right
exit 0
!
sudo chmod +x /etc/lightdm/patrick.sh
sudo nano /etc/lightdm/lightdm.conf
décommentez cette ligne (supprimez le # au début) sous l'onglet [SeatDefaults]
#greeter-setup-script=
et changez-la en :
greeter-setup-script=/etc/lightdm/patrick.sh
sauvegarder, fermer et redémarrer
Pour information : greeter-setup-script = n'existe pas, j'ai mis : greeter-setup-script=/etc/lightdm/patrick.sh
A l'ouverture du PC :
Welcome to MX Linux§ powered by Debian.
MXPatrick login : xxxx
Password : xxxxx
Last login: Thu Oct 27 12:24:30 CEST on tty1
You have no mail.
Patrick@MXPatrick :~
Et là j'avoue, je ne sais quoi faire.
Re: rotation écran au démarrage en mode portrait au lieu de paysage
J'ai tester MX KDE : pas de réseau, pas de wifi et l'écran est en mode portrait.
Je vais tester antiX aussi.
@+
Je vais tester antiX aussi.
@+
Re: rotation écran au démarrage en mode portrait au lieu de paysage
j'ai noté pour le code
Re: rotation écran au démarrage en mode portrait au lieu de paysage
Ce n'est pas un problème, vous pouvez coller directement cette ligne quelque part sous le [Seat...].
Vous pouvez également essayer ces éléments un par un :
coller directement :
ou (si cela ne fonctionne pas)
(Faites seulement 1 des 3, un par un, pas tous en même temps)
Code: Select all
greeter-setup-script=/etc/lightdm/patrick.sh
coller directement :
Code: Select all
display-setup-script=xrandr -o right
Code: Select all
greeter-setup-script=xrandr -o right