If you really can make this work you will be the man.
![]()
If you really can make this work you will be the man.
![]()
ill just make a quick app do it all, do you know a way to actually shut thephone down?
Here you are:
Code:/* * shutdown.c * Author: Dave Henriksen <dave.henriksen37@gmail.com> * * To compile this utility for the iPhone: * $ arm-apple-darwin-cc -Wall -o shutdown shutdown.c * * Place in /sbin and chmod 755 /sbin/shutdown to enable for execution */ #include <unistd.h> #include <stdio.h> #include <sys/reboot.h> void usage() { printf("Usage:\n\n"); printf("To reboot the iPhone: shutdown -r\n"); printf("To turn off the iPhone: shutdown -h\n\n"); return; } int main(int argc, char* argv[]) { if(argc==1) { usage(); } else if ((argc == 2) && (argv[1][0] == '-')) { switch (argv[1][1]) { case 'h': printf("Turning the iPhone off now ...\n"); return reboot(RB_HALT); break; case 'r': printf("Rebooting the iPhone now ...\n"); return reboot(RB_AUTOBOOT); break; default: usage(); break; } } else usage(); }
oh you made a shutdown.. i was going to do that but we were talking in irc and figured out a different way. bsd subsystem on cydia is prob getting updated tom
p.s. francis is weird
Last edited by drunknbass; 06-20-2008 at 12:24 PM.
It would be awesome if u can do an app to replace the home button, placing a button in the notification bar, so tapping there will bring you to the home, that would be awesome for ppl having trouble with the home button![]()
clickonce does that.......kinda
http://www.appleiphoneschool.com/200...clickonce-001/
MacBook Pro OS X SNOW Leopard![]()
iPhone 4 16GBiOS 4.2
iPad WiFi 64GB iOS 4.2
BlackBerry Curve 3G (9300)
For me it´s working like a charm...
Solution for my Sleep/Power Button which not works...
But i have a issue (no problem for me at all..i´m only telling you guys)
When i use LOCK is not the "same same same" thing that
i press the sleep button... i see that because for example..for me the IPOD/music playing stop if i use it...different that pressing the button..
I´m only warning that..no problem for me
and thnx again Xian for this..helped me a lot
There is a new app called "powermanager". It's in the modmyifone.com/installer.xlm source.
The power manager gives you different options to restart sb.
Also, there is also something called iReboot (shutdown binary by Dave Henriksen).
All of these are doing similar thing ... very confusing !!!
Last edited by dtube; 06-20-2008 at 08:12 PM.
Bookmarks