Suite:
- éditer
/usr/lib/python2.7/site-packages/configgen/utils/videoMode.py
pour qu'il ressemble à :
#!/usr/bin/env python
import os
import sys
import recalboxFiles
from settings.unixSettings import UnixSettings
# Set a specific video mode
def setVideoMode(videomode):
os.system(createVideoModeLine(videomode))
def createVideoModeLine(videoMode):
return "tvservice -e '{}'".format(videoMode)
# Set a specific video mode
def isSupported(index, mode="CEA", drive="HDMI"):
# todo
return True
# Switch to prefered mode
def setPreffered():
recalSettings = UnixSettings(recalboxFiles.recalboxConf)
esVideoMode = recalSettings.load('system.es.videomode')
if esVideoMode is None:
os.system("tvservice -p")
else:
os.system("tvservice -e '{}'".format(esVideoMode))
- Editer
/etc/init.d/S31emulationstation
(plutot que le S02splash d'avant) pour qu'il ressemble à :
#!/bin/sh
#
#
log=/recalbox/share/system/logs/recalbox.log
systemsetting="python /usr/lib/python2.7/site-packages/configgen/settings/recalboxSettings.pyc"
case "$1" in
start)
enabled="`$systemsetting -command load -key system.es.atstartup`"
videoMode="`$systemsetting -command load -key system.es.videomode`"
if [ "$enabled" != "0" ];then
echo $videoMode | grep -qE "(CEA|DMT) [0-9]{1,2} (HDMI|DVI)"
[ $? = "0" ] && tvservice -e "$videoMode"
settings_lang="`$systemsetting -command load -key system.language`"
recallog "starting emulationstation with lang = $settings_lang"
command="HOME=/recalbox/share/system LC_ALL=\"${settings_lang}.UTF-8\" SDL_VIDEO_GL_DRIVER=/usr/lib/libGLESv2.so SDL_VIDEO_EGL_DRIVER=/usr/lib/libGLESv2.so SDL_NOMOUSE=1 /usr/bin/emulationstation"
recallog "Starting emulationstation with command : "
recallog "$command"
eval $command >> $log &
fi
;;
stop)
killall emulationstation
;;
restart|reload)
"$0" stop
"$0" start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit $?
- Ajouter
system.es.videomode=
dans recalbox.conf et remplir comme d'hab avec qqc genreCEA 21 HDMI