From Stacy Harper to ~mil/sxmo-devel
Do not merge it as it does not fix all cases. User input wakeup do not instantly update the status bar.
From Stacy Harper to ~mil/sxmo-devel
Signed-off-by: Stacy Harper <contact@stacyharper.net> --- scripts/core/sxmo_appmenu.sh | 4 ++++ scripts/core/sxmo_proximitylock.sh | 13 ++++++++++++- scripts/core/sxmo_proximitylocktoggle.sh | 18 ++++++++++++++++++ scripts/modem/sxmo_modemcall.sh | 9 ++++++--- 4 files changed, 40 insertions(+), 4 deletions(-) create mode 100644 scripts/core/sxmo_proximitylocktoggle.sh This rely on the "Rework the incoming call pickup/discard behavior" patch diff --git a/scripts/core/sxmo_appmenu.sh b/scripts/core/sxmo_appmenu.sh index f80b5c4..b2e9ba8 100755 --- a/scripts/core/sxmo_appmenu.sh [message trimmed]
From Stacy Harper to ~mil/sxmo-devel
* The sxmo_modemmonitor.sh will now run a new sxmo_modemcall.sh
dedicated menu to Pickup, Hangup or Mute the call. It will not write
notifications anymore.
* We now can mute the ring with the new pickup menu. With the default
hook, this will stop the ringtone like the missed_call would do.
* The sxmo_modemcall.sh now use a new sxmo_proximitylock.sh which
will lock the screen when putting the phone in front of the ear. This
script should be smart enough to work smoothly with a crust context.
To achieve this, the proximity_lock will only disable the initial
lock (the one who want to go back in crust after some seconds) if the
phone moved a little bit and is not in your pocket. So forgetting the
[message trimmed]
From Stacy Harper to ~mil/sxmo-devel
Signed-off-by: Stacy Harper <contact@stacyharper.net> --- scripts/core/sxmo_inputhandler.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/core/sxmo_inputhandler.sh b/scripts/core/sxmo_inputhandler.sh index ab146cd..7c2450e 100755 --- a/scripts/core/sxmo_inputhandler.sh +++ b/scripts/core/sxmo_inputhandler.sh @@ -166,6 +166,7 @@ if [ "$HANDLE" -ne 0 ]; then sxmo_appmenu.sh sys & ;; "toprightcorner") sxmo_appmenu.sh scripts &[message trimmed]
From Stacy Harper to ~mil/sxmo-devel
Signed-off-by: Stacy Harper <contact@stacyharper.net> --- scripts/core/sxmo_inputhandler.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/scripts/core/sxmo_inputhandler.sh b/scripts/core/sxmo_inputhandler.sh index 4036eeb..ab146cd 100755 --- a/scripts/core/sxmo_inputhandler.sh +++ b/scripts/core/sxmo_inputhandler.sh @@ -162,17 +162,17 @@ if [ "$HANDLE" -ne 0 ]; then "voldown_four") sxmo_blinkled.sh red & xdotool windowclose "$(xdotool getactivewindow)" ;; "topleftcorner")[message trimmed]
From Stacy Harper to ~mil/sxmo-devel
As this corner is not used by any action, I propose to use it to open user script menu.
From Stacy Harper to ~mil/sxmo-devel
Yes it still is pretty early to apply it. It is more a proof of concept but it works really nicely. The only issue is the appmenu which rely on window metadatas to determine what to display.
From Stacy Harper to ~mil/sxmo-devel
> One minor thing I noticed thus-far is that the proximity sensor works > and is a nice addition, but it also triggers when you haven't picked up > a call yet and move the device to your ear (in which case it either shouldn't > activate yet or do an **opt-in** automatic pickup) Yes it is already running when displaying the pickup menu. Its role is to unlock the phone when you take the phone out of your pocket, bag or table to check who is calling you (or not to unlock the phone at all if you miss the call).
From Stacy Harper to ~mil/sxmo-devel
As we do on rtc full wakeup Signed-off-by: Stacy Harper <contact@stacyharper.net> --- scripts/core/sxmo_rtcwake.sh | 2 ++ 1 file changed, 2 insertions(+) Oops, we dont need sxmo_commons for that diff --git a/scripts/core/sxmo_rtcwake.sh b/scripts/core/sxmo_rtcwake.sh index efa31a9..1d4e694 100755 --- a/scripts/core/sxmo_rtcwake.sh +++ b/scripts/core/sxmo_rtcwake.sh @@ -1,5 +1,7 @@ [message trimmed]
From Stacy Harper to ~mil/sxmo-devel
As we do on rtc full wakeup Signed-off-by: Stacy Harper <contact@stacyharper.net> --- scripts/core/sxmo_rtcwake.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/core/sxmo_rtcwake.sh b/scripts/core/sxmo_rtcwake.sh index efa31a9..e0c0c55 100755 --- a/scripts/core/sxmo_rtcwake.sh +++ b/scripts/core/sxmo_rtcwake.sh @@ -1,5 +1,11 @@ #!/usr/bin/env sh [message trimmed]