smurk-too / wii-softchip

Automatically exported from code.google.com/p/wii-softchip
0 stars 0 forks source link

Wii Remote stays powered on after powering off console. #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run softchip.
2. Press power on the console.
3. Watch the blue light stay on on the wii remote.

If a call is added to shut down libogc or the wii remote itself, the app
hangs and needs a hard power off.

Original issue reported on code.google.com by requiem@softchip-mod.com on 5 Nov 2008 at 10:52

GoogleCodeExporter commented 8 years ago
Jacobeian posted this tidbit:

You should not directly call shutoff functions in IRQ Callbacks (and power 
button
callback is one)

What you have to do is:
1/ make the callback setup a flag in your code
2/ check for the status of this flag periodically in your code and call 
whatever you
want to shut down the Wii when it's set (SYS_ResetSystem(SYS_POWEROFF,0) should 
be
better)

I implemented his suggestion, and it resolves this issue.

Original comment by requiem@softchip-mod.com on 5 Nov 2008 at 2:18

GoogleCodeExporter commented 8 years ago

Original comment by requiem@softchip-mod.com on 6 Nov 2008 at 11:13