On stock aosp, and pixel android, I can auto rotate the phone up, left, or right, but if I turn the phone upside down the screen won’t rotate.

Is there a way to enable upside down rotation? I think it would be quite useful.

I.e. When phone is charging, or hanging phone up by a strap, or when using a usb-c device and you want to prop it up on a desk

      • glibg10b@lemmy.ml
        link
        fedilink
        English
        arrow-up
        0
        ·
        9 months ago

        Then I doubt there’s a solution. If there is, it probably involves enable a hidden setting from an adb shell

          • glibg10b@lemmy.ml
            link
            fedilink
            English
            arrow-up
            0
            ·
            9 months ago

            I believe there’s an LSposed module that lets you enable or disable each direction individually

          • FGoo@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            0
            ·
            9 months ago

            Not the same person, but I use something called QuickTiles which allows you to add many quick tile shortcuts on your quick settings menu. One of them is to force rotation which allows you to cycle between all orientations. Fdroid link

  • TxzK@lemmy.zip
    link
    fedilink
    English
    arrow-up
    0
    ·
    9 months ago

    I use this app. It forces the device to be in certain rotation, and reverse portrait is an option too. No root required.

  • Peppycito@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    9 months ago

    My screen rotation sensor thing died in my nexus 5 and I downloaded an app that forced screen rotation. It let you turn it upside down. I don’t know what the app was called it was several years ago.

  • Skull giver@popplesburger.hilciferous.nl
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    9 months ago

    I believe Lineage has a setting for this, but I’m not so sure about AOSP.

    There’s a setting (config_allowAllRotations) in the Android source code that can be toggled to true by the ROM manufacturer to allow for 180 degree rotation automatically. On rooted devices, there are also modules you can use to override this without building the ROM yourself.

    If your ROM makers haven’t enabled this setting during build time, and the ROM doesn’t provide an alternative (like Lineage used to), and you haven’t rooted your phone, auto rotate won’t be able to rotate to 180 degrees. There’s also another code path that prevents some applications from rotating to 180 degrees even with that setting on, but I don’t think that’s commonly enabled.

    If you can get the phone to think you’re charging in a car dock, 180 degrees rotation is actually enabled by default. However, most normal USB chargers won’t identify as cars (and neither do many chargers built into cars, actually!).

    When the phone is hooked up to a computer, you can use adb to set the rotation manually (adb shell settings put system user_rotation 2). However, that setting makes the auto rotation handler act a bit weird on my phone, so you may need to adb it to another position (0, 1, 3) to get it to go back to normal.

    As far as I know, user_rotation isn’t a setting apps (without root permissions) are able to use, so I don’t know if you can get this to work if you’re not charging from a computer.

    • glibg10b@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      9 months ago

      This can be automated by an app with Shizuku integration, but Shizuku unfortunately needs to be set up every time the device is rebooted.

  • Wistful@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    9 months ago

    I also needed that feature recently and I found out that there was an option for 180° rotation that I needed to toggle on. But this is most likely specific to the ROM that I’m using.