Bluetooth keyboard is always connected but mouse is not

Hello everyone,

I’m using i3wm in Manjaro, but I think my question applies in general.

I’m using a Bluetooth Microsoft keyboard and a Logitech Bluetooth mouse. What happens is that every time I start my computer, my keyboard is picked up and connected automatically (of course because I need to enter my password etc. to login). That’s also true when I put the computer to sleep etc.; when the computer wakes up, the keyboard is connected and ready to use!

But for mouse, it’s different; I need to manually connect it every time. So, I was wondering two things:

  • What differs between mouse and keyboard? While they’re both using Bluetooth, the keyboard is always connected and the mouse is not.

  • Is there any way I can have the same behavior for my mouse? So that it’s automatically picked up and connected.

Thank you

Welcome here, @farzadm,

Please provide some more info, you could start with posting output of

inxi -Fxxxza --no-host
hwinfo --netcard --wlan --bluetooth | grep -Ei "model\:|driver\:|status\:|cmd\:|file\:|detected\:" | grep -v "Config Status"
journalctl | grep bluetooth

Please, use the </> button in the editor to format the posted text, nicely.

1 Like

Are you sure the microsoft keyboard doesn’t connect through RF cause I had the same issue and it was a simple fix. Edit /etc/bluetooth/main.conf and scroll all the way down and make sure AutoEnable=true

Thank you @chomsky. I tried that, but it didn’t change anything :frowning:

Thank you so much @Wollie, that’s very nice of you :slight_smile:

So, the output of inxi:

System:    Kernel: 5.7.17-2-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.7-x86_64 root=UUID=b9942f62-4426-4d83-9120-548e7e51f709 rw splash quiet 
           apparmor=1 security=apparmor resume=UUID=1b3adfad-8a93-4362-901e-62d0bd5ebb47 udev.log_priority=3 
           Desktop: i3 4.18.2 info: i3bar dm: LightDM 1.30.0 Distro: Manjaro Linux 
Machine:   Type: Desktop Mobo: ASUSTeK model: Z170-DELUXE v: Rev 1.xx serial: <filter> UEFI: American Megatrends v: 3801 
           date: 03/14/2018 
CPU:       Topology: Quad Core model: Intel Core i7-6700K bits: 64 type: MT MCP arch: Skylake-S family: 6 model-id: 5E (94) 
           stepping: 3 microcode: D6 L2 cache: 8192 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 64026 
           Speed: 800 MHz min/max: 800/4600 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800 8: 802 
           Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
           Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
           Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
           Type: meltdown mitigation: PTI 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW, STIBP: conditional, RSB filling 
           Type: srbds status: Vulnerable: No microcode 
           Type: tsx_async_abort mitigation: Clear CPU buffers; SMT vulnerable 
Graphics:  Device-1: NVIDIA GM200 [GeForce GTX 980 Ti] vendor: ASUSTeK driver: nvidia v: 435.21 alternate: nouveau,nvidia_drm 
           bus ID: 01:00.0 chip ID: 10de:17c8 
           Display: x11 server: X.Org 1.20.9 driver: nvidia display ID: :0 screens: 1 
           Screen-1: 0 s-res: 3840x1080 s-dpi: 101 s-size: 966x272mm (38.0x10.7") s-diag: 1004mm (39.5") 
           Monitor-1: DVI-I-1 res: 1920x1080 hz: 60 dpi: 102 size: 476x268mm (18.7x10.6") diag: 546mm (21.5") 
           Monitor-2: HDMI-0 res: 1920x1080 hz: 60 dpi: 102 size: 476x268mm (18.7x10.6") diag: 546mm (21.5") 
           OpenGL: renderer: GeForce GTX 980 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 435.21 direct render: Yes 
Audio:     Device-1: Intel 100 Series/C230 Series Family HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel 
           bus ID: 00:1f.3 chip ID: 8086:a170 
           Device-2: NVIDIA GM200 High Definition Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel bus ID: 01:00.1 
           chip ID: 10de:0fb0 
           Sound Server: ALSA v: k5.7.17-2-MANJARO 
Network:   Device-1: Intel Ethernet I219-V vendor: ASUSTeK driver: e1000e v: 3.2.6-k port: f000 bus ID: 00:1f.6 
           chip ID: 8086:15b8 
           IF: enp0s31f6 state: down mac: <filter> 
           Device-2: Broadcom and subsidiaries BCM4360 802.11ac Wireless Network Adapter vendor: ASUSTeK driver: wl v: kernel 
           modules: bcma port: e000 bus ID: 07:00.0 chip ID: 14e4:43a0 
           IF: wlp7s0 state: up mac: <filter> 
           Device-3: Intel I211 Gigabit Network vendor: ASUSTeK driver: igb v: 5.6.0-k port: c000 bus ID: 0b:00.0 
           chip ID: 8086:1539 
           IF: enp11s0 state: down mac: <filter> 
           IF-ID-1: br-87154a70bf79 state: down mac: <filter> 
           IF-ID-2: docker0 state: down mac: <filter> 
Drives:    Local Storage: total: 2.96 TiB used: 1.65 TiB (55.7%) 
           SMART Message: Required tool smartctl not installed. Check --recommends 
           ID-1: /dev/sda vendor: Samsung model: SSD 850 EVO 250GB size: 232.89 GiB block size: physical: 512 B logical: 512 B 
           speed: 6.0 Gb/s serial: <filter> rev: 2B6Q scheme: GPT 
           ID-2: /dev/sdb vendor: Toshiba model: DT01ACA300 size: 2.73 TiB block size: physical: 4096 B logical: 512 B 
           speed: 6.0 Gb/s rotation: 7200 rpm serial: <filter> rev: ABB0 scheme: GPT 
Partition: ID-1: / raw size: 40.00 GiB size: 39.12 GiB (97.81%) used: 29.62 GiB (75.7%) fs: ext4 dev: /dev/sda5 
           ID-2: /home raw size: 47.89 GiB size: 46.89 GiB (97.91%) used: 26.54 GiB (56.6%) fs: ext4 dev: /dev/sda6 
Swap:      Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
           ID-1: swap-1 type: partition size: 71.65 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/sdb3 
Sensors:   System Temperatures: cpu: 34.0 C mobo: N/A gpu: nvidia temp: 43 C 
           Fan Speeds (RPM): N/A gpu: nvidia fan: 20% 
Info:      Processes: 293 Uptime: N/A Memory: 31.30 GiB used: 792.3 MiB (2.5%) Init: systemd v: 246 Compilers: gcc: 10.2.0 
           Packages: 1605 pacman: 1575 lib: 336 flatpak: 17 snap: 13 Shell: Zsh v: 5.8 running in: guake inxi: 3.1.05 

The output of hwinfo:

  Model: "Intel I211 Gigabit Network Connection"
  Driver: "igb"
  Device File: enp11s0
  Link detected: no
    Driver Status: igb is active
    Driver Activation Cmd: "modprobe igb"
  Model: "Broadcom BCM4360 802.11ac Wireless Network Adapter"
  Driver: "wl"
  Device File: wlp7s0
  Link detected: yes
    Driver Status: bcma is not active
    Driver Activation Cmd: "modprobe bcma"
    Driver Status: wl is active
    Driver Activation Cmd: "modprobe wl"
  Model: "Intel Ethernet Connection (2) I219-V"
  Driver: "e1000e"
  Device File: enp0s31f6
  Link detected: no
    Driver Status: e1000e is active
    Driver Activation Cmd: "modprobe e1000e"

And the output of journalctl (with the grep) contains 7282 lines!! so I’m not sure if you want to see the whole thing there :slight_smile:

Please let me know if there’s any other information I can provide to help

The BCM4360 adapter is known to give a lot of people issues. If your only problem is that your bluetooth mouse needs frequent reconnects I personally would not try to tinker with that device.

https://wiki.archlinux.org/index.php/Broadcom_wireless

Good point @Wollie; I remember that making it work also required some work!

But I’m wondering about something: aren’t both the keyboard and the mouse using the same adapter? I guess something should be different with them in my Linux configuration.