Installation MAGEIA Asus [Réglé]
ASUS T100TA
Système et matériels / Installation et configuration

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
Reprise du message précédent
Merci toi aussi, bonne soirée !PS je crois que le script est bon maintenant

Code BASH :
#!/bin/bash -x # Review 2019-04-19 by Jean-Baptiste Biernacki ## Review 2016-01-03 by John Wells ## https://github.com/jfwells/linux-asus-t100ta/blob/master/support-scripts/rotate.sh ### Based 2010-10-26 on an original by Maxwell Pray (synthead), from ### https://bbs.archlinux.org/viewtopic.php?id=107167 #For information : #xinput list #⎡ Virtual core pointer id=2 [master pointer (3)] #⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] #⎜ ↳ Asus TouchPad id=11 [slave pointer (2)] #⎜ ↳ SIS0817:00 0457:1071 id=13 [slave pointer (2)] #⎣ Virtual core keyboard id=3 [master keyboard (2)] # ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] # ↳ Asus Wireless Radio Control id=6 [slave keyboard (3)] # ↳ Video Bus id=7 [slave keyboard (3)] # ↳ Sleep Button id=8 [slave keyboard (3)] # ↳ Asus Keyboard id=9 [slave keyboard (3)] # ↳ Asus Keyboard id=10 [slave keyboard (3)] # ↳ bytcr-rt5640 Headset id=12 [slave keyboard (3)] # ↳ Asus WMI hotkeys id=14 [slave keyboard (3)] # ↳ gpio-keys id=15 [slave keyboard (3)] #Check dependencies : hash xinput 2>/dev/null if [ ${?} -ne 0 ]; then echo "Install xinput first." exit fi hash xrandr 2>/dev/null if [ ${?} -ne 0 ]; then echo "Install xrandr first." exit fi grep -a $0 /proc/sched_debug 2>/dev/null if [ ${?} -eq 0 ]; then echo "The script is already running!" exit fi #Normal transformation matrix # 1 0 0 # 0 1 0 # 0 0 1 T_Matrix_normal=" 1 0 0 0 1 0 0 0 1" #Left transformation matrix # 0 -1 1 # 1 0 0 # 0 0 1 T_Matrix_left=" 0 -1 1 1 0 0 0 0 1" #Inverted transformation matrix #-1 0 1 # 0 -1 1 # 0 0 1 T_Matrix_inverte="-1 0 1 0 -1 1 0 0 1" #Right transformation matrix # 0 1 0 #-1 0 1 # 0 0 1 T_Matrix_right=" 0 1 0 -1 0 1 0 0 1" #variables sNormal="normal" sLeft="left" sRight="right" sInverted="interved" vNormal=0 vLeft=1 vRight=3 vInverted=2 #Change s[[:alpha:]] to v[[:alpha:]] for switching from string to value : normal=${sNormal} left=${sLeft} right=${sRight} inverted=${sInverted} shopt -s extglob #List of input devices to rotate : #For the full available list, type : $ xinput list device1="Virtual core XTEST pointer" device2="Asus TouchPad" device3="SIS0817:00 0457:1071" #device4="bytcr-rt5640 Headset" #device5="" #The screen to rotate : #To know which screen is to rotate, type : $ xrandr | grep " connected" | sed "s/^\([[:alnum:]]*\)[[:space:]].*/\1/" screen="DSI1" #Time between two loops period=1 pointers="$(xinput list)" xinputs="" xinputs="${xinputs} $(echo "${pointers}" | grep "${device1}" | sed 's/.*id=\([[:digit:]]*\).*/\1/' | tr '\n' ' ')" xinputs="${xinputs} $(echo "${pointers}" | grep "${device2}" | sed 's/.*id=\([[:digit:]]*\).*/\1/' | tr '\n' ' ')" xinputs="${xinputs} $(echo "${pointers}" | grep "${device3}" | sed 's/.*id=\([[:digit:]]*\).*/\1/' | tr '\n' ' ')" #xinputs="${xinputs} $(echo ${pointers} | grep "${device4}" | sed 's/.*id=\([[:digit:]]*\).*/\1/g' | tr '\n' ' ')" #Set default setting for locked orientation: #Not implemented. #lockFile="/tmp/lockedOrientation" #echo "0" > ${lockFile} while true; do #Check if rotation is locked. #Not implemented. locked=0 #locked=$(cat ${lockFile}) if [ ${locked} -eq 0 ]; then #Get current orientation set currentOrientation=$(xrandr --verbose | grep ${screen} | sed -e "s/.*) \([[:alpha:]]*\) (.*/\1/") case ${currentOrientation} in ${sNormal} ) currentOrientation="${normal}" ;; ${sLeft} ) currentOrientation="${left}" ;; ${sInverted} ) currentOrientation="${inverted}";; ${sRight} ) currentOrientation="${right}" ;; * ) echo "bug.";; esac #Get data from accelerometer x=$(cat /sys/bus/iio/devices/iio\:device0/in_accel_x_raw) y=$(cat /sys/bus/iio/devices/iio\:device0/in_accel_y_raw) z=$(cat /sys/bus/iio/devices/iio\:device0/in_accel_z_raw) nextRotation="${normal}" if [ $x -le 0 ]; then case $x in -???? ) nextRotation="${normal}";; -????? ) nextRotation="${right}";; esac fi if [ $x -ge 0 ]; then case $x in ???? ) nextRotation="${normal}";; ????? ) nextRotation="${left}";; esac fi if [ ${nextRotation} = ${normal} ]; then case $y in -????? ) nextRotation="${inverted}";; esac fi #re-orientation if [ ${nextRotation} != ${currentOrientation} ]; then xrandr -o ${nextRotation} for input in ${xinputs[@]}; do case ${nextRotation}} in ${normal} ) xinput set-prop $input "Coordinate Transformation Matrix" ${T_Matrix_normal} ;; ${left} ) xinput set-prop $input "Coordinate Transformation Matrix" ${T_Matrix_left} ;; ${inverted} ) xinput set-prop $input "Coordinate Transformation Matrix" ${T_Matrix_inverte};; ${right} ) xinput set-prop $input "Coordinate Transformation Matrix" ${T_Matrix_right} ;; * ) echo "Bug. input=${input}, nextRotation=${nextRotation}" ;; esac done fi fi sleep ${period} done
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

Guygoye Membre non connecté
-
- Voir le profil du membre Guygoye
- Inscrit le : 25/10/2018
- Groupes :
-
Modérateur
-
Forgeron
Voilà le retour, un seul bug persistant c'est ma barre tableau de bord en bas avec l'heure, elle se réduit bien quand je passe à 90° mais quand je reviens à 0 elle garde sa petite taille. Graphiquement seulement car lorsque je passe ma souris les éléments sont à la bonne, du coup il faut que je devine où sont les choses.

Code BASH :
+ hash xinput + '[' 0 -ne 0 ']' + hash xrandr + '[' 0 -ne 0 ']' + grep -a ./rotate-2.sh /proc/sched_debug + '[' 1 -eq 0 ']' + T_Matrix_normal=' 1 0 0 0 1 0 0 0 1' + T_Matrix_left=' 0 -1 1 1 0 0 0 0 1' + T_Matrix_inverte='-1 0 1 0 -1 1 0 0 1' + T_Matrix_right=' 0 1 0 -1 0 1 0 0 1' + sNormal=normal + sLeft=left + sRight=right + sInverted=interved + vNormal=0 + vLeft=1 + vRight=3 + vInverted=2 + normal=normal + left=left + right=right + inverted=interved + shopt -s extglob + device1='Virtual core XTEST pointer' + device2='Asus TouchPad' + device3='SIS0817:00 0457:1071' + screen=DSI1 + period=1 ++ xinput list + pointers='⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Asus TouchPad id=11 [slave pointer (2)] ⎜ ↳ SIS0817:00 0457:1071 id=13 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Asus Wireless Radio Control id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Sleep Button id=8 [slave keyboard (3)] ↳ Asus Keyboard id=9 [slave keyboard (3)] ↳ Asus Keyboard id=10 [slave keyboard (3)] ↳ bytcr-rt5640 Headset id=12 [slave keyboard (3)] ↳ Asus WMI hotkeys id=14 [slave keyboard (3)] ↳ gpio-keys id=15 [slave keyboard (3)]' + xinputs= ++ echo '⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Asus TouchPad id=11 [slave pointer (2)] ⎜ ↳ SIS0817:00 0457:1071 id=13 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Asus Wireless Radio Control id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Sleep Button id=8 [slave keyboard (3)] ↳ Asus Keyboard id=9 [slave keyboard (3)] ↳ Asus Keyboard id=10 [slave keyboard (3)] ↳ bytcr-rt5640 Headset id=12 [slave keyboard (3)] ↳ Asus WMI hotkeys id=14 [slave keyboard (3)] ↳ gpio-keys ++ grep 'Virtual core XTEST pointer' id=15 [slave keyboard (3)]' ++ tr '\n' ' ' ++ sed 's/.*id=\([[:digit:]]*\).*/\1/' + xinputs=' 4 ' ++ echo '⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Asus TouchPad id=11 [slave pointer (2)] ⎜ ↳ SIS0817:00 0457:1071 id=13 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Asus Wireless Radio Control id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Sleep Button id=8 [slave keyboard (3)] ↳ Asus Keyboard id=9 [slave keyboard (3)] ↳ Asus Keyboard id=10 [slave keyboard (3)] ↳ bytcr-rt5640 Headset id=12 [slave keyboard (3)] ↳ Asus WMI hotkeys id=14 [slave keyboard (3)] ↳ gpio-keys id=15 [slave keyboard (3)]' ++ grep 'Asus TouchPad' ++ tr '\n' ' ' ++ sed 's/.*id=\([[:digit:]]*\).*/\1/' + xinputs=' 4 11 ' ++ grep 'SIS0817:00 0457:1071' ++ echo '⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Asus TouchPad id=11 [slave pointer (2)] ⎜ ↳ SIS0817:00 0457:1071 id=13 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Asus Wireless Radio Control id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Sleep Button id=8 [slave keyboard (3)] ↳ Asus Keyboard id=9 [slave keyboard (3)] ↳ Asus Keyboard id=10 [slave keyboard (3)] ↳ bytcr-rt5640 Headset id=12 [slave keyboard (3)] ↳ Asus WMI hotkeys id=14 [slave keyboard (3)] ↳ gpio-keys id=15 [slave keyboard (3)]' ++ sed 's/.*id=\([[:digit:]]*\).*/\1/' ++ tr '\n' ' ' + xinputs=' 4 11 13 ' + true + locked=0 + '[' 0 -eq 0 ']' ++ xrandr --verbose ++ grep DSI1 ++ sed -e 's/.*) \([[:alpha:]]*\) (.*/\1/' + currentOrientation=normal + case ${currentOrientation} in + currentOrientation=normal ++ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw + x=595 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw + y=12982 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw + z=-9952 + nextRotation=normal + '[' 595 -le 0 ']' + '[' 595 -ge 0 ']' + case $x in + '[' normal = normal ']' + case $y in + '[' normal '!=' normal ']' + sleep 1 + true + locked=0 + '[' 0 -eq 0 ']' ++ xrandr --verbose ++ grep DSI1 ++ sed -e 's/.*) \([[:alpha:]]*\) (.*/\1/' + currentOrientation=normal + case ${currentOrientation} in + currentOrientation=normal ++ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw + x=16530 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw + y=-1292 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw + z=-3468 + nextRotation=normal + '[' 16530 -le 0 ']' + '[' 16530 -ge 0 ']' + case $x in + nextRotation=left + '[' left = normal ']' + '[' left '!=' normal ']' + xrandr -o left + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=4, nextRotation=left' Bug. input=4, nextRotation=left + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=11, nextRotation=left' Bug. input=11, nextRotation=left + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=13, nextRotation=left' Bug. input=13, nextRotation=left + sleep 1 + true + locked=0 + '[' 0 -eq 0 ']' ++ xrandr --verbose ++ grep DSI1 ++ sed -e 's/.*) \([[:alpha:]]*\) (.*/\1/' + currentOrientation=left + case ${currentOrientation} in + currentOrientation=left ++ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw + x=16971 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw + y=1841 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw + z=-3802 + nextRotation=normal + '[' 16971 -le 0 ']' + '[' 16971 -ge 0 ']' + case $x in + nextRotation=left + '[' left = normal ']' + '[' left '!=' left ']' + sleep 1 + true + locked=0 + '[' 0 -eq 0 ']' ++ xrandr --verbose ++ grep DSI1 ++ sed -e 's/.*) \([[:alpha:]]*\) (.*/\1/' + currentOrientation=left + case ${currentOrientation} in + currentOrientation=left ++ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw + x=1526 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw + y=15547 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw + z=-8331 + nextRotation=normal + '[' 1526 -le 0 ']' + '[' 1526 -ge 0 ']' + case $x in + nextRotation=normal + '[' normal = normal ']' + case $y in + '[' normal '!=' left ']' + xrandr -o normal + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=4, nextRotation=normal' Bug. input=4, nextRotation=normal + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=11, nextRotation=normal' Bug. input=11, nextRotation=normal + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=13, nextRotation=normal' Bug. input=13, nextRotation=normal + sleep 1

Guygoye Membre non connecté
-
- Voir le profil du membre Guygoye
- Inscrit le : 25/10/2018
- Groupes :
-
Modérateur
-
Forgeron
Voilà le bug:
Code BASH :
+ hash xinput + '[' 0 -ne 0 ']' + hash xrandr + '[' 0 -ne 0 ']' + grep -a ./rotate-2.sh /proc/sched_debug + '[' 1 -eq 0 ']' + T_Matrix_normal=' 1 0 0 0 1 0 0 0 1' + T_Matrix_left=' 0 -1 1 1 0 0 0 0 1' + T_Matrix_inverte='-1 0 1 0 -1 1 0 0 1' + T_Matrix_right=' 0 1 0 -1 0 1 0 0 1' + sNormal=normal + sLeft=left + sRight=right + sInverted=interved + vNormal=0 + vLeft=1 + vRight=3 + vInverted=2 + normal=normal + left=left + right=right + inverted=interved + shopt -s extglob + device1='Virtual core XTEST pointer' + device2='Asus TouchPad' + device3='SIS0817:00 0457:1071' + screen=DSI1 + period=1 ++ xinput list + pointers='⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Asus TouchPad id=11 [slave pointer (2)] ⎜ ↳ SIS0817:00 0457:1071 id=13 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Asus Wireless Radio Control id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Sleep Button id=8 [slave keyboard (3)] ↳ Asus Keyboard id=9 [slave keyboard (3)] ↳ Asus Keyboard id=10 [slave keyboard (3)] ↳ bytcr-rt5640 Headset id=12 [slave keyboard (3)] ↳ Asus WMI hotkeys id=14 [slave keyboard (3)] ↳ gpio-keys id=15 [slave keyboard (3)]' + xinputs= ++ grep 'Virtual core XTEST pointer' ++ echo '⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Asus TouchPad id=11 [slave pointer (2)] ⎜ ↳ SIS0817:00 0457:1071 id=13 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Asus Wireless Radio Control id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Sleep Button id=8 [slave keyboard (3)] ↳ Asus Keyboard id=9 [slave keyboard (3)] ↳ Asus Keyboard id=10 [slave keyboard (3)] ↳ bytcr-rt5640 Headset id=12 [slave keyboard (3)] ↳ Asus WMI hotkeys id=14 [slave keyboard (3)] ↳ gpio-keys id=15 [slave keyboard (3)]' ++ tr '\n' ' ' ++ sed 's/.*id=\([[:digit:]]*\).*/\1/' + xinputs=' 4 ' ++ echo '⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Asus TouchPad id=11 [slave pointer (2)] ⎜ ↳ SIS0817:00 0457:1071 id=13 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Asus Wireless Radio Control id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Sleep Button id=8 [slave keyboard (3)] ↳ Asus Keyboard id=9 [slave keyboard (3)] ↳ Asus Keyboard id=10 [slave keyboard (3)] ↳ bytcr-rt5640 Headset id=12 [slave keyboard (3)] ↳ Asus WMI hotkeys id=14 [slave keyboard (3)] ↳ gpio-keys id=15 [slave keyboard (3)]' ++ sed 's/.*id=\([[:digit:]]*\).*/\1/' ++ grep 'Asus TouchPad' ++ tr '\n' ' ' + xinputs=' 4 11 ' ++ echo '⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Asus TouchPad id=11 [slave pointer (2)] ⎜ ↳ SIS0817:00 0457:1071 id=13 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Asus Wireless Radio Control id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Sleep Button id=8 [slave keyboard (3)] ↳ Asus Keyboard id=9 [slave keyboard (3)] ↳ Asus Keyboard id=10 [slave keyboard (3)] ↳ bytcr-rt5640 Headset id=12 [slave keyboard (3)] ↳ Asus WMI hotkeys id=14 [slave keyboard (3)] ↳ gpio-keys id=15 [slave keyboard (3)]' ++ grep 'SIS0817:00 0457:1071' ++ tr '\n' ' ' ++ sed 's/.*id=\([[:digit:]]*\).*/\1/' + xinputs=' 4 11 13 ' + true + locked=0 + '[' 0 -eq 0 ']' ++ xrandr --verbose ++ grep DSI1 ++ sed -e 's/.*) \([[:alpha:]]*\) (.*/\1/' + currentOrientation=normal + case ${currentOrientation} in + currentOrientation=normal ++ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw + x=556 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw + y=14196 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw + z=-8095 + nextRotation=normal + '[' 556 -le 0 ']' + '[' 556 -ge 0 ']' + case $x in + '[' normal = normal ']' + case $y in + '[' normal '!=' normal ']' + sleep 1 + true + locked=0 + '[' 0 -eq 0 ']' ++ xrandr --verbose ++ grep DSI1 ++ sed -e 's/.*) \([[:alpha:]]*\) (.*/\1/' + currentOrientation=normal + case ${currentOrientation} in + currentOrientation=normal ++ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw + x=774 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw + y=15537 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw + z=-5876 + nextRotation=normal + '[' 774 -le 0 ']' + '[' 774 -ge 0 ']' + case $x in + '[' normal = normal ']' + case $y in + '[' normal '!=' normal ']' + sleep 1 + true + locked=0 + '[' 0 -eq 0 ']' ++ xrandr --verbose ++ grep DSI1 ++ sed -e 's/.*) \([[:alpha:]]*\) (.*/\1/' + currentOrientation=normal + case ${currentOrientation} in + currentOrientation=normal ++ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw + x=15877 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw + y=479 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw + z=-4846 + nextRotation=normal + '[' 15877 -le 0 ']' + '[' 15877 -ge 0 ']' + case $x in + nextRotation=left + '[' left = normal ']' + '[' left '!=' normal ']' + xrandr -o left + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=4, nextRotation=left' Bug. input=4, nextRotation=left + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=11, nextRotation=left' Bug. input=11, nextRotation=left + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=13, nextRotation=left' Bug. input=13, nextRotation=left + sleep 1 + true + locked=0 + '[' 0 -eq 0 ']' ++ xrandr --verbose ++ grep DSI1 ++ sed -e 's/.*) \([[:alpha:]]*\) (.*/\1/' + currentOrientation=left + case ${currentOrientation} in + currentOrientation=left ++ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw + x=-1027 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw + y=-15776 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw + z=-3511 + nextRotation=normal + '[' -1027 -le 0 ']' + case $x in + nextRotation=normal + '[' -1027 -ge 0 ']' + '[' normal = normal ']' + case $y in + nextRotation=interved + '[' interved '!=' left ']' + xrandr -o interved xrandr: -o: invalid argument 'interved' Try 'xrandr --help' for more information. + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=4, nextRotation=interved' Bug. input=4, nextRotation=interved + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=11, nextRotation=interved' Bug. input=11, nextRotation=interved + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=13, nextRotation=interved' Bug. input=13, nextRotation=interved + sleep 1 + true + locked=0 + '[' 0 -eq 0 ']' ++ xrandr --verbose ++ grep DSI1 ++ sed -e 's/.*) \([[:alpha:]]*\) (.*/\1/' + currentOrientation=left + case ${currentOrientation} in + currentOrientation=left ++ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw + x=-584 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw + y=-16012 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw + z=-3540 + nextRotation=normal + '[' -584 -le 0 ']' + case $x in + '[' -584 -ge 0 ']' + '[' normal = normal ']' + case $y in + nextRotation=interved + '[' interved '!=' left ']' + xrandr -o interved xrandr: -o: invalid argument 'interved' Try 'xrandr --help' for more information. + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=4, nextRotation=interved' Bug. input=4, nextRotation=interved + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=11, nextRotation=interved' Bug. input=11, nextRotation=interved + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=13, nextRotation=interved' Bug. input=13, nextRotation=interved + sleep 1 + true + locked=0 + '[' 0 -eq 0 ']' ++ xrandr --verbose ++ grep DSI1 ++ sed -e 's/.*) \([[:alpha:]]*\) (.*/\1/' + currentOrientation=left + case ${currentOrientation} in + currentOrientation=left ++ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw + x=7348 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw + y=14469 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw + z=-5055 + nextRotation=normal + '[' 7348 -le 0 ']' + '[' 7348 -ge 0 ']' + case $x in + nextRotation=normal + '[' normal = normal ']' + case $y in + '[' normal '!=' left ']' + xrandr -o normal + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=4, nextRotation=normal' Bug. input=4, nextRotation=normal + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=11, nextRotation=normal' Bug. input=11, nextRotation=normal + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=13, nextRotation=normal' Bug. input=13, nextRotation=normal + sleep 1 + true + locked=0 + '[' 0 -eq 0 ']' ++ xrandr --verbose ++ grep DSI1 ++ sed -e 's/.*) \([[:alpha:]]*\) (.*/\1/' + currentOrientation=normal + case ${currentOrientation} in + currentOrientation=normal ++ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw + x=831 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw + y=14236 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
+ xrandr -o interved
xrandr: -o: invalid argument 'interved'
Le PC ne comprends pas interved... Je ne vois pas le problème moi... xD
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
sInverted="interved"
par
sInverted="inverted"
?
C'est que ça le bogue.
Code BASH :
#!/bin/bash -x # Review 2019-04-19 by Jean-Baptiste Biernacki ## Review 2016-01-03 by John Wells ## https://github.com/jfwells/linux-asus-t100ta/blob/master/support-scripts/rotate.sh ### Based 2010-10-26 on an original by Maxwell Pray (synthead), from ### https://bbs.archlinux.org/viewtopic.php?id=107167 #For information : #xinput list #⎡ Virtual core pointer id=2 [master pointer (3)] #⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] #⎜ ↳ Asus TouchPad id=11 [slave pointer (2)] #⎜ ↳ SIS0817:00 0457:1071 id=13 [slave pointer (2)] #⎣ Virtual core keyboard id=3 [master keyboard (2)] # ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] # ↳ Asus Wireless Radio Control id=6 [slave keyboard (3)] # ↳ Video Bus id=7 [slave keyboard (3)] # ↳ Sleep Button id=8 [slave keyboard (3)] # ↳ Asus Keyboard id=9 [slave keyboard (3)] # ↳ Asus Keyboard id=10 [slave keyboard (3)] # ↳ bytcr-rt5640 Headset id=12 [slave keyboard (3)] # ↳ Asus WMI hotkeys id=14 [slave keyboard (3)] # ↳ gpio-keys id=15 [slave keyboard (3)] #Check dependencies : hash xinput 2>/dev/null if [ ${?} -ne 0 ]; then echo "Install xinput first." exit fi hash xrandr 2>/dev/null if [ ${?} -ne 0 ]; then echo "Install xrandr first." exit fi grep -a $0 /proc/sched_debug 2>/dev/null if [ ${?} -eq 0 ]; then echo "The script is already running!" exit fi #Normal transformation matrix # 1 0 0 # 0 1 0 # 0 0 1 T_Matrix_normal=" 1 0 0 0 1 0 0 0 1" #Left transformation matrix # 0 -1 1 # 1 0 0 # 0 0 1 T_Matrix_left=" 0 -1 1 1 0 0 0 0 1" #Inverted transformation matrix #-1 0 1 # 0 -1 1 # 0 0 1 T_Matrix_inverte="-1 0 1 0 -1 1 0 0 1" #Right transformation matrix # 0 1 0 #-1 0 1 # 0 0 1 T_Matrix_right=" 0 1 0 -1 0 1 0 0 1" #variables sNormal="normal" sLeft="left" sRight="right" sInverted="inverted" vNormal=0 vLeft=1 vRight=3 vInverted=2 #Change s[[:alpha:]] to v[[:alpha:]] for switching from string to value : normal=${sNormal} left=${sLeft} right=${sRight} inverted=${sInverted} shopt -s extglob #List of input devices to rotate : #For the full available list, type : $ xinput list device1="Virtual core XTEST pointer" device2="Asus TouchPad" device3="SIS0817:00 0457:1071" #device4="bytcr-rt5640 Headset" #device5="" #The screen to rotate : #To know which screen is to rotate, type : $ xrandr | grep " connected" | sed "s/^\([[:alnum:]]*\)[[:space:]].*/\1/" screen="DSI1" #Time between two loops period=1 pointers="$(xinput list)" xinputs="" xinputs="${xinputs} $(echo "${pointers}" | grep "${device1}" | sed 's/.*id=\([[:digit:]]*\).*/\1/' | tr '\n' ' ')" xinputs="${xinputs} $(echo "${pointers}" | grep "${device2}" | sed 's/.*id=\([[:digit:]]*\).*/\1/' | tr '\n' ' ')" xinputs="${xinputs} $(echo "${pointers}" | grep "${device3}" | sed 's/.*id=\([[:digit:]]*\).*/\1/' | tr '\n' ' ')" #xinputs="${xinputs} $(echo ${pointers} | grep "${device4}" | sed 's/.*id=\([[:digit:]]*\).*/\1/g' | tr '\n' ' ')" #Set default setting for locked orientation: #Not implemented. #lockFile="/tmp/lockedOrientation" #echo "0" > ${lockFile} while true; do #Check if rotation is locked. #Not implemented. locked=0 #locked=$(cat ${lockFile}) if [ ${locked} -eq 0 ]; then #Get current orientation set currentOrientation=$(xrandr --verbose | grep ${screen} | sed -e "s/.*) \([[:alpha:]]*\) (.*/\1/") case ${currentOrientation} in ${sNormal} ) currentOrientation="${normal}" ;; ${sLeft} ) currentOrientation="${left}" ;; ${sInverted} ) currentOrientation="${inverted}";; ${sRight} ) currentOrientation="${right}" ;; * ) echo "bug.";; esac #Get data from accelerometer x=$(cat /sys/bus/iio/devices/iio\:device0/in_accel_x_raw) y=$(cat /sys/bus/iio/devices/iio\:device0/in_accel_y_raw) z=$(cat /sys/bus/iio/devices/iio\:device0/in_accel_z_raw) nextRotation="${normal}" if [ $x -le 0 ]; then case $x in -???? ) nextRotation="${normal}";; -????? ) nextRotation="${right}";; esac fi if [ $x -ge 0 ]; then case $x in ???? ) nextRotation="${normal}";; ????? ) nextRotation="${left}";; esac fi if [ ${nextRotation} = ${normal} ]; then case $y in -????? ) nextRotation="${inverted}";; esac fi #re-orientation if [ ${nextRotation} != ${currentOrientation} ]; then xrandr -o ${nextRotation} for input in ${xinputs[@]}; do case ${nextRotation}} in ${normal} ) xinput set-prop $input "Coordinate Transformation Matrix" ${T_Matrix_normal} ;; ${left} ) xinput set-prop $input "Coordinate Transformation Matrix" ${T_Matrix_left} ;; ${inverted} ) xinput set-prop $input "Coordinate Transformation Matrix" ${T_Matrix_inverte};; ${right} ) xinput set-prop $input "Coordinate Transformation Matrix" ${T_Matrix_right} ;; * ) echo "Bug. input=${input}, nextRotation=${nextRotation}" ;; esac done fi fi sleep ${period} done
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
Guygoye :
Graphiquement seulement car lorsque je passe ma souris les éléments sont à la bonne, du coup il faut que je devine où sont les choses. 

Heu... Je peux faire quelque chose...
Je dois me renseigner comment rafraichir KDE. (malheureusement, le script deviendra dépendant de KDE, et ne marchera plus sous les autres environnement de bureau.)
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

Guygoye Membre non connecté
-
- Voir le profil du membre Guygoye
- Inscrit le : 25/10/2018
- Groupes :
-
Modérateur
-
Forgeron
Ca marche et je ne crois pas qu'il y ait de bug...
Code BASH :
+ hash xinput + '[' 0 -ne 0 ']' + hash xrandr + '[' 0 -ne 0 ']' + grep -a ./rotate-2.sh /proc/sched_debug + '[' 1 -eq 0 ']' + T_Matrix_normal=' 1 0 0 0 1 0 0 0 1' + T_Matrix_left=' 0 -1 1 1 0 0 0 0 1' + T_Matrix_inverte='-1 0 1 0 -1 1 0 0 1' + T_Matrix_right=' 0 1 0 -1 0 1 0 0 1' + sNormal=normal + sLeft=left + sRight=right + sInverted=inverted + vNormal=0 + vLeft=1 + vRight=3 + vInverted=2 + normal=normal + left=left + right=right + inverted=inverted + shopt -s extglob + device1='Virtual core XTEST pointer' + device2='Asus TouchPad' + device3='SIS0817:00 0457:1071' + screen=DSI1 + period=1 ++ xinput list + pointers='⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Asus TouchPad id=11 [slave pointer (2)] ⎜ ↳ SIS0817:00 0457:1071 id=13 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Asus Wireless Radio Control id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Sleep Button id=8 [slave keyboard (3)] ↳ Asus Keyboard id=9 [slave keyboard (3)] ↳ Asus Keyboard id=10 [slave keyboard (3)] ↳ bytcr-rt5640 Headset id=12 [slave keyboard (3)] ↳ Asus WMI hotkeys id=14 [slave keyboard (3)] ↳ gpio-keys id=15 [slave keyboard (3)]' + xinputs= ++ echo '⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Asus TouchPad id=11 [slave pointer (2)] ⎜ ↳ SIS0817:00 0457:1071 id=13 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Asus Wireless Radio Control id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Sleep Button id=8 [slave keyboard (3)] ↳ Asus Keyboard id=9 [slave keyboard (3)] ↳ Asus Keyboard id=10 [slave keyboard (3)] ↳ bytcr-rt5640 Headset id=12 [slave keyboard (3)] ↳ Asus WMI hotkeys id=14 [slave keyboard (3)] ↳ gpio-keys id=15 [slave keyboard (3)]' ++ grep 'Virtual core XTEST pointer' ++ tr '\n' ' ' ++ sed 's/.*id=\([[:digit:]]*\).*/\1/' + xinputs=' 4 ' ++ grep 'Asus TouchPad' ++ sed 's/.*id=\([[:digit:]]*\).*/\1/' ++ echo '⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Asus TouchPad id=11 [slave pointer (2)] ⎜ ↳ SIS0817:00 0457:1071 id=13 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Asus Wireless Radio Control id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Sleep Button id=8 [slave keyboard (3)] ↳ Asus Keyboard id=9 [slave keyboard (3)] ↳ Asus Keyboard id=10 [slave keyboard (3)] ↳ bytcr-rt5640 Headset id=12 [slave keyboard (3)] ↳ Asus WMI hotkeys id=14 [slave keyboard (3)] ↳ gpio-keys id=15 [slave keyboard (3)]' ++ tr '\n' ' ' + xinputs=' 4 11 ' ++ grep 'SIS0817:00 0457:1071' ++ echo '⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Asus TouchPad id=11 [slave pointer (2)] ⎜ ↳ SIS0817:00 0457:1071 id=13 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Asus Wireless Radio Control id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Sleep Button id=8 [slave keyboard (3)] ↳ Asus Keyboard id=9 [slave keyboard (3)] ↳ Asus Keyboard id=10 [slave keyboard (3)] ↳ bytcr-rt5640 Headset id=12 [slave keyboard (3)] ↳ Asus WMI hotkeys id=14 [slave keyboard (3)] ↳ gpio-keys id=15 [slave keyboard (3)]' ++ tr '\n' ' ' ++ sed 's/.*id=\([[:digit:]]*\).*/\1/' + xinputs=' 4 11 13 ' + true + locked=0 + '[' 0 -eq 0 ']' ++ xrandr --verbose ++ grep DSI1 ++ sed -e 's/.*) \([[:alpha:]]*\) (.*/\1/' + currentOrientation=normal + case ${currentOrientation} in + currentOrientation=normal ++ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw + x=278 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw + y=14916 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw + z=-6530 + nextRotation=normal + '[' 278 -le 0 ']' + '[' 278 -ge 0 ']' + case $x in + '[' normal = normal ']' + case $y in + '[' normal '!=' normal ']' + sleep 1 + true + locked=0 + '[' 0 -eq 0 ']' ++ xrandr --verbose ++ grep DSI1 ++ sed -e 's/.*) \([[:alpha:]]*\) (.*/\1/' + currentOrientation=normal + case ${currentOrientation} in + currentOrientation=normal ++ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw + x=8631 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw + y=9779 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw + z=-7243 + nextRotation=normal + '[' 8631 -le 0 ']' + '[' 8631 -ge 0 ']' + case $x in + nextRotation=normal + '[' normal = normal ']' + case $y in + '[' normal '!=' normal ']' + sleep 1 + true + locked=0 + '[' 0 -eq 0 ']' ++ xrandr --verbose ++ grep DSI1 ++ sed -e 's/.*) \([[:alpha:]]*\) (.*/\1/' + currentOrientation=normal + case ${currentOrientation} in + currentOrientation=normal ++ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw + x=16565 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw + y=-191 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw + z=-1898 + nextRotation=normal + '[' 16565 -le 0 ']' + '[' 16565 -ge 0 ']' + case $x in + nextRotation=left + '[' left = normal ']' + '[' left '!=' normal ']' + xrandr -o left + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=4, nextRotation=left' Bug. input=4, nextRotation=left + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=11, nextRotation=left' Bug. input=11, nextRotation=left + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=13, nextRotation=left' Bug. input=13, nextRotation=left + sleep 1 + true + locked=0 + '[' 0 -eq 0 ']' ++ xrandr --verbose ++ grep DSI1 ++ sed -e 's/.*) \([[:alpha:]]*\) (.*/\1/' + currentOrientation=left + case ${currentOrientation} in + currentOrientation=left ++ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw + x=6781 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw + y=-13939 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw + z=-3527 + nextRotation=normal + '[' 6781 -le 0 ']' + '[' 6781 -ge 0 ']' + case $x in + nextRotation=normal + '[' normal = normal ']' + case $y in + nextRotation=inverted + '[' inverted '!=' left ']' + xrandr -o inverted + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=4, nextRotation=inverted' Bug. input=4, nextRotation=inverted + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=11, nextRotation=inverted' Bug. input=11, nextRotation=inverted + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=13, nextRotation=inverted' Bug. input=13, nextRotation=inverted + sleep 1 + true + locked=0 + '[' 0 -eq 0 ']' ++ xrandr --verbose ++ grep DSI1 ++ sed -e 's/.*) \([[:alpha:]]*\) (.*/\1/' + currentOrientation=inverted + case ${currentOrientation} in + currentOrientation=inverted ++ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw + x=11477 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw + y=-6567 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw + z=-6836 + nextRotation=normal + '[' 11477 -le 0 ']' + '[' 11477 -ge 0 ']' + case $x in + nextRotation=left + '[' left = normal ']' + '[' left '!=' inverted ']' + xrandr -o left + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=4, nextRotation=left' Bug. input=4, nextRotation=left + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=11, nextRotation=left' Bug. input=11, nextRotation=left + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=13, nextRotation=left' Bug. input=13, nextRotation=left + sleep 1 + true + locked=0 + '[' 0 -eq 0 ']' ++ xrandr --verbose ++ grep DSI1 ++ sed -e 's/.*) \([[:alpha:]]*\) (.*/\1/' + currentOrientation=left + case ${currentOrientation} in + currentOrientation=left ++ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw + x=223 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw + y=15021 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw + z=-6503 + nextRotation=normal + '[' 223 -le 0 ']' + '[' 223 -ge 0 ']' + case $x in + '[' normal = normal ']' + case $y in + '[' normal '!=' left ']' + xrandr -o normal + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=4, nextRotation=normal' Bug. input=4, nextRotation=normal + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=11, nextRotation=normal' Bug. input=11, nextRotation=normal + for input in ${xinputs[@]} + case ${nextRotation}} in + echo 'Bug. input=13, nextRotation=normal' Bug. input=13, nextRotation=normal + sleep 1
Concernant l'interface graphique si ça ne marche que sous KDE, pas de problème, si je vous lais conserver GNOME, je resterais sur FEDORA

Je fais encore quelques tests de la souris et je reviens

Guygoye Membre non connecté
-
- Voir le profil du membre Guygoye
- Inscrit le : 25/10/2018
- Groupes :
-
Modérateur
-
Forgeron

Je suis super content de jouer les testeurs pour toi mais où as tu appris tout ça?
Le langage BASH et le fonctionnement du système d’exploitation ?
J'ai déjà quelques notions de programmation en Java et en Python mais là j'avoue que de bricoler des scripts et son système c'est vraiment sympa

Bon sinon on attaque le problème de la souris ?

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
Je ne comprends pas le problème...
Du coup, je ne sais pas pourquoi, j'ai fait de l'optimisation (en fait c'était pour être sûr de cerner un problème...). Je peux aussi bloquer l'inversion dans le cas où il y a un soucis.
Voici le script :
Code BASH :
#!/bin/bash -x # Review 2019-04-19 by Jean-Baptiste Biernacki ## Review 2016-01-03 by John Wells ## https://github.com/jfwells/linux-asus-t100ta/blob/master/support-scripts/rotate.sh ### Based 2010-10-26 on an original by Maxwell Pray (synthead), from ### https://bbs.archlinux.org/viewtopic.php?id=107167 #For information : #xinput list #⎡ Virtual core pointer id=2 [master pointer (3)] #⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] #⎜ ↳ Asus TouchPad id=11 [slave pointer (2)] #⎜ ↳ SIS0817:00 0457:1071 id=13 [slave pointer (2)] #⎣ Virtual core keyboard id=3 [master keyboard (2)] # ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] # ↳ Asus Wireless Radio Control id=6 [slave keyboard (3)] # ↳ Video Bus id=7 [slave keyboard (3)] # ↳ Sleep Button id=8 [slave keyboard (3)] # ↳ Asus Keyboard id=9 [slave keyboard (3)] # ↳ Asus Keyboard id=10 [slave keyboard (3)] # ↳ bytcr-rt5640 Headset id=12 [slave keyboard (3)] # ↳ Asus WMI hotkeys id=14 [slave keyboard (3)] # ↳ gpio-keys id=15 [slave keyboard (3)] #Check dependencies : hash xinput 2>/dev/null if [ ${?} -ne 0 ]; then echo "Install xinput first." exit fi hash xrandr 2>/dev/null if [ ${?} -ne 0 ]; then echo "Install xrandr first." exit fi grep -a $0 /proc/sched_debug 2>/dev/null if [ ${?} -eq 0 ]; then echo "The script is already running!" exit fi #Normal transformation matrix # 1 0 0 # 0 1 0 # 0 0 1 T_Matrix_normal=" 1 0 0 0 1 0 0 0 1" #Left transformation matrix # 0 -1 1 # 1 0 0 # 0 0 1 T_Matrix_left=" 0 -1 1 1 0 0 0 0 1" #Inverted transformation matrix #-1 0 1 # 0 -1 1 # 0 0 1 T_Matrix_inverted="-1 0 1 0 -1 1 0 0 1" #Right transformation matrix # 0 1 0 #-1 0 1 # 0 0 1 T_Matrix_right=" 0 1 0 -1 0 1 0 0 1" #Set default matrix T_Matrix=${T_Matrix_normal} #variables sNormal="normal" sLeft="left" sRight="right" sInverted="inverted" vNormal=0 vLeft=1 vRight=3 vInverted=2 #Change s[[:alpha:]] to v[[:alpha:]] for switching from string to value : normal=${sNormal} left=${sLeft} right=${sRight} inverted=${sInverted} shopt -s extglob #List of input devices to rotate : #For the full available list, type : $ xinput list device1="Virtual core XTEST pointer" device2="Asus TouchPad" device3="SIS0817:00 0457:1071" #device4="bytcr-rt5640 Headset" #device5="" #The screen to rotate : #To know which screen is to rotate, type : $ xrandr | grep " connected" | sed "s/^\([[:alnum:]]*\)[[:space:]].*/\1/" screen="DSI1" #Time between two loops period=1 pointers="$(xinput list)" xinputs="" xinputs="${xinputs} $(echo "${pointers}" | grep "${device1}" | sed 's/.*id=\([[:digit:]]*\).*/\1/' | tr '\n' ' ')" xinputs="${xinputs} $(echo "${pointers}" | grep "${device2}" | sed 's/.*id=\([[:digit:]]*\).*/\1/' | tr '\n' ' ')" xinputs="${xinputs} $(echo "${pointers}" | grep "${device3}" | sed 's/.*id=\([[:digit:]]*\).*/\1/' | tr '\n' ' ')" #xinputs="${xinputs} $(echo ${pointers} | grep "${device4}" | sed 's/.*id=\([[:digit:]]*\).*/\1/g' | tr '\n' ' ')" #Set default setting for locked orientation: #Not implemented. #lockFile="/tmp/lockedOrientation" #echo "0" > ${lockFile} while true; do #Check if rotation is locked. #Not implemented. locked=0 #locked=$(cat ${lockFile}) if [ ${locked} -eq 0 ]; then #Get current orientation set currentOrientation=$(xrandr --verbose | grep ${screen} | sed -e "s/.*) \([[:alpha:]]*\) (.*/\1/") case ${currentOrientation} in ${sNormal} ) currentOrientation="${normal}" ;; ${sLeft} ) currentOrientation="${left}" ;; ${sInverted} ) currentOrientation="${inverted}";; ${sRight} ) currentOrientation="${right}" ;; * ) echo "bug.";; esac #Get data from accelerometer x=$(cat /sys/bus/iio/devices/iio\:device0/in_accel_x_raw) y=$(cat /sys/bus/iio/devices/iio\:device0/in_accel_y_raw) z=$(cat /sys/bus/iio/devices/iio\:device0/in_accel_z_raw) nextRotation="${normal}" if [ $x -le 0 ]; then case $x in -???? ) nextRotation="${normal}";; -????? ) nextRotation="${right}";; esac fi if [ $x -ge 0 ]; then case $x in ???? ) nextRotation="${normal}";; ????? ) nextRotation="${left}";; esac fi if [ ${nextRotation} = ${normal} ]; then case $y in -????? ) nextRotation="${inverted}";; esac fi #re-orientation if [ ${nextRotation} != ${currentOrientation} ]; then #Get the right rotation matrix case ${nextRotation} in ${normal} ) T_Matrix=${T_Matrix_normal} ;; ${left} ) T_Matrix=${T_Matrix_left} ;; ${inverted} ) T_Matrix=${T_Matrix_inverted} ;; ${right} ) T_Matrix=${T_Matrix_right} ;; * ) echo "Bug. nextRotation=${nextRotation}" ;; esac xrandr -o ${nextRotation} for input in ${xinputs[@]}; do xinput set-prop ${input} "Coordinate Transformation Matrix" ${T_Matrix} done fi fi sleep ${period} done
Des explications quant au problème (et j'ai appris hier, le rubber duck debugging, c'est expliquer le problème à un canard en plastique, et ça aide vraiment, je le fais avec mes camarades, ils ne comprennent rien, mais ça m'aide !)
Au début du script, on définit une variable en chaine de caractère "inverted" nommée sInverted, pour la réutiliser, on prendra ${sInverted}. Je prends une chaine de caractère, car c'est intelligible, et mieux que "2".
Juste après, je défini la variable inverted comme étant égale à la varaible sInverted, donc quand on utilise ${inverted} on a la valeur "inverted". (si à la place de sInverted on met vInverted, on aura "2" à la place de "inverted".
Pour pouvoir faire un "switch case" avec comme cas des variables ( ${inverted}, j'active l'option avec "shopt -s extglob".
Plus loin, on vient utiliser ces variables. On dit que "nextRotation" est égale à ${inverted}, puis on demande de changer l'orientation avec ${inverted} (et ça fonctionne, donc le contenu de la variable est bon), puis on fait un switch case là encore avec nextRotation. Pour les autes cas, ça fonctionne, mais dans le cas où :
nextRotation = ${inverted}
case ${nextRotation} in
[...]
${inverted} ) [...] ;;
* ) echo BUG. ;;
esac
C'est comme dire :
B=A
en fonction de B :
Si B=A fait ça
Si B n'a pas de correspondance, affiche ce message de bug.
Pour les cas ou A est droite, gauche, normal, ça va, mais pour le cas ou A est inverted, ça déraille... Pourquoi ?!
Normalement, à ce moment là, j'aurai du avoir une lumière, me dire "Ah mais oui ! Ce que je te dis à toi mon petit canard n'a aucun sens ! Merci Rubber Duck !". Mais là... Non...
Comme je ne sais pas où est le problème, je rajoute des espaces. Peut-être qu'il n'a pas délimiter la fin de la ligne !!!
Hum... Je viens de voir qu'en fait, ce n'est pas seulement avec "inverted"... Mais avec tous... Donc peut-être la structure switchcase qui ne marche pas, et potentiellement à cause de ce } qui s'est rajouté !
Tente ce script ! Et dis moi quoi !
Édité par Jybz Le 20/04/2019 à 20h04
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

Guygoye Membre non connecté
-
- Voir le profil du membre Guygoye
- Inscrit le : 25/10/2018
- Groupes :
-
Modérateur
-
Forgeron
Code BASH :
+ hash xinput + '[' 0 -ne 0 ']' + hash xrandr + '[' 0 -ne 0 ']' + grep -a ./rotate-2.sh /proc/sched_debug + '[' 1 -eq 0 ']' + T_Matrix_normal=' 1 0 0 0 1 0 0 0 1' + T_Matrix_left=' 0 -1 1 1 0 0 0 0 1' + T_Matrix_inverted='-1 0 1 0 -1 1 0 0 1' + T_Matrix_right=' 0 1 0 -1 0 1 0 0 1' + T_Matrix=' 1 0 0 0 1 0 0 0 1' + sNormal=normal + sLeft=left + sRight=right + sInverted=inverted + vNormal=0 + vLeft=1 + vRight=3 + vInverted=2 + normal=normal + left=left + right=right + inverted=inverted + shopt -s extglob + device1='Virtual core XTEST pointer' + device2='Asus TouchPad' + device3='SIS0817:00 0457:1071' + screen=DSI1 + period=1 ++ xinput list + pointers='⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Asus TouchPad id=11 [slave pointer (2)] ⎜ ↳ SIS0817:00 0457:1071 id=13 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Asus Wireless Radio Control id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Sleep Button id=8 [slave keyboard (3)] ↳ Asus Keyboard id=9 [slave keyboard (3)] ↳ Asus Keyboard id=10 [slave keyboard (3)] ↳ bytcr-rt5640 Headset id=12 [slave keyboard (3)] ↳ Asus WMI hotkeys id=14 [slave keyboard (3)] ↳ gpio-keys id=15 [slave keyboard (3)]' + xinputs= ++ echo '⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Asus TouchPad id=11 [slave pointer (2)] ⎜ ↳ SIS0817:00 0457:1071 id=13 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Asus Wireless Radio Control id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Sleep Button id=8 [slave keyboard (3)] ↳ Asus Keyboard id=9 [slave keyboard (3)] ↳ Asus Keyboard id=10 [slave keyboard (3)] ↳ bytcr-rt5640 Headset id=12 [slave keyboard (3)] ↳ Asus WMI hotkeys id=14 [slave keyboard (3)] ↳ gpio-keys id=15 [slave keyboard (3)]' ++ sed 's/.*id=\([[:digit:]]*\).*/\1/' ++ tr '\n' ' ' ++ grep 'Virtual core XTEST pointer' + xinputs=' 4 ' ++ echo '⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Asus TouchPad id=11 [slave pointer (2)] ⎜ ↳ SIS0817:00 0457:1071 id=13 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Asus Wireless Radio Control id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Sleep Button id=8 [slave keyboard (3)] ↳ Asus Keyboard id=9 [slave keyboard (3)] ↳ Asus Keyboard id=10 [slave keyboard (3)] ↳ bytcr-rt5640 Headset id=12 [slave keyboard (3)] ↳ Asus WMI hotkeys id=14 [slave keyboard (3)] ↳ gpio-keys id=15 [slave keyboard (3)]' ++ grep 'Asus TouchPad' ++ tr '\n' ' ' ++ sed 's/.*id=\([[:digit:]]*\).*/\1/' + xinputs=' 4 11 ' ++ echo '⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Asus TouchPad id=11 [slave pointer (2)] ⎜ ↳ SIS0817:00 0457:1071 id=13 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Asus Wireless Radio Control id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Sleep Button id=8 [slave keyboard (3)] ↳ Asus Keyboard id=9 [slave keyboard (3)] ↳ Asus Keyboard id=10 [slave keyboard (3)] ↳ bytcr-rt5640 Headset id=12 [slave keyboard (3)] ↳ Asus WMI hotkeys id=14 [slave keyboard (3)] ↳ gpio-keys ++ grep 'SIS0817:00 0457:1071' id=15 [slave keyboard (3)]' ++ tr '\n' ' ' ++ sed 's/.*id=\([[:digit:]]*\).*/\1/' + xinputs=' 4 11 13 ' + true + locked=0 + '[' 0 -eq 0 ']' ++ xrandr --verbose ++ sed -e 's/.*) \([[:alpha:]]*\) (.*/\1/' ++ grep DSI1 + currentOrientation=normal + case ${currentOrientation} in + currentOrientation=normal ++ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw + x=185 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw + y=15229 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw + z=-5875 + nextRotation=normal + '[' 185 -le 0 ']' + '[' 185 -ge 0 ']' + case $x in + '[' normal = normal ']' + case $y in + '[' normal '!=' normal ']' + sleep 1 + true + locked=0 + '[' 0 -eq 0 ']' ++ xrandr --verbose ++ grep DSI1 ++ sed -e 's/.*) \([[:alpha:]]*\) (.*/\1/' + currentOrientation=normal + case ${currentOrientation} in + currentOrientation=normal ++ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw + x=1927 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw + y=13970 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw + z=-6254 + nextRotation=normal + '[' 1927 -le 0 ']' + '[' 1927 -ge 0 ']' + case $x in + nextRotation=normal + '[' normal = normal ']' + case $y in + '[' normal '!=' normal ']' + sleep 1 + true + locked=0 + '[' 0 -eq 0 ']' ++ xrandr --verbose ++ grep DSI1 ++ sed -e 's/.*) \([[:alpha:]]*\) (.*/\1/' + currentOrientation=left + case ${currentOrientation} in + currentOrientation=left ++ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw + x=15471 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw + y=2605 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw + z=-4898 + nextRotation=normal + '[' 15471 -le 0 ']' + '[' 15471 -ge 0 ']' + case $x in + nextRotation=left + '[' left = normal ']' + '[' left '!=' left ']' + sleep 1 + true + locked=0 + '[' 0 -eq 0 ']' ++ grep DSI1 ++ xrandr --verbose ++ sed -e 's/.*) \([[:alpha:]]*\) (.*/\1/' + currentOrientation=left + case ${currentOrientation} in + currentOrientation=left ++ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw + x=15707 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw + y=2371 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw + z=-4243 + nextRotation=normal + '[' 15707 -le 0 ']' + '[' 15707 -ge 0 ']' + case $x in + nextRotation=left + '[' left = normal ']' + '[' left '!=' left ']' + sleep 1 + true + locked=0 + '[' 0 -eq 0 ']' ++ xrandr --verbose ++ grep DSI1 ++ sed -e 's/.*) \([[:alpha:]]*\) (.*/\1/' + currentOrientation=left + case ${currentOrientation} in + currentOrientation=left ++ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw + x=15817 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw + y=2060 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw + z=-4225 + nextRotation=normal + '[' 15817 -le 0 ']' + '[' 15817 -ge 0 ']' + case $x in + nextRotation=left + '[' left = normal ']' + '[' left '!=' left ']' + sleep 1 + true + locked=0 + '[' 0 -eq 0 ']' ++ xrandr --verbose ++ grep DSI1 ++ sed -e 's/.*) \([[:alpha:]]*\) (.*/\1/' + currentOrientation=left + case ${currentOrientation} in + currentOrientation=left ++ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw + x=15746 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw + y=2601 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw + z=-4181 + nextRotation=normal + '[' 15746 -le 0 ']' + '[' 15746 -ge 0 ']' + case $x in + nextRotation=left + '[' left = normal ']' + '[' left '!=' left ']' + sleep 1 + true + locked=0 + '[' 0 -eq 0 ']' ++ xrandr --verbose ++ grep DSI1 ++ sed -e 's/.*) \([[:alpha:]]*\) (.*/\1/' + currentOrientation=left + case ${currentOrientation} in + currentOrientation=left ++ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw + x=4352 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw + y=13887 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw + z=-5993 + nextRotation=normal + '[' 4352 -le 0 ']' + '[' 4352 -ge 0 ']' + case $x in + nextRotation=normal + '[' normal = normal ']' + case $y in + '[' normal '!=' left ']' + case ${nextRotation} in + T_Matrix=' 1 0 0 0 1 0 0 0 1' + xrandr -o normal + for input in ${xinputs[@]} + xinput set-prop 4 'Coordinate Transformation Matrix' 1 0 0 0 1 0 0 0 1 + for input in ${xinputs[@]} + xinput set-prop 11 'Coordinate Transformation Matrix' 1 0 0 0 1 0 0 0 1 + for input in ${xinputs[@]} + xinput set-prop 13 'Coordinate Transformation Matrix' 1 0 0 0 1 0 0 0 1 + sleep 1 + true + locked=0 + '[' 0 -eq 0 ']' ++ xrandr --verbose ++ grep DSI1 ++ sed -e 's/.*) \([[:alpha:]]*\) (.*/\1/' + currentOrientation=normal + case ${currentOrientation} in + currentOrientation=normal ++ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw + x=193 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw + y=15258 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw + z=-5748 + nextRotation=normal + '[' 193 -le 0 ']' + '[' 193 -ge 0 ']' + case $x in + '[' normal = normal ']' + case $y in + '[' normal '!=' normal ']' + sleep 1 + true + locked=0 + '[' 0 -eq 0 ']' ++ xrandr --verbose ++ grep DSI1 ++ sed -e 's/.*) \([[:alpha:]]*\) (.*/\1/' + currentOrientation=normal + case ${currentOrientation} in + currentOrientation=normal ++ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw + x=193 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw + y=15263 ++ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw + z=-5778 + nextRotation=normal + '[' 193 -le 0 ']' + '[' 193 -ge 0 ']' + case $x in + '[' normal = normal ']' + case $y in + '[' normal '!=' normal ']' + sleep 1
Je vais peut être tester le tout 1er l'original pour voir si la souris fonctionne!

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
Guygoye :
[...]où as tu appris tout ça? [...]
Petit à petit, au fil de mes besoins, par exemple j'ai besoin de renommer des fichiers, je tatonne, puis j'ai besoin de rapidement envoyer des messages UDP à un microcontrolleur, pas le temps de développer un programme en C, et j'apprends qu'il y a ncat qui le fait ! Alors j'ai la solution "ligne de commande" qui est sujet aux bogues si je retape mal la commande et l'oublie après une ou deux semaines, alors que le script, c'est une bonne mémoire, et quand il marche une fois, il ne se trompera pas une seconde fois. Puis il faut l'admettre, ça me passionne !
Guygoye :
J'ai déjà quelques notions de programmation en Java et en Python mais là j'avoue que de bricoler des scripts et son système c'est vraiment sympa
J'ai déjà quelques notions de programmation en Java et en Python mais là j'avoue que de bricoler des scripts et son système c'est vraiment sympa

Oui ! C'est vraiment un "plus" quand on découvre, chose qu'on ne peut pas sous windows ! Enfin... Si... le batch... Mais ce n'est pas aussi performant que sous linux. D'autant plus que sous linux, il démarre en shell et lance l'interface graphique, sous windows, c'est un peu plus difficile.
J'ai une question, as tu une souris USB qui traine ?
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
Guygoye :
Je vais peut être tester le tout 1er l'original pour voir si la souris fonctionne!
Code BASH :
[...] + '[' normal '!=' left ']' + case ${nextRotation} in + T_Matrix=' 1 0 0 0 1 0 0 0 1' + xrandr -o normal + for input in ${xinputs[@]} + xinput set-prop 4 'Coordinate Transformation Matrix' 1 0 0 0 1 0 0 0 1 + for input in ${xinputs[@]} + xinput set-prop 11 'Coordinate Transformation Matrix' 1 0 0 0 1 0 0 0 1 + for input in ${xinputs[@]} + xinput set-prop 13 'Coordinate Transformation Matrix' 1 0 0 0 1 0 0 0 1 + sleep 1 [...]
Je vais peut être tester le tout 1er l'original pour voir si la souris fonctionne!
Je ne vois pas d'erreur... C'est tout bon ?
Édité par Jybz Le 20/04/2019 à 20h23
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

Guygoye Membre non connecté
-
- Voir le profil du membre Guygoye
- Inscrit le : 25/10/2018
- Groupes :
-
Modérateur
-
Forgeron
Oui mais pas sous la main tout de suite je vais manger :p
Je vais tester la souris et reviens!

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
Quand tu testeras la souris, si ça ne fonctionne pas comme désiré, pourras tu me donner la commande :
$ xinput list
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
Ça fait encore un ou deux scripts à faire ^^
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie