Bonjours à tous ! j'ai suivi le wiki (https://batocera-linux.xorhub.com/wiki/doku.php?id=fr:rotation_de_l_ecran) mais je ne vois pas ou mettre la ligne xrandr -o ... j'ai fait plusieurs essais mais rien ne fonctionne.
J'ai bien copié xinitrc et renommé en .xinitrc, voilà ce que j'ai: (si quelqu'un a une idée...)
#!/bin/sh
hide mouse cursor
unclutter --timeout 1 -b
systemsetting="python /usr/lib/python2.7/site-packages/configgen/settings/batoceraSettings.py"
set the keyboard
settings_lang="$systemsetting -command load -key system.language
"
not always true (en_US for us), but it's really better than always english
map_name=$(echo $settings_lang | cut -c 1-2)
setxkbmap "${map_name}"
disable dpms to prevent screen from blanking
xset -dpms
xset s off
environment
export HOME=/userdata/system
export LC_ALL="${settings_lang}.UTF-8"
export LANG=${LC_ALL}
because of xinerama breaking es, enable only one screen at a time
settings_output="$systemsetting -command load -key global.videooutput
"
batocera-resolution setOutput "${settings_output}" # empty or invalid values defaults to the first valid
dpi override for nvidia gpus
settings_output="$systemsetting -command load -key global.dpi
"
[ ! -z "${settings_output}" ] && batocera-resolution setDPI "${settings_output}"
#####################
CUSTOMISATIONS
to customize your display, you can copy this file to ~/.xinitrc and then modify it
rotate the screen
xrandr -o left
xrandr -o right
xrandr -o inverted
change the resolution
xrandr -s 640x480
change the resolution and the Hz
xrandr -s 640x480 -r 60
#####################
#####################
set user desired resolution
nice workaround for displays which tell X11 to use strange resolutions
settings_output="$systemsetting -command load -key global.videomode
"
[ ! -z "${settings_output}" ] && batocera-resolution setMode "${settings_output}"
batocera-resolution minTomaxResolution
cd /userdata # es needs a PWD
openbox --config-file /etc/openbox/rc.xml --startup "emulationstation --windowed"