Advertising (This ad goes away for registered users. You can Login or Register)

Brightness Control v1.5 [UPDATE]

Plugins for PSPs running on 6.XX
fLaSh
Posts: 23
Joined: Mon Apr 16, 2012 3:30 am

Re: Brightness v1.2

Post by fLaSh » Wed May 02, 2012 4:40 pm

fLaSh wrote:
gdljjrod wrote:v1.2 fix key buttons thanks
but when I press the button screen switches to the same values...
Example: level 54 changing to 44
from 84 to 36
my psp is slim 200 CFW 6.60ME1.8 and 6.60PRO nightly...
In your psp slim 2000, you got these livels:
36, 44, 56, 68
Alright?

PS: the plugin works fine on a PSPgo, i only have this model..

The "problem" is in this function:

Code: Select all

void setBrightnessImpose(int value){
	u32 k1;
    k1 = pspSdkSetK1(0);
	// -Set the Backlight level (0-4)
	// 0 = 60
	// 1 = 72
	// 2 = 84
	// 3 = 44
	// 4 = 0 (screen off)
	if (value < 44) {
		sceImposeSetParam(PSP_IMPOSE_BACKLIGHT_BRIGHTNESS, 3);
	} else if (value < 60) {
		sceImposeSetParam(PSP_IMPOSE_BACKLIGHT_BRIGHTNESS, 0);
	} else if (value < 72) {
		sceImposeSetParam(PSP_IMPOSE_BACKLIGHT_BRIGHTNESS, 1);
	} else if (value < 84) {
		sceImposeSetParam(PSP_IMPOSE_BACKLIGHT_BRIGHTNESS, 2);
	} else {
		sceImposeSetParam(PSP_IMPOSE_BACKLIGHT_BRIGHTNESS, 3);
	}	
    pspSdkSetK1(k1);
}
I will add the model verification to this function..

if someone give me the other levels for other models, I'm thankful ..

thanks :)

EDIT:
Here is the code to fix the psp 2000:

Code: Select all

//Main declaration
enum {
	PSP_1000 = 0,
	PSP_2000 = 1,
	PSP_3000 = 2,
	PSP_4000 = 3,
	PSP_GO   = 4,
	PSP_7000 = 6,
	PSP_9000 = 8,
	PSP_11000 = 10,
};

//And update this function with this code:
void setBrightnessImpose(int value){
	u32 k1;
	int psp_model;
	int *livel;
    k1 = pspSdkSetK1(0);
	psp_model = sceKernelGetModel();
	// PSP_1000 = 0,
	// PSP_2000 = 1,
	// PSP_3000 = 2,
	// PSP_4000 = 3,
	// PSP_GO   = 4,
	// PSP_7000 = 6,
	// PSP_9000 = 8,
	// PSP_11000 = 10,
	// per model set values:
	if ((psp_model == PSP_1000) || (psp_model == PSP_2000)) {
		livel[0] = 36;
		livel[1] = 44;
		livel[2] = 56;
		livel[3] = 68;
	} else {
		livel[0] = 44;
		livel[1] = 60;
		livel[2] = 72;
		livel[3] = 84;
	}
	// -Set the Backlight level (0-4)
	// 0 = 60
	// 1 = 72
	// 2 = 84
	// 3 = 44
	// 4 = 0 (screen off)
	if (value < livel[0]) {
		sceImposeSetParam(PSP_IMPOSE_BACKLIGHT_BRIGHTNESS, 3);
	} else if (value < livel[1]) {
		sceImposeSetParam(PSP_IMPOSE_BACKLIGHT_BRIGHTNESS, 0);
	} else if (value < livel[2]) {
		sceImposeSetParam(PSP_IMPOSE_BACKLIGHT_BRIGHTNESS, 1);
	} else if (value < livel[3]) {
		sceImposeSetParam(PSP_IMPOSE_BACKLIGHT_BRIGHTNESS, 2);
	} else {
		sceImposeSetParam(PSP_IMPOSE_BACKLIGHT_BRIGHTNESS, 3);
	}	
    pspSdkSetK1(k1);
}
ill wait for new values...
Advertising

fLaSh
Posts: 23
Joined: Mon Apr 16, 2012 3:30 am

Re: Brightness v1.3 [Update]

Post by fLaSh » Fri May 04, 2012 6:21 pm

New version 1.3 available!
See firts post..

Changes:

Code: Select all

* New SCREEN button steps (30, 44, 60, 72, 84) for all psp models
* Pressing SCREEN for 2 secunds the display turn off and to back only response to SCREEN button press (nice for music)..
* Fix psp 1k and 2k Brightness livels
* Optmized the code;
* Fix some bugs

(the SCREEN button works like a sys pacth, all operations are controlled manually)
I think for now, this plugin is the best to control the Brightness in your psp :)
Advertising

User avatar
Casavult
Moderator
Posts: 2344
Joined: Wed Jun 08, 2011 4:22 pm
Location: UK and Middle East

Re: Brightness v1.3 [Update]

Post by Casavult » Fri May 04, 2012 6:49 pm

Thank your for 1.3. I really like this plug-in and I've seen a big difference in battery power saving! ;) I usually keep my brightness to around 20 because I mostly use my PSP when I'm at home with good lighting around me. :)
• PS4Pro 2TB OFW • PS3 3k 1TB OFW • PS3 Slim 2k 500GB 4.84.2 DEX Rebug • PS3 Slim 2k 250GB 4.84.2 CEX Rebug •
• PSV 1k 32GB 3.60 HENkaku • 3x PSP 2k (TA-085v1) 128GB 6.60 ME-2.3 • PSP 2k (TA-085v2) 32GB 6.60 ME-2.3 •

fLaSh
Posts: 23
Joined: Mon Apr 16, 2012 3:30 am

Re: Brightness v1.4

Post by fLaSh » Sun May 13, 2012 3:30 am

New version released!

Changes:
[+] Possibility to changing the brightness levels;
[+] By defaut the configs path is in ef0 for PSPgo only, this avoids the problem running ISO\Eboot in M2 and EF, both sides the same configs;
[+] Fix some bugs.
INI with new configs, for brightness levels!

Code: Select all

#-----------------------------------------------------------------
#	You can make up to 5 brightness levels.
# If you want to disable this feature, set 0 in all levels.
# The value must be greater than 10 and less than 101.
Livel1 = 20;
Livel2 = 40;
Livel3 = 60;
Livel4 = 80;
Livel5 = 0;
#-----------------------------------------------------------------

User avatar
Casavult
Moderator
Posts: 2344
Joined: Wed Jun 08, 2011 4:22 pm
Location: UK and Middle East

Re: Brightness Control v1.4

Post by Casavult » Wed May 16, 2012 1:09 am

Thanks for the update, dude! ;)
• PS4Pro 2TB OFW • PS3 3k 1TB OFW • PS3 Slim 2k 500GB 4.84.2 DEX Rebug • PS3 Slim 2k 250GB 4.84.2 CEX Rebug •
• PSV 1k 32GB 3.60 HENkaku • 3x PSP 2k (TA-085v1) 128GB 6.60 ME-2.3 • PSP 2k (TA-085v2) 32GB 6.60 ME-2.3 •

tellko
Posts: 96
Joined: Wed Apr 06, 2011 5:55 pm

Re: Brightness Control v1.4

Post by tellko » Thu May 17, 2012 4:39 pm

when its enabled, hold+ plugin stops working

fLaSh
Posts: 23
Joined: Mon Apr 16, 2012 3:30 am

Re: Brightness Control v1.4

Post by fLaSh » Thu May 17, 2012 10:32 pm

tellko wrote:when its enabled, hold+ plugin stops working
Strange, does not work .. I'll see what happens ..
Thanks to report :)

tellko
Posts: 96
Joined: Wed Apr 06, 2011 5:55 pm

Re: Brightness Control v1.4

Post by tellko » Fri May 18, 2012 1:26 pm

no problem. i found another bug. when "power save settings >> backlight auto-off" is set to 2, 5 or 10 minutes, the brightness automatically changes to 44 (or 45 not sure) after exactly 1 minute. (also when the backlight auto turns-off, the brightness changes by itself too)


EDIT:
but it works fine when the "backlight auto-off" is disabled
Last edited by tellko on Sat May 19, 2012 2:37 pm, edited 1 time in total.

Maxima
Posts: 39
Joined: Mon Aug 01, 2011 10:12 am

Re: Brightness Control v1.4

Post by Maxima » Sat May 19, 2012 8:52 am

Nice plugin, thanks for this!

fLaSh
Posts: 23
Joined: Mon Apr 16, 2012 3:30 am

Re: Brightness Control v1.5 [UPDATE]

Post by fLaSh » Thu May 24, 2012 1:42 am

New version released, see firts post!
[+] Fixed power saving feature, the tick that changed the brightness, related with "Auto Screen Off" (power save settings >> backlight auto-off)
NOTE: the sceDisplaySetBrightness function, is hooked by this plugin, then only this plugin can change the brightness :)
[+] Add new Ini config --> StartupMSG = 1 # Shows the brightness message on plugin start up
About the problem with Hold+ plugin, i need some more time to analyze..
I used the same source than hold+ sysconhk.c \ sysconhk.h and I think the problem is here..

Thanks

Post Reply

Return to “Plugins”