https://github.com/westleyk/ubuntu-backlight
Just like https://github.com/WestleyK/rpi-backlight, but for ubuntu
https://github.com/westleyk/ubuntu-backlight
adjust adjuster backlight brightness cli command command-line desktop line linux sleep sleep-mode ubuntu
Last synced: about 2 months ago
JSON representation
Just like https://github.com/WestleyK/rpi-backlight, but for ubuntu
- Host: GitHub
- URL: https://github.com/westleyk/ubuntu-backlight
- Owner: WestleyK
- License: mit
- Created: 2018-09-11T02:38:35.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-18T02:22:14.000Z (over 7 years ago)
- Last Synced: 2025-09-01T20:44:55.798Z (10 months ago)
- Topics: adjust, adjuster, backlight, brightness, cli, command, command-line, desktop, line, linux, sleep, sleep-mode, ubuntu
- Language: Go
- Homepage:
- Size: 2.08 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple backlight adjust and low power mode (display sleep)
Designed and tested for Ubuntu 16.04 Desktop.
## Install, Update and Uninstall:
### Install the binary:
Paste this in your terminal:
```
curl https://raw.githubusercontent.com/WestleyK/ubuntu-backlight/master/easy-install.sh | sh
```
This will install `ubuntu-backlight` to the current directory.
To finish the install, do:
```
sudo mv ubuntu-backlight /usr/local/bin/
```
### Why install the pre-compiled code:
**Why to install pre-compiled code:**
- No dependency needed to install, (not that there is any).
- You don't need golang to compile the source code.
**Why not to install pre-compiled code:**
- May not be fully compatible, (could only be partially compatible)
### Install the source code:
```
cd ~/
mkdir backlight-adjuster
cd backlight-adjuster/
git clone https://github.com/WestleyK/ubuntu-backlight
cd ubuntu-backlight/
make
sudo make install
```
### Install by cloning repo:
```
cd ~/
mkdir backlight-adjuster
cd backlight-adjuster/
git clone https://github.com/WestleyK/ubuntu-backlight
cd ubuntu-backlight/pre-compiled/
sudo ./make.sh install
```
### Update:
Update the repo:
```
cd ~/backlight-adjuster/ubuntu-backlight/
make update
make
sudo make install
```
Or just update the binary:
```
curl https://raw.githubusercontent.com/WestleyK/ubuntu-backlight/master/easy-install.sh | sh
sudo mv -f ubuntu-backlight /usr/local/bin/
```
Basically the same commands as installing the binary.
### Uninstall:
```
cd ~/raspberrypi-backlight/ubuntu-backlight/
sudo make uninstall
```
Or uninstall manualy:
```
sudo rm /usr/local/bin/ubuntu-backlight
```
## Usage:
```
ubuntu@ubuntu:~ $ ubuntu-backlight -help
Usage: ubuntu-backlight [OPTION]
-help | --help (print help menu)
[1-7500] (adjust from: 1 to: 7500)
-s | -sleep (enter sleep mode, press to exit this mode)
-u | -up (adjust brightness up by: 250/7500)
-d | -down (adjust brightness down by: 250/7500)
-c | -current (print current brightness)
-n | -on (turn backlight on to: 2000
-i | -info (print info)
-version | --version (print version)
Source code: https://github.com/WestleyK/ubuntu-backlight
ubuntu@ubuntu:~ $
```
### End README