forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Recovery settings

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
hotter



Joined: 07 Dec 2008
Posts: 53

PostPosted: Sun Mar 08, 2009 5:05 am    Post subject: Recovery settings Reply with quote

How to get/set recovery menu settings to/from my program? where are the settings saved?
I would like to get cpu frequency for XMB and games and be able to change it...
_________________
Pragramming with:
Microsoft Visual C 2008 + pspsdk MINPSPW 0.8.10
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Sun Mar 08, 2009 5:21 am    Post subject: Reply with quote

Its in flash1:/config.se
Its just raw variables written from memory, you'll need to figure which one corresponds to which and read that value accordingly (int, u8, etc).
I think there is a function in the M33 SDK to read some of the settings, I dunno if its up to date though.
Back to top
View user's profile Send private message
hotter



Joined: 07 Dec 2008
Posts: 53

PostPosted: Sun Mar 08, 2009 5:54 am    Post subject: Reply with quote

Thx, I found that file and spotted cpu frequency :)
I wander is there any danger to work with that file? can I brick psp or something?
_________________
Pragramming with:
Microsoft Visual C 2008 + pspsdk MINPSPW 0.8.10
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Sun Mar 08, 2009 5:55 am    Post subject: Reply with quote

semibrick maybe. unless recovery crashes due to the corrupt file.
Back to top
View user's profile Send private message
slasher2661996



Joined: 22 Feb 2009
Posts: 91
Location: Melbourne Australia ZOMG

PostPosted: Sun Mar 08, 2009 8:33 am    Post subject: Reply with quote

Its in systemctrl_se.h from the 4.00m33 sdk
Use it like this:


Code:

SEConfig recoveryconfig;
sctrlSEGetConfig(&rrecoveryconfig);

Then you can get stuff like
Code:

recoveryconfig.umdmode;
[/code]
Back to top
View user's profile Send private message
hotter



Joined: 07 Dec 2008
Posts: 53

PostPosted: Sun Mar 08, 2009 9:42 pm    Post subject: Reply with quote

It works, now I can change recovery settings, but there is a small problem, when I change them they changes only after restart.
Is there a way to apply the settings without restart?
_________________
Pragramming with:
Microsoft Visual C 2008 + pspsdk MINPSPW 0.8.10
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Sun Mar 08, 2009 11:26 pm    Post subject: Reply with quote

hotter wrote:
It works, now I can change recovery settings, but there is a small problem, when I change them they changes only after restart.
Is there a way to apply the settings without restart?

No. They are applied by systemctrl. I guess the only thing you can change without a restart is the clock speed.
Back to top
View user's profile Send private message
hotter



Joined: 07 Dec 2008
Posts: 53

PostPosted: Mon Mar 09, 2009 1:14 am    Post subject: Reply with quote

Well VSHmenu writes new settings to config file and somehow applies it (VSH cpu, game cpu, umd iso mode, usb drive). Maybe there is a function?...
_________________
Pragramming with:
Microsoft Visual C 2008 + pspsdk MINPSPW 0.8.10
Back to top
View user's profile Send private message
Zer01ne



Joined: 08 Sep 2008
Posts: 29

PostPosted: Mon Mar 09, 2009 1:52 am    Post subject: Reply with quote

sctrlSESetConfig(&rrecoveryconfig);
Back to top
View user's profile Send private message
hotter



Joined: 07 Dec 2008
Posts: 53

PostPosted: Mon Mar 09, 2009 2:01 am    Post subject: Reply with quote

I already using this function but it just write new settings to settings file I quess. It doesnt apply them.
_________________
Pragramming with:
Microsoft Visual C 2008 + pspsdk MINPSPW 0.8.10
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Mon Mar 09, 2009 2:02 am    Post subject: Reply with quote

It CANNOT apply anything! The only thing you can change is clock speed using the sce Speed functions from power.h.
All others require reboot!
Back to top
View user's profile Send private message
hotter



Joined: 07 Dec 2008
Posts: 53

PostPosted: Mon Mar 09, 2009 2:10 am    Post subject: Reply with quote

Original VSHmenu plugin can change settings without restart. It changes cpu, usb driver and umd iso mode. How it do that?
_________________
Pragramming with:
Microsoft Visual C 2008 + pspsdk MINPSPW 0.8.10
Back to top
View user's profile Send private message
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Mon Mar 09, 2009 2:30 am    Post subject: Reply with quote

It probably changes things in memory too.
_________________

Upgrade your PSP
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Mon Mar 09, 2009 2:40 am    Post subject: Reply with quote

Pretty sure there is NO way to change the UMD mode or anything while the game is running.

USB mode can be changed though, dunno how. Thats not simply by changing the settings. The VSH menu also performs the patches when you change the settings.
Back to top
View user's profile Send private message
hotter



Joined: 07 Dec 2008
Posts: 53

PostPosted: Mon Mar 09, 2009 6:22 am    Post subject: Reply with quote

Torch wrote:
Pretty sure there is NO way to change the UMD mode or anything while the game is running.

I am making a prx plugin on XMB it should make the same as VSH menu... So is there any other ideas how to make "UMD ISO mode" and "USB device" changes work without reboot like in VSH menu?
_________________
Pragramming with:
Microsoft Visual C 2008 + pspsdk MINPSPW 0.8.10
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Mon Mar 09, 2009 7:54 pm    Post subject: Reply with quote

How is ISO mode even relevant in XMB!!!??? It only runs the next time you launch a game which is a reboot. The setting will be read from whatever is in the config.se at that time!
USB mode requires patches. You can probably find them in the 3.40 Wildcard firmware source code.
Back to top
View user's profile Send private message
hotter



Joined: 07 Dec 2008
Posts: 53

PostPosted: Wed Mar 11, 2009 1:43 am    Post subject: Reply with quote

I have one more question, when I change cpu frequency in XMB and go to videos cpu frequency changes back to 222Mhz. why?
_________________
Pragramming with:
Microsoft Visual C 2008 + pspsdk MINPSPW 0.8.10
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Wed Mar 11, 2009 1:48 am    Post subject: Reply with quote

hotter wrote:
I have one more question, when I change cpu frequency in XMB and go to videos cpu frequency changes back to 222Mhz. why?


The VSH changes the frequency. You will need to destroy the cpu speed function calls from vsh modules. Or another thing you can do is suppose you ONLY want control from your plugin (it should be kernel mode), you can dummy the syscalls to the speed functions in power module to point to a dummy function. M33 VSHMenu stops the speed from changing similar to this when you set a specific speed.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group