Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows driver disappears after reboot #266

Open
depeschzeu opened this issue May 20, 2023 · 20 comments
Open

windows driver disappears after reboot #266

depeschzeu opened this issue May 20, 2023 · 20 comments
Assignees
Labels

Comments

@depeschzeu
Copy link

Hi! There is an issue on windows 10. I've installed the windows adlmidi driver and it dissappears each time I reboot the pc.
I have no idea what happens and why.

@Wohlstand Wohlstand added the bug label May 21, 2023
@Wohlstand
Copy link
Owner

That's a known problem of Windows 10 since some version (I don't remind which, @nukeykt knows): it started to automatically remove every "improperly" installed driver on reboot. I hadn't figured yet on how to make it installed "properly" as Windows 10+ wants.

@depeschzeu
Copy link
Author

depeschzeu commented May 22, 2023

Oh I see. Windows 10 updates are getting dangerous. As an example, I've got a soundcard with ASIO drivers that began causing system crash after some of major win10 updates. I also do not remind exact version of it. So I have to avoid using ASIO or else I get BSOD. Since I've got a very good soundcard I do not have plans buying new one just because Microsoft does such things. First they removed midi mapper, so this is impossible to use classic MIDI sequencers, while they keep system garbage and applications they didn't update since win98 or so. And when they ruined file search (usual file search box in explorer doen't work anymore) I start to believe MS is going to get even worse. It takes hours to search for a file on 4GB/s NVMe disk, while 3d party search apps do it within a millisecond. Bravo, Microsoft. So I do not update Windows anymore unless I have a very good purpose. Unfortunately they tend to force you updating.

@Wohlstand
Copy link
Owner

Just some facts:

  • I do use Linux Mint since 2014 by myself
  • In my family, all hardware computers that has Windows, has Windows 8.1 with OpenShell installed. Nobody wants Windows 10 because of built-in spyware and lots of other problems related to compatibility and general convenience.
  • I do use Windows 10 and Windows 11 at VM only for debug purposes only.

@depeschzeu
Copy link
Author

depeschzeu commented May 22, 2023

I've been using windows 8.1 for years and didn't have any plans moving to w10. just like I've been using win7, xp and 98se till it start to rot. New doesn't equal better.
Problem is that I have to use quite a lot of specific professional software that doesn't work with win8.1 and not cross-platform as well.
With pain and curses I had to move to win10. And keep cursing.
When I got an abusing popup message 'hey cmon get windows 11!', I just said f/k you Microsoft and blocked all update related services.

@Wohlstand
Copy link
Owner

You probably could check how good that professional software would work on favourite Linux distro through the Wine. If luck comes, and it works successfully with no faults, then you could just use Linux rather than Windows.

@depeschzeu
Copy link
Author

depeschzeu commented May 22, 2023

I should give it a try. I have not much experience with Linux.
Regarding the bug with the driver I found out that coolsoft virtual midisynth installs and works normally on Windows 10. It doesn't disappear after reboot.
I do not know if this helps, but maybe some expert examination of it may help you. I do not know much of programming, maybe you know how to find out how it's done.
Here is the link to it.
https://coolsoft.altervista.org/en/virtualmidisynth

@Wohlstand Wohlstand self-assigned this Nov 25, 2023
@NY00123
Copy link

NY00123 commented Dec 15, 2023

In case of having problems, the 32-bit counterpart might work better. https://www.vogons.org/viewtopic.php?p=1041258#p1041258

@depeschzeu
Copy link
Author

In case of having problems, the 32-bit counterpart might work better. https://www.vogons.org/viewtopic.php?p=1041258#p1041258

Could you be more specific which distribution version is mentioned (some link to it)?

@NY00123
Copy link

NY00123 commented Dec 16, 2023

Could you be more specific which distribution version is mentioned (some link to it)?

Exact behaviors may depend on the build of Windows in use and/or other factors. But I've referred to a 32-bit build of the libADLMIDI WinMM driver.

@boomercore
Copy link

In case of having problems, the 32-bit counterpart might work better. https://www.vogons.org/viewtopic.php?p=1041258#p1041258

Could you be more specific which distribution version is mentioned (some link to it)?

https://github.com/Wohlstand/libADLMIDI/releases/download/v1.5.1/libADLMIDI-winmm-driver-prexp.7z
This is surviving reboots for me on Windows 11, and I presume this will work for 10 as I was plagued with this issue when I used 10 but don't think I ever tried this til recently. x64 and x86 both seem to get deleted every reboot though. If this doesn't work, maybe try testsigning and disable_integrity_checks in bcdedit.exe, though that comes with risks.

@Wohlstand
Copy link
Owner

Wohlstand commented Aug 30, 2024

The "-prexp" is the version for the Windows 2000, not for modern platforms.

@Wohlstand
Copy link
Owner

This is surviving reboots for me on Windows 11,

wow

@boomercore
Copy link

This is surviving reboots for me on Windows 11,

wow

The "-prexp" is the version for the Windows 2000, not for modern platforms.

I don't get it either but it seems to work.

@Wohlstand
Copy link
Owner

Anyway, during recent experiments, I found that my local build on Win10 VM crashes player (and reports that it can't open audio output device for unknown reasons). After my recent update of driver's code I attempted to investigate for the reason of this mess.

@boomercore
Copy link

I can confirm that prexp works, persists after reboot, and adlmidiconfig affects midi playback in realtime on both Win11 & Win10 x64. Of note, it installs in SysWOW64 despite being prexp.

@Wohlstand
Copy link
Owner

The "prexp" is 32-bit only thing, so, 64-bit apps won't see it as I know 🤔

@Wohlstand
Copy link
Owner

The normal package requires installing both 32-bit and 64-bit version on 64-bit machine to let all 32-bit and 64-bit apps to see the thing (if install 64-bit only, 32-bit apps won't see it, or opposite)

@Wohlstand
Copy link
Owner

The difference between "modern" and "prexp" is the used compiler: normal package used MinGW-w64, and "prexp" used one of old vanilla MinGW versions that's still compatible with old Windows.

@boomercore
Copy link

Any way you could whip up a binary of x64 in a similar fashion?

@Wohlstand
Copy link
Owner

Easy? nope, the vanilla MinGW compiler was always 32-bit only and had no 64-bit version for a long time. About the 64-bit version, I think, I have some mistakes that I didn't debugged yet, and once I figure for the reason, I can produce a working thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

4 participants