Recovery settings

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
hotter
Posts: 53
Joined: Sun Dec 07, 2008 8:49 pm

Recovery settings

Post by hotter »

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
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

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.
User avatar
hotter
Posts: 53
Joined: Sun Dec 07, 2008 8:49 pm

Post by hotter »

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
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

semibrick maybe. unless recovery crashes due to the corrupt file.
slasher2661996
Posts: 91
Joined: Sun Feb 22, 2009 8:32 am
Location: Melbourne Australia ZOMG

Post by slasher2661996 »

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

Code: Select all

SEConfig recoveryconfig;
sctrlSEGetConfig(&rrecoveryconfig);
Then you can get stuff like

Code: Select all

recoveryconfig.umdmode;
[/code]
User avatar
hotter
Posts: 53
Joined: Sun Dec 07, 2008 8:49 pm

Post by hotter »

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
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

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.
User avatar
hotter
Posts: 53
Joined: Sun Dec 07, 2008 8:49 pm

Post by hotter »

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
Zer01ne
Posts: 28
Joined: Mon Sep 08, 2008 7:15 am

Post by Zer01ne »

sctrlSESetConfig(&rrecoveryconfig);
User avatar
hotter
Posts: 53
Joined: Sun Dec 07, 2008 8:49 pm

Post by hotter »

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
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

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!
User avatar
hotter
Posts: 53
Joined: Sun Dec 07, 2008 8:49 pm

Post by hotter »

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
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

It probably changes things in memory too.
Image
Upgrade your PSP
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

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.
User avatar
hotter
Posts: 53
Joined: Sun Dec 07, 2008 8:49 pm

Post by hotter »

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
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

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.
User avatar
hotter
Posts: 53
Joined: Sun Dec 07, 2008 8:49 pm

Post by hotter »

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
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

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.
Post Reply