Sometimes the menu would open before keyboard in sxmo_menu_with_kb.sh.
Reproduce: from main menu, click texts. A small pause is sufficient.
This is bad since then menu overlaps keyboard and you can't type esc
or numbers.
Signed-off-by: Anjandev Momi <anjan@momi.ca>
Superd handles cleaning up any child processes we start, that logic can
be removed from this script. Using superd should also make this more
reliable, and provide better logging facilities.
Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
As discussed with Aren over and over again, there is no easy, and fast enough
way to alias those in a smart way.
Cause this is causing issues on other distros than Alpine, we drop them
completly.
I think we should find a way to check those in the CI tests to
keep an eye on non busybox api usages contributors may try to use.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
This brings sendsms into comformity with sms hook. This information is
useful in sendsms hook, e.g., if I want to copy out my sent sms/mms to
a logfile or another application (as I do with my received sms), via the
hook.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
The current values are not working as of kernel 5.19, so we update the
values.
Signed-off-by: HexagonWin <hexagonwin@disroot.org>
Signed-off-by: Stacy Harper <contact@stacyharper.net>
I sometimes use the contacts menu to look up a number, when filling out
contact information on paper for example. Having the number formatted
makes it much easier to read.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
The currently used scale is far too big. This commit decreases it from
2.0 to 1.5 which looks good on the device.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
This fixes an bug where the system is prevented from suspending by a
stuck "Waiting for cronjob" mutex.
The wakeup_active count doesn't provide information about system
wakeups, so track the amount of time spent in suspend instead. Also make
sxmo_hook_mnc.sh responsible for deciding if the system has time to
suspend before the next cron job. This makes the suspend code a bit
cleaner.
There are two bugs that can cause the mutex to get stuck:
Bug one: The kernel allows multiple applications to request multiple
wakeup times, if anything else does we will get stuck.
Bug two: /sys/class/wakeup/wakeupN/active_count does not count the
number of times the device woke the system from suspend. It counts the
number of times the device prevented the system from suspending.
Periodically the kernel syncs the system clock to the rtc. When doing
this the rtc subsystem takes a wakelock to prevent the system from
suspending until the time has been updated, which increments
active_count. If this happens while resuming we get stuck.
This is a kernel stack trace I captured of this happening while resuming:
wakeup_source_activate+0
pm_stay_awake+68
rtc_set_time+212
sync_hw_clock+436
process_one_work+520
worker_thread+120
kthread+276
ret_from_fork+16
Signed-off-by: Stacy Harper <contact@stacyharper.net>
As wob 0.14 get rid of arguments in favor of ini file.
This hardcode a low width value cause we still cannot use percent value.
We should try to find a better solutions to solve this problem !
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
The service file mmsd ships is named mmsd-tng, by using the same name it
makes it easier for distros that need to integrate with systemd.
Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
Dash gives an error if you try to shift with no positional parameters.
$ bash -c 'shift; echo b'
b
$ dash -c 'shift; echo b'
dash: 1: shift: can't shift that many
Signed-off-by: Tzafrir Cohen <tzafrir@debian.org>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
Several places where dash behaves differently than bash:
* read in dash has to have a variable.
* use command -v as type is not POSIX
Signed-off-by: Tzafrir Cohen <tzafrir@debian.org>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
Fixes: find: warning: you have specified the global option -mindepth
after the argument -exec, but global options are not positional, i.e.,
-mindepth affects tests specified before it as well as those specified
after it. Please specify global options before other arguments.
Originally busybox find was used and it probably does not give this
warning.
Signed-off-by: Tzafrir Cohen <tzafrir@debian.org>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
In sway, tools like feh didn't have their context menu pop up because
the app wasn't identified properly (empty app_id).
Signed-off-by: Stacy Harper <contact@stacyharper.net>
The current configuration is based on an old devicetree provided with Tow-Boot.
Most (if not all) distributions will be packaging a newer version with a changed gpio name for the power button.
For more information check this issue on PostmarketOS: https://gitlab.com/postmarketOS/pmaports/-/merge_requests/3628#note_1164572571
Signed-off-by: Anjandev Momi <anjan@momi.ca>
watch appears twice in this list because we're waiting on upstream bluez to merge the class detection for it
Signed-off-by: Stacy Harper <contact@stacyharper.net>
This moves the dbus calls to cleaner functions and adds some
error checking/warnings on failures.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Oops, found a small bug where it didn't update statusbar if you clicked
on the message. So this one should be good to go.
In re this:
377744c95b
There were two problems with that patch:
1. The check for SXMO_NO_LED never worked so every device was getting
it.
2. The change to notificationwrite broke notificationwrite so no popups
were happening.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
I kept getting 'Not implemented' in my status bar, output from
sxmo_status.sh, which was caused by sxmo_audio.sh and a alsamicismuted()
outputting "Not implemented" to stdout, effectively obscuring most of
the tiny status bar. I redirected the output to stderr..
Ideally of course we should fix the function, but this will have to do
in the meantime.
Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
I believe these were used in the early days of sxmo to reset the
connection to the modem. eg25-manager now handles this.
Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
It used to be used to update the clock on the desktop widget, but that's
been replaced with sxmo_aligned_sleep.
Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>