[Tut] Disable Accelerometer in Safari and Coverflow

Discussion in 'iPod touch Firmware 2.X' started by kookmasteraj, Jan 1, 2009.

  1. kookmasteraj

    kookmasteraj New Member

    Joined:
    Jun 24, 2008
    Messages:
    63
    Likes Received:
    1
    Device:
    iPod touch
    Cydia info:
    ----
    Name: NoRotation
    Description: Sick of Safari and iPod rotating while laying in bed? Disable the rotation with this SBSettings toggle.
    More Info:
    This is a mobile substrate plugin, that is toggled by SBSettings, to disable autorotation in safari and iPod. Simply install and Respring.
    Usage:
    In the default config:
    If you enable it in SBSettings:
    In the iPod app, autorotation will be disabled immediately and it wont rotate into coverflow at all.
    In safari one rotation every start will work. That means if you hold your
    iPhone/iPod on start in landscape mode, safari will start, rotate into
    landscape mode and from then on not rotate anymore until you press home
    button and start it again. Then it will rotate once again and stop.

    You have the possibility to change various parameters in the config:
    /var/mobile/Library/SBSettings/Toggles/NoRotation/NoRotation.plist

    SafariAlwaysDisabled = 0; <-- if set to 1, the plugin will never be loaded into Safari and Safari will always rotate (no matter whether you toggle it on or off in SBSettings)
    SafariAlwaysEnabled = 0; <-- if set to 1, the plugin will always be loaded into Safari and Safari will never rotate (no matter whether you toggle it on or off in SBSettings)
    SafariRotateOnce = 1; <-- if set to 1, safari will rotate once at start to allow you to set it to landscape mode or portrait and then it wont rotate anymore
    enabled = 1; <-- this is toggled by SBSettings, dont touch it
    iPodAlwaysDisabled = 0; <-- if set to 1, the plugin will never be loaded into iPod and iPod will always rotate (no matter whether you toggle it on or off in SBSettings)
    iPodAlwaysEnabled = 0; <-- if set to 1, the plugin will always be loaded into iPod and iPod will never rotate (no matter whether you toggle it on or off in SBSettings)
    logLevel = 1; <-- defines how much should be logged to /var/log/syslog, change it only for debugging
    So
    this gives you a lot of flexibility. If you dont like coverflow at all
    for example you can set iPodAlwaysEnabled to 1 and prevent coverflow
    always from rotating and at the same be able to toggle the rotation in
    safari on and off.

    3/17/09 UPDATE
    Norotation has been on the xsellive repo for about a week now. Go to Cydia and install it now!

    Or
    You can download the tar and install it manually if you want!:
    http://www.[PIRACY.mf].com/file/lz3zjyjykmy/...-by-crash-x.tar

    Installation:
    Just unpack it and copy all the stuff to the appropriate folders (you will see what belongs where once you unpack it).
    Do not forget to chown -R mobile /var/mobile/Library/SBSettings/Toggles/NoRotation/

    CREDITS to the amazing crash-x !!!!!!
  2. BaseballMVP755

    BaseballMVP755 Banned

    Joined:
    Dec 1, 2008
    Messages:
    624
    Likes Received:
    0
    o sweet.. i hate it wen im lying in bed and this happens, thnks
  3. ipodtouch1234

    ipodtouch1234 Active Member

    Joined:
    Oct 21, 2007
    Messages:
    1,353
    Likes Received:
    0
    Device:
    iPad 2 (Black)
    wow! This is great! I hate when it turns... mainly in coverflow, usually don't have an issue with safari. I'm glad it can differentiate.
  4. kookmasteraj

    kookmasteraj New Member

    Joined:
    Jun 24, 2008
    Messages:
    63
    Likes Received:
    1
    Device:
    iPod touch
    If you only want on disable you cant change it by editing
    /var/mobile/Library/SBSettings/Toggles/NoRotation/NoRotation.plist
  5. jetracer

    jetracer Member

    Joined:
    Feb 12, 2008
    Messages:
    330
    Likes Received:
    1
    I've been waiting for this. Thank you so much. Works like a charm for me, love it!
  6. Baggy Spandex

    Baggy Spandex Active Member

    Joined:
    Apr 27, 2008
    Messages:
    1,274
    Likes Received:
    14
    Device:
    iPad 2 (White)
    ??? what does chown mean?
  7. ipodtouch1234

    ipodtouch1234 Active Member

    Joined:
    Oct 21, 2007
    Messages:
    1,353
    Likes Received:
    0
    Device:
    iPad 2 (Black)
    I think it is setting the proper permissions.
  8. Baggy Spandex

    Baggy Spandex Active Member

    Joined:
    Apr 27, 2008
    Messages:
    1,274
    Likes Received:
    14
    Device:
    iPad 2 (White)
    got it to work! its sweet thanks!

    oh yeah...
    from wiki - the chown command is used on Unix-like systems to change the owner of a file.
  9. Shawnov

    Shawnov New Member

    Joined:
    Jan 1, 2009
    Messages:
    35
    Likes Received:
    0
    Device:
    iPod touch
    Thanks for this, this is really helpful to lay down while I'm on safari.
  10. loaf-

    loaf- New Member

    Joined:
    Aug 27, 2008
    Messages:
    208
    Likes Received:
    0
    awesome! I was just hoping for something like this this morning. Something I'm safari and the dtunes media player would be nice too, so if we got it wrong, we wouldn't have to quit to bigboss to fix the screen.

Share This Page