lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260206125641.12983-1-atharvatiwarilinuxdev@gmail.com>
Date: Fri,  6 Feb 2026 12:56:20 +0000
From: Atharva Tiwari <atharvatiwarilinuxdev@...il.com>
To: 
Cc: Lukas Wunner <lukas@...ner.de>,
	Atharva Tiwari <atharvatiwarilinuxdev@...il.com>,
	Ard Biesheuvel <ardb@...nel.org>,
	Hans de Goede <hansg@...nel.org>,
	Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>,
	linux-kernel@...r.kernel.org,
	linux-efi@...r.kernel.org,
	platform-driver-x86@...r.kernel.org
Subject: [PATCH 0/2] Save Brightness on Macs

Currently, when a Mac is rebooted, the display brightness does not reflect
the level used during the previous boot. Instead, the brightness is
reset to the value last stored by macOS, causing the system to
ignore any changes made since that time.

We fix this by writing the brightness value to efivar "backlight-level"
every 300ms.

Atharva Tiwari (2):
  efi: Save Brightness using EFI on Macs
  platform/apple-gmux: use apple_brightness to save brightness to EFI

 drivers/firmware/efi/Kconfig                  | 10 ++
 drivers/firmware/efi/Makefile                 |  1 +
 drivers/firmware/efi/apple-brightness.c       | 91 +++++++++++++++++++
 drivers/platform/x86/apple-gmux.c             |  7 ++
 .../linux/platform_data/apple-brightness.h    | 21 +++++
 5 files changed, 130 insertions(+)
 create mode 100644 drivers/firmware/efi/apple-brightness.c
 create mode 100644 include/linux/platform_data/apple-brightness.h

-- 
2.43.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ