Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nbuchwitz/test-framebuffer
Test the HDMI output of a DUT with Python
https://github.com/nbuchwitz/test-framebuffer
Last synced: 17 days ago
JSON representation
Test the HDMI output of a DUT with Python
- Host: GitHub
- URL: https://github.com/nbuchwitz/test-framebuffer
- Owner: nbuchwitz
- License: mit
- Created: 2024-01-29T19:43:09.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-08-21T12:43:41.000Z (5 months ago)
- Last Synced: 2024-08-21T22:03:09.458Z (4 months ago)
- Language: Python
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Framebuffer Test
This repository provides a tool `fb-control.py` to fill the complete area of a given framebuffer with a solid color. If the framebuffer is attached to a video output (eg. HDMI or others) it can be then captured with `hdmi-test.py` and checked if the colors match.
## Install Dependencies on test PC
```
sudo apt install uvccapture python3-pil
```## Usage
### DUT
Set color on DUT:
```
python3 fb-control.py --mode color --color red
``````
python3 fb-control.py --mode color --color green
``````
python3 fb-control.py --mode color --color blue
```> **NOTE:** The terminal can be reset with the following command: `python3 fb-control.py --mode tty`
### Test PC
Capture screen input on test PC and test for primary color (change `/dev/video0` as needed):
```
python3 hdmi-test.py --device /dev/video0 --color red
``````
python3 hdmi-test.py --device /dev/video0 --color green
``````
python3 hdmi-test.py --device /dev/video0 --color blue
```