#167431 - Zapf_Bandit - Wed Mar 11, 2009 9:15 pm
#167432 - Dwedit - Wed Mar 11, 2009 9:30 pm
The newest devkitpro and libnds don't use a vcount handler on the ARM7 anymore, check out the new template program.
To get sleep mode working, you just make sure that the ARM7 initializes the FIFO routines and IRQs, then the library will take care of sleep mode with no additional code from you.
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."
#167433 - elhobbs - Wed Mar 11, 2009 9:42 pm
inputGetAndSend already handles KEY_LID for sleeping. your code is probably conflicting. you may need to enable the sleep functionality from the arm9 if it is not enabled by default. Code: |
fifoSendValue32(FIFO_PM, PM_REQ_SLEEP_ENABLE);
|
#167436 - Echo49 - Thu Mar 12, 2009 1:51 am
If I have music and graphics running synced before I close the lid, after I open the lid the graphics falls behind by many frames (haven't timed it). I haven't looked into fixing this myself yet, but I was wondering if anyone knows why this is happening and if there is any way to fix it short of completely resyncing the music by seeking.
#167441 - Zapf_Bandit - Thu Mar 12, 2009 4:57 am
Thanks for the info elhobbs... I feel really silly now ;-)
The new libnds does already have the sleep support in place.
I removed all my sleep code and then found that it worked 100% properly.
This is great news as I no longer need any custom arm7 code anymore.
Now I can happily use the default arm7 and have sound and music working.
Hooray, this updated has got rid of a lot of my code and only took a day of debugging!
Thanks again for the help,
Zapf Bandit