Patchwork [1/2] xserver-common: add support for the htcdream

login
register
mail settings
Submitter Denis Carikli
Date May 21, 2011, 1:24 p.m.
Message ID <1305984274-18073-1-git-send-email-GNUtoo@no-log.org>
Download mbox | patch
Permalink /patch/4567/
State Accepted
Headers show

Comments

Denis Carikli - May 21, 2011, 1:24 p.m.
Without that patch the DPI of the htcdream is the default DPI
  which is incorrect.

Note that the htc dreams's /proc/cpuinfo machine name is trout

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
---
 .../xserver-common/files/Xserver.htcdream.patch    |   14 ++++++++++++++
 recipes/xserver-common/xserver-common_1.34.bb      |    3 ++-
 2 files changed, 16 insertions(+), 1 deletions(-)
 create mode 100644 recipes/xserver-common/files/Xserver.htcdream.patch

Patch

diff --git a/recipes/xserver-common/files/Xserver.htcdream.patch b/recipes/xserver-common/files/Xserver.htcdream.patch
new file mode 100644
index 0000000..11842a2
--- /dev/null
+++ b/recipes/xserver-common/files/Xserver.htcdream.patch
@@ -0,0 +1,14 @@ 
+Index: xserver-common-1.34/X11/xserver-common
+===================================================================
+--- xserver-common-1.34.orig/X11/xserver-common	2011-05-20 23:37:56.031433456 +0200
++++ xserver-common-1.34/X11/xserver-common	2011-05-20 23:39:56.451433492 +0200
+@@ -126,6 +126,9 @@
+         "htc_tornado")
+             ARGS="$ARGS -hide-cursor"
+             DPI="100" ;;
++        "trout")
++            DPI="181"
++            ARGS="$ARGS -dpi ${DPI}";;
+         "generic_omap1510/1610/1710")
+             ARGS="$ARGS -screen ${SCREEN_SIZE}"
+             DPI="225" ;;
diff --git a/recipes/xserver-common/xserver-common_1.34.bb b/recipes/xserver-common/xserver-common_1.34.bb
index d8c29d1..0b2da5b 100644
--- a/recipes/xserver-common/xserver-common_1.34.bb
+++ b/recipes/xserver-common/xserver-common_1.34.bb
@@ -2,7 +2,7 @@  DESCRIPTION = "Common X11 scripts and support files"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
 
-PR = "r1"
+PR = "r2"
 
 # we are using a gpe-style Makefile
 inherit gpe
@@ -20,6 +20,7 @@  SRC_URI_append = " \
                    file://Xserver.add.nocursor.for.gta.patch \
                    file://Xserver.add.dpi.for.gta.patch \
                    file://Xserver.n900.patch \
+                   file://Xserver.htcdream.patch \
 "