Skip to content

Instantly share code, notes, and snippets.

@petitJAM
Last active August 14, 2022 14:25
Show Gist options
  • Select an option

  • Save petitJAM/6ae787064202f9a1b8b92adea1c0a805 to your computer and use it in GitHub Desktop.

Select an option

Save petitJAM/6ae787064202f9a1b8b92adea1c0a805 to your computer and use it in GitHub Desktop.

Revisions

  1. petitJAM revised this gist Aug 14, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ddcutil_cheat_sheet.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    [`ddcutil`](https://github.com/rockowitz/ddcutil)

    [`winddcutil`](https://github.com/scottaxcell/winddcutil) (have not tested this cheat sheet against this, but it seems to implement the same API)
    [`winddcutil`](https://github.com/scottaxcell/winddcutil) This implements a slightly different API, so the commands are similar to what's below, but not quite the same.

    Run everything with `sudo`.

  2. petitJAM revised this gist Jun 15, 2022. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions ddcutil_cheat_sheet.md
    Original file line number Diff line number Diff line change
    @@ -12,10 +12,10 @@ ddcutil detect
    Show all VCP feature codes for a display:
    ```sh
    # Pipe to less for easier viewing and searching
    ddcutil vcpinfo --display 1 | less
    ddcutil capabilities --display 1 | less

    # Or grep what you want (-B and -A add context lines)
    ddcutil vcpinfo --display 1 | grep brightness -B 4 -A 2
    # Or grep what you want
    ddcutil capabilities --display 1 | grep -i brightness
    ```

    Get a VCP value for a display, this will also show value ranges:
  3. petitJAM revised this gist Jun 15, 2022. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions ddcutil_cheat_sheet.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,7 @@
    [`ddcutil`](https://github.com/rockowitz/ddcutil)

    [`winddcutil`](https://github.com/scottaxcell/winddcutil) (have not tested this cheat sheet against this, but it seems to implement the same API)

    Run everything with `sudo`.

    List displays:
  4. petitJAM created this gist Jun 15, 2022.
    26 changes: 26 additions & 0 deletions ddcutil_cheat_sheet.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    Run everything with `sudo`.

    List displays:
    ```sh
    ddcutil detect
    ```

    Show all VCP feature codes for a display:
    ```sh
    # Pipe to less for easier viewing and searching
    ddcutil vcpinfo --display 1 | less

    # Or grep what you want (-B and -A add context lines)
    ddcutil vcpinfo --display 1 | grep brightness -B 4 -A 2
    ```

    Get a VCP value for a display, this will also show value ranges:
    ```sh
    ddcutil getvcp 10 --display 1
    ```

    Set a VCP value:
    ```sh
    # 10 is the VCP code, 30 is the value to be set
    ddcutil setvcp 10 30 --display 1
    ```