r52566 - in /desktop/unstable/gdm3/debian: changelog default.pa gdm3.install gdm3.postinst
biebl at users.alioth.debian.org
biebl at users.alioth.debian.org
Mon Jul 3 13:03:29 UTC 2017
Author: biebl
Date: Mon Jul 3 13:03:28 2017
New Revision: 52566
URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=52566
Log:
Prevent gdm from claiming any Bluetooth audio devices.
PulseAudio currently doesn't properly release Bluetooth devices if the
session it runs in becomes inactive. This is problematic as gdm starts a
PulseAudio instance for a11y purposes which continues to run after the
user has logged in. As a workaround, ship a custom PulseAudio
configuration for gdm which unloads the bluetooth driver modules so the
Bluetooth devices become accessible in the user session.
(Closes: #805414)
Added:
desktop/unstable/gdm3/debian/default.pa
Modified:
desktop/unstable/gdm3/debian/changelog
desktop/unstable/gdm3/debian/gdm3.install
desktop/unstable/gdm3/debian/gdm3.postinst
Modified: desktop/unstable/gdm3/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gdm3/debian/changelog?rev=52566&op=diff
==============================================================================
--- desktop/unstable/gdm3/debian/changelog [utf-8] (original)
+++ desktop/unstable/gdm3/debian/changelog [utf-8] Mon Jul 3 13:03:28 2017
@@ -1,3 +1,16 @@
+gdm3 (3.22.3-5) UNRELEASED; urgency=medium
+
+ * Prevent gdm from claiming any Bluetooth audio devices.
+ PulseAudio currently doesn't properly release Bluetooth devices if the
+ session it runs in becomes inactive. This is problematic as gdm starts a
+ PulseAudio instance for a11y purposes which continues to run after the
+ user has logged in. As a workaround, ship a custom PulseAudio
+ configuration for gdm which unloads the bluetooth driver modules so the
+ Bluetooth devices become accessible in the user session.
+ (Closes: #805414)
+
+ -- Michael Biebl <biebl at debian.org> Mon, 03 Jul 2017 14:46:40 +0200
+
gdm3 (3.22.3-4) unstable; urgency=medium
[ Jeremy Bicha ]
Added: desktop/unstable/gdm3/debian/default.pa
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gdm3/debian/default.pa?rev=52566&op=file
==============================================================================
--- desktop/unstable/gdm3/debian/default.pa (added)
+++ desktop/unstable/gdm3/debian/default.pa [utf-8] Mon Jul 3 13:03:28 2017
@@ -0,0 +1,16 @@
+#!/usr/bin/pulseaudio -nF
+#
+
+# load system wide configuration
+.include /etc/pulse/default.pa
+
+### unload driver modules for Bluetooth hardware
+# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=805414
+# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839993
+.ifexists module-bluetooth-policy.so
+unload-module module-bluetooth-policy
+.endif
+
+.ifexists module-bluetooth-discover.so
+unload-module module-bluetooth-discover
+.endif
Modified: desktop/unstable/gdm3/debian/gdm3.install
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gdm3/debian/gdm3.install?rev=52566&op=diff
==============================================================================
--- desktop/unstable/gdm3/debian/gdm3.install [utf-8] (original)
+++ desktop/unstable/gdm3/debian/gdm3.install [utf-8] Mon Jul 3 13:03:28 2017
@@ -18,6 +18,7 @@
var/*
debian/Xsession etc/gdm3
+debian/default.pa usr/share/gdm
debian/greeter.dconf-defaults* usr/share/gdm
debian/default.desktop usr/share/gdm/BuiltInSessions
debian/generate-config usr/share/gdm
Modified: desktop/unstable/gdm3/debian/gdm3.postinst
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gdm3/debian/gdm3.postinst?rev=52566&op=diff
==============================================================================
--- desktop/unstable/gdm3/debian/gdm3.postinst [utf-8] (original)
+++ desktop/unstable/gdm3/debian/gdm3.postinst [utf-8] Mon Jul 3 13:03:28 2017
@@ -88,6 +88,13 @@
ln -sf $UNIT $USERUNITDIR/sockets.target.wants
fi
+# Ship a PulseAudio configuration which disables Bluetooth support
+# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=805414
+# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839993
+if ! [ -f /var/lib/gdm3/.config/pulse/default.pa ]; then
+ cp /usr/share/gdm/default.pa /var/lib/gdm3/.config/pulse/default.pa
+fi
+
chown -R Debian-gdm:Debian-gdm /var/lib/gdm3
if [ -L /etc/pam.d/gdm-welcome ]; then
More information about the pkg-gnome-commits
mailing list