Bluetooth Play/Pause wakes the device screen
What problem did you encounter
When pressing a play/pause button over bluetooth the device screen wakes to the lockscreen. While this is usually benign, it can also be quite frustrating when for example using bluetooth with a device in a pocket as the device uses significantly more power with the screen on and generates far more heat.
How to reproduce
- Connect bluetooth audio device
- Ensure screen is off
- Press play button Note: nothing needs to be playing at the time.
What is the (wrong) result?
Screen comes on on bluetooth play/pause.
What is the expected behaviour?
The screen should remain off for all bluetooth button presses. This is the current behavior for volume changes.
Context
My main usecase for bluetooth is while driving a car/riding a motorcycle. In the latter of these cases I cannot physically access the phone to turn it off, meaning the screen remains on until timeout.
My guess is this is an interaction between Phosh and GSD, Phosh seems to get the button press, correctly send it to GSD but then gets a presence change back. I haven't been able to track down the full interaction, but the bug could also be in GSD.
Which version did you encounter the bug in?
-
I used the precompiled Debian package (e.g. by running a prebuilt image). Please paste the output of dpkg -s phosh
below.
Phosh Version:
Package: phosh
Status: install ok installed
Priority: optional
Section: x11
Installed-Size: 2718
Maintainer: DebianOnMobile Maintainers <debian-on-mobile-maintainers@alioth-lists.debian.net>
Architecture: arm64
Version: 0.34.0-2
Provides: notification-daemon, polkit-1-auth-agent
Depends: dconf-gsettings-backend | gsettings-backend, libc6 (>= 2.34), libcairo2 (>= 1.2.4), libcallaudio-0-1 (>= 0.0.5), libecal-2.0-2 (>= 3.33.4), libedataserver-1.2-27 (>= 3.25.90), libfeedback-0.0-0 (>= 0.2.0), libfribidi0 (>= 0.19.2), libgcr-base-3-1 (>= 3.8.0), libgcr-ui-3-1 (>= 3.8.0), libgdk-pixbuf-2.0-0 (>= 2.31.1), libglib2.0-0 (>= 2.75.3), libgnome-desktop-3-20 (>= 3.17.92), libgtk-3-0 (>= 3.21.5), libgudev-1.0-0 (>= 234), libhandy-1-0 (>= 1.1.90), libical3 (>= 3.0.0), libjson-glib-1.0-0 (>= 1.5.2), libnm0 (>= 1.24.0), libpam0g (>= 0.99.7.1), libpango-1.0-0 (>= 1.37.2), libpolkit-agent-1-0 (>= 0.99), libpolkit-gobject-1-0 (>= 0.94), libpulse-mainloop-glib0 (>= 0.99.1), libpulse0 (>= 0.99.1), libsecret-1-0 (>= 0.7), libsystemd0 (>= 213), libupower-glib3 (>= 0.99.4-3~), libwayland-client0 (>= 1.20.0), fonts-lato, gnome-shell-common, gsettings-desktop-schemas, phoc (>= 0.33.0)
Recommends: feedbackd, gnome-session-bin, gnome-session-common, gnome-settings-daemon, iio-sensor-proxy, phosh-mobile-tweaks, phosh-plugins, slurp, squeekboard | phosh-osk-stub
Breaks: gnome-calls (<< 41~alpha), gnome-control-center (<< 42), libgtk-3-0 (<< 3.24.30)
Description: Pure Wayland shell for mobile devices
Phosh is a graphical shell for Wayland compositors speaking the layer-surface
protocol and aimed at mobile devices like smart phones and tablets using touch
based inputs and small screens.
.
It's part of the Phosh Mobile Environment based on GNOME/GTK. For the full
stack see the phosh-full and phosh-core metapackages.
Homepage: https://phosh.mobi/
How are you running phosh?
-
PureOS amd64 qemu image -
Mobile phone (model: Librem 5 , operating system version: Mobian Trixie ) -
Librem5 devkit -
nested compositor. If so please give the full command you start phosh with. -
other (please elaborate)
Releveant logfiles
mobian phosh[1899]: Accelerator 19 activated: XF86AudioPlay
mobian phosh[1899]: accelerator action activated for id 12
mobian phosh[1899]: DBus emitting accelerator activated for action 12
mobian phosh[1899]: Active Timer 6 fired
mobian phosh[1899]: Removing watch 6
mobian phosh[1899]: Active Timer 4 fired
mobian phosh[1899]: Removing watch 4
mobian phosh[1899]: Accelerator 19 released: XF86AudioPlay
mobian phosh[1899]: accelerator released for id 12
mobian phosh[1899]: Presence status changed: 0
mobian phosh[1899]: Power save mode 0 requested