How to use sceDisplayDisable on newer firmware?

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

Moderators: cheriff, TyRaNiD

Post Reply
liberty
Posts: 33
Joined: Wed Sep 16, 2009 11:30 am

How to use sceDisplayDisable on newer firmware?

Post by liberty »

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

Post by Torch »

Call it from a kernel module.
liberty
Posts: 33
Joined: Wed Sep 16, 2009 11:30 am

Post by liberty »

Torch wrote:Call it from a kernel module.
How to? Is there a sample?
sakya
Posts: 190
Joined: Fri Apr 28, 2006 5:48 pm
Contact:

Post by sakya »

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: Select all

PSP_EXPORT_FUNC(displayEnable)
PSP_EXPORT_FUNC(displayDisable)
Ciaooo
Sakya
liberty
Posts: 33
Joined: Wed Sep 16, 2009 11:30 am

Post by liberty »

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: Select all

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.
sakya
Posts: 190
Joined: Fri Apr 28, 2006 5:48 pm
Contact:

Post by sakya »

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
liberty
Posts: 33
Joined: Wed Sep 16, 2009 11:30 am

Post by liberty »

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
sakya
Posts: 190
Joined: Fri Apr 28, 2006 5:48 pm
Contact:

Post by sakya »

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: Select all

psp-build-exports -s file.exp
The address for other .S file are here:
http://silverspring.lan.st/

Ciaooo
Sakya
liberty
Posts: 33
Joined: Wed Sep 16, 2009 11:30 am

Post by liberty »

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: Select all

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