Anjandev Momi
ccc6223c1b
Revert "add a configurable daemon that warns on low battery"
...
This reverts commit c7e0e3b656
.
Signed-off-by: Anjandev Momi <anjan@momi.ca>
3 years ago
noneofyourbusiness
c7e0e3b656
add a configurable daemon that warns on low battery
...
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
3 years ago
Anjandev Momi
725d89d6d6
Rework the sxmo screenlock
3 years ago
Clayton Craft
d42c4f58d4
programs/sxmo_setpinebacklight: drop unused application
...
Signed-off-by: Stacy Harper <contact@stacyharper.net>
4 years ago
Maarten van Gompel
d2d06ef65a
Revert "Workaround for reliable incoming calls waking up from CRUST", no longer needed with eg25-manager and caused ModemManager restart issues
...
This reverts commit bcf4f5c249
.
4 years ago
Jochen Sprickerhof
d70a4aed63
Use by-path for vibrator device
...
No need to search for correct device.
Signed-off-by: Anjandev Momi <anjan@momi.ca>
4 years ago
Maarten van Gompel
d71c11d993
Some improvements for the relock problem: Unable to open rtc device. But issue it not solved yet. #170
4 years ago
Maarten van Gompel
c1fe2df7d1
Added user access for missing wakeup sources
4 years ago
Maarten van Gompel
9d1527218a
blank screen when locking #158
4 years ago
Maarten van Gompel
1608ab1ae4
increased verbosity in various scripts, and do not run xargs kill when argument is empty (cleaner and clearer stderr messages)
4 years ago
Maarten van Gompel
ca88d3029e
Enable user access to pinephone hardware kernel interface through openrc script, remove setuid 0 requirement
4 years ago
Maarten van Gompel
00cf2ba3ec
reduce wifi reconnection time after deep sleep #150
4 years ago
Maarten van Gompel
6750e3e47b
fix for calling postwake script after wakeup #130
4 years ago
Daniele Rogora
bcf4f5c249
Workaround for reliable incoming calls waking up from CRUST
...
Replaced system() call with writefile()
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
4 years ago
Maarten van Gompel
7fb7cd70f3
various indentation fixes (spaces to tabs and stripping trailing whitespace)
4 years ago
Miles Alan
8abe870012
Make suspendtimeout for screenlock cutomizable via SXMO_SUSPENDTIMEOUTS
...
This way if someone wants a longer or shorter timeout that possible
by setting the env var SXMO_SUSPENDTIMEOUTS.
Also change the default to be 35s. This is roughly the duration of
ringing for an incoming phone call.
4 years ago
Anjandev Momi
a0c6e4c2e2
enable bluetooth and modem drivers during crust suspend
...
With the megi 5.9 kernel and other suspend-related merge requests in
postmarketos, disabling these drivers is no longer needed. All of this
should result in a more reliable suspending system.
Source: https://gitlab.com/postmarketOS/pmaports/-/merge_requests/1651
Signed-off-by: Miles Alan <m@milesalan.com>
4 years ago
Miles Alan
acf21efba8
Fix wakeup from CRUST for incoming call for 5.9 kernel
4 years ago
Maarten van Gompel
6448587eb8
complete revision of gestures, using new edge system
...
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
4 years ago
Maarten van Gompel
1b45e7743d
added SXMO_LOCK_SCREEN_OFF and SXMO_LOCK_SUSPEND environment variables to set a target stage from the environment
...
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
4 years ago
Maarten van Gompel
642bf1cc27
Implementing optional rtc wakeup at regular intervals, added presuspend, rtcwake and postwake scripts (with hooks)
...
(includes missing return 0 statement caught by Serge Hallyn)
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
4 years ago
Anjandev Momi
55887d9afe
update megiaudioroute.c for 5.9 kernel
...
When combined with Sam's audio patch, this fixes audio calls on 5.9
kernel.
Source: https://xnux.eu/devices/feature/audio-pp.html
Signed-off-by: Anjandev Momi <anjan@momi.ca>
4 years ago
Serge E. Hallyn
5a4ce877df
screenlock: set max field width for sprintf
...
Stop a compiler warning about overwriting the 100 char buffer with larger
string.
programs/sxmo_screenlock.c:61:3: note: ‘sprintf’ output between 39 and 294 bytes into a destination of size 100
4 years ago
Serge E. Hallyn
2cec0fc3be
Enable irq wakeups
...
This is needed for crust to wake us up on an incoming call.
Thanks to smaeul in #crust for the tip.
Signed-off-by: Serge Hallyn <serge@hallyn.com>
4 years ago
Miles Alan
45c571727c
Cleanup logic for notification LED setting; increase default call volume
4 years ago
Julian P Samaroo
a24d966b7e
Fix = to == in screenlock
4 years ago
Maarten van Gompel
113f756eb1
Adding a wrapper around sxmo_screenlock, with lock/unlock hooks. Allow setting a target state for sxmo_screenlock, and cleanup on sigterm. Added lock/suspend options to the power menu.
...
Should be applied after my prior patches from today.
4 years ago
Miles Alan
f3275b7cd7
After exiting suspend blink LED while in temporary suspend pending state
4 years ago
Miles Alan
92e048a153
Screenlock: Recognize keyrelease rather than keydown to avoid inadvertent exits
...
E.g. so now you distinctively have to press down the powerbutton three times
rather than holding (which is easy to do inadvertently in pocket) to exit
screenlock.
4 years ago
Miles Alan
d713b19199
Use sxmo_statusbarupdate.sh script instead of direct calls duplicated logic
4 years ago
Miles Alan
10705f08cd
Update statusbar on waking up from deep sleep so battery % & time accurate
4 years ago
Miles Alan
383c52380f
5s timeout for StateSuspendPending
4 years ago
Miles Alan
a35ca3f39f
screenlock - Sort functions alphabetically; add declarations; and fix warnings
4 years ago
Miles Alan
b51644baca
screenlock - Implement StateSuspendPending so exiting CRUST requires 3 clicks
...
If you don't triple click after exiting deep sleep after 10s, use select() with
timeout to kick back into deep sleep.
4 years ago
Anjandev Momi
a245f46914
screenlock: enable rtc wakeup source
...
Please apply to the crust feature branch. The rtc wakeup clock is useful cause it allows
users to script programs. If I put my phone into deep sleep, none of the scripts
I put in my cronjob will run.
For example, if I have an alarm script:
https://git.sr.ht/~anjan/sxmo-userscripts/tree/master/alarm.sh
It is supposed to run at 7:00 am but since I put my phone in deep sleep before going to sleep,
the script doesnt play sound to wake me up.
Enabling the rtc wakeup clock enables using programs like rtcwake as a wrapper around
your cronjobs to wake up the phone at a time and excecute the command you put in cron.
For info on how to use rtcwake, see:
https://wiki.postmarketos.org/wiki/Nokia_N900_(nokia-n900)#Setting_the_hardware_alarm_clock
Not sure if we should patch busybox cron to use rtcwake automatically or whether we should
trust the user to use rtcwake properly and document it. However, I am certain that the rtc
wakeup source should be enabled for this usecase.
Signed-off-by: Miles Alan <m@milesalan.com>
4 years ago
Miles Alan
cf4cd1b8df
Retain brightness when entering screenlock
4 years ago
Miles Alan
7b3be0453a
Disable buggy bluetooth driver before entering suspend
4 years ago
Miles Alan
aa8513ba84
Use direct open/write/close instead of stdlib calls for device IO
4 years ago
Miles Alan
37941f6ba8
Always reconfigure wakeup sources before entering suspend
4 years ago
Miles Alan
be6737e68f
Always wake up from suspend to StateNoInput
4 years ago
Miles Alan
4d9d1ec45d
Modify screenlock to suspend on triple pressing volume down button
...
Led indicators as follows:
Blue: Screenlocked
Purple: Screenlocked and Screenoff
Red: CRUST suspend
4 years ago
Miles Alan
fb44e88552
Support headphone (linejack) mic input in audio routing program
4 years ago
Miles Alan
4c39cd16b0
Add missing option for echomic -z to megi's audioroute program
4 years ago
Miles Alan
660506b1e3
Set LED for screenlock before grabbing focus (e.g. register on PP button hold immediately)
4 years ago
Miles Alan
1ac5e64193
Tab indent C programs for consistency
4 years ago
Miles Alan
41714c8c96
Attempt to fix screenlock - only show led after screen is already locked
4 years ago
Miles Alan
b37138c845
Fix pine indicator leds paths for latest pmOS setup and add white (flash)
5 years ago
Miles Alan
e5877059ff
Lots of bugfixes related to calling/modem and various script fixes
5 years ago
Miles Alan
22d974f22f
Cleanup calling - mostly working; misc cleanup scripts; add vibrate program
5 years ago
Miles Alan
ae983ef8c8
Various progess on calling & texting; reorganize scripts dirs by category
5 years ago