Skip to content
Snippets Groups Projects
Unverified Commit 1d0616f8 authored by nl6720's avatar nl6720
Browse files

install/kms: add modules that implement the privacy screen interface

https://lore.kernel.org/intel-gfx/20210421204804.589962-1-hdegoede%40redhat.com/ says that
"privacy screen is actually controlled by some vendor specific ACPI/WMI interface which has a driver under
drivers/platform/x86".
As there's also /drivers/platform/chrome/chromeos_privacy_screen, so it is actually the whole /drivers/platform/.

A proper fix would be to add modules that depend on the drm_privacy_screen_register symbol, but mkinitcpio
does not implement such functionality.
See #132.

Since adding all modules with "acpi", "privacy" or "wmi" in their filename would be excessive, for now,
hardcode the two privacy screen modules (thinkpad_acpi and chromeos_privacy_screen).

Fixes https://bugs.archlinux.org/task/72964
parent d1fe4550
No related branches found
No related tags found
1 merge request!130install/kms: add modules that implement the privacy screen interface
#!/usr/bin/env bash
build() {
# AGP and DRM modules for GPUs
map add_checked_modules '/drivers/char/agp/' '/drivers/gpu/drm/'
# modules that implement the privacy screen interface
# TODO: Replace with dynamic lookup of modules that depend on the drm_privacy_screen_register symbol
# See https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio/-/issues/132
map add_checked_modules 'chromeos_privacy_screen?' 'thinkpad_acpi?'
}
help() {
cat <<HELPEOF
Adds KMS drivers to the initramfs image. To minimize the modules in the image,
add the autodetect hook too.
Adds KMS and privacy screen drivers to the initramfs image. To minimize the
modules in the image, add the autodetect hook too.
HELPEOF
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment