summaryrefslogtreecommitdiff
path: root/tools/org.x.xf86-video-intel.backlight-helper.policy.in
AgeCommit message (Collapse)AuthorFilesLines
2014-02-15Backlight helper build fixesJan Alexander Steffens (heftig)1-1/+1
Don't hardcode $(prefix)/libexec Fix install hook when DESTDIR is set Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75028
2014-02-15intel: Add a helper for setting backlight without root rightsChris Wilson1-0/+19
Once the xserver stops running as root on kms capabable systems, we will need some other way to access the backlight. The approach taken in this patch moves most of the heavy lifting to a helper that runs with root privileges and pipes our requested brightness into the sysfs backlight interface. Where required, we use pkexec to launch the helper with the elevated privilege. v2: Amalgamate much more of the duplicate code. Keep the daemon and pipe alive for the lifetime of the backlight interface. Provide an alternative for systems without PolicyKit. Signed-off-by: Hans de Goede <hdegoede@redhat.com> [v1] Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>