python-pyasn: bump to version 1.6.0b1
[buildroot-gz.git] / package / ti-gfx / S80ti-gfx
blobfc5999a86dfd214580cd25bc667c4621397e9c65
1 #!/bin/sh
3 start() {
4 echo "ti-gfx: starting pvr driver"
6 BITSPERPIXEL="$(fbset | awk '/geom/ {print $6}')"
7 YRES="$(fbset | awk '/geom/ {print $3}')"
8 # Set RGBA ordering to something the drivers like
9 if [ "$BITSPERPIXEL" = "32" ] ; then
10 fbset -rgba 8/16,8/8,8/0,8/24
12 # Try to enable triple buffering when there's enough VRAM
13 fbset -vyres $(( YRES*3 ))
15 modprobe pvrsrvkm
16 modprobe omaplfb
17 modprobe bufferclass_ti
19 pvr_maj=$(awk '$2=="pvrsrvkm" { print $1; }' /proc/devices)
20 rm -f /dev/pvrsrvkm
22 mknod /dev/pvrsrvkm c $pvr_maj 0
23 chmod 600 /dev/pvrsrvkm
25 if ! /usr/bin/pvrsrvctl --start --no-module; then
26 echo "ti-gfx: unable to start server"
30 stop() {
31 echo "ti-gfx: stopping pvr driver"
33 rmmod bufferclass_ti
34 rmmod omaplfb
35 rmmod pvrsrvkm
38 case "$1" in
39 start)
40 start
42 stop)
43 stop
45 restart)
46 stop
47 start
50 echo "ti-gfx: Please use start, stop, or restart."
51 exit 1
53 esac