0

I recently bought at Razer Orochi v2 mouse because it supports both BT and RF. This allows me to switch between work and personal PC quickly. I have the same feature on my keyboard, so I only need one set of peripherals on my desk. The mouse uses BTLE tech.

Issue: When I switch from RF to BT, the mouse will sometimes just not reconnect to my laptop. All other bluetooth peripherals work fine, I've updated drivers, gone through troubleshooting etc... nothing has helped. It will happen about 50% of the time, and I'm stuck toggling it between modes for 2 minutes before getting it to reconnect.

Resolution: The only thing that seems to work 100% of the time is pressing WIN+L to lock my PC, and it magically connects the mouse... every damn time. Now I can't rely on this method because it is just a pain, when I switch between my personal and work PC 50-100 times a day.

Question: Is there a way to replicate whatever Windows 10 is doing when I use WIN+L to lock the PC, I assume it's kicking the BTLE chips/stack/software in some way to tell it to rediscover any devices. If I could script this, I could probably bind it to a keybind to at least manually force this to happen on my own. I've attempted to find data on what it's actually doing with no success.

Any info/assistance is much appreciated, thank you.

While-E
  • 81

1 Answers1

1

You may do Turning Bluetooth on or off to cause the re-discovery of your devices.

Useful commands (link) :

net start "bthserv"
net stop "bthserv"

The post How to connect and disconnect a Bluetooth device with a PowerShell script on Windows? has this PowerShell script:

$device = Get-PnpDevice -class Bluetooth -friendlyname "FriendlyDeviceName"
Disable-PnpDevice -InstanceId $device.InstanceId -Confirm:$false
Start-Sleep -Seconds 10
Enable-PnpDevice -InstanceId $device.InstanceId -Confirm:$false

See also the Bluetooth Command Line Tools for useful utilities.

harrymc
  • 498,455