RPi-Distro / repo

Issue tracking for the archive.raspberrypi.org repo
37 stars 1 forks source link

Screen blanking not working #339

Closed ghost closed 1 year ago

ghost commented 1 year ago

Latest Raspberry Pi OS on a Pi 400, the screen blanking does not work. It's turned on in raspi-config. Only modifications done to the monitor is setting it to 50Hz.

popcornmix commented 1 year ago

Are you saying blanking was working before you changed monitor refresh rate?

ghost commented 1 year ago

I will have to try it, I always run 50hz. -------- Opprinnelig melding --------Fra: popcornmix @.> Dato: 15.08.2023 19:40 (GMT+01:00) Til: RPi-Distro/repo @.> Ko: sakittelsen @.>, Author @.> Emne: Re: [RPi-Distro/repo] Screen blanking not working (Issue #339) Are you saying blanking was working before you changed monitor refresh rate?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

ghost commented 1 year ago

How many minutes before the screen blanker kicks in?

I have also used Raspberry Pi Lite OS with XFCE, and when I set the screen blanker in XFCE, the screen will blank for 2 seconds and then come back to the desktop. This will repeat with each timeout for the screen blanker. The same might happen with stock Raspberry Pi OS, I just need to know when I should look for those 2 seconds of blank screen. I installed a fresh copy without any modifications, and the screen was not blank after 10 minutes.

tir. 15. aug. 2023 kl. 19:40 skrev popcornmix @.***>:

Are you saying blanking was working before you changed monitor refresh rate?

— Reply to this email directly, view it on GitHub https://github.com/RPi-Distro/repo/issues/339#issuecomment-1679345869, or unsubscribe https://github.com/notifications/unsubscribe-auth/BB5ZIE5K5PTD2BF6Q35L6EDXVOX7PANCNFSM6AAAAAA3RLBDRE . You are receiving this because you authored the thread.Message ID: @.***>

ghost commented 1 year ago

It's confirmed on both Raspberry Pi 4B and 400. After 10 minutes in Raspi OS the screen will go blank for about 2-3 seconds, and then go back to the desktop again. This will repeat every 10 minutes. This will happen on a fresh install without any changes to the OS. With Raspi OS lite and Gnome the screen will go blank a few seconds, and then the login screen will be shown. Other DE's will have a blank screen with just the mouse cursor showing. The monitor is a 24" AOC LCD with HDMI input.

popcornmix commented 1 year ago

I have just flashed "Raspberry Pi OS with desktop" 64-bit Release data: May 3rd 2023. (here).

I booted on a Pi4 connected to a 4k monitor. I did the minimum I could, so I chose username and password. Skipped wifi setup. Skipped updates. Said desktop fitted monitor. I rebooted when asked.

Then I left it for 10 minutes. Screen went blank. And it is still blank some minutes later. Waggle mouse and it comes back on.

I have hdmi monitor, ethernet, usb mouse and keyboard connected.

So I need to know what is different with your setup.

If you could repeat my exact steps and report if that fails. If it does, then we need to see if anything in your environment is causing it. Can you disconnect mouse, keyboard and ethernet after the reboot, and see if behaviour changes?

If not , can you add vc4.force_hotplug=1 to cmdline.txt (on existing line). That will rule out any waggling of hotplug the display may be doing when it detects the blanking.

ghost commented 1 year ago

Copy: If not , can you add vc4.force_hotplug=1 to cmdline.txt (on existing line).

Adding this command fixed the screen blanking, and it's now working.

tor. 24. aug. 2023 kl. 14:27 skrev popcornmix @.***>:

I have just flashed "Raspberry Pi OS with desktop" 64-bit Release data: May 3rd 2023. (here https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-64-bit ).

I booted on a Pi3 connected to a 4k monitor. I did the minimum I could, so I chose username and password. Skipped wifi setup. Skipped updates. Said desktop fitted monitor. I rebooted when asked.

Then I left it for 10 minutes. Screen went blank. And it is still blank some minutes later. Waggle mouse and it comes back on.

I have hdmi monitor, ethernet, usb mouse and keyboard connected.

So I need to know what is different with your setup.

If you could repeat my exact steps and report if that fails. If it does, then we need to see if anything in your environment is causing it. Can you disconnect mouse, keyboard and ethernet after the reboot, and see if behaviour changes?

If not , can you add vc4.force_hotplug=1 to cmdline.txt (on existing line). That will rule out any waggling of hotplug the display may be doing when it detects the blanking.

— Reply to this email directly, view it on GitHub https://github.com/RPi-Distro/repo/issues/339#issuecomment-1691581327, or unsubscribe https://github.com/notifications/unsubscribe-auth/BB5ZIE6QFHESMJPEEUMJOLDXW5CBVANCNFSM6AAAAAA3RLBDRE . You are receiving this because you authored the thread.Message ID: @.***>

popcornmix commented 1 year ago

At a guess, your monitor is detecting the blanking and doing something with hotplug detect (most monitors do not do this). Possibly it is deasserting/asserting hotplug to indicate the EDID has changed (not quite sure what the change would be). That has the side effect of triggering X to update its list of hdmi modes supported and reevaluate the best one to choose. This behaviour very likely resets the screen blanking state.

If you are curious, you can enable debugging. I think this may generate suitable info:

echo 0x14 | sudo tee /sys/module/drm/parameters/debug

Run that before the blanking occurs, the grab dmesg output after blanking has engaged, then aborted. (obviously this is only interesting without vc4.force_hotplug=1 present).

ghost commented 1 year ago

I now do not need to add the config.txt command to get the blanking to work. I assume it's been corrected in the code, same setup on my end as before.