Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

This is cool, thanks for sharing.

I use a bash script to adjust brightness and contrast from the command line.

I invoke it as `brco 80` etc where 80 sets it to 80%. The script is:

    $ cat `which brco`
    #!/usr/bin/env bash
    set -euo pipefail
    
    # use `ddccontrol -p` (probe) to find the following:
    mydevice="i2c-7"
    
    # brightness
    ddccontrol -r 0x10 -w $1 dev:/dev/$mydevice &> /dev/null
    
    # contrast
    ddccontrol -r 0x12 -w $1 dev:/dev/$mydevice &> /dev/null


Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: