Two advances in backlight brightness control for linux have vastly improved the situatoin for laptop owners using gentoo: sys-power/acpid allows easy handling of acpi events and sys-power/acpilight allows setting backlight in a non-X, device-independent way. Currently, gentoo doesn't integrate these two. This ebuild fixes this: - it adds the 'brightness' USE flag which toggles an sys-power/acpilight RDEPEND - if brightness is set, two tiny scripts are installed in /etc/acpid/events/ - these scripts call xbacklight on brightnessup or brightnessdown events Reproducible: Always
Created attachment 568768 [details] Ebuild for acpid with acpilight RDEPEND and brightness{up,down} scripts
Created attachment 568770 [details] brightnessdown script
Created attachment 568772 [details] brightnessup script
Looks very useful, thanks for your work Sam! Also thanks for clear outline of what you're proposing. I'd kindly ask you, however, to approach upstream maintainer, Ted Felix, with your patches, so that all Linux users could benefit from your work! Gentoo prefers upstreaming patches over hoarding them internally. Also to best of my knowledge it is not recommended to put optional runtime dependencies into USE flags, so I am not confident I should take ebuild changes. Does that sound alright to you?
More than a week, no objections from the contributor. Closing.