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 784117 - Visible screen brightness regulation when using desktop with only external monitor.
Visible screen brightness regulation when using desktop with only external mo...
Status: RESOLVED OBSOLETE
Product: gnome-settings-daemon
Classification: Core
Component: power
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2017-06-23 01:00 UTC by Paweł Faderewski
Modified: 2019-03-20 11:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Brightness regulation visible when running on desktop, Fedora 25 live-cd (85.52 KB, image/png)
2017-06-23 02:17 UTC, Paweł Faderewski
Details

Description Paweł Faderewski 2017-06-23 01:00:20 UTC
I'm using Gnome on desktop. I do not have internal monitor. But in system tray, there is still brightness regulation visible, which do nothing, it just take space. Shouldn't it be hidden, just like battery info?
Comment 1 Florian Müllner 2017-06-23 01:46:08 UTC
(In reply to Paweł Faderewski from comment #0)
> there is still brightness regulation visible, which do nothing [...]
> Shouldn't it be hidden?

Yes, on systems where controlling the backlight isn't supported, the slider should be hidden. What is the output of:

$ gdbus call --session --dest org.gnome.SettingsDaemon.Power \
             --object-path /org/gnome/SettingsDaemon/Power \
             --method org.freedesktop.DBus.Properties.Get \
             'org.gnome.SettingsDaemon.Power.Screen' 'Brightness'
Comment 2 Paweł Faderewski 2017-06-23 02:00:45 UTC
I run it on X and Wayland session, the output is the same:

$ gdbus call --session --dest org.gnome.SettingsDaemon.Power \
             --object-path /org/gnome/SettingsDaemon/Power \
             --method org.freedesktop.DBus.Properties.Get \
             'org.gnome.SettingsDaemon.Power.Screen' 'Brightness'

(<0>,)

Additional info

$ uname -a   
Linux arch-pc 4.11.6-1-ck-skylake #1 SMP PREEMPT Tue Jun 20 08:19:11 EDT 2017 x86_64 GNU/Linux

$ gnome-shell --version
GNOME Shell 3.24.2
Comment 3 Paweł Faderewski 2017-06-23 02:17:41 UTC
Created attachment 354288 [details]
Brightness regulation visible when running on desktop, Fedora 25 live-cd
Comment 4 Paweł Faderewski 2017-06-23 02:25:17 UTC
(In reply to Paweł Faderewski from comment #3)
> Created attachment 354288 [details]
> Brightness regulation visible when running on desktop, Fedora 25 live-cd

When running Fedora 25 Live the problem is the same.

[liveuser@localhost-live ~]$ uname -r
4.8.6-300.fc25.x86_64

[liveuser@localhost-live ~]$ gnome-shell --version
GNOME Shell 3.22.1

[liveuser@localhost-live ~]$ gdbus call --session --dest org.gnome.SettingsDaemon.Power \
>              --object-path /org/gnome/SettingsDaemon/Power \
>              --method org.freedesktop.DBus.Properties.Get \
>              'org.gnome.SettingsDaemon.Power.Screen' 'Brightness'
(<100>,)

The output value changes as I change brightness slider in tray.
Comment 5 Florian Müllner 2017-06-23 10:50:49 UTC
Mmh, so looks like according to gnome-settings-daemon's power plugin, brightness is supported?

What's the output of
 $ /usr/libexec/gsd-backlight-helper --get-brightness
Comment 6 Paweł Faderewski 2017-06-23 11:23:44 UTC
$ /usr/lib/gnome-settings-daemon/gsd-backlight-helper --get-brightness

gives number between 0 and 100, according to slider position.
Comment 7 Florian Müllner 2017-06-23 11:29:44 UTC
Then gnome-settings-daemon thinks that brightness control is supported on your system, moving there.
Comment 8 Paweł Faderewski 2017-06-23 21:53:57 UTC
(In reply to Florian Müllner from comment #7)
> Then gnome-settings-daemon thinks that brightness control is supported on
> your system, moving there.

Can I provide any other useful info?

Using ddcutil, the result:

# ddcutil detect
Display not found
# ddcutil capabilities
Display not found
Comment 9 Paweł Faderewski 2017-06-23 22:03:26 UTC
I found that I have 

/sys/class/backlight/acpi_video0

directory.

$ ls /sys/class/backlight/acpi_video0
actual_brightness  bl_power  brightness  device  max_brightness  power  subsystem  type  uevent

$ cat /sys/class/backlight/acpi_video0/brightness

$ cat /sys/class/backlight/acpi_video0/actual_brightness

both, changes accordingly to brightness slider in Gnome menu.
Comment 10 GNOME Infrastructure Team 2019-03-20 11:44:49 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-settings-daemon/issues/342.