diff options
author | Stanislav Brabec <utx@penguin.cz> | 2009-06-22 20:54:10 +0000 |
---|---|---|
committer | utx@penguin.cz <utx@penguin.cz> | 2009-06-22 20:54:10 +0000 |
commit | 35b530346188557e7b81bcb69ccea27f60766177 (patch) | |
tree | d7c0bfafff9375309a9a4a184de56d5b39d1dd44 /recipes/zaurusd/files | |
parent | d9dc503e425dbcc9e2c4b9f8c81dc8e8acfe4003 (diff) |
zaurusd: Support configurable portrait and landscape xrandr orientation.
Diffstat (limited to 'recipes/zaurusd/files')
-rw-r--r-- | recipes/zaurusd/files/avoid-rotated-server.patch | 126 | ||||
-rw-r--r-- | recipes/zaurusd/files/zaurus-hinge.matchbox-landscape | 4 | ||||
-rw-r--r-- | recipes/zaurusd/files/zaurus-hinge.matchbox-portrait | 4 |
3 files changed, 130 insertions, 4 deletions
diff --git a/recipes/zaurusd/files/avoid-rotated-server.patch b/recipes/zaurusd/files/avoid-rotated-server.patch new file mode 100644 index 0000000000..be1005f70e --- /dev/null +++ b/recipes/zaurusd/files/avoid-rotated-server.patch @@ -0,0 +1,126 @@ +Index: zaurusd/config/mach-config/mach-akita-vars.in +=================================================================== +--- zaurusd.orig/config/mach-config/mach-akita-vars.in 2009-03-07 11:04:43.000000000 +0000 ++++ zaurusd/config/mach-config/mach-akita-vars.in 2009-06-22 20:51:47.000000000 +0000 +@@ -7,4 +7,7 @@ + TSKEYS_CONF=@appconfdir@/tskeys/zaurus-cxx00.conf + TSKEYS_DEVICE=/dev/input/event1 + +-ALSA_MIXER_INIT=@appconfdir@/alsa/cxx00-default.state +\ No newline at end of file ++ALSA_MIXER_INIT=@appconfdir@/alsa/cxx00-default.state ++ ++export XRANDR_LANDSCAPE=normal ++export XRANDR_PORTRAIT=left +Index: zaurusd/config/mach-config/mach-borzoi-vars.in +=================================================================== +--- zaurusd.orig/config/mach-config/mach-borzoi-vars.in 2009-03-07 11:04:43.000000000 +0000 ++++ zaurusd/config/mach-config/mach-borzoi-vars.in 2009-06-22 20:51:00.000000000 +0000 +@@ -5,6 +5,9 @@ + SWITCH_EVENT_DEVICE=/dev/input/event0 + + TSKEYS_CONF=@appconfdir@/tskeys/zaurus-cxx00.conf +-TSKEYS_DEVICE=/dev/input/event1 ++TSKEYS_DEVICE=/dev/input/touchscreen0 + +-ALSA_MIXER_INIT=@appconfdir@/alsa/cxx00-default.state +\ No newline at end of file ++ALSA_MIXER_INIT=@appconfdir@/alsa/cxx00-default.state ++ ++export XRANDR_LANDSCAPE=normal ++export XRANDR_PORTRAIT=left +Index: zaurusd/config/mach-config/mach-corgi-vars.in +=================================================================== +--- zaurusd.orig/config/mach-config/mach-corgi-vars.in 2009-03-07 11:04:43.000000000 +0000 ++++ zaurusd/config/mach-config/mach-corgi-vars.in 2009-06-22 20:51:47.000000000 +0000 +@@ -7,4 +7,7 @@ + TSKEYS_CONF=@appconfdir@/tskeys/zaurus-c7x0.conf + TSKEYS_DEVICE=/dev/input/event1 + +-ALSA_MIXER_INIT=@appconfdir@/alsa/c7x0-default.state +\ No newline at end of file ++ALSA_MIXER_INIT=@appconfdir@/alsa/c7x0-default.state ++ ++export XRANDR_LANDSCAPE=normal ++export XRANDR_PORTRAIT=left +Index: zaurusd/config/mach-config/mach-htcuniversal-vars +=================================================================== +--- zaurusd.orig/config/mach-config/mach-htcuniversal-vars 2009-03-07 11:04:43.000000000 +0000 ++++ zaurusd/config/mach-config/mach-htcuniversal-vars 2009-06-22 20:49:01.000000000 +0000 +@@ -2,3 +2,6 @@ + + export SWITCH_EVENT_ZHINGE=1 + SWITCH_EVENT_DEVICE=/dev/input/event3 ++ ++export XRANDR_LANDSCAPE=normal ++export XRANDR_PORTRAIT=left +Index: zaurusd/config/mach-config/mach-husky-vars.in +=================================================================== +--- zaurusd.orig/config/mach-config/mach-husky-vars.in 2009-03-07 11:04:43.000000000 +0000 ++++ zaurusd/config/mach-config/mach-husky-vars.in 2009-06-22 20:51:47.000000000 +0000 +@@ -7,4 +7,7 @@ + TSKEYS_CONF=@appconfdir@/tskeys/zaurus-c7x0.conf + TSKEYS_DEVICE=/dev/input/event1 + +-ALSA_MIXER_INIT=@appconfdir@/alsa/c7x0-default.state +\ No newline at end of file ++ALSA_MIXER_INIT=@appconfdir@/alsa/c7x0-default.state ++ ++export XRANDR_LANDSCAPE=normal ++export XRANDR_PORTRAIT=left +Index: zaurusd/config/mach-config/mach-poodle-vars.in +=================================================================== +--- zaurusd.orig/config/mach-config/mach-poodle-vars.in 2009-06-22 20:49:01.000000000 +0000 ++++ zaurusd/config/mach-config/mach-poodle-vars.in 2009-06-22 20:51:47.000000000 +0000 +@@ -6,4 +6,7 @@ + #TSKEYS_CONF=@appconfdir@/tskeys/zaurus-clamshell.conf + #TSKEYS_DEVICE=/dev/input/event1 + +-ALSA_MIXER_INIT=@appconfdir@/alsa/poodle-default.state +\ No newline at end of file ++ALSA_MIXER_INIT=@appconfdir@/alsa/poodle-default.state ++ ++export XRANDR_LANDSCAPE=normal ++export XRANDR_PORTRAIT=left +Index: zaurusd/config/mach-config/mach-shepherd-vars.in +=================================================================== +--- zaurusd.orig/config/mach-config/mach-shepherd-vars.in 2009-03-07 11:04:43.000000000 +0000 ++++ zaurusd/config/mach-config/mach-shepherd-vars.in 2009-06-22 20:51:47.000000000 +0000 +@@ -7,4 +7,7 @@ + TSKEYS_CONF=@appconfdir@/tskeys/zaurus-c7x0.conf + TSKEYS_DEVICE=/dev/input/event1 + +-ALSA_MIXER_INIT=@appconfdir@/alsa/c7x0-default.state +\ No newline at end of file ++ALSA_MIXER_INIT=@appconfdir@/alsa/c7x0-default.state ++ ++export XRANDR_LANDSCAPE=normal ++export XRANDR_PORTRAIT=left +Index: zaurusd/config/mach-config/mach-spitz-vars.in +=================================================================== +--- zaurusd.orig/config/mach-config/mach-spitz-vars.in 2009-03-07 11:04:43.000000000 +0000 ++++ zaurusd/config/mach-config/mach-spitz-vars.in 2009-06-22 20:51:47.000000000 +0000 +@@ -7,4 +7,7 @@ + TSKEYS_CONF=@appconfdir@/tskeys/zaurus-cxx00.conf + TSKEYS_DEVICE=/dev/input/event1 + +-ALSA_MIXER_INIT=@appconfdir@/alsa/cxx00-default.state +\ No newline at end of file ++ALSA_MIXER_INIT=@appconfdir@/alsa/cxx00-default.state ++ ++export XRANDR_LANDSCAPE=normal ++export XRANDR_PORTRAIT=left +Index: zaurusd/config/mach-config/mach-tosa-vars.in +=================================================================== +--- zaurusd.orig/config/mach-config/mach-tosa-vars.in 2009-03-07 11:04:43.000000000 +0000 ++++ zaurusd/config/mach-config/mach-tosa-vars.in 2009-06-22 20:51:47.000000000 +0000 +@@ -6,4 +6,7 @@ + #TSKEYS_CONF=@appconfdir@/tskeys/zaurus-clamshell.conf + #TSKEYS_DEVICE=/dev/input/event1 + +-ALSA_MIXER_INIT=@appconfdir@/alsa/6000x-default.state +\ No newline at end of file ++ALSA_MIXER_INIT=@appconfdir@/alsa/6000x-default.state ++ ++export XRANDR_LANDSCAPE=normal ++export XRANDR_PORTRAIT=left diff --git a/recipes/zaurusd/files/zaurus-hinge.matchbox-landscape b/recipes/zaurusd/files/zaurus-hinge.matchbox-landscape index a048769f7d..32710b2a67 100644 --- a/recipes/zaurusd/files/zaurus-hinge.matchbox-landscape +++ b/recipes/zaurusd/files/zaurus-hinge.matchbox-landscape @@ -18,8 +18,8 @@ killproc ${ZD_BINDIR}/matchbox-stroke if [ -x ${ZD_BINDIR}/xrandr ]; then - if ! ( xrandr | awk '{print $4}' | grep -q normal ) + if ! ( xrandr | awk '{print $4}' | grep -q $XRANDR_LANDSCAPE ) then - ${ZD_BINDIR}/xrandr -o normal + ${ZD_BINDIR}/xrandr -o $XRANDR_LANDSCAPE fi fi diff --git a/recipes/zaurusd/files/zaurus-hinge.matchbox-portrait b/recipes/zaurusd/files/zaurus-hinge.matchbox-portrait index 291617cd02..e540e66906 100644 --- a/recipes/zaurusd/files/zaurus-hinge.matchbox-portrait +++ b/recipes/zaurusd/files/zaurus-hinge.matchbox-portrait @@ -1,9 +1,9 @@ #!/bin/sh if [ -x ${ZD_BINDIR}/xrandr ]; then - if ! ( xrandr | awk '{print $4}' | grep -q left ) + if ! ( xrandr | awk '{print $4}' | grep -q $XRANDR_PORTRAIT ) then - ${ZD_BINDIR}/xrandr -o left + ${ZD_BINDIR}/xrandr -o $XRANDR_PORTRAIT fi fi # just to be extra safe |