samartzidis / magicstick.io

Apple Keyboard USB Adapter for PC
18 stars 2 forks source link

Issue reconnecting from sleep #12

Open Omnicrash opened 1 month ago

Omnicrash commented 1 month ago

Ever since one of the more recent updates, I've been having trouble reconnecting the keyboard when the PC has been in sleep.

Strangely, I do think the keyboard can still wake the PC? (I need to verify this to know 100%, I'll keep an eye on it and update this issue).

samartzidis commented 1 month ago

Thanks for reporting this. It must be intermittent as I could not reproduce this but I'll take a closer look. Please update me on the issue if you find more accurate information on how to reproduce this consistently.

Omnicrash commented 1 month ago

It seems to be consistently happening now on my end.

What is the best way do do a full reset? I'm going to try that first to see if it makes a difference.

samartzidis commented 1 month ago

Ok thank you. I will review the relevant sleep-wakeup code. In the meantime if you email me, I am happy to send you the previous firmware (the one without the programming features). The reset procedure using the bootsel button is described in the user manual.

Omnicrash commented 1 month ago

I found it happens only when waking the PC through the keyboard - if I press the power button on the PC to wake it from sleep, it will work fine.

Some more possibly relevant info for my system:

Omnicrash commented 1 month ago

A full reset didn't fix it.

I've also noticed when this happens, operations from the UI like Settings or Keymap will result in a timeout error.

samartzidis commented 2 weeks ago

Hi @Omnicrash. As said earlier I am not able to reproduce this over Bluetooth or wired connection. I wonder what could be causing this in your particular setup. Are you running the currently latest firmware magicstick.2.0.155+release.6569e43 ? Thanks.

Omnicrash commented 2 weeks ago

Yes it's on the latest version: [Device Model, magicstick.2.0.155+release.6569e43]. The keyboard itself should also be the latest magic keyboard (without fingerprint). If there are specific things you'd like me to try to help you debug, let me know.

Omnicrash commented 1 week ago

I've been able to confirm that it works using the old firmware. I'll do some more testing with leaving the PC off for longer and waking it up, but I've tried:

Maybe another detail that might not matter, but just to rule out edge cases: The way I usually wake the PC is by mashing left ctrl and left shift, alternatingly or at the same time.

samartzidis commented 1 week ago

Thanks for testing @Omnicrash

In the meantime, as per the user documentation, the URL to manually download older firmware is: https://magicstick-app.azurewebsites.net/api/download/[device id]/[release name].uf2 [device id] should be replaced with the actual device id downloading the firmware for. [release name] should be replaced with a release name from release notes. So given the above, a resulting firmware download URL should look like this: https://magicstick-app.azurewebsites.net/api/download/E66xxxxxxxxxxx31/magicstick.1.1.46+release.54916d0.uf2

When flashing the 1. firmware, you'll need to use the latest available 1. version UI client (if needed) from here: https://github.com/samartzidis/magicstick.io/releases/tag/MagicStickUI.1.2.1