An open API service indexing awesome lists of open source software.

https://github.com/longsleep/sunxi-disp-tool

Userspace utility to set sunxi disp2 HDMI resolution via ioctl
https://github.com/longsleep/sunxi-disp-tool

Last synced: over 1 year ago
JSON representation

Userspace utility to set sunxi disp2 HDMI resolution via ioctl

Awesome Lists containing this project

README

          

# Sunxi disp tool

This utility allows to control a sunxi disp2 device from user space. The code
is organized in Go modules, so it can easily be integrated.

## Usage

Make sure to stop any graphical UI before running this command to make sure
that the existing framebuffer can be properly freed and reassigned. Failing
this will result in wrong framebuffer size and thus garbled display.

```
Usage: sunxi-disp-tool [] []
Global options:
-screen int
Screen ID (default 0)
Available commands are:
switch Switch HDMI output mode
init Initialize HDMI output mode from Kernel args

```

### Examples

```bash
sunxi-disp-tool switch -mode 0xa
sunxi-disp-tool switch -mode 0x5
sunxi-disp-tool switch -name 720p
sunxi-disp-tool switch -name 1080p
sunxi-disp-tool switch -name 1020x720p60
```

### Run automatically on boot

On boards like the Pine64 with `uEnv.txt` support simply add a line to provide
additional Kernel arguments.

```bash
cat <