Completely turn off display. how to?
Completely turn off display. how to?
Hello~
I'm wondering how to make my psp turn off LCD display completely.
I've tried sceGuDisplay(0), but it does not turn off LCD completely.
sceGuDisplay(0) command make the screen be black.
But LCD back light seems to be turned on.
The display will completely turned off when display off timeout occurs (controlled by system.)
Please let me know how to turn off the display completely.
Thank you~
I'm wondering how to make my psp turn off LCD display completely.
I've tried sceGuDisplay(0), but it does not turn off LCD completely.
sceGuDisplay(0) command make the screen be black.
But LCD back light seems to be turned on.
The display will completely turned off when display off timeout occurs (controlled by system.)
Please let me know how to turn off the display completely.
Thank you~
He was asking about how to turn off the screen using code.adresd wrote:hold the display button for a few seconds and it will power down the display, leaving your code still running.
This has been tested in PSPMediaCenter.
press it again to get the display back :)
I think you can use scePowerTick() to do what you want. See psppower.h in PSPSDK.
-
- Posts: 339
- Joined: Thu Sep 29, 2005 4:19 pm
-
- Posts: 110
- Joined: Tue Feb 27, 2007 9:43 pm
- Contact:
Super noob - so please forgive me
I am trying to get sceDisplayEnable() and sceDisplayDisable() to work.
have tried -lpspdisplay_kernel & -lpspdisplay_driver and both together
Even tossed in:
#include "pspdisplay_kernel.h" (driver too)
At best it compiles but when it loads - it locks up psp
I upgraded PSPtoolchain (svn)
This made the compiles smaller but didnt help me with my problem
Does someone have advice or an example?
Thanks in advance
I am trying to get sceDisplayEnable() and sceDisplayDisable() to work.
have tried -lpspdisplay_kernel & -lpspdisplay_driver and both together
Even tossed in:
#include "pspdisplay_kernel.h" (driver too)
At best it compiles but when it loads - it locks up psp
I upgraded PSPtoolchain (svn)
This made the compiles smaller but didnt help me with my problem
Does someone have advice or an example?
Thanks in advance
did you try
as suggested?
It works for me.
Code: Select all
sceDisplaySetBrightness(0, 0)
It works for me.
Hi! :)
I tried to write a simple program that uses sceDisplaySetBrightness but it crash as the function is executed.
I included pspdisplay_kernel.h, added -lpspdisplay_driver to LIBS in makefile (and updated my toolchain) and made the program run in kernel mode but sceDisplaySetBrightness doesen't seem to work.
What I'm doing wrong?
Can someone provide a little example for both sceDisplaySetBrightness and sceDisplayDisable?
Many thanks
Ciao
Sakya
Since I'm interested in both sceDisplaySetBrightness and sceDisplayDisable can you please explain what's mandatory to use these functions?Art wrote:did you tryas suggested?Code: Select all
sceDisplaySetBrightness(0, 0)
It works for me.
I tried to write a simple program that uses sceDisplaySetBrightness but it crash as the function is executed.
I included pspdisplay_kernel.h, added -lpspdisplay_driver to LIBS in makefile (and updated my toolchain) and made the program run in kernel mode but sceDisplaySetBrightness doesen't seem to work.
What I'm doing wrong?
Can someone provide a little example for both sceDisplaySetBrightness and sceDisplayDisable?
Many thanks
Ciao
Sakya
Chuck this in your program with your other defines
libs I'm using in a program with it working are:
I don't know which are required sorry, but some there are obviously not.
Art.
Code: Select all
#define sceDisplaySetBrightness sceDisplay_driver_9E3C6DC6
void sceDisplay_driver_9E3C6DC6(int a0,int a1); /*a0 0-100,a1 = 0/1 (set to 0)*/
Code: Select all
LIBS = -lpspaudiolib -lpspaudio -lpspdebug -lstdc++ -lpsphprm_driver -lpspusb -lpspusbstor -lpsprtc -lpspvfpu -lpspgum -lpspgu -lpsppower -lpng -lz -lm -lpspdisplay_driver
Art.
I added -lpsppower -lpspdisplay_driver to my LIBS in the makefile
when I have sceDisplayEnable or scePowerTick or anything like this - if the program is in Game150 or GAME (kernel set to 1.50) - blank screen when it starts and I need ot reboot PSP to break out
if it is in Game340 - I get The Game could not be started - (8002013c)
when I have sceDisplayEnable or scePowerTick or anything like this - if the program is in Game150 or GAME (kernel set to 1.50) - blank screen when it starts and I need ot reboot PSP to break out
if it is in Game340 - I get The Game could not be started - (8002013c)
that was replaced with the name of the functionyouresam wrote:undefined reference to `sceDisplay_driver_9E3C6DC6'
#endif
#ifdef F_sceDisplay_driver_0016
IMPORT_FUNC "sceDisplay_driver",0x9E3C6DC6,sceDisplaySetBrightness
#endif
#ifdef F_sceDisplay_driver_0017
IMPORT_FUNC "sceDisplay_driver",0x31C4BAA8,sceDisplayGetBrightness
#endif
http://svn.ps2dev.org/filedetails.php?r ... rev=0&sc=0