Coding with Titans

so breaking things happens constantly, but never on purpose

HowTo: Enable video 4k@60Hz on Raspberry Pi 4

Here I wish to present a quick guide, how to enable 4k video output on Raspberry Pi 4 with 60Hz refresh rate. It’s not hard at all. It just requires to know some facts before, to avoid unnecessary frustration. Let me briefly summarize it:

  1. 4k@60Hz is disabled by default on Raspberry Pi 4 (due to a fact of increased memory consumption and device temperature - check docs - that is not needed by most of Pi users). Funny observation I made is that even with this mode disabled Pi4 is more than 10C hotter than Pi3 in idle!

  2. Only one video output supports this mode - microHDMI-0. It is the one located closer to power-supply of Pi 4.

  3. Not all HDMI cables support such a high-rate transmission (HDMI 2.0 cable is required - like the Pi official one).

  4. Not all HDMI inputs on a TV supports mentioned resolution neither. With the model I used to perform the test (Philips 55PUS7502/12) only HDMI-1 and HDMI-2 can handle it. All the others are optimized for FullHD resolution.

Points 2-4 are hardware dependant and beside having a proper stuff connected via proper sockets, there is not much more to do. If it’s not double-checked nothing that I show later will help. Below is a set of commands, executed on Raspberry to finally enable 4k@60Hz video.

To launch configuration use command:

sudo raspi-config
  • Then navigate to (7) Advanced Options –> (A9) Pi 4 Video Output

    Raspberry Pi 4 Video Options

  • Finally enable 4k@60Hz mode.

    Raspberry Pi 4 4k@60Hz Option

    What is really does, it extend config.txt with following option (check here):

hdmi_enable_4kp60=1
  • Now, it should be possible to select required resolution. Navigate to (7) Advanced Options –> (A5) Resolution.

    Raspberry Pi 4 Resolution Options

  • And force 4k@60Hz output.

    Raspberry Pi 4 4k@60Hz Mode

Done! That’s all folks! Reboot and smile again!

Appendix - Some useful commands

List all attached devices:

/opt/vc/bin/tvservice -l

Print info about current display mode:

/opt/vc/bin/tvservice -s

👌

Post Scriptum

You might be also interested in one of the following topics related to Raspberry Pi:

  1. Updating Raspberry Pi OS to latest
  2. Fixing issues with Gitea server installation
  3. Fixing SSD issues connected via USB 3.0 port
  4. Simplified SSH connectivity to multiple Raspberries
  5. Installation of .NET Core 3.1

External tutorials:

  1. Extend Pi’s microSD card life with log2ram
  2. Limit access to Pi with fail2ban
  3. Install PostgreSQL
  4. Install MySQL / MariaDB