If I'm understanding what you want to do there is a pin available on the RPi to reset the board/power. Connect a button, press it, and it'll act a soft on type button by resetting the RPi from its shutdown state.
That's the one. When you momentarily connect Run to Ground it resets.
On previous models the pin next to Run was also ground, so you could just use those two pins. But on the latest 3B+ (?) the pin next to Run isn't ground, so you need to use a ground on the GPIO header. Which can be any, even if it's used by something else. Ground is ground.
Ok, I dug out an old circuit board from a long unused modem and found a set of headers on there that I could remove. I watched a lot of youtube videos on soldering and unsoldering and have discovered that many americans can't pronounce solder. Preferring to leave the 'l' out and making it 'sodder'. :|
Anywho, after a bit of practicing, I unsoldered them, took two out and soldered them onto the Pi. It's not the neatest or straightest, but they're in.
The circuit does work, I've just got to test it now with the whole thing assembled. :)
Edit - Yay, the software switch powers it off and the push switch powers it back on. It's working, but there's room for improvement, but that can all be done later, for now it's something I can give to the builders and say stick this in the wall for me.
I wonder if you can script anything on that Run pin... If that can be used to shutdown/sleep the Pi, that'd be ideal.
Thanks for your help with getting this far PB and Ant. Tonight's job is getting the momentary switch hooked up. It's got 4 poles and didn't come with a wiring diagram, so a little more experimentation is taking place. :)
The kitchen project is continuing, albeit slowly, which is why I've not updated this for a while. If anyone's interested in seeing what it's like let me know and I'll post a link to a google drive file with pictures of how the whole thing's going, but although the Pi is working it won't be installed for a good few days as yet.
It's in a box at the moment. The electricians are doing their 2nd fit this week, so it'll go in then. It's going to sit above the work top where they've put a clock on the 3d drawings. There's 3 double power sockets going along there and it'll sit above the middle one. The power leads are going to go to a double socket hidden in the cupboard underneath, so we won't have any cable clutter. The screen and case I've got don't have an easy way of mounting it all into a recess, so I've got a tablet mounting bracket kit; all it contains is 2 small U shaped bits of plastic that screw into the wall and you drop your kit into them.
The screen needs the protection of the case I've got it mounted in, but it's only ~5mm thick, so isn't going to stand out too much. I would have preferred to have it flush in the wall or something like this, but that's hideously expensive for what it is.
O.M.G. that is expensive. A flat screen with a case to fit a back box and not much change from £500 with tax. Couldn't you put something together with a screen like this and an ordinary back box from Screwfix or somewhere?
And having reread your post, that's pretty well what you're doing, almost.
never trust a man in a blue trench coat, never drive a car when you're dead
The only issue I think we'll have is that the gubbins on the back of the Pi sticks out a fair way at the back and I'm going to have to (for want of a better expression) "roll" it into the brackets, then slide it down into them, so the hole in the wall is going to have to be bigger than it needs to be.