| View previous topic :: View next topic |
| Author |
Message |
liberty
Joined: 16 Sep 2009 Posts: 35
|
Posted: Sun Sep 20, 2009 10:30 am Post subject: How to use sceDisplayDisable on newer firmware? |
|
|
I am using PSP 3001 with 5.03 firmware.
I try to use sceDisplayDiable / sceDisplayEnable. But if I link against the pspdisplay-driver, the program won't even start. It give an error.
Anyone here know how to disable/enable display on newer kernel like mine? |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Tue Sep 22, 2009 5:00 am Post subject: |
|
|
| Call it from a kernel module. |
|
| Back to top |
|
 |
liberty
Joined: 16 Sep 2009 Posts: 35
|
Posted: Tue Sep 22, 2009 5:07 am Post subject: |
|
|
| Torch wrote: | | Call it from a kernel module. |
How to? Is there a sample? |
|
| Back to top |
|
 |
sakya
Joined: 28 Apr 2006 Posts: 190
|
Posted: Tue Sep 22, 2009 8:23 am Post subject: |
|
|
Hi! :)
| liberty wrote: | | Torch wrote: | | Call it from a kernel module. |
How to? Is there a sample? |
Yes, the prx you are using in your cueplayer. :D
| Code: | PSP_EXPORT_FUNC(displayEnable)
PSP_EXPORT_FUNC(displayDisable) |
Ciaooo
Sakya |
|
| Back to top |
|
 |
liberty
Joined: 16 Sep 2009 Posts: 35
|
Posted: Wed Sep 23, 2009 1:29 am Post subject: |
|
|
| sakya wrote: | Hi! :)
| liberty wrote: | | Torch wrote: | | Call it from a kernel module. |
How to? Is there a sample? |
Yes, the prx you are using in your cueplayer. :D
| Code: | PSP_EXPORT_FUNC(displayEnable)
PSP_EXPORT_FUNC(displayDisable) |
Ciaooo
Sakya |
I tried compiling that prx, that is the one in your lightmp3. But it is linking aginst the pspsystemctrl_kernel. My SDK does not have this library.
If I uses your compiled support.prx and supportlib.o directly. The cueplayer can run, but the displayDisable is not working. |
|
| Back to top |
|
 |
sakya
Joined: 28 Apr 2006 Posts: 190
|
Posted: Wed Sep 23, 2009 1:52 am Post subject: |
|
|
Hi! :)
Here you can find a kernel prx sample:
http://www.sakya.it/downloads/testPer352.rar
The sample is about sceDisplayGetBrightness and sceDisplaySetBrightness
It shouldn't be difficult to modify it. ;)
Ciaooo
Sakya |
|
| Back to top |
|
 |
liberty
Joined: 16 Sep 2009 Posts: 35
|
Posted: Wed Sep 23, 2009 12:21 pm Post subject: |
|
|
| sakya wrote: | Hi! :)
Here you can find a kernel prx sample:
http://www.sakya.it/downloads/testPer352.rar
The sample is about sceDisplayGetBrightness and sceDisplaySetBrightness
It shouldn't be difficult to modify it. ;)
Ciaooo
Sakya |
Thank you very very much. I get it working now and updated my cueplayer. One more thing to ask:
How to know these addresses in:
STUB_FUNC 0xAC18FDEC,displayEnable
STUB_FUNC 0xDA2E4C8C,displayDisable
or
IMPORT_FUNC "sceDisplay_driver",0x946155FD,sceDisplayEnable371
IMPORT_FUNC "sceDisplay_driver",0x32B67781,sceDisplayDisable371 |
|
| Back to top |
|
 |
sakya
Joined: 28 Apr 2006 Posts: 190
|
Posted: Wed Sep 23, 2009 10:16 pm Post subject: |
|
|
Hi! :)
| liberty wrote: | How to know these addresses in:
STUB_FUNC 0xAC18FDEC,displayEnable
STUB_FUNC 0xDA2E4C8C,displayDisable
or
IMPORT_FUNC "sceDisplay_driver",0x946155FD,sceDisplayEnable371
IMPORT_FUNC "sceDisplay_driver",0x32B67781,sceDisplayDisable371 |
The supportlib.S file is generated with the command:
| Code: | | psp-build-exports -s file.exp |
The address for other .S file are here:
http://silverspring.lan.st/
Ciaooo
Sakya |
|
| Back to top |
|
 |
liberty
Joined: 16 Sep 2009 Posts: 35
|
Posted: Fri Sep 25, 2009 12:50 am Post subject: |
|
|
| sakya wrote: | Hi! :)
| liberty wrote: | How to know these addresses in:
STUB_FUNC 0xAC18FDEC,displayEnable
STUB_FUNC 0xDA2E4C8C,displayDisable
or
IMPORT_FUNC "sceDisplay_driver",0x946155FD,sceDisplayEnable371
IMPORT_FUNC "sceDisplay_driver",0x32B67781,sceDisplayDisable371 |
The supportlib.S file is generated with the command:
| Code: | | psp-build-exports -s file.exp |
The address for other .S file are here:
http://silverspring.lan.st/
Ciaooo
Sakya |
Thank you very much! It seems that I know how it it is working now somehow. |
|
| Back to top |
|
 |
|