gsd-media-keys fails to adjust the screen brightness after unlocking

Bug #1822392 reported by DooMMasteR
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-settings-daemon (Ubuntu)
New
Low
Unassigned

Bug Description

Whne my machine sat for some time (laptop, screen off) it is not possible to change the screen brighness of the display for some time after unlocking.
After 3-5 minutes it will eventually just work again.

journalctl logs the following

är 30 01:17:02 dbus-daemon[975]: [system] Activating via systemd: service name='net.reactivated.Fprint' unit='fprintd.service' requested by ':1.212' (uid=1000 pid=14229 comm="/usr/bin/gnome-shell " label="uncon
Mär 30 01:17:02 systemd[1]: Starting Fingerprint Authentication Daemon...
Mär 30 01:17:02 dbus-daemon[975]: [system] Successfully activated service 'net.reactivated.Fprint'
Mär 30 01:17:02 systemd[1]: Started Fingerprint Authentication Daemon.
Mär 30 01:17:06 gdm-password][605]: gkr-pam: unlocked login keyring
Mär 30 01:17:45 dbus-daemon[14209]: [session uid=1000 pid=14209] Activating via systemd: service name='org.gnome.Terminal' unit='gnome-terminal-server.service' requested by ':1.137' (uid=1000 pid=808 comm="/usr/
Mär 30 01:17:45 systemd[14145]: Starting GNOME Terminal Server...
Mär 30 01:17:45 gnome-terminal-server[813]: Display does not support owner-change; copy/paste will be broken!
Mär 30 01:17:45 dbus-daemon[14209]: [session uid=1000 pid=14209] Successfully activated service 'org.gnome.Terminal'
Mär 30 01:17:45 systemd[14145]: Started GNOME Terminal Server.
Mär 30 01:17:45 org.gnome.SettingsDaemon.MediaKeys.desktop[14428]: # watch_fast: "/org/gnome/desktop/interface/" (establishing: 0, active: 0)
Mär 30 01:17:45 org.gnome.SettingsDaemon.MediaKeys.desktop[14428]: # watch_fast: "/org/gnome/settings-daemon/peripherals/mouse/" (establishing: 0, active: 0)
Mär 30 01:17:45 org.gnome.SettingsDaemon.MediaKeys.desktop[14428]: # watch_fast: "/org/gnome/desktop/sound/" (establishing: 0, active: 0)
Mär 30 01:17:45 org.gnome.SettingsDaemon.MediaKeys.desktop[14428]: # watch_fast: "/org/gnome/desktop/privacy/" (establishing: 0, active: 0)
Mär 30 01:17:45 org.gnome.SettingsDaemon.MediaKeys.desktop[14428]: # watch_fast: "/org/gnome/desktop/wm/preferences/" (establishing: 0, active: 0)
Mär 30 01:17:45 org.gnome.SettingsDaemon.MediaKeys.desktop[14428]: # watch_fast: "/org/gnome/settings-daemon/plugins/xsettings/" (establishing: 0, active: 0)
Mär 30 01:17:45 org.gnome.SettingsDaemon.MediaKeys.desktop[14428]: # watch_fast: "/org/gnome/desktop/a11y/" (establishing: 0, active: 0)
Mär 30 01:17:45 org.gnome.SettingsDaemon.MediaKeys.desktop[14428]: # watch_established: "/org/gnome/desktop/interface/" (establishing: 1)
Mär 30 01:17:45 org.gnome.SettingsDaemon.MediaKeys.desktop[14428]: # watch_established: "/org/gnome/settings-daemon/peripherals/mouse/" (establishing: 1)
Mär 30 01:17:45 org.gnome.SettingsDaemon.MediaKeys.desktop[14428]: # watch_established: "/org/gnome/desktop/sound/" (establishing: 1)
Mär 30 01:17:45 org.gnome.SettingsDaemon.MediaKeys.desktop[14428]: # watch_established: "/org/gnome/desktop/privacy/" (establishing: 1)
Mär 30 01:17:45 org.gnome.SettingsDaemon.MediaKeys.desktop[14428]: # watch_established: "/org/gnome/desktop/wm/preferences/" (establishing: 1)
Mär 30 01:17:45 org.gnome.SettingsDaemon.MediaKeys.desktop[14428]: # watch_established: "/org/gnome/settings-daemon/plugins/xsettings/" (establishing: 1)
Mär 30 01:17:45 org.gnome.SettingsDaemon.MediaKeys.desktop[14428]: # watch_established: "/org/gnome/desktop/a11y/" (establishing: 1)
Mär 30 01:17:45 org.gnome.SettingsDaemon.MediaKeys.desktop[14428]: # watch_fast: "/org/gnome/terminal/legacy/" (establishing: 0, active: 0)
Mär 30 01:17:45 org.gnome.SettingsDaemon.MediaKeys.desktop[14428]: # unwatch_fast: "/org/gnome/terminal/legacy/" (active: 0, establishing: 1)
Mär 30 01:17:45 org.gnome.SettingsDaemon.MediaKeys.desktop[14428]: # watch_established: "/org/gnome/terminal/legacy/" (establishing: 0)
Mär 30 01:17:54 gsd-media-keys[14428]: Failed to set new screen percentage: Timeout was reached
Mär 30 01:17:54 gsd-media-keys[14428]: Failed to set new screen percentage: Timeout was reached
Mär 30 01:17:55 pkexec[845]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Mär 30 01:17:55 pkexec[845]: doommaster: Executing command [USER=root] [TTY=unknown] [CWD=/home/doommaster] [COMMAND=/usr/lib/gnome-settings-daemon/gsd-backlight-helper --set-brightness 93]
Mär 30 01:17:55 pkexec[851]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Mär 30 01:17:55 pkexec[851]: doommaster: Executing command [USER=root] [TTY=unknown] [CWD=/home/doommaster] [COMMAND=/usr/lib/gnome-settings-daemon/gsd-backlight-helper --set-brightness 139]
Mär 30 01:17:55 pkexec[857]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Mär 30 01:17:55 pkexec[857]: doommaster: Executing command [USER=root] [TTY=unknown] [CWD=/home/doommaster] [COMMAND=/usr/lib/gnome-settings-daemon/gsd-backlight-helper --set-brightness 185]
Mär 30 01:17:55 pkexec[863]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Mär 30 01:17:55 pkexec[863]: doommaster: Executing command [USER=root] [TTY=unknown] [CWD=/home/doommaster] [COMMAND=/usr/lib/gnome-settings-daemon/gsd-backlight-helper --set-brightness 231]
Mär 30 01:17:55 pkexec[869]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Mär 30 01:17:55 pkexec[869]: doommaster: Executing command [USER=root] [TTY=unknown] [CWD=/home/doommaster] [COMMAND=/usr/lib/gnome-settings-daemon/gsd-backlight-helper --set-brightness 277]
Mär 30 01:18:03 org.gnome.Shell.desktop[14229]: Window manager warning: last_user_time (99401388) is greater than comparison timestamp (99401386). This most likely represents a buggy client sending inaccurate t
Mär 30 01:18:03 org.gnome.Shell.desktop[14229]: Window manager warning: W181 (fish /ho) appears to be one of the offending windows with a timestamp of 99401388. Working around...

ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: gnome-settings-daemon 3.30.1.2-1ubuntu3.1
ProcVersionSignature: Ubuntu 4.18.0-16.17-generic 4.18.20
Uname: Linux 4.18.0-16-generic x86_64
ApportVersion: 2.20.10-0ubuntu13.2
Architecture: amd64
CurrentDesktop: GNOME
Date: Sat Mar 30 01:22:26 2019
ExecutablePath: /usr/lib/gnome-settings-daemon/gsd-media-keys
InstallationDate: Installed on 2018-05-02 (331 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
SourcePackage: gnome-settings-daemon
UpgradeStatus: Upgraded to cosmic on 2018-12-24 (95 days ago)

Revision history for this message
DooMMasteR (winrootkit-w) wrote :
Revision history for this message
DooMMasteR (winrootkit-w) wrote :

on 19.04 the issue still exists.
gsd-media-keys seems to be the problem after all...

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report. Could you report it upstream on https://gitlab.gnome.org/GNOME/gnome-settings-daemon/issues/ ?

Changed in gnome-settings-daemon (Ubuntu):
importance: Undecided → Low
Revision history for this message
Sebastien Bacher (seb128) wrote :

Does using e.g '/usr/lib/gnome-settings-daemon/gsd-backlight-helper --set-brightness 93' works at the time you get the issue? If not does it give you any error?

Revision history for this message
Sebastien Bacher (seb128) wrote :

(start the command with sudo)

Revision history for this message
DooMMasteR (winrootkit-w) wrote :

that does never work for me
`sudo /usr/lib/gnome-settings-daemon/gsd-backlight-helper --set-brightness 93
fish: “sudo /usr/lib/gnome-settings-da…” terminated by signal SIGSEGV (Address boundary error)
`
gsd-backlight-h[19085]: segfault at 0 ip 00007f7235fe25ee sp 00007fff88c62278 error 4 in libc-2.29.so[7f7235e86000+173000]
[499265.506514] Code: 0f 84 f9 fe ff ff e9 51 89 f3 ff 90 89 f8 31 d2 c5 c5 ef ff 09 f0 25 ff 0f 00 00 3d 80 0f 00 00 0f 8f 56 03 00 00 c5 fe 6f 0f <c5> f5 74 06 c5 fd da c1 c5 fd 74 c7 c5 fd d7 c8 85 c9 74 7e f3 0f

Revision history for this message
Lorenz (nukulorrr) wrote :

Uh are you sure those are the correct arguments? Afaik gsd-backlight-helper wants a device and a value (e.g. gsd-backlight-helper /sys/class/backlight/intel_backlight/ 700), not any switches. If you don't pass a device, it fails on a strcmp with realpath(argv[1], device), which is NULL because "--set-brightness" is not a path.

Revision history for this message
Sebastien Bacher (seb128) wrote :

That's the command quoted in the log from the bug description?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.