| View previous topic :: View next topic |
| Author |
Message |
nugi
Joined: 11 Sep 2005 Posts: 6
|
Posted: Sun Sep 11, 2005 3:38 am Post subject: 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~ |
|
| Back to top |
|
 |
adresd
Joined: 17 Jan 2004 Posts: 43
|
Posted: Sun Sep 11, 2005 11:07 pm Post subject: |
|
|
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 :) |
|
| Back to top |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Mon Sep 12, 2005 5:24 am Post subject: |
|
|
| 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 :) |
He was asking about how to turn off the screen using code.
I think you can use scePowerTick() to do what you want. See psppower.h in PSPSDK. |
|
| Back to top |
|
 |
jockyw2001
Joined: 29 Sep 2005 Posts: 339
|
Posted: Mon Feb 26, 2007 2:00 am Post subject: |
|
|
Is there a sceKernelPowerTick() function as well?
What's the difference between them? |
|
| Back to top |
|
 |
adrahil
Joined: 16 Mar 2006 Posts: 277
|
Posted: Mon Feb 26, 2007 3:05 am Post subject: |
|
|
| set the display enable bit to 0 in the bc10* address :) |
|
| Back to top |
|
 |
SilverSpring
Joined: 27 Feb 2007 Posts: 115
|
Posted: Tue Feb 27, 2007 9:55 pm Post subject: |
|
|
| sceDisplaySetBrightness(0, 0) will turn the backlight off (screen will still be there, just no backlight). If you want to completely disable the screen, you could try sceDisplayDisable(). |
|
| Back to top |
|
 |
adrahil
Joined: 16 Mar 2006 Posts: 277
|
Posted: Wed Feb 28, 2007 5:05 am Post subject: |
|
|
| And sceDisplayEnable() to turn it on again ;) |
|
| Back to top |
|
 |
atari800
Joined: 22 Jun 2007 Posts: 2
|
Posted: Fri Jun 22, 2007 11:09 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Sun Jun 24, 2007 4:14 pm Post subject: |
|
|
did you try
| Code: |
sceDisplaySetBrightness(0, 0)
|
as suggested?
It works for me. |
|
| Back to top |
|
 |
ulysse31
Joined: 12 Apr 2007 Posts: 1
|
Posted: Mon Jun 25, 2007 6:16 pm Post subject: |
|
|
| Did you try to call int sceDisplaySetFrameBuf(NULL,0,anything,anything)? |
|
| Back to top |
|
 |
sakya
Joined: 28 Apr 2006 Posts: 190
|
Posted: Mon Jun 25, 2007 11:49 pm Post subject: |
|
|
Hi! :)
| Art wrote: | did you try
| Code: |
sceDisplaySetBrightness(0, 0)
|
as suggested?
It works for me. |
Since I'm interested in both sceDisplaySetBrightness and sceDisplayDisable can you please explain what's mandatory to use these functions?
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 |
|
| Back to top |
|
 |
youresam
Joined: 06 Nov 2005 Posts: 87
|
Posted: Tue Jun 26, 2007 4:20 pm Post subject: |
|
|
| I am also having trouble using that function. |
|
| Back to top |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Tue Jun 26, 2007 4:27 pm Post subject: |
|
|
Chuck this in your program with your other defines
| Code: |
#define sceDisplaySetBrightness sceDisplay_driver_9E3C6DC6
void sceDisplay_driver_9E3C6DC6(int a0,int a1); /*a0 0-100,a1 = 0/1 (set to 0)*/
|
libs I'm using in a program with it working are:
| Code: |
LIBS = -lpspaudiolib -lpspaudio -lpspdebug -lstdc++ -lpsphprm_driver -lpspusb -lpspusbstor -lpsprtc -lpspvfpu -lpspgum -lpspgu -lpsppower -lpng -lz -lm -lpspdisplay_driver
|
I don't know which are required sorry, but some there are obviously not.
Art. |
|
| Back to top |
|
 |
youresam
Joined: 06 Nov 2005 Posts: 87
|
Posted: Wed Jun 27, 2007 6:45 am Post subject: |
|
|
| undefined reference to `sceDisplay_driver_9E3C6DC6' |
|
| Back to top |
|
 |
atari800
Joined: 22 Jun 2007 Posts: 2
|
Posted: Wed Jul 11, 2007 12:32 am Post subject: |
|
|
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) |
|
| Back to top |
|
 |
weltall
Joined: 20 Feb 2004 Posts: 310
|
|
| Back to top |
|
 |
|