Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2019-05-08 Thread chill
In my case I don't have a DAC hat - no hats at all in fact. Testing so far has been with a bare 3B+. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/s

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2019-05-08 Thread paul-
Yes, i2c uses gpio3, if you are using a DAC hat, most of those use i2c to control the dac, and you cannot use GPIO3 for anything else. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_d

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2019-05-08 Thread chill
Interesting. I wonder if it's the hard-wired pull-up resistor that's different then. Or the fact that I2C uses GPIO3. Feeling a bit guilty about spamming this sbpd thread with this discussion chill's Profile: http:/

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2019-05-08 Thread meq123
chill wrote: > Wait... it doesn't seem reliable - sometimes works and sometimes > doesn't. Coming back from a 'halt' (e.g. if I manually issue the 'sudo > /sbin/poweroff' command in a terminal) seems reliable, but shutting down > seems intermittent. Haven't spotted a pattern yet. I'm surprise

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2019-05-08 Thread chill
Wait... it doesn't seem reliable - sometimes works and sometimes doesn't. Coming back from a 'halt' (e.g. if I manually issue the 'sudo /sbin/poweroff' command in a terminal) seems reliable, but shutting down seems intermittent. Haven't spotted a pattern yet. -

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2019-05-08 Thread chill
These settings seem to work for the gpio-shutdown overlay: '[image: http://www.cjh.me.uk/MyPhotobucket/cache/DIYHifi/RPi%20Board/Pi%20System/Shutdown%20settings_1024.jpg]' (http://www.cjh.me.uk/MyPhotobucket/albums/DIYHifi/RPi%20Board/Pi%20System/Shutdown%20settings.jpg) Grounding GPIO3 while t

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2019-05-08 Thread chill
Grounding GPIO3 apparently performs a 'wake from halt', so it seems it'll only work if the Pi has been halted (e.g. by /sbin/poweroff?). I think a toggle switch isn't such a good idea, but using a momentary button to ground GPIO3, to either halt the system or wake it up again, seems like the way

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2019-05-08 Thread chill
Reading more carefully, it seems like the button should be a momentary button: "After shutdown, the system can be powered up again by driving GPIO3 low." So grounding the pin while pCP is running will call the pcp-powerbutton.sh script, which issues the 'sudo /sbin/poweroff' command. Grounding

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2019-05-08 Thread chill
paul- wrote: > LMS is the problem..you need to halt the system first. You can > build or buy power relays. To drop power after the kernel shuts down. I've been trying to understand the foregoing discussion so that I can shutdown my pCP LMS server(s) safely. I'd appreciate guidance on whe