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:
Clone the repository:
git clone https://github.com/yourusername/HDR-10bpp-Display-Test.gitNavigate to the project directory:
cd HDR-10bpp-Display-TestStop the display manager and X server:
sudo systemctl stop lightdm || sudo systemctl stop gdm sudo pkill XorgStart the X server with a color depth of 30:
startx -- -depth 30Verify the X server’s color depth:
xwininfo -root | grep DepthLaunch the viewer application:
python3 Viewer.py python3 Viewer3.py # for video supportTo display an image, use:
imagej --no-splash /path/to/imageCheck 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.