Ok I have it working again. This time it survives a reboot, closing the lid, shutdown, etc.
I also now get the proper "Do want to switch to tablet mode" prompts, etc.
And, the rotation now works correctly in Tablet mode (it did not work at all prior).
Now being a sys admin, I normally only change one thing at a time, but I didn't follow my own rule and I made two changes. Not sure which resolved it, or if both did. But anyway here is what I did:
The keyboard is disconnected and the Surface is in Tablet mode. I have a USB keyboard and mouse connected.
- Downgrade UEFI firmware to v103.2851.256.0.
http://www.catalog.update.microsoft.com/Search.aspx?q=Surface%20-%20Firmware
and look for that version.
To install it, go into Device Manager, look in the Firmware section, and update Surface UEFI with the file(s) inside the .cab file.
You may need to modify your registry to allow downgrades.
Reboot.
- Uninstall the "I2C HID Device" in Device Manager, under Human Interface Devices.
Scan for changes.
Reboot.
Power down, Power on. (I did a full power cycle as an afterthought, since I know that some firmware updates require full power down, and many changes require two reboots)
Picked up the tablet, turned it sideways, and it switched to Portrait mode. Yay! Then I connected the keyboard and it immediately worked. Doubleyay! I went through various combinations of shut down, power cycle, hot/cold disconnecting keyboard, etc. and it still works.
@ElegantPen, I do not have Hibernation enabled, that was one of the first things I disabled when originally purchased. That might be a different issue, although glad it worked in your case.
I've tried this with the .msi files instead, but still doesn't work for me. I see that it's installing the files appropriately to the ProgramFiles>Surfaceupdate folder, but not installing the typecoverfilter firmware, nor the surfacepro4typecover firmware. Everything else seems to get installed. Is there a way to manually install these from the files (.cat, .sys, .inf, and .dll) from the surfaceupdate folder(s)?