Signed-off-by: Stacy Harper <contact@stacyharper.net>
---
configs/default_hooks/sxmo_hook_lisgdstart.sh | 2 +-
configs/default_hooks/sxmo_hook_start.sh | 2 +-
.../deviceprofiles/sxmo_deviceprofile_pine64,pinephone-1.2.sh | 1 +
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/configs/default_hooks/sxmo_hook_lisgdstart.sh b/configs/default_hooks/sxmo_hook_lisgdstart.sh
index 2945bcf5..c2ee3340 100644
--- a/configs/default_hooks/sxmo_hook_lisgdstart.sh
+++ b/configs/default_hooks/sxmo_hook_lisgdstart.sh
@@ -11,7 +11,7 @@ LISGD_THRESHOLD_PRESSED="${SXMO_LISGD_THRESHOLD_PRESSED:-60}"
LISGD_INPUT_DEVICE="${SXMO_LISGD_INPUT_DEVICE:-"/dev/input/touchscreen"}"
if [ dwm = "$SXMO_WM" ]; then
- case "$(xrandr | grep DSI-1 | cut -d' ' -f 5)" in
+ case "$(xrandr | grep primary | cut -d' ' -f 5)" in
right) orientation=1;;
left) orientation=3;;
inverted) orientation=2;;
diff --git a/configs/default_hooks/sxmo_hook_start.sh b/configs/default_hooks/sxmo_hook_start.sh
index 74c8d55d..67a9b145 100644
--- a/configs/default_hooks/sxmo_hook_start.sh
+++ b/configs/default_hooks/sxmo_hook_start.sh
@@ -43,7 +43,7 @@ case "$SXMO_WM" in
superctl start autocutsel
superctl start autocutsel-primary
superctl start sxmo-x11-status
- xrandr --output "$SXMO_MONITOR" --primary
+ [ -n "$SXMO_MONITOR" ] && xrandr --output "$SXMO_MONITOR" --primary
;;
esac
diff --git a/scripts/deviceprofiles/sxmo_deviceprofile_pine64,pinephone-1.2.sh b/scripts/deviceprofiles/sxmo_deviceprofile_pine64,pinephone-1.2.sh
index 22135bb7..59a93788 100644
--- a/scripts/deviceprofiles/sxmo_deviceprofile_pine64,pinephone-1.2.sh
+++ b/scripts/deviceprofiles/sxmo_deviceprofile_pine64,pinephone-1.2.sh
@@ -5,5 +5,6 @@
export SXMO_WIFI_MODULE=8723cs
export SXMO_SYS_FILES="/sys/module/$SXMO_WIFI_MODULE/parameters/rtw_scan_interval_thr /sys/power/state /sys/devices/platform/soc/1f00000.rtc/power/wakeup /sys/power/mem_sleep /sys/bus/usb/drivers/usb/unbind /sys/bus/usb/drivers/usb/bind /dev/rtc0 /sys/devices/platform/soc/1f03400.rsb/sunxi-rsb-3a3/axp221-pek/power/wakeup"
export SXMO_TOUCHSCREEN_ID=8
+export SXMO_MONITOR="DSI-1"
export SXMO_ALSA_CONTROL_NAME=PinePhone
export SXMO_EG25=1
--
2.36.0