Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Start up tv when RPI powers up?  (Read 5298 times)

0 Members and 1 Guest are viewing this topic.

mahuti

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2757
  • Last login:March 02, 2022, 09:51:19 pm
  • I dare anything! I am Skeletor!
Start up tv when RPI powers up?
« on: January 07, 2017, 04:59:17 pm »
I have a TV I'll be using as a monitor (for now). It doesn't have a "start up after power on" feature... so the only way to turn it on is via remote, or button press.

When the raspberry pi powers on, I want to send that button press signal to the TV to power on. Has anyone done anything like this before? I'm guessing it's kind of a simple operation using the GPIO pins to control a relay. Might need to be something between the GPIOs and the relays.. I don't know. Any thoughts?

Worse comes to worse I could use IR to do it.... but meh.
Raspberry Pi, AttractMode, and Skeletor enthusiast.

vinegar

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 25
  • Last login:August 12, 2017, 09:07:18 pm
  • ID/hardware hacker
Re: Start up tv when RPI powers up?
« Reply #1 on: January 07, 2017, 06:34:01 pm »
what happens if you supply power to the set while holding down the power button, and keep it held?

i'm thinking it might be better to permanently bridge the power button so it's always "pressed" if possible, and handle power on/off for the whole rig, pi and tv, at a central switch.  if you start trying to do this programmatically with an optocoupler or something, murphy's law applies and you'll end up out of sync at some point when it fails to turn "off" or "on" and the pi has no awareness of the tv's state.  and anyway, you'd be adding the pi's boot time and the tv's warm-up time together to get from switch to playable since the pi's gotta boot at least a bit before you can set GPIOs, which may get annoying.

mahuti

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2757
  • Last login:March 02, 2022, 09:51:19 pm
  • I dare anything! I am Skeletor!
Re: Start up tv when RPI powers up?
« Reply #2 on: January 07, 2017, 06:37:06 pm »
I'll check. Good idea.
Raspberry Pi, AttractMode, and Skeletor enthusiast.

vinegar

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 25
  • Last login:August 12, 2017, 09:07:18 pm
  • ID/hardware hacker
Re: Start up tv when RPI powers up?
« Reply #3 on: January 07, 2017, 06:44:22 pm »
some virtual pinball heads do this with their playfield tvs now, since so few lcds have that power setting unless you go with expensive hospitality sets.

Slippyblade

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3167
  • Last login:November 16, 2023, 11:39:51 am
  • And to the death god we say, "Not today!"
Re: Start up tv when RPI powers up?
« Reply #4 on: January 07, 2017, 11:56:05 pm »
I power my Pi's directly off of the TV.  Just poke around with a meter until you find a solid 5v and run the Pi off of that.  That way, you turn on the TV and the TV powers the Pi.

mahuti

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2757
  • Last login:March 02, 2022, 09:51:19 pm
  • I dare anything! I am Skeletor!
Re: Start up tv when RPI powers up?
« Reply #5 on: January 08, 2017, 02:34:41 am »
Quote
what happens if you supply power to the set while holding down the power button, and keep it held?

I tried it. It powers up when held... stays on. I put in a foot switch to test while holding the power button. Popping the floor switch on and off while holding that switch down worked a treat. So I guess at this point I just need to jumper that power switch.


Quote
I power my Pi's directly off of the TV.  Just poke around with a meter until you find a solid 5v and run the Pi off of that.  That way, you turn on the TV and the TV powers the Pi.

Now that is an awesome idea too. How do you solve the shut down issue with the RPIs? The fact that you *could* get corruption through poor shut off? Or do you just go thelma and louise on it?


 


« Last Edit: January 08, 2017, 03:10:44 am by mahuti »
Raspberry Pi, AttractMode, and Skeletor enthusiast.

vinegar

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 25
  • Last login:August 12, 2017, 09:07:18 pm
  • ID/hardware hacker
Re: Start up tv when RPI powers up?
« Reply #6 on: January 08, 2017, 02:44:05 am »
you could move roms and things you absolutely positively need writable (some config dirs, maybe?) to usb, symlink their original paths as needed or change where whatever frontend/emu you're using looks for them, and make the sd card read-only.  then at least any possible corruption issues are more likely to be limited to the specific file that was being written to.

mahuti

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2757
  • Last login:March 02, 2022, 09:51:19 pm
  • I dare anything! I am Skeletor!
Re: Start up tv when RPI powers up?
« Reply #7 on: January 08, 2017, 03:10:25 am »
So I jumpered it. Got out the soldering iron and that's that. Works as you'd expect. Power goes on... tv is on. Sweet. Sweet. Sweetness.

Now I just need to quit screwing around with the RPI and toss it in there. I don't have controls for this cab yet, but at least i could run some sweet 80's videos off of Kodi in the background :-) This will go in the Space Encounters machine there in the middle. Someone gave it to me about 10 years ago... non working... some parts removed. I tried trading it off for years, but no takers, so It's headed into emulator land. Going to set  up the existing controls intact as a hot swappable set, but usually it will just use a tastefully done panel in a similar style with a joystick and a few buttons for most things. Man, I need to finish those 4 cabs up. Various states of disarray. Whatever... it's a basement ;-) Nobody comes down here but me.


 
Quote
you could move roms and things you absolutely positively need writable (some config dirs, maybe?) to usb, symlink their original paths as needed or change where whatever frontend/emu you're using looks for them, and make the sd card read-only.  then at least any possible corruption issues are more likely to be limited to the specific file that was being written to.

I hot plugged the Raspberry pi probably 200 times while I was originally learning all the ins and outs of it and never *noticed* any issue. I'll probably just make a backup of the initial image and then just say "screw it" for awhile. Eventually I might go with some nicer raspberry pi switch to run the whole thing. Who knows. Problem for another time.

 
« Last Edit: January 08, 2017, 03:15:22 am by mahuti »
Raspberry Pi, AttractMode, and Skeletor enthusiast.

mahuti

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2757
  • Last login:March 02, 2022, 09:51:19 pm
  • I dare anything! I am Skeletor!
Re: Start up tv when RPI powers up?
« Reply #8 on: January 10, 2017, 12:03:22 am »
The only downside to this method (on this TV) is that it blocks the function of the remote control. Weird. Whatever. If I need the menu sometime I can just cut the jumper or desolder it.
Raspberry Pi, AttractMode, and Skeletor enthusiast.

vinegar

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 25
  • Last login:August 12, 2017, 09:07:18 pm
  • ID/hardware hacker
Re: Start up tv when RPI powers up?
« Reply #9 on: January 10, 2017, 11:51:54 am »
put a rocker switch inline lol

mahuti

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2757
  • Last login:March 02, 2022, 09:51:19 pm
  • I dare anything! I am Skeletor!
Re: Start up tv when RPI powers up?
« Reply #10 on: January 10, 2017, 03:15:40 pm »
Yeah if I cut the jumper I'll wire something else interesting in its place.
Raspberry Pi, AttractMode, and Skeletor enthusiast.

baritonomarchetto

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 805
  • Last login:Yesterday at 02:10:16 pm
Re: Start up tv when RPI powers up?
« Reply #11 on: January 11, 2017, 02:48:30 am »
Place a 1uF electrolitic capacitor in place of the jumper: you will have a small current on start and then an open circuit.
Pay attention to the polarity of the cap.

mahuti

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2757
  • Last login:March 02, 2022, 09:51:19 pm
  • I dare anything! I am Skeletor!
Re: Start up tv when RPI powers up?
« Reply #12 on: January 11, 2017, 11:09:57 am »
1uf capacitor!!! GREAT SCOTT!!




I may actually have one of those laying around. Thanks for the suggestion btw.
Raspberry Pi, AttractMode, and Skeletor enthusiast.

yotsuya

  • Trade Count: (+21)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19955
  • Last login:April 12, 2024, 11:03:32 pm
  • 2014 UCA Winner, 2014, 2015, 2016 ZapCon Winner
    • forum.arcadecontrols.com/index.php/topic,137636.msg1420628.html
Re: Start up tv when RPI powers up?
« Reply #13 on: January 11, 2017, 11:11:55 am »
1uf capacitor!!! GREAT SCOTT!!




I may actually have one of those laying around. Thanks for the suggestion btw.
He didn't say put a 1.21 Gigawatt capacitor... ;-)
***Build what you dig, bro. Build what you dig.***

mahuti

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2757
  • Last login:March 02, 2022, 09:51:19 pm
  • I dare anything! I am Skeletor!
Re: Start up tv when RPI powers up?
« Reply #14 on: January 12, 2017, 01:22:01 pm »
See... this is the right audience for that. If only I could go back in time, I could just get a decent WG monitor and be done with this.
Raspberry Pi, AttractMode, and Skeletor enthusiast.

mahuti

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2757
  • Last login:March 02, 2022, 09:51:19 pm
  • I dare anything! I am Skeletor!
Re: Start up tv when RPI powers up?
« Reply #15 on: March 11, 2017, 02:54:29 pm »
Quote
Place a 1uF electrolitic capacitor in place of the jumper: you will have a small current on start and then an open circuit.
Pay attention to the polarity of the cap.

By the way, I tried that today. No luck. I ordered some of those 1uF electrolytic caps awhile back... just got around to soldering it in. When I plug in the tv, it sounds like power goes to the sound board, but the TV now doesn't come on without using the remote.. which is what it did before I put the original jumper in place.
Raspberry Pi, AttractMode, and Skeletor enthusiast.


baritonomarchetto

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 805
  • Last login:Yesterday at 02:10:16 pm
Re: Start up tv when RPI powers up?
« Reply #17 on: March 12, 2017, 10:30:47 am »
You placed it with the right polarity, do you?

mahuti

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2757
  • Last login:March 02, 2022, 09:51:19 pm
  • I dare anything! I am Skeletor!
Re: Start up tv when RPI powers up?
« Reply #18 on: March 12, 2017, 12:37:07 pm »
Yes.  When that didn't work I tried it the other way. Neither way works. Shrug.
Raspberry Pi, AttractMode, and Skeletor enthusiast.