Exactly what Aldo explained, thanks
@aldostools ;-)
wMM is not well suited to set the manual fan setting for ps2 emu unless it is directly involved in the mounting/launching of that game.
In your case, to set the fan properly when using directly a ps2 classics XMB icon (pkg installation) to launch a game, afaik either of these 4 things could do the trick
1. A vsh sprx plugin hook to set up the fan. When the XMB icon is clicked, a sprx plugin, well, technically speaking several sprx plugins are involved but let's keep this simple, processes the game launch request, in theory that code could be hooked to execute custom code that sets up the fan. This would be a userland only solution, not the best option imho but it could work. Another such hook would probably be needed to restore the fan settings on emu exit, no doubt another sprx plugin (or vsh.self) routine can be identified & hooked for that purpose.
2. A kernel hook to set up the fan, same as above but the hook resides in kernel (in Cobra or specific kernel payload loaded by Cobra on boot), & executes when the emu game launch lv2 kernel syscall is called.
Original fan settings could get restored with a hook on the lv2 function that brings vsh back to the foreground or something along those lines.
That's probably the easiest of the 4 options to implement because Cobra/Mamba have everything ready, syscall or lv2 function hooking is kinda trivial to do, dozens of hooks are already in place, that is precisely what Cobra (or Mamba) does.
3. A ps2 emu patch & payload to have the ps2 emu deal with the fan stuff independently. I must assume this option will also require some decent ps2 emu background knowledge & reverse engineering.
4. A syscon mod to avoid using kernel based fan payloads altogether. Possibly the best solution overall but for the moment, afaik, only the earliest phat console models have a syscon mod readily available, it appears to give good results but it is still considered experimental. It will probably take a while before all syscon models are dumped, analysed & syscon mods are made to support all models & before the mods are deemed both efficient & safe enough to be used casually.
But unfortunately those are not things you can improvise as a user, you would need to write some C code to implement any of those things.