Ports going to Sleep

Help with Raspberry Pi Foundation Boards (Raspberry Pi, Pi Zero, Pi Zero W, Pi A, Pi B, Pi B+, Pi2 B, Pi3 B, Pi 3 B+)
Post Reply
KY6O
Posts: 10
Joined: Mon Apr 18, 2022 9:54 pm

Ports going to Sleep

Post by KY6O »

I am running MMDVM on a fully-patched (V4.1.6) Pi 3 B+, and my MMDVM Hat Duplexis working fine.
The issue I have is that the ports appear to go to sleep overnight. The HDMI screen says "No signal detected" when I power back on the monitor, and my Nextion display continues to function, but the touch-panel doesn't respond. A reboot quickly fixes everything.

I added the "setterm -blank 0 -powerdown 0" to rc.local, but nothing changed. However, when I looked at rc.local to add this command, I see the following:
#Reset the GPIO pins in PI4 only
/usr/local//sbin/pistar-mmdvmshat-reset boot

and this line is NOT commented out, even though I'm using a Pi3.

Could this be my issue?
KN2TOD
Posts: 130
Joined: Sun Nov 11, 2018 6:36 pm

Re: Ports going to Sleep

Post by KN2TOD »

Try uncommenting this statement in the /boot/config.txt file:

Code: Select all

   :
# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1 
   :
change to:

Code: Select all

   :
# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1 
   : 
Reboot and see if that fixes your problem.
KY6O
Posts: 10
Joined: Mon Apr 18, 2022 9:54 pm

Re: Ports going to Sleep

Post by KY6O »

Thanks! I made that change and rebooted. I'll post my results tomorrow morning. With any luck, the display will still be active. :D
KN2TOD
Posts: 130
Joined: Sun Nov 11, 2018 6:36 pm

Re: Ports going to Sleep

Post by KN2TOD »

You shouldn't have to wait that long. Reboot while shutting down your monitor then when your system comes back online, start up the monitor and see what you get.

You might want to consider removing (or commenting out) the setterm line you added in rc.local. I don't think it's doing you any good in this situation (and it's just another mod you'll forget to add back in if and when you re-image).

Also, the reset on the MMDVM hat has no bearing on this issue and can be left as is.
KY6O
Posts: 10
Joined: Mon Apr 18, 2022 9:54 pm

Re: Ports going to Sleep

Post by KY6O »

Nothing changed. The HDMI port still went to sleep :(

Meanwhile, I'll remove the rc.local edit.

Back to the salt mines!
KN2TOD
Posts: 130
Joined: Sun Nov 11, 2018 6:36 pm

Re: Ports going to Sleep

Post by KN2TOD »

If you still have access to SSH in this situation, try this command:

Code: Select all

tvservice --explicit="DMT 35 HDMI"
KY6O
Posts: 10
Joined: Mon Apr 18, 2022 9:54 pm

Re: Ports going to Sleep

Post by KY6O »

I do, and I shall. Thanks!
m1cfk
Posts: 15
Joined: Sun Apr 12, 2020 7:56 am

Re: Ports going to Sleep

Post by m1cfk »

have a read here too.
viewtopic.php?t=2245

I cant find my local notes i made.
but weather it was coincidence, or just 2 factors changed at same time, the screen no longer goes away after a time. it is always on.

2. Run rpi-rw; sudo nano /boot/config.txt ; rpi-ro
edited the lines of frame buffer w / h to my preference.

i had also changed the monitor i was using.
KY6O
Posts: 10
Joined: Mon Apr 18, 2022 9:54 pm

Re: Ports going to Sleep

Post by KY6O »

Nothing changed. In fact, entering that command blanked out my display, which I suspect means my resolution probably isn't high enough?
Post Reply