mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-12 09:48:50 +01:00
add xorg,xorg_lima
This commit is contained in:
parent
3d60124d84
commit
66f61e3465
11
.cpirc
11
.cpirc
@ -1,12 +1,19 @@
|
|||||||
SCREEN=`cat /sys/class/graphics/fb0/modes`
|
SCREEN=`cat /sys/class/graphics/fb0/modes`
|
||||||
|
|
||||||
|
XORG_CONF="/home/cpi/launcher/.xorg.conf"
|
||||||
|
if [ -f ~/.lima ]
|
||||||
|
then
|
||||||
|
XORG_CONF="/home/cpi/launcher/.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/launcher/.xinitrc -- -nocursor > /tmp/x.log 2>&1
|
startx /home/cpi/launcher/.xinitrc -- -xf86config $XORG_CONF -nocursor > /tmp/x.log 2>&1
|
||||||
else
|
else
|
||||||
startx /home/cpi/launcher/.xinitrc hdmi > /tmp/x.log 2>&1
|
startx /home/cpi/launcher/.xinitrc hdmi -- -xf86config $XORG_CONF > /tmp/x.log 2>&1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
7
.xorg.conf
Normal file
7
.xorg.conf
Normal 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
7
.xorg_lima.conf
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
Section "Device"
|
||||||
|
Identifier "Allwinner A10/A13 FBDEV"
|
||||||
|
Driver "modesetting"
|
||||||
|
Option "fbdev" "/dev/fb0"
|
||||||
|
|
||||||
|
Option "SwapbuffersWait" "true"
|
||||||
|
EndSection
|
||||||
Loading…
x
Reference in New Issue
Block a user