termux-widget
termux-widget copied to clipboard
termux-wake-unlock not running correctly when executed via termux-widget
Problem description termux-wake-unlock not running correctly when executed via termux-widget
Steps to reproduce
- Create two script and place them inside ~/.shortcut/background/. These are the ones I'm using. a. first.sh
#<<insert bash shebang>>
termux-wake-lock
sshd -D
b. second.sh
#<<inser bash shebang>>
pkill sshd
termux-wake-unlock
-
Run the first script via termux-widget, then run the second script.
-
Termux still has the wake lock.
Expected behavior Termux will release the wake lock.
Additional information
Post output of command termux-info
.
Updatable packages:
All packages up to date
System information:
Linux localhost 3.18.120-PPK29.68-16-8-g0fbb2ba1b5e1 #1 SMP PREEMPT Fri Dec 28 18:52:16 CET 2018 aarch64 Android
Termux-packages arch:
aarch64
Android version:
9
Device manufacturer:
motorola
Device model:
XT1635-02
Hello @jpdasma and sorry for the late reply! I'm unable to reproduce this problem, can you (or anyone else) reproduce it?
It's been a while since I filed this issue. I could still reproduce it, however when I called termux-wake-unlock
first before killing sshd
, it seems to work properly. Will try to see more what's happening on my side, but this is my current workaround.