termux-widget icon indicating copy to clipboard operation
termux-widget copied to clipboard

termux-wake-unlock not running correctly when executed via termux-widget

Open jpdasma opened this issue 5 years ago • 2 comments

Problem description termux-wake-unlock not running correctly when executed via termux-widget

Steps to reproduce

  1. 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
  1. Run the first script via termux-widget, then run the second script.

  2. 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

jpdasma avatar Jan 12 '19 07:01 jpdasma

Hello @jpdasma and sorry for the late reply! I'm unable to reproduce this problem, can you (or anyone else) reproduce it?

fornwall avatar Aug 04 '19 22:08 fornwall

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.

jpdasma avatar Aug 21 '19 11:08 jpdasma