Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 41
Like Tree1Likes
Discuss [Release] Lock.app & Shutdown.app for broken Sleep/Power Button on iPhone and iTouch at the Free Toolchain Software (Cydia App's) - Hackint0sh.org; If you really can make this work you will be the man....
  1. #21
    Newbie Array

    Join Date
    Jun 2008
    Posts
    4
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default Can't wait ...

    If you really can make this work you will be the man.



  2. #22
    Professional Array

    Join Date
    Jul 2007
    Posts
    69
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    11

    Default

    Quote Originally Posted by XianLi View Post
    Lock.app is in fact a simple script that restarts the Springboard, so all the apps started with Springboard or who patches it will get closed.

    The advice given by drunknbass solves this problem.
    Now if he wants to provide a binary, i will include it in Lock.app.
    a binary to do what?

  3. #23
    Former Bender
    Guest

    Default

    Quote Originally Posted by drunknbass View Post
    a binary to do what?
    A binary to lock the phone like you mentioned in your previous post. :hack:

  4. #24
    Professional Array

    Join Date
    Jul 2007
    Posts
    69
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    11

    Default

    ill just make a quick app do it all, do you know a way to actually shut thephone down?

  5. #25
    Former Bender
    Guest

    Default

    Quote Originally Posted by drunknbass View Post
    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();
    }


  6. #26
    Professional Array

    Join Date
    Jul 2007
    Posts
    69
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    11

    Default

    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.

  7. #27
    Rookie Array

    Join Date
    Apr 2008
    Posts
    10
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    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

  8. #28
    Board Hero Array lordofdaflies's Avatar

    Join Date
    Dec 2007
    Location
    INDIA
    Posts
    1,134
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    76

    Default

    Quote Originally Posted by TheLaGmAn View Post
    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 16GB iOS 4.2
    iPad WiFi 64GB iOS 4.2
    BlackBerry Curve 3G (9300)

  9. #29
    Piu
    Piu is offline
    Professional Array Piu's Avatar

    Join Date
    Jan 2008
    Location
    Sampa
    Posts
    91
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    11

    Default

    For me its working like a charm...
    Solution for my Sleep/Power Button which not works...

    But i have a issue (no problem for me at all..im 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..

    Im only warning that..no problem for me
    and thnx again Xian for this..helped me a lot

  10. #30
    Administrator Array

    Join Date
    Oct 2007
    Posts
    4,145
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    Default

    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.


 

 
Page 3 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. Iphone 3GS power button broken
    By bdavis in forum iOS 4.x (iPhone OS 4.x)
    Replies: 1
    Last Post: 11-01-2010, 07:09 AM
  2. Replies: 1
    Last Post: 05-11-2010, 03:14 PM
  3. How to reinstall with broken sleep/power button.
    By monsterr2 in forum General
    Replies: 5
    Last Post: 04-08-2010, 04:09 PM
  4. Iphone 2G sleep/wake button broken!
    By azuntt in forum General
    Replies: 0
    Last Post: 04-22-2009, 01:52 AM
  5. Replies: 10
    Last Post: 12-07-2008, 01:08 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 10:07 AM.
twitter, follow us!