You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.1 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # PinePhone Toolkit (PPTK)
  2. A collection of tools and utility apps for the PINE64 PinePhone.
  3. ## Components
  4. ### backlight
  5. Get / Set display backlight brightness.
  6. ```
  7. $ pptk-backlight get
  8. 4
  9. $ pptk-backlight set 6
  10. ```
  11. ### led
  12. Get / Set LED light level for the RGB indicator and the white flash light.
  13. ```
  14. # Get red RGB indicator brightness
  15. $ pptk-led get red
  16. 255
  17. # Turn RED indicator OFF
  18. $ pptk-led set red 0
  19. # Turn FLASH light ON
  20. $ pptk-led set flash 255
  21. ```
  22. ### cpu-sleep
  23. Puts secondary CPUs to sleep to save energy. Wakes them up to gain more CPU power.
  24. ```
  25. $ pptk-cpu-sleep enable
  26. $ pptk-cpu-sleep get
  27. enabled
  28. $ pptk-cpu-sleep disable
  29. $ pptk-cpu-sleep get
  30. disabled
  31. ```
  32. ### vibrate
  33. Controls the vibrator to play a vibration pattern.
  34. ```
  35. # vibrate for 1 second
  36. $ pptk-vibrate 1000
  37. # vibrate for 500 ms, wait for 500 ms, repeat this pattern 5 times
  38. # resulting in an alternating vibration for 5 seconds in total
  39. $ pptk-vibrate 500 500 5
  40. # 6 short vibrations followed by 3 long vibrations
  41. $ pptk-vibrate 300 200 6 && pptk-vibrate 1500 500 3
  42. ```
  43. ## Build & Install
  44. ```
  45. $ meson build
  46. $ cd build
  47. $ ninja
  48. $ sudo ninja install
  49. ```