tfsnchez
Posts: 3
Joined: Wed Jun 01, 2016 5:16 pm

Turn off/on display with phyton.

Wed Jun 01, 2016 5:50 pm

Hi.

I need desing a solution for a IoT. Need turn on/off display with a raspberry 3, but I dont have any idea how I can do it.

In summary I have a card reader connected to my door, and need to turn on my screem in my rasp when people made a check in my card reader.

If some people here could help me.

RDS
Posts: 776
Joined: Tue Oct 06, 2015 8:17 am
Location: Lancashire, UK

Re: Turn off/on display with phyton.

Thu Jun 02, 2016 3:48 pm

I don't know how to do it but presumably something like a mobile phone where you can wake it up with a couple of taps on a touch screen and then it goes back to 'sleep' after a period of no activity?

tfsnchez
Posts: 3
Joined: Wed Jun 01, 2016 5:16 pm

Re: Turn off/on display with phyton.

Thu Jun 02, 2016 3:57 pm

RDS wrote:I don't know how to do it but presumably something like a mobile phone where you can wake it up with a couple of taps on a touch screen and then it goes back to 'sleep' after a period of no activity?
Yes sure, In that case, I need to turn on, when people make a check in.

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Turn off/on display with phyton.

Thu Jun 02, 2016 5:37 pm

Please give us a datasheet or at least a link to the
product page of the display.

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

tfsnchez
Posts: 3
Joined: Wed Jun 01, 2016 5:16 pm

Re: Turn off/on display with phyton.

Thu Jun 02, 2016 6:40 pm

ghans wrote:Please give us a datasheet or at least a link to the
product page of the display.

ghans
thanks for you response, for more details I made a diagram about my project.
Attachments
Diagram1.png
Diagram1.png (55.51 KiB) Viewed 920 times

stderr
Posts: 2178
Joined: Sat Dec 01, 2012 11:29 pm

Re: Turn off/on display with phyton.

Thu Jun 02, 2016 7:52 pm

tfsnchez wrote:
ghans wrote:Please give us a datasheet or at least a link to the product page of the display.
thanks for you response, for more details I made a diagram about my project.
I think they think that you are talking about some unusual sort of display but it appears you have an ordinary hdmi device. The tvservice program can be run to turn normal hdmi and composite pi screens on and off.

I would create a function to do this and directly use this program in the function to start out with at least so I could get it going. If you put this inside a function, you can later easily go in and change how you are turning screens on and off, the means can be different on different hardware and operating systems. If you strew calls to this program all over your program and later find out you have a better way or that your hardware is suddenly different, you'll have to hunt them all down.

Return to “Python”