pwr+R for reboot, pwr+S for shutdown, pwr+X for recovery

Discussion in 'Bugless' started by Se7enLC, Jun 21, 2010.

  1. Se7enLC

    Se7enLC Active Member

    Joined:
    Nov 16, 2009
    Messages:
    1,262
    Likes Received:
    0
    Trophy Points:
    36
    Ratings:
    +0
    EDIT: This is no longer needed or recommmended in BB 0.3! These key commands are already being used, now.

    I just redid my init script to have the following shortcuts:

    Power+X - reboot in recovery
    Power+S - shutdown (and stay down)
    Power+R - regular reboot

    Thanks Pete, for enabling those shortcuts and making it easy to change them! I'll post my update.zip here once I finish testing it, in case people want to use it.

    Details: This script is based on a kernel update using Koush's anyrom format. It dumps your current kernel to a file in /tmp, unpacks it to get the current kernel binary, then re-packs it with the new ramdisk file (containing the updated hidden shutdown option keys) before applying it. The end result is that you can apply this relatively small update to get pete's new features, but with my updated button choices. Does anybody know why /system/bin/ping is being chmodded in the standard kernel updater? That seems like it doesn't belong at all...

    Standard disclaimer - I take no responsibility if it breaks something, make sure you back up your stuff, first. This script is only intended for BB Froyo 0.2.1, should work with any kernel.
     
    Last edited: Jun 28, 2010
  2. essplode

    essplode New Member

    Joined:
    May 12, 2010
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    Nice! Thank you

    Quick question though. Does this replace pete's shortcuts or is it in addition to them?
     
  3. Se7enLC

    Se7enLC Active Member

    Joined:
    Nov 16, 2009
    Messages:
    1,262
    Likes Received:
    0
    Trophy Points:
    36
    Ratings:
    +0
    It replaces them.
     
  4. exdirrk

    exdirrk New Member

    Joined:
    Jan 13, 2010
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    Is this just the shutdown script replacement or is this going to reinstall bb kernel all together w/ those changes
     
  5. Se7enLC

    Se7enLC Active Member

    Joined:
    Nov 16, 2009
    Messages:
    1,262
    Likes Received:
    0
    Trophy Points:
    36
    Ratings:
    +0
    Neither. The shutdown script and kernel are unchanged. Only the ramdisk is modified, and the change is just to the shortcut key assignments.
     
  6. bradl3y

    bradl3y Member

    Joined:
    Nov 25, 2009
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    oh wow, so its just a simple update.zip just like a kernel?
     
  7. Se7enLC

    Se7enLC Active Member

    Joined:
    Nov 16, 2009
    Messages:
    1,262
    Likes Received:
    0
    Trophy Points:
    36
    Ratings:
    +0
    Yep! You can put anything in an update.zip.
     
  8. exdirrk

    exdirrk New Member

    Joined:
    Jan 13, 2010
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    That's what I meant. Thanks
     
  9. elninost0rm

    elninost0rm Member

    Joined:
    Apr 27, 2010
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Doesn't work for me.

    I run it from clockwork, seems to install successfully based on the text.

    Reboot.

    Pete's old shortcuts are still in effect.

    Any ideas?

    Using Chevy's 5-LV 1000 if it matters.
     
  10. Se7enLC

    Se7enLC Active Member

    Joined:
    Nov 16, 2009
    Messages:
    1,262
    Likes Received:
    0
    Trophy Points:
    36
    Ratings:
    +0
    Take a look in /init.sholes.rc - do the keycodes look modifed?

    Also - do you have a link for the kernel you're running? I can only find the 7 slot kernel
     
    Last edited: Jun 21, 2010
  11. elninost0rm

    elninost0rm Member

    Joined:
    Apr 27, 2010
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    #shutdown options by pete

    service poweroff /sys/bin/shutdown
    disabled
    keycodes 107 211


    Etc

    Will post more if you need

    EDIT: I meant 7, sorry.
     
  12. Se7enLC

    Se7enLC Active Member

    Joined:
    Nov 16, 2009
    Messages:
    1,262
    Likes Received:
    0
    Trophy Points:
    36
    Ratings:
    +0
    It doesn't look like the changes are applying. Not sure what the deal is there. Has anyone else gotten this to work?
     
  13. B3y0ndD34th

    B3y0ndD34th Member

    Joined:
    Mar 19, 2010
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    I haven't tried I wanted to take a look at your set up and modify it a bit I want to include three keys to reset the phone without opening the keyboard, it's possible and will reduce accidental restarts, but I haven't installed yours yet I'll give it a try in a few.

    **EDIT** It would appear that the init.sholes.rc returns to its original state, the key codes are the same, unfortunately the mod didn't have any effect :/
     
    Last edited: Jun 21, 2010
  14. loumarjr

    loumarjr Member

    Joined:
    May 9, 2010
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    New York
    Ratings:
    +0
    It didnt work for me either.
     
  15. Se7enLC

    Se7enLC Active Member

    Joined:
    Nov 16, 2009
    Messages:
    1,262
    Likes Received:
    0
    Trophy Points:
    36
    Ratings:
    +0
    well damn, I just tried it out, and it's NOT working. The version I had installed was with a new kernel, and in testing this one I tried to re-apply the existing kernel - which didn't work, apparently. Stay tuned, I'll post when I have it working for real.
     
Search tags for this page

android shutdown from terminal

,

android terminal emulator shutdown command

,
reboot and shutdown no root phone
,

shutdown command android

,
shutdown r pwr