After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 720370 - usability - gsd-backlight-helper fails to change backlight / screen brightness
usability - gsd-backlight-helper fails to change backlight / screen brightness
Status: RESOLVED NOTABUG
Product: gnome-settings-daemon
Classification: Core
Component: general
3.8.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2013-12-13 02:18 UTC by mahiarmody
Modified: 2013-12-13 12:38 UTC
See Also:
GNOME target: ---
GNOME version: 3.7/3.8



Description mahiarmody 2013-12-13 02:18:55 UTC
In Saucy Salamander (Ubuntu 13.10), nothing happens when programmatically changing the backlight using the command:
pkexec /usr/lib/gnome-settings-daemon/gsd-backlight-helper --set-brightness 50

After issuing the above-mentioned command:

1. There is no difference in the screen brightness.
2. The slider in the "System Settings" -> "Brightness & Lock" remains unchanged.

However, the value specified with --set-brightness argument is correctly reflected in the file:
/sys/class/backlight/acpi_video0/actual_brightness
and
/sys/class/backlight/acpi_video0/actual_brightness

Additionally, I'm using the proprietary Video driver for the AMD graphics accelerators from fglrx-updates. (I can't use the X.org X Server open source driver, because I get a lot of visual artefacts / screen refresh problems when I use it).

Furthermore, manually adjusting the brightness directly from the GUI, using the slider in "System Settings" -> "Brightness & Lock" works correctly, changing the screen brightness, as is expected. This manual change in screen brightness is also reflected in the above-mentioned files, which can be confirmed by issuing the following commands:

pkexec /usr/lib/gnome-settings-daemon/gsd-backlight-helper --get-brightness
and
cat /sys/class/backlight/acpi_video0/actual_brightness
and
cat /sys/class/backlight/acpi_video0/actual_brightness


Also, note that this worked previously on the very same machine when Ubuntu 13.04 was the Operating system, without a problem. This issue has only surfaced after upgrading the operating system to Ubuntu 13.10. Also, I did a clean update of the Operating System upgrade - namely, I cleaned off all the old stuff and then started with the fresh install of Ubuntu 13.10 from the beginning with the re-formatting of disk, etc.


Ubuntu Release:
--------------------------
Description: Ubuntu 13.10
Release: 13.10
Machine Type: Desktop Computer (All-in-one Desktop)
Architecture: 64 bit.

Package version:
-----------------------------
gnome-settings-daemon:
  Installed: 3.8.5-0ubuntu11.1
  Candidate: 3.8.5-0ubuntu11.1
  Version table:
 *** 3.8.5-0ubuntu11.1 0
        500 http://us.archive.ubuntu.com/ubuntu/ saucy-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     3.8.5-0ubuntu9 0
        500 http://us.archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages

Expected Behavior:
-------------------------------
After issuing the command pkexec /usr/lib/gnome-settings-daemon/gsd-backlight-helper --set-brightness XX, the following should happen:

1. The screen brightness should increase or decrease as per the XX value specified.
2. The slider in the "System Settings" -> "Brightness & Lock" should change to reflect the new value.


What Happens Instead:
-----------------------------------
1. There is no difference in the screen brightness.
2. The slider in the "System Settings" -> "Brightness & Lock" remains unchanged.


Link to Launchpad bug:
-----------------------
https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1252507
Comment 1 Bastien Nocera 2013-12-13 12:38:41 UTC
(In reply to comment #0)
> In Saucy Salamander (Ubuntu 13.10), nothing happens when programmatically
> changing the backlight using the command:
> pkexec /usr/lib/gnome-settings-daemon/gsd-backlight-helper --set-brightness 50
<snip>
> Furthermore, manually adjusting the brightness directly from the GUI, using the
> slider in "System Settings" -> "Brightness & Lock" works correctly, changing
> the screen brightness, as is expected.

The pkexec helper doesn't work but the brightness slider works. That means that gnome-settings-daemon works, and that it's using XRandR and not the pkexec helper to change the brightness.

You can double-check that with:
xrandr -q --verbose | grep -i backlight

Furthermore, the pkexec helper isn't public API. The public API is through D-Bus.