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)
on 19.04 the issue still exists.
gsd-media-keys seems to be the problem after all...