❦ 7 décembre 2016 16:07 GMT, Ben Hutchings <ben@decadent.org.uk> : >> It would be interesting to know how (and it explains why the problem >> was not raised earlier). > > It's using the DBus interface org.gnome.SettingsDaemon.Power.Screen: > > https://sources.debian.net/src/gnome-shell/3.22.2-1/js/ui/status/brightness.js/?hl=14 > > This is implemented by gnome-settings-daemon (for Linux only) by > spawning /usr/lib/gnome-settings-daemon/gsd-backlight-helper (!) which > finds a backlight device through sysfs and then reads or writes its > brightness attribute: > > https://sources.debian.net/src/gnome-settings-daemon/3.22.1-1/plugins/power/gsd-backlight-helper.c/ > https://sources.debian.net/src/gnome-settings-daemon/3.22.1-1/plugins/power/gsd-backlight-linux.c/ Thanks for the investigation! Does gsd-backlight-helper is running as root? The brightness attribute (/sys/class/backlight/intel_backlight/brightness) is writable only by root. -- Choose a data representation that makes the program simple. - The Elements of Programming Style (Kernighan & Plauger)
Attachment:
signature.asc
Description: PGP signature