My Debian journey on the Pinebook Pro
#33
(01-06-2021, 08:48 PM)kuleszdl Wrote: With that being said, there are a number of things which don't work ootb on the PBP in Debian/Devuan that have been tweaked in the various distros. However, I am not sure which of these require patches. For instance:

- changing screen brightness using hotkeys
- battery gauge

Regarding screen brightness and the hotkeys: there's three parts to this

  1. An interface to actually change screen brightness, in this case available at /sys/class/backlight/edp-backlight/brightness
  2. The hotkeys being recognized as XF86MonBrightnessUp and XF86MonBrightnessDown (EDIT: defined in /lib/udev/hwdb.d/60-keyboard.hwdb which is part of udev (search for Pinebook Pro in this file))
  3. Some software that will run when you press the hotkeys: brightnessctl, available in Debian
So all that remains should be to configure whatever window manager or desktop environment you are using to actually execute brightnessctl when you press the hotkeys, e.g. I have the following lines in my .config/sway/config:

Code:
bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl --class backlight set 10%+
bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl --class backlight set 10%-

EDIT for clarification: I'm not saying that brightnessctl is the only way to get this to work nicely. Your desktop environment might include its own tooling and you might just need to enable or configure that. I'm just saying: all the parts required are included in Debian bullseye but you might still need to glue them together.

(01-06-2021, 08:48 PM)kuleszdl Wrote: With that being said, there are a number of things which don't work ootb on the PBP in Debian/Devuan that have been tweaked in the various distros. However, I am not sure which of these require patches. For instance:

- changing screen brightness using hotkeys
- battery gauge

Regarding battery gauge: battery information is available at /sys/class/power_supply/cw2015-battery/. For some reason this information is not in the standard path /sys/class/power_supply/BATn/, so you need some way to tell whatever tool you want to use where to find the battery information.
  Reply


Messages In This Thread
RE: My Debian journey on the Pinebook Pro - by schwarzwieweiss - 01-07-2021, 09:35 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Debian on Pinebook Pro u974615 7 1,066 03-31-2024, 10:11 AM
Last Post: u974615
  Pinebook Pro upgrading from the factory image yamsoup 12 1,624 02-22-2024, 04:02 PM
Last Post: tllim
  Help installing Manjaro on eMMC of Pinebook Pro pine4546464 4 2,163 12-13-2023, 07:22 PM
Last Post: trillobite
  Need Help Recovering Manjaro /boot Contents on Pinebook Pro calinb 6 2,237 12-11-2023, 03:47 AM
Last Post: calinb
  Gentoo on Pinebook Pro RELEASE jannik2099 54 89,137 12-08-2023, 11:25 PM
Last Post: tllim
  Boot Order in Pinebook Pro food 8 1,264 11-23-2023, 07:37 AM
Last Post: KC9UDX
  install debian on pbp jsch 7 4,060 11-22-2023, 04:22 PM
Last Post: TRS-80
  How to mainline kernel on daniel thompson's debian installer? hellojack 14 7,455 09-07-2023, 09:38 PM
Last Post: Der Geist der Maschine
  PineBook Pro seems to go to deep sleep, but doesn't wake up pogo 11 5,306 08-31-2023, 04:20 PM
Last Post: TRS-80
  Would a Pinebook Pro be good for a Linux newbie? cassado10 6 1,489 08-08-2023, 04:58 AM
Last Post: moobythegoldensock

Forum Jump:


Users browsing this thread: 2 Guest(s)