Skip to content

KMS: blank screen after TV is brought out of standby on modes that need scrambling #4486

Closed

Description

@HiassofT

Describe the bug
When running modetest or kodi with a mode that needs scrambling (eg 3840x2160-50/60) my LG 55C8 reports no signal after switching it into standby and back on.

To reproduce

  • add hdmi_enable_4kp60=1 to config.txt, boot into RPiOS lite framebuffer console
  • run modetest -M vc4 -s 32:3840x2160-50
  • put TV into standby and back on

Expected behaviour
TV shows picture

Actual behaviour
TV displays "no signal"

System
RPiOS lite with rpi-update kernel/firmware Hexxeh/rpi-firmware@b986fda

root@raspberrypi:~# uname -a
Linux raspberrypi 5.10.52-v7l+ #1440 SMP Tue Jul 27 09:55:21 BST 2021 armv7l GNU/Linux
root@raspberrypi:~# vcgencmd version
Jul 21 2021 16:21:46
Copyright (c) 2012 Broadcom
version 6a796bb0062a6c75191c57cba1c13f9300076d02 (clean) (release) (start)
root@raspberrypi:~# cat /boot/config.txt
# Hias

dtoverlay=disable-bt
dtoverlay=vc4-kms-v3d
hdmi_enable_4kp60=1
#disable_fw_kms_setup=1
#hdmi_force_hotplug=1

Also verified with current rpi-5.10.y commit 6495fa3 plus #4371

Logs
dmesg from rpi-update kernel: http://ix.io/3uoI
dmesg from rpi-5.10.y plus #4371: http://ix.io/3uoJ

Additional context
Manually initializing the scrambler with i2cset -y 20 0x54 0x20 0x3 when TV shows "no signal" brings the signal back.

Signal also comes back when exiting modetest and it switches from 3840x2160-50 back to 3840x2160-60

We also got a bug report of a LibreELEC user where he noticed the same with a Panasonic AX800 TV: https://forum.libreelec.tv/thread/24279-pi4-no-screen-after-turning-tv-off-and-on-in-4k-50hz-or-4k-60hz/

ping @mripard

Activity

  1. popcornmix commented on Jul 29, 2021

    @popcornmix
    Collaborator

    Wasn't this reported as fixed with #4412 ?
    Was it fixed then, and has subsequently regressed, or was it not actually fixed then?

  2. HiassofT commented on Jul 29, 2021

    @HiassofT
    ContributorAuthor

    I successfully tested it back then (IIRC it worked only in combination with the "firmware-display-done" KMS commit though) but can't get it to work anymore, even with some older versions which I think I used for testing back then.

    Not 100% sure, could be a race / timing issue and me just being lucky back then or some fault on my side when testing (can't think of which ATM tough).

  3. mripard commented on Aug 19, 2021

    @mripard
    Contributor

    I just pushed a branch that fixes this issue on my LG TV

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions