In your psp slim 2000, you got these livels: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...
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);
}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);
}