Patchwork [1/2] mini-x-session: try to use a resolution that's big enough for hob2's window

login
register
mail settings
Submitter Dexuan Cui
Date Feb. 14, 2012, 2:51 p.m.
Message ID <60f7eed651c1b82ca4ec0849f2f7deab504035bf.1329230985.git.dexuan.cui@intel.com>
Download mbox | patch
Permalink /patch/21271/
State Accepted
Commit d33cc3be420fb509d8dddb1f1a752db6d41f50f9
Headers show

Comments

Dexuan Cui - Feb. 14, 2012, 2:51 p.m.
The patch was tested on VMware Player 4.0.1.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
---
 .../mini-x-session/files/mini-x-session            |    4 ++++
 .../mini-x-session/mini-x-session_0.1.bb           |    2 ++
 2 files changed, 6 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/recipes-graphics/mini-x-session/files/mini-x-session b/meta/recipes-graphics/mini-x-session/files/mini-x-session
index 1940e27..f7d6c3b 100644
--- a/meta/recipes-graphics/mini-x-session/files/mini-x-session
+++ b/meta/recipes-graphics/mini-x-session/files/mini-x-session
@@ -25,6 +25,10 @@  for SESSIONFILE in $MINI_X_SESSION_DIR/*; do
     sudo -b -i -u $USERNAME $SESSIONFILE& 
     set -e
 done
+
+# This resolution is big enough for hob2's max window size.
+xrandr -s 1024x768
+
 # Default files to run if $HOME/.mini_x/session or /etc/mini_x/session
 # dont exist. 
 
diff --git a/meta/recipes-graphics/mini-x-session/mini-x-session_0.1.bb b/meta/recipes-graphics/mini-x-session/mini-x-session_0.1.bb
index 9818650..8f28d03 100644
--- a/meta/recipes-graphics/mini-x-session/mini-x-session_0.1.bb
+++ b/meta/recipes-graphics/mini-x-session/mini-x-session_0.1.bb
@@ -2,6 +2,8 @@  DESCRIPTION = "Mini X session files for poky"
 HOMEPAGE = "http://www.yoctoproject.org"
 BUGTRACKER = "http://bugzilla.pokylinux.org"
 
+PR = "r1"
+
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://mini-x-session;endline=5;md5=b6430bffbcf05f9760e72938826b7487"