QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

[RELEASE] RemotePower

This is a discussion on [RELEASE] RemotePower within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Hi, If you ever messed with the remote control you probaly noticed the power will go off after a few ...

Reply
 
LinkBack Thread Tools
Old 09-22-2008, 08:50 AM   #1
 
basfreak's Avatar
 
Join Date: Dec 2007
Location: Netherlands
Posts: 147
Trader Feedback: 0
Default [RELEASE] RemotePower

Hi,

If you ever messed with the remote control you probaly noticed the power will go off after a few seconds the reason why is: the psp sends a query if he gets an answer he will doe nothing if nothing is sent back he will put the power off.
With my plugin you can control the power with L+R.

Please remember im still a 13 years old boy from the Netherlands, so my voice is childish and i cant speak english that good.
IMPORTANT NOTICE: No media files are hosted on these forums. By clicking the link below you agree to view content from an external website. We can't be held responsible for the suitability or legality of this material.
I AGREE


Code:
#include <pspctrl.h>
#include <pspsyscon.h>
#include <pspkernel.h> 

PSP_MODULE_INFO("RemotePower", 0x1000, 1, 0);
PSP_MAIN_THREAD_ATTR(0);

#define ON 1
#define OFF 0 
#define RUNNING 1
#define EXIT 0

int currentState = RUNNING;
int powerState = OFF;

int main_thread(SceSize args, void *argp) {
    SceCtrlData pad;
    
    while(currentState == RUNNING) {     
    
             sceCtrlPeekBufferPositive(&pad, 1);
    
                                             if(pad.Buttons & PSP_CTRL_LTRIGGER && pad.Buttons & PSP_CTRL_LTRIGGER) {
                                                            if(powerState == ON) {
                                                                                                     if(sceSysconCtrlHRPower(OFF) < 0) {
                                                                                                                                 currentState = EXIT;
                                                                                                     }
                                                                          powerState = OFF;
                                                            } else {
                                                                                                     if(sceSysconCtrlHRPower(ON) < 0) {
                                                                                                                                 currentState = EXIT;
                                                                                                     }
                                                                          powerState = ON;
                                                            }
                                             } sceKernelDelayThread(100000);
    }          
    
    return 0;
}

int module_start(SceSize argc, void *argp) {
u32 func = 0x80000000 | (u32)main_thread;
SceUID thread = sceKernelCreateThread("main_thread",(void*)func, 0x30, 0x10000, 0, NULL);
if (thread >= 0) {
sceKernelStartThread(thread, argc, argp);
}
return 0;
}
Code:
TARGET = RemotePower
OBJS = main.o

CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)


BUILD_PRX = 1
PSP_FW_VERSION = 401

USE_PSPSDK_LIBC = 1

LIBDIR =
LDFLAGS = -mno-crt0 -nostartfiles
STDLIBS= -lpspsdk -lpspctrl -lpsppower
LIBS=$(STDLIBS)$(YOURLIBS)

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
Cya, Basfreak
Attached Files
File Type: rar RemotePower.rar‎ (1,005 Bytes, 14 views)

Last edited by basfreak; 09-23-2008 at 06:00 AM..
basfreak is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-22-2008, 12:35 PM   #2
Local Tech
 
joseph10444's Avatar
 
Join Date: Oct 2007
Real First Name: Joe
Location: home
Just Played: rockband
Posts: 1,822
Trader Feedback: 0
Default

i dont get this??
will check video
joseph10444 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-22-2008, 09:29 PM   #3

 
Mr_Shizzy's Avatar
 
Join Date: Aug 2007
Posts: 566
Trader Feedback: 0
Default

He is saying, that be SONY default, the headphone remote will actually power down after a few seconds of inactivity until it is given another request...

This plugin keeps the signal from the headphone remote on at all times. Thus, giving you faster response times when using it.


A+ for originality. (I first thought it was another power off plugin by reading the title...) No one has ever released anything like this before.

And hey, this kid is very intelligent. He is only 13 years old, is multi-lingual, and can program in C. He even built a home made head phone power indicator...
So really he deserves a lot of credit.

~Mr. Shizzy
__________________
PSP MODEL: PSP SLIM 2000 TA-085v2
Custom Firmware: 5.50 GEN-D2
Mr_Shizzy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-22-2008, 10:54 PM   #4
 
maxexcloo's Avatar
 
Join Date: Feb 2008
Location: Australia
Posts: 390
Trader Feedback: 0
Default

Nice work!

I would be interested to see how you did it
maxexcloo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-22-2008, 11:21 PM   #5
 
basfreak's Avatar
 
Join Date: Dec 2007
Location: Netherlands
Posts: 147
Trader Feedback: 0
Default

Ill release the source soon its very simple, if you cant wait take a look at pspsyscon.h.
@Shizzy, Thanks
basfreak is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-23-2008, 01:14 AM   #6

Developer
 
Nielkie's Avatar
 
Join Date: Jul 2006
Posts: 549
Trader Feedback: 0
Default

So you just keep calling sceSysconCtrlHRPower?

Regardless, nice work. It's good to see someone in the early teens who can make more than a LUA button tester.
__________________


Nielkie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-23-2008, 01:29 AM   #7

Avada Kedavra
 
Join Date: May 2007
Location: Spain
Posts: 703
Trader Feedback: 0
Default

Quote:
Originally Posted by Nielkie View Post
Regardless, nice work. It's good to see someone in the early teens who can make more than a LUA button tester.
I agree.Keep it up.
Coolj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-23-2008, 05:58 AM   #8
 
basfreak's Avatar
 
Join Date: Dec 2007
Location: Netherlands
Posts: 147
Trader Feedback: 0
Default

Quote:
Originally Posted by Nielkie View Post
So you just keep calling sceSysconCtrlHRPower?

Regardless, nice work. It's good to see someone in the early teens who can make more than a LUA button tester.
Yeah, as i said its really simple.
But maybe someone who cant code need it.

Oh, btw. this isn't my first homebrew, and im working on a new game, but thats still sercret.
basfreak is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-23-2008, 10:28 AM   #9
Enter Custom Title
 
Davee's Avatar
 
Join Date: Sep 2006
Real First Name: Davee
Location: Perth, Scotland
Posts: 1,041
Trader Feedback: 0
Default

Nice release. I don't think everyone should be hyped up about his age... There is many more young developers.
Davee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-23-2008, 10:51 AM   #10

Avada Kedavra
 
Join Date: May 2007
Location: Spain
Posts: 703
Trader Feedback: 0
Default

Quote:
Originally Posted by Davee View Post
Nice release. I don't think everyone should be hyped up about his age... There is many more young developers.
Yeah,like svenzor
Coolj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
release , remotepower

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 05:44 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us