ps2homebrew / wLaunchELF

ELF loader and File browser for Sony PlayStation 2
Other
500 stars 51 forks source link

Weird behavior of MISC:/POWEROFF when Internal HDD isn't active #49

Open israpps opened 3 years ago

israpps commented 3 years ago

if i shut down my console from uLaunchELF while the HDD isnt active (tested on 4.43a 41e4ebe and 4.43a_KHN) the HDD is turned on less than one seccond before shuting down the console.

sp193 commented 3 years ago

Are you certain your HDD was activated, rather than just the network adaptor? If HDD, are you using a compatible network adaptor?

To shut down an expansion-bay PS2, the network adaptor must be shut down first. This is done with dev9.irx, which has the consequence of powering up the network adaptor if it was not on. Itherwise, there is no proper way to get access to the network adaptor and tell whether it was left on.

israpps commented 3 years ago

Are you certain your HDD was activated, rather than just the network adaptor? If HDD, are you using a compatible network adaptor?

To shut down an expansion-bay PS2, the network adaptor must be shut down first. This is done with dev9.irx, which has the consequence of powering up the network adaptor if it was not on. Itherwise, there is no proper way to get access to the network adaptor and tell whether it was left on.

Hi! It's good to see you around here!

I'm using an oficial NA (SCPH-10281 I think) with a bitfunx SATA board. I'm completely sure that this happens with the HDD powered off. I tested it doing this:

israpps commented 2 years ago

forget what i did on that mention....

It corrupts the HDD.........

Maybe adding a delay after of before the HDD Parking?

israpps commented 2 years ago

here maybe? https://github.com/ps2homebrew/wLaunchELF/blob/master/main.c#L1179