1. You want that $100.00 in your pocket or an Amazon Fire TV don't you? Well here's the deal. With our new updated look we are in desperate need of an updated logo. The 'old' one has certainly served us well, but it's time. Find all the details here: bit.ly/1q0k6Wa
  2. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

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

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

  1. Se7enLC
    Offline

    Se7enLC New Member

    Joined:
    Nov 16, 2009
    Messages:
    1,263
    Likes Received:
    0
    Trophy Points:
    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
    Offline

    essplode New Member

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

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

    Se7enLC New Member

    Joined:
    Nov 16, 2009
    Messages:
    1,263
    Likes Received:
    0
    Trophy Points:
    0
    It replaces them.
  4. exdirrk
    Offline

    exdirrk New Member

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

    Se7enLC New Member

    Joined:
    Nov 16, 2009
    Messages:
    1,263
    Likes Received:
    0
    Trophy Points:
    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
    Offline

    bradl3y New Member

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

    Se7enLC New Member

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

    exdirrk New Member

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

    elninost0rm New Member

    Joined:
    Apr 27, 2010
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    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
    Offline

    Se7enLC New Member

    Joined:
    Nov 16, 2009
    Messages:
    1,263
    Likes Received:
    0
    Trophy Points:
    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
    Offline

    elninost0rm New Member

    Joined:
    Apr 27, 2010
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    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
    Offline

    Se7enLC New Member

    Joined:
    Nov 16, 2009
    Messages:
    1,263
    Likes Received:
    0
    Trophy Points:
    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
    Offline

    B3y0ndD34th New Member

    Joined:
    Mar 19, 2010
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    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
    Offline

    loumarjr New Member

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

    Se7enLC New Member

    Joined:
    Nov 16, 2009
    Messages:
    1,263
    Likes Received:
    0
    Trophy Points:
    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.
  16. Se7enLC
    Offline

    Se7enLC New Member

    Joined:
    Nov 16, 2009
    Messages:
    1,263
    Likes Received:
    0
    Trophy Points:
    0
    Fixed! Download the updated copy in the first post and try it again.

    The unpackbootimg utility names the kernel boot.img-zImage instead of the boot.img-kernel I was expecting. The filename is corrected now, and I just tested it out (it seems to work fine for me).
  17. loumarjr
    Offline

    loumarjr New Member

    Joined:
    May 9, 2010
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    New York
    Works perfectly!! Hopefully Pete can implement your changes in his next release and credit you. Great work!!!!
  18. rickdarris2004
    Offline

    rickdarris2004 New Member

    Joined:
    Apr 8, 2010
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    0
    Works great! Thank you for that work around. I like the feature but kept rebooting my damn phone!
  19. peteralfonso
    Offline

    peteralfonso Premium Member Premium Member Developer

    Joined:
    Mar 18, 2010
    Messages:
    844
    Likes Received:
    0
    Trophy Points:
    0
    LOL I finally popped in the forum and see that you guys are already getting to see some of V0.3 changes before release dancedroid
  20. racketier
    Offline

    racketier New Member

    Joined:
    Feb 27, 2010
    Messages:
    112
    Likes Received:
    0
    Trophy Points:
    0
    Thanks for listening to the users of your roms Pete. Dancing droids for all!! dancedroiddancedroiddancedroid
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