1
0
espelhamento de https://github.com/Dejvino/pinephone-toolkit.git sincronizado 2024-09-27 17:23:36 +00:00
pinephone-toolkit/README.md

59 linhas
1.1 KiB
Markdown
Original Visão normal Histórico

2020-05-30 16:15:39 +00:00
# PinePhone Toolkit (PPTK)
2020-05-30 15:23:08 +00:00
A collection of tools and utility apps for the PINE64 PinePhone.
## Components
### backlight
2020-05-30 18:29:11 +00:00
Get / Set display backlight brightness.
2020-05-30 15:23:08 +00:00
2020-05-30 16:15:39 +00:00
```
$ pptk-backlight get
4
$ pptk-backlight set 6
```
2020-05-30 18:29:11 +00:00
### led
Get / Set LED light level for the RGB indicator and the white flash light.
```
# Get red RGB indicator brightness
$ pptk-led get red
255
# Turn RED indicator OFF
$ pptk-led set red 0
# Turn FLASH light ON
$ pptk-led set flash 255
```
2020-05-30 19:13:26 +00:00
### cpu-sleep
Puts secondary CPUs to sleep to save energy. Wakes them up to gain more CPU power.
```
$ pptk-cpu-sleep enable
$ pptk-cpu-sleep get
enabled
$ pptk-cpu-sleep disable
$ pptk-cpu-sleep get
disabled
```
2020-05-30 22:12:58 +00:00
### vibrate
Controls the vibrator to play a vibration pattern.
```
# vibrate for 1 second
$ pptk-vibrate 1000
# vibrate for 500 ms, wait for 500 ms, repeat this pattern 5 times
# resulting in an alternating vibration for 5 seconds in total
$ pptk-vibrate 500 500 5
# 6 short vibrations followed by 3 long vibrations
$ pptk-vibrate 300 200 6 && pptk-vibrate 1500 500 3
```
2020-05-30 16:15:39 +00:00
## Build & Install
2020-05-30 15:23:08 +00:00
```
$ meson build
$ cd build
$ ninja
2020-05-30 16:15:39 +00:00
$ sudo ninja install
2020-05-30 15:23:08 +00:00
```