Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

btusb disconnect immediately after wakeup #33

Open
berenddeschouwer opened this issue Jul 17, 2015 · 1 comment
Open

btusb disconnect immediately after wakeup #33

berenddeschouwer opened this issue Jul 17, 2015 · 1 comment

Comments

@berenddeschouwer
Copy link

I've got a Realtek 8723be, wifi and bluetooth chip, and a bluetooth keyboard and mouse.

If I lock the screen (Fedora 22, gnome-shell), and unlock the screen, the bluetooth devices disconnect -- but only after unlocking.

gnome-shell powers down just about everything on lock. It's not a full suspend, but the screen and other devices are powered down. Dunno how to stop that.

So here's in more detail:

  1. login
  2. bluetooth is paired
  3. lock (gnome-shell powers down)
  4. unlock (type password using bluetooth keyboard)
  5. wait a few seconds
  6. keyboard and mouse disconnect

To fix:
7. rmmod btusb
8. modprobe btusb
9. stays connected until next lock.

While the disconnect is happening, you can see the devices constantly connecting and disconnecting, every two seconds or so.

Dunno if this is this driver, wifi driver, bluetooth or gnome-session problem, but I'm logging it here first because I'm using an out-of-kernel driver. The devices seem to work fine on another laptop.

Brief hardware list:

Chip: Bus 001 Device 002: ID 0bda:b001 Realtek Semiconductor Corp.
Keyboard: logitech dinovo edge
mouse: logitech m555b (tried other mice too)

Brief software list:

Fedora 22
kernel 4.0.7-300.fc22.x86_64
rtl8723au_bt (9024cea)
rtlwifi_new (fe8e96938599e97cf4f76d22e6ab00066ff05ec5)
bluez-5.29-2.fc22.x86_64
gnome-session-3.16.0-1.fc22.x86_64

Brief logs:

dmesg:

on wakeup, lots of this stuff (there's about 15 bluetooth devices in reach):

[ 7148.016262] Bluetooth: hci0 ACL packet for unknown connection handle 3
[ 7174.226519] Bluetooth: hci0 ACL packet for unknown connection handle 5
[ 7207.261043] Bluetooth: hci0 ACL packet for unknown connection handle 6

on rmmod btusb/modprobe usb:

[ 7232.536244] usbcore: registered new interface driver btusb
[ 7232.540978] Bluetooth: hci0: hci_ver=06 hci_rev=0e2f lmp_ver=06 lmp_subver=9f73
[ 7232.540982] Bluetooth: rtl8723b: assuming no firmware upload needed.
[ 7236.924712] Bluetooth: hci0 ACL packet for unknown connection handle 1
[ 7242.934595] Bluetooth: hci0 ACL packet for unknown connection handle 2
[ 7258.531170] Bluetooth: hci0 ACL packet for unknown connection handle 3
[ 7265.538093] Bluetooth: hci0 ACL packet for unknown connection handle 4
[ 7272.158524] Bluetooth: hci0 ACL packet for unknown connection handle 5
[ 7294.762926] hid-generic 0005:046D:B009.0007: unknown main item tag 0x0
[ 7294.762979] input: Logitech Bluetooth Mouse M555b as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/bluetooth/hci0/hci0:1/0005:046D:B009.0007/input/input35
[ 7294.763348] hid-generic 0005:046D:B009.0007: input,hidraw0: BLUETOOTH HID v4.19 Mouse [Logitech Bluetooth Mouse M555b] on c4:8e:8f:c1:99:7a
[ 7305.194917] Bluetooth: hci0 ACL packet for unknown connection handle 2
[ 7311.863486] hid-generic 0005:046D:B309.0008: unknown main item tag 0x0
[ 7311.884072] input: Logitech diNovo Edge as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/bluetooth/hci0/hci0:3/0005:046D:B309.0008/input/input36
[ 7311.884277] hid-generic 0005:046D:B309.0008: input,hidraw1: BLUETOOTH HID v1.1b Mouse [Logitech diNovo Edge] on c4:8e:8f:c1:99:7a

from messages (journalctl):

I'm trying to find out if the following is immediately on lock. I'm pretty sure it's before unlock:

Jul 17 09:59:22 sieve-deschouwer-co-za /usr/libexec/gdm-x-session[2352]: (II) config/udev: removing device Logitech Bluetooth Mouse M555b
Jul 17 09:59:22 sieve-deschouwer-co-za /usr/libexec/gdm-x-session[2352]: (**) Option "fd" "38"
Jul 17 09:59:22 sieve-deschouwer-co-za /usr/libexec/gdm-x-session[2352]: (II) UnloadModule: "libinput"
Jul 17 09:59:22 sieve-deschouwer-co-za /usr/libexec/gdm-x-session[2352]: (II) systemd-logind: releasing fd for 13:80

after rmmod/modprobe:

Jul 17 10:11:33 sieve-deschouwer-co-za kernel: usbcore: deregistering interface driver btusb
Jul 17 10:11:33 sieve-deschouwer-co-za kernel: Bluetooth: hci0 urb ffff88044aefa000 failed to resubmit (2)
Jul 17 10:11:33 sieve-deschouwer-co-za /usr/libexec/gdm-x-session[2352]: (II) config/udev: removing device Logitech diNovo Edge
Jul 17 10:11:33 sieve-deschouwer-co-za /usr/libexec/gdm-x-session[2352]: (*) Option "fd" "39"
Jul 17 10:11:33 sieve-deschouwer-co-za /usr/libexec/gdm-x-session[2352]: (II) UnloadModule: "libinput"
Jul 17 10:11:33 sieve-deschouwer-co-za /usr/libexec/gdm-x-session[2352]: (II) systemd-logind: releasing fd for 13:81
Jul 17 10:11:33 sieve-deschouwer-co-za bluetoothd[1315]: Endpoint unregistered: sender=:1.53 path=/MediaEndpoint/A2DPSource
Jul 17 10:11:33 sieve-deschouwer-co-za bluetoothd[1315]: Endpoint unregistered: sender=:1.53 path=/MediaEndpoint/A2DPSink
Jul 17 10:11:33 sieve-deschouwer-co-za systemd[1]: Stopping Load/Save RF Kill Switch Status of rfkill3...
...
Jul 17 10:11:37 sieve-deschouwer-co-za systemd[1]: Reached target Bluetooth.
Jul 17 10:11:37 sieve-deschouwer-co-za systemd[1]: Starting Bluetooth.
Jul 17 10:11:37 sieve-deschouwer-co-za systemd[1]: Starting Load/Save RF Kill Switch Status of rfkill4...
Jul 17 10:11:37 sieve-deschouwer-co-za kernel: Bluetooth: hci0: hci_ver=06 hci_rev=0e2f lmp_ver=06 lmp_subver=9f73
Jul 17 10:11:37 sieve-deschouwer-co-za kernel: Bluetooth: rtl8723b: assuming no firmware upload needed.
Jul 17 10:11:37 sieve-deschouwer-co-za systemd[1]: Started Load/Save RF Kill Switch Status of rfkill4.
Jul 17 10:11:37 sieve-deschouwer-co-za audit[1]: pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-rfkill@rfkill4 comm="systemd" exe=
Jul 17 10:11:37 sieve-deschouwer-co-za bluetoothd[1315]: Failed to obtain handles for "Service Changed" characteristic
Jul 17 10:11:37 sieve-deschouwer-co-za bluetoothd[1315]: Endpoint registered: sender=:1.53 path=/MediaEndpoint/A2DPSource
Jul 17 10:11:37 sieve-deschouwer-co-za bluetoothd[1315]: Endpoint registered: sender=:1.53 path=/MediaEndpoint/A2DPSink
Jul 17 10:11:41 sieve-deschouwer-co-za kernel: Bluetooth: hci0 ACL packet for unknown connection handle 1
Jul 17 10:11:47 sieve-deschouwer-co-za kernel: Bluetooth: hci0 ACL packet for unknown connection handle 2
Jul 17 10:12:00 sieve-deschouwer-co-za audit[1]: pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=fprintd comm="systemd" exe="/usr/lib/syste
Jul 17 10:12:03 sieve-deschouwer-co-za kernel: Bluetooth: hci0 ACL packet for unknown connection handle 3
Jul 17 10:12:10 sieve-deschouwer-co-za gnome-session[2413]: (gnome-settings-daemon:2538): housekeeping-plugin-WARNING *
: Failed to enumerate children of /tmp/systemd-private-4202f6ed28b246f
Jul 17 10:12:10 sieve-deschouwer-co-za gnome-session[2413]: (gnome-settings-daemon:2538): housekeeping-plugin-WARNING *: Failed to enumerate children of /var/tmp/systemd-private-a59bc1cb7d6
Jul 17 10:12:10 sieve-deschouwer-co-za gnome-session[2413]: (gnome-settings-daemon:2538): housekeeping-plugin-WARNING *
: Failed to enumerate children of /tmp/systemd-private-4202f6ed28b246f

@berenddeschouwer
Copy link
Author

The following definitely happens on unlock

Jul 17 11:09:14 sieve-deschouwer-co-za /usr/libexec/gdm-x-session[2352]: (II) config/udev: removing device Logitech Bluetooth Mouse M555b
Jul 17 11:09:14 sieve-deschouwer-co-za /usr/libexec/gdm-x-session[2352]: (**) Option "fd" "38"
Jul 17 11:09:14 sieve-deschouwer-co-za /usr/libexec/gdm-x-session[2352]: (II) UnloadModule: "libinput"
Jul 17 11:09:14 sieve-deschouwer-co-za /usr/libexec/gdm-x-session[2352]: (II) systemd-logind: releasing fd for 13:80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant