Compare commits

...

2 Commits

Author SHA1 Message Date
Ronan Pigott ea394d48cc journalctl: show boot id in the reboot context separator 2020-11-06 12:17:03 +01:00
Jian-Hong Pan f25e30dec4 hwdb: Fix Pinebook Pro's brightness up/down and sleep keys
Pinebook Pro's display brightness up & down keys do not work until the
keys are mapped to the corresponding codes.

Also, the sleep key is mapped to KEY_POWER code originally. This quirk
maps the sleep key to the KEY_SLEEP code.

This idea comes from the pinebookpro-post-install package [1] of Manjaro
ARM, which is the preloaded OS on Pinebook Pro.

[1]: 7ab1a134ea
2020-11-06 10:50:40 +01:00
2 changed files with 12 additions and 2 deletions

View File

@ -1395,6 +1395,16 @@ evdev:input:b0003v05A4p9735*
KEYBOARD_KEY_c00bb=prog2 # Key labeled "pf2" KEYBOARD_KEY_c00bb=prog2 # Key labeled "pf2"
KEYBOARD_KEY_c00b8=prog3 # Key labeled "pf3" KEYBOARD_KEY_c00b8=prog3 # Key labeled "pf3"
###########################################################
# Pine64
###########################################################
# Pinebook Pro
evdev:input:b0003v258Ap001E*
KEYBOARD_KEY_700a5=brightnessdown
KEYBOARD_KEY_700a6=brightnessup
KEYBOARD_KEY_70066=sleep
########################################################### ###########################################################
# Plantronics # Plantronics
########################################################### ###########################################################

View File

@ -2672,8 +2672,8 @@ int main(int argc, char *argv[]) {
if (r >= 0) { if (r >= 0) {
if (previous_boot_id_valid && if (previous_boot_id_valid &&
!sd_id128_equal(boot_id, previous_boot_id)) !sd_id128_equal(boot_id, previous_boot_id))
printf("%s-- Reboot --%s\n", printf("%s-- Boot "SD_ID128_FORMAT_STR" --%s\n",
ansi_highlight(), ansi_normal()); ansi_highlight(), SD_ID128_FORMAT_VAL(boot_id), ansi_normal());
previous_boot_id = boot_id; previous_boot_id = boot_id;
previous_boot_id_valid = true; previous_boot_id_valid = true;