Randy31416
New Member
I'd like to be able to turn bluetooth off and on programatically, using the command line or a non-gui program. Something that turns airplane-mode off and on programatically would be fine as well. A lot of googling has shown little joy, but much of that googling shows older information.
On my Pro 3, the Windows Device Manager shows seven Bluetooth devices: "Bluetooth Mouse M557" (a Logitech mouse), "Device Identification Service", "Microsoft Bluetooth Enumerator", "Microsoft Bluetooth LE Enumerator", "Service Discovery Service", "Surface Pen", and "Marvell AVASTAR Bluetooth Radio Adapter". I know that if I could simply disable and reenable the Marvell AVASTAR Bluetooth Radio Adapter I would achieve my objective. The problem is that the Device Manager right-mouse-button context menu for that device does not allow enablement or disablement (just uninstall), and so devcon cannot enable and disable the device. And disabling all of the devices that do allow disablement (including the mouse) does not in fact result in the mouse not operating the computer. (Only the radio and the Microsoft Bluetooth Enumerator lack the enable-disable context menu item.)
All I am trying to achieve is to have my mouse not wake the computer up during connected standby when I accidently jostle it on my desktop. When I stop working on the computer for a while, the screen turns off and the machine goes into connected standby. I'd like it to stay there until I touch the power button or a key on the keyboard, and not wake up when I bump the mouse doing paperwork. (Yes, the mouse has a physical button to turn it on or off. My desktop computer does not reqire me to flip a button on the mouse to have it not wake up the computer from sleep. I'd just like the same convenience with the Surface.)
Anyone got a pointer? An API? A script (but not a gui-mode keyboard-simulator script)? Or a different way to get my mouse to sleep while the screen is off? Or certain knowledge that this cannot be done? (I have not yet tried deleting the mouse entirely when the screen goes dark and doing a refresh when it lights back up as this sounds extreme.)
On my Pro 3, the Windows Device Manager shows seven Bluetooth devices: "Bluetooth Mouse M557" (a Logitech mouse), "Device Identification Service", "Microsoft Bluetooth Enumerator", "Microsoft Bluetooth LE Enumerator", "Service Discovery Service", "Surface Pen", and "Marvell AVASTAR Bluetooth Radio Adapter". I know that if I could simply disable and reenable the Marvell AVASTAR Bluetooth Radio Adapter I would achieve my objective. The problem is that the Device Manager right-mouse-button context menu for that device does not allow enablement or disablement (just uninstall), and so devcon cannot enable and disable the device. And disabling all of the devices that do allow disablement (including the mouse) does not in fact result in the mouse not operating the computer. (Only the radio and the Microsoft Bluetooth Enumerator lack the enable-disable context menu item.)
All I am trying to achieve is to have my mouse not wake the computer up during connected standby when I accidently jostle it on my desktop. When I stop working on the computer for a while, the screen turns off and the machine goes into connected standby. I'd like it to stay there until I touch the power button or a key on the keyboard, and not wake up when I bump the mouse doing paperwork. (Yes, the mouse has a physical button to turn it on or off. My desktop computer does not reqire me to flip a button on the mouse to have it not wake up the computer from sleep. I'd just like the same convenience with the Surface.)
Anyone got a pointer? An API? A script (but not a gui-mode keyboard-simulator script)? Or a different way to get my mouse to sleep while the screen is off? Or certain knowledge that this cannot be done? (I have not yet tried deleting the mouse entirely when the screen goes dark and doing a refresh when it lights back up as this sounds extreme.)