Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

electron - Sleeping application on raspberry pi (and starting screensaver)

I have an Electron application that runs on a Debian Buster distro on a Raspberry Pi 3A+. We don't start the desktop and use startx/xinit to run the app. The device has a custom hat to run the screen and a solenoid. The device currently acts like a kiosk and never goes to sleep. The interface is quite simple and activates a solenoid when an onscreen button is pressed and deactivates when released.

When the device sits for a few days, I've noticed there is a second or so delay before the solenoid is activated after an onscreen button press.

Not sure if the app eventually "sleeps" and needs to be woken up.

  • Is there a way to stop this behavior if that is indeed what is happening?
  • Is there a simple way to check if that's happening?
  • Or can we implement a screen saver that upon a touch event wakes up the app and kills the screensaver? Not sure how xscreensaver works under the hood.

I'm sure I'm missing a few important details so ask away and i'll provide. Much appreciation for any help!

question from:https://stackoverflow.com/questions/65924193/sleeping-application-on-raspberry-pi-and-starting-screensaver

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...