diff options
| author | Matthew Allum <mallum@openedhand.com> | 2005-09-27 11:35:59 +0000 |
|---|---|---|
| committer | Matthew Allum <mallum@openedhand.com> | 2005-09-27 11:35:59 +0000 |
| commit | 64ce26bbd346ae3a38ae5bf74561947cc98439d4 (patch) | |
| tree | 27b442c06b12e5df424d23f05a9b67dad0452748 | |
| parent | 607b12a07ca910916aa50b0d66d3852785edcd99 (diff) | |
| download | poky-64ce26bbd346ae3a38ae5bf74561947cc98439d4.tar.gz | |
Add Xsession.d file for window manager. Make server DPI more truthful in Xserver
git-svn-id: https://svn.o-hand.com/repos/poky@39 311d38ba-8fff-0310-9ca6-ca027cbcb966
2 files changed, 16 insertions, 8 deletions
diff --git a/openembedded/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xserver b/openembedded/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xserver index 8492bfe214..49ee0cf580 100644 --- a/openembedded/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xserver +++ b/openembedded/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xserver | |||
| @@ -27,7 +27,7 @@ module_id() { | |||
| 27 | 27 | ||
| 28 | export USER=root | 28 | export USER=root |
| 29 | 29 | ||
| 30 | ARGS="-dpi 100 -br -pn" | 30 | ARGS=" -br -pn" |
| 31 | 31 | ||
| 32 | # use ucb 1x00 touchscreen if present | 32 | # use ucb 1x00 touchscreen if present |
| 33 | if [ -z "$TSLIB_TSDEVICE" ] && [ -e /dev/touchscreen/ucb1x00 ]; then | 33 | if [ -z "$TSLIB_TSDEVICE" ] && [ -e /dev/touchscreen/ucb1x00 ]; then |
| @@ -43,27 +43,27 @@ fi | |||
| 43 | # start off server in conventional location. | 43 | # start off server in conventional location. |
| 44 | case `module_id` in | 44 | case `module_id` in |
| 45 | "HP iPAQ H3100" | "HP iPAQ H3800") | 45 | "HP iPAQ H3100" | "HP iPAQ H3800") |
| 46 | ARGS="$ARGS -screen 320x240@90 -rgba vrgb" ;; | 46 | ARGS="$ARGS -dpi 100 -screen 320x240@90 -rgba vrgb" ;; |
| 47 | "HP iPAQ H3600" | "HP iPAQ H3700" | "HP iPAQ H3900") | 47 | "HP iPAQ H3600" | "HP iPAQ H3700" | "HP iPAQ H3900") |
| 48 | ARGS="$ARGS -screen 320x240@270 -rgba vbgr" ;; | 48 | ARGS="$ARGS -dpi 100 -screen 320x240@270 -rgba vbgr" ;; |
| 49 | "HP iPAQ H5400" | "HP iPAQ H2200") | 49 | "HP iPAQ H5400" | "HP iPAQ H2200") |
| 50 | ARGS="$ARGS -rgba rgb" ;; | 50 | ARGS="$ARGS -dpi 100 -rgba rgb" ;; |
| 51 | "Ramses") | 51 | "Ramses") |
| 52 | # What is this "vt2" in aid of? | 52 | # What is this "vt2" in aid of? |
| 53 | ARGS="$ARGS -screen 320x240@90 -rgba vrgb vt2" ;; | 53 | ARGS="$ARGS -dpi 100 -screen 320x240@90 -rgba vrgb vt2" ;; |
| 54 | # both 'Sharp-Collie' and just 'Collie' have been reported | 54 | # both 'Sharp-Collie' and just 'Collie' have been reported |
| 55 | *Poodle) | 55 | *Poodle) |
| 56 | ARGS="$ARGS -screen 320x240@270 -rgba vrgb" ;; | 56 | ARGS="$ARGS -screen 320x240@270 -rgba vrgb" ;; |
| 57 | *Collie) | 57 | *Collie) |
| 58 | ARGS="$ARGS -screen 320x240@270 -rgba vrgb" | 58 | ARGS="$ARGS -dpi 100 -screen 320x240@270 -rgba vrgb" |
| 59 | # Horrible hack required to enable resuming after suspend | 59 | # Horrible hack required to enable resuming after suspend |
| 60 | rm -f /dev/apm_bios | 60 | rm -f /dev/apm_bios |
| 61 | killall -9 apmd | 61 | killall -9 apmd |
| 62 | ;; | 62 | ;; |
| 63 | "SHARP Shepherd" | "SHARP Husky" | "SHARP Corgi") | 63 | "SHARP Shepherd" | "SHARP Husky" | "SHARP Corgi") |
| 64 | ARGS="$ARGS -rgba rgb" ;; | 64 | ARGS="$ARGS -dpi 150 -rgba rgb" ;; |
| 65 | "SHARP Spitz" | "SHARP Akita" | "SHARP Borzoi") | 65 | "SHARP Spitz" | "SHARP Akita" | "SHARP Borzoi") |
| 66 | ARGS="$ARGS -rgba rgb -screen 480x640@270" ;; | 66 | ARGS="$ARGS -dpi 150 -rgba rgb -screen 480x640@270" ;; |
| 67 | "Simpad") | 67 | "Simpad") |
| 68 | ARGS="$ARGS -rgba rgb" ;; | 68 | ARGS="$ARGS -rgba rgb" ;; |
| 69 | "Generic OMAP1510/1610/1710") | 69 | "Generic OMAP1510/1610/1710") |
diff --git a/openembedded/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession.d/90xXWindowManager b/openembedded/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession.d/90xXWindowManager new file mode 100644 index 0000000000..baf50d1abe --- /dev/null +++ b/openembedded/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession.d/90xXWindowManager | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | if [ -x $HOME/.Xsession ]; then | ||
| 3 | exec $HOME/.Xsession | ||
| 4 | else | ||
| 5 | exec /usr/win/x-window-manager | ||
| 6 | fi | ||
| 7 | |||
| 8 | |||
