Permalink
Browse files

Coldplug input devices only

This fixes the issue on bullhead where you couldn't switch on BT after
turning it off when the desktop was running.

Signed-off-by: Preetam D'Souza <preetamjdsouza@gmail.com>
  • Loading branch information...
pdsouza committed Sep 7, 2018
1 parent d73b9ce commit 546057ffb2aff05ef6c05accd760cfcc373decde
@@ -0,0 +1,19 @@
#
# Systemd override file for Maru.
#
# Having udev coldplug all devices as usual can cause failures to control them
# correctly from Android, e.g. Bluetooth may fail to toggle on certain
# hardware. To prevent this, override the default coldplug behavior to only
# coldplug devices within the input subsystem.
#
# Note that completely masking the coldplug service--or even dropping udev
# itself--is not an option because we still need the coldplug for input
# devices. This ensures that the desktop automatically picks up input devices
# that were paired prior to desktop boot.
#
[Unit]
Description=udev Coldplug all input devices

[Service]
ExecStart=
ExecStart=/bin/udevadm trigger --subsystem-match=input --action=add

0 comments on commit 546057f

Please sign in to comment.