Go to advanced search

by Worldfrog
Fri Nov 25, 2016 1:52 am
Forum: Beginners
Topic: Fully power down monitor using cron?
Replies: 3
Views: 797

Re: Fully power down monitor using cron?

I've heard that only TVs have cec. Would this work with a regular monitor as well?
by Worldfrog
Thu Nov 24, 2016 5:43 am
Forum: Beginners
Topic: Fully power down monitor using cron?
Replies: 3
Views: 797

Fully power down monitor using cron?

So I'm wanting to use cron to make my monitor turn on and off at certain times, but every way I've seen to turn off the monitor just leaves mine on a blue screen saying no input. I have tried these 2 options and have seen no others:

Code: Select all

tvservice -o

Code: Select all

vcgencmd display_power 0
Any help is appreciated :)
by Worldfrog
Tue Dec 29, 2015 5:23 pm
Forum: Troubleshooting
Topic: GPIO shutdown program help
Replies: 6
Views: 886

Re: GPIO shutdown program help

You seem to have lost all your indentation (spacing) on posting that code and you have multiple statements per line, which makes it difficult to follow. Can you repost it with the leading spaces and the code on separate lines so it makes sense? I can, here it is: import RPi.GPIO as GPIO import os i...
by Worldfrog
Tue Dec 29, 2015 7:19 am
Forum: Troubleshooting
Topic: GPIO shutdown program help
Replies: 6
Views: 886

Re: GPIO shutdown program help

gordon77 wrote:How long are you pressing the button? You could need to press it for 15 seconds.
I was pressing for maybe a second at most. However, I agree, it probably wasn't working because of my sleep command which froze all my code.
by Worldfrog
Mon Dec 28, 2015 9:18 pm
Forum: Troubleshooting
Topic: GPIO shutdown program help
Replies: 6
Views: 886

Re: GPIO shutdown program help

Update: removing the time.sleep(15) before print("On") seems to have fixed it... why?
by Worldfrog
Mon Dec 28, 2015 8:54 pm
Forum: Troubleshooting
Topic: GPIO shutdown program help
Replies: 6
Views: 886

GPIO shutdown program help

So I made a shutdown program, and the program worked the first few times, but appears to not work when I push the button that should execute code import RPi.GPIO as GPIO import os import time import Tkinter import tkMessageBox GPIO.setmode(GPIO.BOARD) GPIO.setup(16,GPIO.IN, pull_up_down=GPIO.PUD_DOW...
by Worldfrog
Mon Dec 28, 2015 4:17 pm
Forum: Beginners
Topic: Internal pull up/down resistors
Replies: 5
Views: 1211

Re: Internal pull up/down resistors

Burngate wrote:such as interference spikes
I'm curious as to what may cause that? Because all I have on my board right now is a button to short GPIO 5 and 6, and then the one I'm working on(which will be an off button)
by Worldfrog
Mon Dec 28, 2015 3:48 am
Forum: Beginners
Topic: Internal pull up/down resistors
Replies: 5
Views: 1211

Internal pull up/down resistors

I was just wondering, how well do the internal pull up/down resistors work? If they work well then it saves me a good bit of time(especially with the way my breakout board is set up.) So, I was just wondering if they are trustworthy, as right now I need a pull down resistor in order to make an off b...
by Worldfrog
Mon Dec 28, 2015 12:44 am
Forum: Beginners
Topic: Making a pull down resistor with this breakout board
Replies: 0
Views: 173

Making a pull down resistor with this breakout board

So, for Christmas I got a Raspberry Pi, and am trying to make a basic shutdown button on a breadboard.. The only problem is that all the models I see show this done with a different kind of breakout board. I have this one. https://www.vilros.com/media/catalog/product/cache/1/image/1200x1200/9df78eab...

Go to advanced search