add xorg configs,change xinit logic

This commit is contained in:
cuu 2019-01-04 19:51:44 +08:00
parent 36bdc06fd4
commit 70fa42423a
13 changed files with 57 additions and 4 deletions

11
.cpirc
View File

@ -1,12 +1,19 @@
SCREEN=`cat /sys/class/graphics/fb0/modes` SCREEN=`cat /sys/class/graphics/fb0/modes`
XORG_CONF="/home/cpi/launchergo/.xorg.conf"
if [ -f ~/.lima ]
then
XORG_CONF="/home/cpi/launchergo/.xorg_lima.conf"
fi
if [ -f /tmp/autologin ] if [ -f /tmp/autologin ]
then then
rm -f /tmp/autologin rm -f /tmp/autologin
mpd ~/.mpd.conf mpd ~/.mpd.conf
if [[ $SCREEN =~ .*320.* ]] if [[ $SCREEN =~ .*320.* ]]
then then
startx /home/cpi/launchergo/.xinitrc -- -nocursor > /tmp/x.log 2>&1 startx /home/cpi/launchergo/.xinitrc -- -xf86config $XORG_CONF -nocursor > /tmp/x.log 2>&1
else else
startx /home/cpi/launchergo/.xinitrc hdmi > /tmp/x.log 2>&1 startx /home/cpi/launchergo/.xinitrc hdmi -- -xf86config $XORG_CONF > /tmp/x.log 2>&1
fi fi
fi fi

View File

@ -5,13 +5,15 @@ hdmi )
feh --bg-center ~/launchergo/sysgo/gameshell/wallpaper/desktopbg.jpg feh --bg-center ~/launchergo/sysgo/gameshell/wallpaper/desktopbg.jpg
exec ~/launchergo/load.sh & exec ~/launchergo/load.sh &
exec ~/launcher/sys.py/gsnotify/gsnotify-arm daemon & exec ~/launcher/sys.py/gsnotify/gsnotify-arm daemon &
exec /usr/bin/twm -f ~/launchergo/.twmrc # exec /usr/bin/twm -f ~/launchergo/.twmrc
exec ~/launchergo/dwm-mod
;; ;;
gameshell ) gameshell )
feh --bg-center ~/launchergo/sysgo/gameshell/wallpaper/loading.png feh --bg-center ~/launchergo/sysgo/gameshell/wallpaper/loading.png
exec ~/launchergo/load.sh & exec ~/launchergo/load.sh &
exec ~/launcher/sys.py/gsnotify/gsnotify-arm & exec ~/launcher/sys.py/gsnotify/gsnotify-arm &
exec awesome -c ~/launchergo/awesome/rc.lua # exec awesome -c ~/launchergo/awesome/rc.lua
exec ~/launchergo/dwm-mod
;; ;;
*) *)
exec $1;; exec $1;;

7
.xorg.conf Normal file
View File

@ -0,0 +1,7 @@
Section "Device"
Identifier "Allwinner A10/A13 FBDEV"
Driver "fbturbo"
Option "fbdev" "/dev/fb0"
Option "SwapbuffersWait" "true"
EndSection

7
.xorg_lima.conf Normal file
View File

@ -0,0 +1,7 @@
Section "Device"
Identifier "Allwinner A10/A13 FBDEV"
Driver "modesetting"
Option "fbdev" "/dev/fb0"
Option "SwapbuffersWait" "true"
EndSection

View File

@ -0,0 +1,8 @@
bios
bios/*
screenshots
screenshots/*
.pcsx
.pcsx/*
*.log

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@ -0,0 +1,3 @@
#!/bin/bash
./pcsx

View File

@ -0,0 +1,17 @@
# Pcsx for GameShell
Pcsx emulator for GameShell
[orig post ](https://forum.clockworkpi.com/t/gcw-zero-pcsx4all-for-gs/433)
launcher version before 2.0:
Just clone it into ~/apps/launcher/Menu/GameShell and reload [Launcher](https://github.com/clockworkpi/launcher)
launcher version 2.0:
Just clone it into ~/apps/Menu/ and reload [Launcher](https://github.com/clockworkpi/launcher)

Binary file not shown.

View File

@ -0,0 +1 @@
8a4e0d1746e2bfcfb3c877cfdbf4953f pcsx

BIN
dwm-mod Executable file

Binary file not shown.

View File

@ -3,6 +3,7 @@ set -x
find . -iname "*.so" -exec md5sum {} + > md5sum.log find . -iname "*.so" -exec md5sum {} + > md5sum.log
echo `md5sum main` >> md5sum.log echo `md5sum main` >> md5sum.log
echo `md5sum dwm-mod` >> md5sum.log