Allen.Lesop
Posts: 3
Joined: Mon Mar 19, 2018 10:04 am

Scheduled wake from sleep mode / go to sleep mode

Mon Mar 19, 2018 10:22 am

I'm using my new Pi as a digital calendar for the house, connected to a monitor in my kitchen. It would be ideal if we could schedule it to go into a "sleep mode" where it powers down the monitor when we leave for work and turns back on when we get home.

Any suggestions as to how I could do that? I was looking around on the googles and saw people talking about something called "X" and /etc/kbd/config but those directories didn't come with my NOOBs install?


Thanks everyone.

User avatar
Gavinmc42
Posts: 4534
Joined: Wed Aug 28, 2013 3:31 am

Re: Scheduled wake from sleep mode / go to sleep mode

Mon Mar 19, 2018 10:48 am

Does the Monitor have CEC power control?
CEC is a single wire bus on the HDMI cable.
Lots of AV stuff with HDMI now have CEC.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Allen.Lesop
Posts: 3
Joined: Mon Mar 19, 2018 10:04 am

Re: Scheduled wake from sleep mode / go to sleep mode

Mon Mar 19, 2018 2:28 pm

It's an old monitor with DVI connections (I'm using a HDMI to DVI cord)

Allen.Lesop
Posts: 3
Joined: Mon Mar 19, 2018 10:04 am

Re: Scheduled wake from sleep mode / go to sleep mode

Wed Mar 21, 2018 12:56 pm

For anyone looking for something like this (works real well for a display at home you don't want on overnight or whatever)

Code: Select all

vcgencmd display_power 0
will turn it off

Code: Select all

vcgencmd display_power 1
will turn it back on

This will put the monitor into "sleep" mode and wake it back up when needed.


you can use that easily through a cron job.

User avatar
Gavinmc42
Posts: 4534
Joined: Wed Aug 28, 2013 3:31 am

Re: Scheduled wake from sleep mode / go to sleep mode

Thu Mar 22, 2018 5:49 am

Yep typed that into a terminal screen, it worked, DVI monitor is off.
er how to turn it on again? :oops:
No keyboard or mouse wakeup :(
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

fruitoftheloom
Posts: 23548
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Scheduled wake from sleep mode / go to sleep mode

Thu Mar 22, 2018 6:29 am

Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

Return to “General programming discussion”