r/jailbreak iPhone XS Max, 14.3 Beta | Sep 21 '19

[RELEASE] I'mLyingDownDamnit - Never use rotation lock again! Release

Never use rotation lock again! This tweak corrects auto-rotate so that it works all the time - even when you're lying down!

How does it work?

When rotating your phone, you will be asked if you're lying down. Tapping the confirm button sends your phone back to portrait orientation, where you can then freely auto-rotate the phone relative to your face, whilst lying down!

To return to normal, simply press "Standing up" when prompted after rotating your phone.

Configuration

The tweak is highly configurable, with extra features such as dark mode, button positions, fade times, roll-over prompts to correct the orientation if you turn over when lying down and much more.

Screenshots

Settings (main)

Settings (automation sub-menu)

Settings (popup sub-menu)

Lying down popup (light mode)

Lying down popup (dark mode)

Standing/rollover popup (light mode)

Standing/rollover popup (dark mode)

Repo

You MUST install LibSparkAppList from the SparkDev repo to change some app-specific settings: https://sparkdev.me/

Get the tweak at the Dynastic repo: https://repo.dynastic.co/

Price

$1.49

Want to keep connected with my latest projects?

587 Upvotes

View all comments

46

u/trebory6 iPhone XS Max, iOS 12.4 Sep 21 '19 edited Sep 21 '19

Ok, so admittedly I haven’t tried this tweak, but from reading the description you’ve provided, I can’t help but to think that the pop up would get very annoying always popping up even on accidental rotation.

Maybe that’s not the case, but my question is is there any way to integrate face recognition to see if your face is aligned to the upright phone and automatically turns on/off rotation lock?

For instance if you rotate your phone and your face is correctly oriented to the rotated phone, then it turns on the lock assuming you’re laying down looking at your phone. And vice versa, if your face isn’t correctly oriented to the phone it turns the rotation lock off.

I guess the only problem would be watching video when laying down, but maybe add a rotation lock button directly to most of the video apps next to the cast/settings buttons?

Mainly because if I’m showing videos to my friends and I rotate my phone for full screen video, I don’t want even that small pop up to show up all the time.

I do know that Face ID only works when your face is aligned with your upright phone, so maybe using that fail/pass code as a way to turn on/off the rotation lock automatically? Not sure how that works exactly or if it’s part of the biometrics hardware, but just an idea.

34

u/Cardboard-Face iPhone XS Max, 14.3 Beta | Sep 21 '19

Some really great points! Just to go through them one at a time:

Annoying popups

The popups are small and show in the screen edges. They fade out after a configurable amount of time, so as not to get in the way. You can also prevent the popup showing in certain apps, for instance PUBG, where you're likely not need it even if you were lying down. Lastly, the popups also fade out instantly if you touch outside of them anywhere on the screen, so you can simply tap to dismiss them or use your phone as normal and they'll hide themselves.

Using face-tracking

There's no reliable way to do this. Obviously, the standard front camera cannot be used due to the varied light levels (often you're in darkness when lying down). The later iPhone's IR camera could potentially be used, however there are some fallbacks:

  • Apple's ARKit (the easiest way to implement face tracking) makes use of both cameras and won't work well in the dark
  • If you're lying on a pillow most of your face will be hidden from the camera, making you difficult to locate
  • Increased battery drain and latency when rotating your device due to using the cameras

Conclusion

I think while it would be great to fully automate, facetracking would simply not be consistent enough and would become an annoyance. I am however looking to add more automation settings in future updates to ease enabling the lying-down modes.

11

u/trebory6 iPhone XS Max, iOS 12.4 Sep 21 '19

Well FaceID works perfectly fine in pitch darkness, but I understand the pillow obscurantism point.

I mean, like FaceID, it wouldn’t be perfect, but maybe just enough of an automation to be a toggle-able feature to entice people to pay?

I also understand where you’re coming from, but maybe it’s worth looking into sometime because I love the idea of this tweak.

Have a good one!

13

u/Cardboard-Face iPhone XS Max, 14.3 Beta | Sep 21 '19

While faceID works well in pitch darkness, I’m not sure how well it’d work at detecting an obscured face and calculating its orientation.

Perhaps it could be a fun optional feature that shows the UI if it can’t detect a face, so this could be something I’ll think about down the line.

Love the suggestions though, keep them coming!

2

u/mtuan293 iPhone XS Max, 15.2 Sep 22 '19

There’s Attention Aware Feature thing. Maybe you can utilize that? I think it’d check every now and then to ensure you’re looking at the phone, so not sure how that would work in this case.

0

u/Garlicvideos Sep 22 '19 edited Sep 22 '19

How about the gyroscope?

I could imagine using it to detect if the person is lying down.

Edit: why are you guys downvoting me? this is a serious suggestion and it could possibly work.

1

u/ARM64-darwin1820 iPhone XS, 13.3 | Sep 22 '19

Isn't the gyroscope what's currently used to determine the device orientation in the tweak?

1

u/Garlicvideos Sep 22 '19

Wait, doesn’t the tweak just give a prompt every time the OS auto rotates?

I meant using the gyroscope to detect whether the phone is pretty much face flat, thus knowing if the user is lying down.

So this way, instead of looking for the rotation on one axis, it looks for two.

If the tweak already does this, then my bad, im probably retarded.

1

u/ARM64-darwin1820 iPhone XS, 13.3 | Sep 22 '19

Sorry for the confusion, I meant the device auto rotate uses the gyroscope to detect when to rotate, doesn't it?

1

u/[deleted] Sep 21 '19 edited Sep 21 '19

[deleted]

1

u/Cardboard-Face iPhone XS Max, 14.3 Beta | Sep 21 '19

That would be excellent to see, if you've got a demo app for it I'd be really interested in seeing it! What do you think about photos in the dark? I was wondering if that'd be plausible too, since I was after an all-round consistent solution.