Skip to content
← All projects
Project

HDR-10bpp-Display-Test

Listen to the audio story

Testing a 10-bit HDR display · 1:17 · AI-written script, synthetic voices

Transcript

Ava: How do you know your monitor is really showing ten bits per color channel on Linux? Antoine has a small project for exactly that.

Andrew: Ten bits per channel. That's the difference between smooth gradients and visible bands, right?

Ava: That's the idea. HDR-10bpp-Display-Test checks a 4K HDR display with a ten-bit color depth, and it's handy for validating the whole chain: the graphics stack, the drivers and the monitor.

Andrew: So what does it do?

Ava: It's a viewer built with Python and GTK three. You start the X server with a color depth of thirty bits, confirm the depth with a quick command, then launch the viewer. There's also a second viewer with video support. To check an image, you open it in ImageJ, which handles ten-bit images, and look at whether the colors come out right.

Andrew: What do you need installed?

Ava: An X server, Python three, GTK three, ImageJ and ImageIO, with an apt command on Ubuntu or Debian to get them. If depth thirty doesn't start, there's a depth twenty-four fallback.

Andrew: A simple test for a very specific problem.

Ava: Exactly. It's open source under the MIT license, and the project page has the full steps and the GitHub link.

Table of contents

HDR-10bpp-Display-Test

HDR-10bpp-Display-Test checks HDR 4K display on Linux, including 10 bits per channel. Useful for validating the graphics stack, drivers, and monitor.

Getting Started

HDR-10bpp-Display-Test: A test project for HDR 4K display on Linux.

Prerequisites

Before running the test, ensure your system has the following software installed:

  • X server
  • Python 3
  • GTK 3
  • ImageJ (for 10-bit color depth image display)
  • ImageIO (for reading image files)

On Ubuntu or Debian-based systems, install these packages using the command:

sudo apt-get install xserver-xorg python3 python3-gi python3-gi-cairo gir1.2-gtk-3.0 imagej

Installing

ImageIO is a necessary component and can be installed via pip:

pip3 install imageio

Running the Test

To conduct the test, follow these steps:

  1. Clone the repository:

    git clone https://github.com/yourusername/HDR-10bpp-Display-Test.git
    
  2. Navigate to the project directory:

    cd HDR-10bpp-Display-Test
    
  3. Stop the display manager and X server:

    sudo systemctl stop lightdm || sudo systemctl stop gdm
    sudo pkill Xorg
    
  4. Start the X server with a color depth of 30:

    startx -- -depth 30
    
  5. Verify the X server’s color depth:

    xwininfo -root | grep Depth
    
  6. Launch the viewer application:

    python3 Viewer.py
    python3 Viewer3.py # for video support
    
  7. To display an image, use:

    imagej --no-splash /path/to/image
    

    Check if the image is displayed correctly with accurate colors.

Troubleshooting

If the X server fails to start with a color depth of 30, attempt to start it with a depth of 24 instead:

startx -- -depth 24

License

This project is licensed under the MIT License - see the LICENSE.md file for details.