Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

119
Views
Prevent screensaver depending on activity

I have an .NET Core app displaying data using a raspberry PI (Raspberry PI OS/Raspbian). I'd like to prevent raspberry's screensaver (or sleep mode) only when there's something to display. Which command can I send ? What mecanism can I use ?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I found how to do so :

  • First, I permanently deactivate screen-saver with autostart script and commands :

    @xset s off

    @xset -dpms

  • Next, I only "play" with hdmi activation when I need it:

    - `tvservice -p` to activate HDMI display
    - `tvservice -o` to deactivate HDMI display
    

To send command, I use this :

Process.Start(new ProcessStartInfo { FileName = "/usr/bin/bash", Arguments = "-c \" COMMAND_TO_SEND \""}).WaitForExit();
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!