| View previous topic :: View next topic |
| Author |
Message |
hotter

Joined: 07 Dec 2008 Posts: 53
|
Posted: Sun Mar 08, 2009 5:05 am Post subject: Recovery settings |
|
|
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 |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Sun Mar 08, 2009 5:21 am Post subject: |
|
|
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 |
|
 |
hotter

Joined: 07 Dec 2008 Posts: 53
|
Posted: Sun Mar 08, 2009 5:54 am Post subject: |
|
|
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 |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Sun Mar 08, 2009 5:55 am Post subject: |
|
|
| semibrick maybe. unless recovery crashes due to the corrupt file. |
|
| Back to top |
|
 |
slasher2661996
Joined: 22 Feb 2009 Posts: 91 Location: Melbourne Australia ZOMG
|
Posted: Sun Mar 08, 2009 8:33 am Post subject: |
|
|
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 |
|
 |
hotter

Joined: 07 Dec 2008 Posts: 53
|
Posted: Sun Mar 08, 2009 9:42 pm Post subject: |
|
|
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 |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Sun Mar 08, 2009 11:26 pm Post subject: |
|
|
| 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 |
|
 |
hotter

Joined: 07 Dec 2008 Posts: 53
|
Posted: Mon Mar 09, 2009 1:14 am Post subject: |
|
|
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 |
|
 |
Zer01ne
Joined: 08 Sep 2008 Posts: 29
|
Posted: Mon Mar 09, 2009 1:52 am Post subject: |
|
|
| sctrlSESetConfig(&rrecoveryconfig); |
|
| Back to top |
|
 |
hotter

Joined: 07 Dec 2008 Posts: 53
|
Posted: Mon Mar 09, 2009 2:01 am Post subject: |
|
|
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 |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Mon Mar 09, 2009 2:02 am Post subject: |
|
|
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 |
|
 |
hotter

Joined: 07 Dec 2008 Posts: 53
|
Posted: Mon Mar 09, 2009 2:10 am Post subject: |
|
|
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 |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Mon Mar 09, 2009 2:30 am Post subject: |
|
|
It probably changes things in memory too. _________________
Upgrade your PSP |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Mon Mar 09, 2009 2:40 am Post subject: |
|
|
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 |
|
 |
hotter

Joined: 07 Dec 2008 Posts: 53
|
Posted: Mon Mar 09, 2009 6:22 am Post subject: |
|
|
| 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 |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Mon Mar 09, 2009 7:54 pm Post subject: |
|
|
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 |
|
 |
hotter

Joined: 07 Dec 2008 Posts: 53
|
Posted: Wed Mar 11, 2009 1:43 am Post subject: |
|
|
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 |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Wed Mar 11, 2009 1:48 am Post subject: |
|
|
| 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 |
|
 |
|