#!/bin/sh # hide mouse cursor unclutter --noevents -b # disable dpms to prevent screen from blanking xset -dpms xset s off # allow coredumps for ES ulimit -H -c unlimited ulimit -S -c unlimited emulationstation # dbus launch is required for the gio/gvfs/trash:///... eval `dbus-launch --sh-syntax --exit-with-session` ### intel-iris-driver ### irisdriver="$(/usr/bin/batocera-settings-get -f "$BOOTCONF" intel-i965-driver)" if test ! -z "${irisdriver}" -a "${irisdriver}" = true; then # Force use i965 driver through global environment variable export MESA_LOADER_DRIVER_OVERRIDE=i965 fi ################### ### nvidia ### # these are 3 variables used only by nvidia to take nvidia gpu over intel cards when such hybrid cards are available nvidia_driver="$(/usr/bin/batocera-settings-get -f /boot/batocera-boot.conf nvidia-driver)" if test "${nvidia_driver}" = "true" then nvidia_prime="$(/usr/bin/batocera-settings-get -f /boot/batocera-boot.conf nvidia-prime)" if test "${nvidia_prime}" = "true" then export __NV_PRIME_RENDER_OFFLOAD=1 export __VK_LAYER_NV_optimus=NVIDIA_only export __GLX_VENDOR_LIBRARY_NAME=nvidia fi fi ### radeon ### # variable for AMD Dynamic Switchable Graphics to take amd-radeon gpu over intel cards when such hybrid cards are available radeon_prime="$(/usr/bin/batocera-settings-get -f /boot/batocera-boot.conf radeon-prime)" if test "${radeon_prime}" = "true" then export DRI_PRIME=1 fi ######################## #####-CRT CONFIG-####### ######################## ##-Default Resolution-## ######################## xrandr -display :0.0 --newmode "640x480i" 13.10 640 664 728 832 480 484 490 525 interlace -hsync -vsync xrandr -display :0.0 --addmode DVI-0 "640x480i" xrandr -display :0.0 --output DVI-0 --mode "640x480i" ######################## ######################## openbox --config-file /etc/openbox/rc.xml --startup "emulationstation-standalone"