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 

How to use sceDisplayDisable on newer firmware?

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



Joined: 16 Sep 2009
Posts: 35

PostPosted: Sun Sep 20, 2009 10:30 am    Post subject: How to use sceDisplayDisable on newer firmware? Reply with quote

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
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Tue Sep 22, 2009 5:00 am    Post subject: Reply with quote

Call it from a kernel module.
Back to top
View user's profile Send private message
liberty



Joined: 16 Sep 2009
Posts: 35

PostPosted: Tue Sep 22, 2009 5:07 am    Post subject: Reply with quote

Torch wrote:
Call it from a kernel module.


How to? Is there a sample?
Back to top
View user's profile Send private message
sakya



Joined: 28 Apr 2006
Posts: 190

PostPosted: Tue Sep 22, 2009 8:23 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
liberty



Joined: 16 Sep 2009
Posts: 35

PostPosted: Wed Sep 23, 2009 1:29 am    Post subject: Reply with quote

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
View user's profile Send private message
sakya



Joined: 28 Apr 2006
Posts: 190

PostPosted: Wed Sep 23, 2009 1:52 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
liberty



Joined: 16 Sep 2009
Posts: 35

PostPosted: Wed Sep 23, 2009 12:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
sakya



Joined: 28 Apr 2006
Posts: 190

PostPosted: Wed Sep 23, 2009 10:16 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
liberty



Joined: 16 Sep 2009
Posts: 35

PostPosted: Fri Sep 25, 2009 12:50 am    Post subject: Reply with quote

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
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