rogro82 / PiPup

Enhanced notifications for Android TV
246 stars 70 forks source link

Feature request: wakeup from screensaver #39

Open vzoltan opened 2 years ago

vzoltan commented 2 years ago

Other android tv notification server can turne of the screensaver when there is a new notification. Woukd be nice to have if PiPup had the same feature Thanks :)

dudududodododedede commented 2 years ago

One workaround is to setup Android ADB debugging over the network and then send input/wakeup keystrokes

i.e. if using python, could use this library: https://github.com/Swind/pure-python-adb

from ppadb.client import Client as AdbClient

adbclient = AdbClient(host="127.0.0.1", port=5037)
adbclient.remote_connect("192.168.0.203", 5555)
device = adbclient.device("192.168.0.203:5555")

device.shell("input keyevent KEYCODE_WAKEUP")