You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I compiled and installed the 5.10.76 kernel today along with installing the latest bootloader firmware on the pi4b 8g. It seems using kms with V3D rendering the screen blanks for a couple seconds when opening or closing any graphical program. I down graded the latest bootloader firmware to the previous and it did not make any difference with the issue.
If I open and close the terminal there is no blanking but if you run glxgears in the terminal the screen blanks for a couple of seconds then glxgears runs. Then quit glxgears the screen blanks for a couple of seconds then returns. Then exit the terminal this time and the the screen blanks for a couple of seconds then returns with no terminal.
#4435 has just been merged to add support for configuring the gamma block on 2711.
Due to a hardware issue, it is only safe to update the gamma block when the pipeline is stopped, so any update results in a temporary screen blank whilst it is disabled and re-enabled.
I'm a little surprised if quitting glxgears is changing the gamma settings as it has no reason to, but can check. We hadn't noted any issues with normal usage under Raspberry Pi OS, but can't test everything.
#4435 has just been merged to add support for configuring the gamma block on 2711. Due to a hardware issue, it is only safe to update the gamma block when the pipeline is stopped, so any update results in a temporary screen blank whilst it is disabled and re-enabled.
I'm a little surprised if quitting glxgears is changing the gamma settings as it has no reason to, but can check. We hadn't noted any issues with normal usage under Raspberry Pi OS, but can't test everything.
Using fkms with V3D rendering does not have this issue. But using kms with V3D rendering every graphical program you try to open the screen blanks for a few seconds and when you close the program it blanks again even when you try to open the File Manager.
I am not sure by your answer and reading the commits in the link you posted about this if this is going to be the new "norm" but it is almost to the point of being unacceptable using kms with V3D rendering as it is now.
Quotes in the link where the screen blanking was known:
"It is a hardware limitation, so it's the choice of either blanking, or not supporting the gamma controls." "Ok. Then I'd rather have support and let the user choose (and deal with the consequences :-))."
I wouldn't expect anything to be routinely changing the gamma tables, therefore knowing what it is that is doing so is going to be the deciding factor as to whether it gets reverted or not.
On one hand we have people complaining that gamma (and therefore brightness) controls aren't implemented (eg raspberrypi/firmware#1274), but if there are going to be significant issues then it may need to be an opt-in control.
The reset is contingent on color_mgmt_changed being set during the atomic check, which happens on an update of CTM, degamma, or gamma property - https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/drm_atomic_uapi.c#L457. It's possible something in userspace is setting this one of these property to the same value as it currently is, but that will still trigger an update. Knowing if that is the case is the key question. It may be necessary to do a memcmp of the data rather than taking userspace's word for the fact that something has changed.
@popcornmix I compiled and tested the latest 5.15.2 at 027a7a8 and the latest 5.10.79 at 46c99e3 kernels and this screen blanking is back on both kernels using KMS/V3D rendering.
Yea!! Kernel 5.16-rc3 at 38e2986 now boots into a DE with kms/fkms. Thanks you all for remembering my post here in this thread. @pelwell You last post was entertaining; love humor!!
I did not test kms on this -rc kernel for screen blanking as I figured the gamma commits were carried forward. I had made a patch reverting the gamma commits in 5.10/5.1/5.5.16 using what was provided above you all wanted me to test. I will wait until I hear back in this thread before I remove the patch to test.
One last thing with my tests on his new -rc kernel I am seeing a failed with bluetooth that I have never seen before with the other kernels. I was wondering if this is something new the 5.16 kernel is checking for or what. My bluetooth headphones work good as usual. This line gets repeated 12 times:
Using fkms with V3D rendering does not have this issue.
I don't know if this related but my RPi 7inch screen (connected to RPI3B) blanked, faded and was "shaking" after an update. I fixed it by changing kms into fkms in /boot/config.txt. I run 5.10.90-1-rpi-legacy-ARCH. Should there have been a config.txt.pacnew file announcing the change?
No clue if it has anything to do with the subject of this thread. There was screen blanking opening and closing windows in a DE. This has been temporary fixed for a while now in arch-arm and manjaro-arm by applying a patch made from the info given above to temporarily revert gamma commits until RPi fixes the issue. So if it is just now your issue with 5.10.90 maybe it is an issue specific to 5.10.90.
EDIT: I downgraded the kernel and all packages to Nov 10, 2021 and the line dtoverlay=vc4-kms-v3d still causes the screen to be garbled, faded, etc. Now, I am not sure dtoverlay=vc4-kms-v3d was in my boot/config.txt prior to Nov 10. I think the upgrade from kernel-raspberrypi to kernel-rpi(-legacy) may have added the line.
@bronze51 might be best to create a new issue. Yours doesn't seem to be at all related to this one.
This issue is specifically about calls to adjust the gamma causing a couple of seconds of blank screen periodically (and then normal operation continuing).
Activity
[-]Kernel 5.10.76 AARCH64 screen blanking issue[/-][+]Kernel 5.10.76 AARCH64 screen blanking issue using kms V3D rendering[/+]6by9 commentedon Oct 30, 2021
#4435 has just been merged to add support for configuring the gamma block on 2711.
Due to a hardware issue, it is only safe to update the gamma block when the pipeline is stopped, so any update results in a temporary screen blank whilst it is disabled and re-enabled.
I'm a little surprised if quitting glxgears is changing the gamma settings as it has no reason to, but can check. We hadn't noted any issues with normal usage under Raspberry Pi OS, but can't test everything.
user13571113 commentedon Oct 30, 2021
This is just to confirm that I am experiencing precisely the issue described by Dark-Sky. Downgrading to 5.10.74 resolves it.
Dark-Sky commentedon Oct 30, 2021
Using fkms with V3D rendering does not have this issue. But using kms with V3D rendering every graphical program you try to open the screen blanks for a few seconds and when you close the program it blanks again even when you try to open the File Manager.
I am not sure by your answer and reading the commits in the link you posted about this if this is going to be the new "norm" but it is almost to the point of being unacceptable using kms with V3D rendering as it is now.
Quotes in the link where the screen blanking was known:
"It is a hardware limitation, so it's the choice of either blanking, or not supporting the gamma controls."
"Ok. Then I'd rather have support and let the user choose (and deal with the consequences :-))."
6by9 commentedon Oct 30, 2021
I wouldn't expect anything to be routinely changing the gamma tables, therefore knowing what it is that is doing so is going to be the deciding factor as to whether it gets reverted or not.
On one hand we have people complaining that gamma (and therefore brightness) controls aren't implemented (eg raspberrypi/firmware#1274), but if there are going to be significant issues then it may need to be an opt-in control.
The reset is contingent on color_mgmt_changed being set during the atomic check, which happens on an update of CTM, degamma, or gamma property - https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/drm_atomic_uapi.c#L457. It's possible something in userspace is setting this one of these property to the same value as it currently is, but that will still trigger an update. Knowing if that is the case is the key question. It may be necessary to do a memcmp of the data rather than taking userspace's word for the fact that something has changed.
pelwell commentedon Oct 30, 2021
It might be quicker overall to put in a speculative memcmp and see if the problem goes away.
6by9 commentedon Nov 2, 2021
#4664.
Dark-Sky commentedon Nov 2, 2021
Compiled kernel at commit 9cca266 and this issue seems to be fixed.
Dark-Sky commentedon Nov 3, 2021
@6by9 I just compiled the latest kernel 5.15.0 at f578ca8 and it is now screen blanking trying to open or close any graphical program.
popcornmix commentedon Nov 3, 2021
@Dark-Sky I've cherry-picked the fix to 5.15. Does it work now?
Dark-Sky commentedon Nov 3, 2021
Re-building kernel packages .....
Dark-Sky commentedon Nov 3, 2021
Yes it does. Thank you very much for your trouble and time!!
Dark-Sky commentedon Nov 16, 2021
@popcornmix I compiled and tested the latest 5.15.2 at 027a7a8 and the latest 5.10.79 at 46c99e3 kernels and this screen blanking is back on both kernels using KMS/V3D rendering.
popcornmix commentedon Nov 22, 2021
Is the issue still gamma related? i.e. on rpi-5.10.y can you revert gamma commits
and confirm if screen blanking occurs.
Dark-Sky commentedon Nov 22, 2021
Will try that.
6 remaining items
Dark-Sky commentedon Dec 1, 2021
Yea!! Kernel 5.16-rc3 at 38e2986 now boots into a DE with kms/fkms. Thanks you all for remembering my post here in this thread. @pelwell You last post was entertaining; love humor!!
I did not test kms on this -rc kernel for screen blanking as I figured the gamma commits were carried forward. I had made a patch reverting the gamma commits in 5.10/5.1/5.5.16 using what was provided above you all wanted me to test. I will wait until I hear back in this thread before I remove the patch to test.
One last thing with my tests on his new -rc kernel I am seeing a failed with bluetooth that I have never seen before with the other kernels. I was wondering if this is something new the 5.16 kernel is checking for or what. My bluetooth headphones work good as usual. This line gets repeated 12 times:
Thanks for your help.
pelwell commentedon Dec 1, 2021
That should be fixed now - I've back-ported a patch from linux-next that checks the command is supported before using it.
Dark-Sky commentedon Dec 1, 2021
Yes indeed it is fixed! Thanks
core/linux-rpi to 5.15.11-2
core/linux-rpi to 5.10.88-2
bronze51 commentedon Jan 13, 2022
I don't know if this related but my RPi 7inch screen (connected to RPI3B) blanked, faded and was "shaking" after an update. I fixed it by changing kms into fkms in /boot/config.txt. I run 5.10.90-1-rpi-legacy-ARCH. Should there have been a config.txt.pacnew file announcing the change?
Dark-Sky commentedon Jan 13, 2022
No clue if it has anything to do with the subject of this thread. There was screen blanking opening and closing windows in a DE. This has been temporary fixed for a while now in arch-arm and manjaro-arm by applying a patch made from the info given above to temporarily revert gamma commits until RPi fixes the issue. So if it is just now your issue with 5.10.90 maybe it is an issue specific to 5.10.90.
Dark-Sky commentedon Jan 13, 2022
I compiled 5.10.90 @ cd1b7be today and it seems to have fixed the screen blanking issue using KMS in a DE.
bronze51 commentedon Jan 13, 2022
Great. I assume the patch will make it into 5.10.91 and report back then.
bronze51 commentedon Jan 14, 2022
kernel "5.10.90-3-rpi-ARCH" with boot/config.txt set to:
dtoverlay=vc4-kms-v3d
initramfs initramfs-linux.img followkernel
dtparam=audio=on
arm_boost=1
did NOT solve the problem. After boot completed the screen was unreadable / shaking / faded
bronze51 commentedon Jan 15, 2022
EDIT: I downgraded the kernel and all packages to Nov 10, 2021 and the line dtoverlay=vc4-kms-v3d still causes the screen to be garbled, faded, etc. Now, I am not sure dtoverlay=vc4-kms-v3d was in my boot/config.txt prior to Nov 10. I think the upgrade from kernel-raspberrypi to kernel-rpi(-legacy) may have added the line.
popcornmix commentedon Jan 17, 2022
@bronze51 might be best to create a new issue. Yours doesn't seem to be at all related to this one.
This issue is specifically about calls to adjust the gamma causing a couple of seconds of blank screen periodically (and then normal operation continuing).
bronze51 commentedon Jan 18, 2022
OK. I need to do more research to produce enough information for a new issue. If successful, I can mention the new issue here.