je n'ai pas besoin d'assistance mais plutôt donner quelques infos sur un problème que j'ai rencontré. Désolé si je ne suis pas au bon endroit.
J'ai acheté un ordi/tablette chinoise (un alldocube KnoteX pro ) sous win 10.
je me suis empressé d'installer Mint (mate) dessus.
et là, déception. la rotation de l’écran ne fonctionne pas quand je met la tablette verticale et pas d'option comme sur cinnamon...
Je recherche un peu , j'utilise xrandr , l'image tourne mais le tactile reste dans sa position originale, peu pratique.
J'en suis arrivé en regroupant plusieurs sujets/sites, a modifier un petit script qui me donne entière satisfaction.
Je vous le soumet, si ça peut être utile à quelqu'un...
Code : Tout sélectionner
#!/bin/sh
# adaptation du scipt de chadm
# https://linuxappfinder.com/blog/auto_screen_rotation_in_ubuntu
# installer iio-sensor
# ce script peut-etre installé au demarrage
# trouver l'ecran tactile :
# xinput -list
# pour moi c'est GDIX8500:00 27C6:0101 id:14
xinput enable 14
# nettoyer sensor.log
> sensor.log
# Launch monitor-sensor and store the output in a variable that can be parsed by the rest of the script
monitor-sensor >> sensor.log 2>&1 &
# Parse output or monitor sensor to get the new orientation whenever the log file is updated
# Possibles are: normal, bottom-up, right-up, left-up
# Light data will be ignored
while inotifywait -e modify sensor.log; do
# Read the last line that was added to the file and get the orientation
ORIENTATION=$(tail -n 1 sensor.log | grep 'orientation' | grep -oE '[^ ]+$')
# Set the actions to be taken for each possible orientation
#pour trouver les coordonnées je me suis servi de https://wiki.ubuntu.com/X/InputCoordinateTransformation
#remplacer GDIX8500... par votre propre resultat de xinput
# et eDP-1 avec la commande xrandr.
case "$ORIENTATION" in
normal)
xrandr --output eDP-1 --rotate inverted && xinput set-prop 'GDIX8500:00 27C6:0101' 'Coordinate Transformation Matrix' -1 0 1 0 -1 1 0 0 1;;
bottom-up)
xrandr --output eDP-1 --rotate normal && xinput set-prop 'GDIX8500:00 27C6:0101' 'Coordinate Transformation Matrix' 1 0 0 0 1 0 0 0 1;;
right-up)
xrandr --output eDP-1 --rotate right && xinput set-prop 'GDIX8500:00 27C6:0101' 'Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 1;;
left-up)
xrandr --output eDP-1 --rotate left && xinput set-prop 'GDIX8500:00 27C6:0101' 'Coordinate Transformation Matrix' 0 -1 1 1 0 0 0 0 1;;
esac
done
Bencoyote