mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
Add XServer fallback settings for unknown machine
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@786 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
@@ -18,6 +18,14 @@ fi
|
|||||||
|
|
||||||
. /etc/profile
|
. /etc/profile
|
||||||
|
|
||||||
|
fallback_screen_arg() {
|
||||||
|
geom=`fbset | grep geometry`
|
||||||
|
w=`echo $geom | awk '{ print $2 }'`
|
||||||
|
h=`echo $geom | awk '{ print $3 }'`
|
||||||
|
b=`echo $geom | awk '{ print $6 }'`
|
||||||
|
echo -n "${w}x${h}x${b}"
|
||||||
|
}
|
||||||
|
|
||||||
module_id() {
|
module_id() {
|
||||||
## used to read from assets, but sometimes assets is corrupted
|
## used to read from assets, but sometimes assets is corrupted
|
||||||
# grep "Module ID" /proc/hal/assets | sed "s/.*://"
|
# grep "Module ID" /proc/hal/assets | sed "s/.*://"
|
||||||
@@ -75,6 +83,13 @@ case `module_id` in
|
|||||||
modprobe mbxfb
|
modprobe mbxfb
|
||||||
ARGS="$ARGS -fb /dev/fb1"
|
ARGS="$ARGS -fb /dev/fb1"
|
||||||
;;
|
;;
|
||||||
|
*)
|
||||||
|
# Its a device we dont know about - in which case force
|
||||||
|
# kdrive to use the current framebuffer geometry otherwise
|
||||||
|
# it will defualt to trying to achieve 1024x768
|
||||||
|
S=`fallback_screen_arg`
|
||||||
|
ARGS="$ARGS -screen $S"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
DISPLAY=':0'
|
DISPLAY=':0'
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ DESCRIPTION = "Common X11 scripts"
|
|||||||
LICENSE = "GPL"
|
LICENSE = "GPL"
|
||||||
SECTION = "x11"
|
SECTION = "x11"
|
||||||
RDEPENDS_${PN} = "xmodmap libxrandr xdpyinfo xtscal xinit"
|
RDEPENDS_${PN} = "xmodmap libxrandr xdpyinfo xtscal xinit"
|
||||||
PR = "r8"
|
PR = "r9"
|
||||||
|
|
||||||
SRC_URI = "file://etc"
|
SRC_URI = "file://etc"
|
||||||
S = ${WORKDIR}
|
S = ${WORKDIR}
|
||||||
|
|||||||
Reference in New Issue
Block a user