Author Topic: Sailfish Keeps Repeating Tutorial/Wrong Rotation  (Read 3172 times)

jakfish

  • Sr. Member
  • ****
  • Posts: 386
    • View Profile
Sailfish Keeps Repeating Tutorial/Wrong Rotation
« on: July 02, 2018, 05:21:47 pm »
When I get into Sailfish, it remembers my wifi, but the tutorial always starts and it doesn't remember my landscape rotation.

Which handles do I jiggle for those things?

Thanks,
Jake

vader

  • Sr. Member
  • ****
  • Posts: 296
    • View Profile
Sailfish Keeps Repeating Tutorial/Wrong Rotation
« Reply #1 on: July 02, 2018, 06:08:39 pm »
Quote from: jakfish
When I get into Sailfish, it remembers my wifi, but the tutorial always starts and it doesn't remember my landscape rotation.

Which handles do I jiggle for those things?

Thanks,
Jake

Had my first sailfish restart (had to power down) last night when I added the camera module. I also had the tutorial pop up again. All my settings were still there, so no damage. I'll might look in to it later - I don't normally reboot, so it probably won't annoy me too much

Meganerd

  • Newbie
  • *
  • Posts: 34
    • View Profile
Sailfish Keeps Repeating Tutorial/Wrong Rotation
« Reply #2 on: July 02, 2018, 06:18:27 pm »
Can we remove the application files related to the tutorial?

My build doesn't force the tutorial on reboots (only initially after install)- so the most I ever tried was removing it from the app menu, which then it readded itself at the end.
I didnt fight it too much since I just ignore the application.

Edit:

Try this from a terminal:
touch /home/nemo/.jolla-startupwizard-sfos2-tutorial
touch /home/nemo/.jolla-startupwizard-done
touch /home/nemo/.jolla-startupwizard-usersession-done
« Last Edit: July 02, 2018, 06:26:00 pm by Meganerd »

vader

  • Sr. Member
  • ****
  • Posts: 296
    • View Profile
Sailfish Keeps Repeating Tutorial/Wrong Rotation
« Reply #3 on: July 02, 2018, 07:03:49 pm »
Quote from: Meganerd
Try this from a terminal:
touch /home/nemo/.jolla-startupwizard-sfos2-tutorial
touch /home/nemo/.jolla-startupwizard-done
touch /home/nemo/.jolla-startupwizard-usersession-done

At least for this restart they are already there. I'll see what happens next time I reboot. Thanks.

jakfish

  • Sr. Member
  • ****
  • Posts: 386
    • View Profile
Sailfish Keeps Repeating Tutorial/Wrong Rotation
« Reply #4 on: July 03, 2018, 10:13:40 am »
Now the last time I rebooted, the tutorial was skipped.  If it comes back, I found this to skip it manually:

https://jolla.zendesk.com/hc/en-us/articles...ctory-settings-

And I'll try the touch commands as well, thanks for them.

My trouble now it that I'm always in portrait, even when choosing "dynamic." Any advice for that?

Jake

andrewl

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Sailfish Keeps Repeating Tutorial/Wrong Rotation
« Reply #5 on: July 03, 2018, 12:05:34 pm »
I fixed my screen rotation by editing the Page.qml file, this requires going into devel-sa, I found the information by searching this forum.

jakfish

  • Sr. Member
  • ****
  • Posts: 386
    • View Profile
Sailfish Keeps Repeating Tutorial/Wrong Rotation
« Reply #6 on: July 03, 2018, 01:27:19 pm »
Thanks for that pointer/post. Meganerd suggests this way to lock down landscape:

ii) Modify Page.qml (line 115)
    Original line: return Orientation.All
    Updated line: return Orientation.LandscapeInverted

    Other views: Orientation.Portrait | Orientation.Landscape | Orientation.LandscapeInverted

iii) Reboot phone to apply changes


But while I found line 115 (after "pkcon install nano"), I did not find "Orientation.All" There were other Orientations, but not that one, so I closed out without changing anything.

Jake

Meganerd

  • Newbie
  • *
  • Posts: 34
    • View Profile
Sailfish Keeps Repeating Tutorial/Wrong Rotation
« Reply #7 on: July 03, 2018, 06:01:58 pm »
Quote from: jakfish
Thanks for that pointer/post. Meganerd suggests this way to lock down landscape:

ii) Modify Page.qml (line 115)
    Original line: return Orientation.All
    Updated line: return Orientation.LandscapeInverted

    Other views: Orientation.Portrait | Orientation.Landscape | Orientation.LandscapeInverted

iii) Reboot phone to apply changes


But while I found line 115 (after "pkcon install nano"), I did not find "Orientation.All" There were other Orientations, but not that one, so I closed out without changing anything.

Jake


Hello, it sounds like you're on SFOS 2.1.4.14


Please see the notes I added from user Dietmar Schwertberge regarding the differences

https://gitlab.com/Meganerd.eth/Sailfish-De...20SFOS%202.x.md


Change this:
allowed = Orientation.LandscapeInverted | orientation === Orientation.Portrait | orientation === Orientation.PortraitInverted

To this:
allowed = Orientation.LandscapeInverted

andrewl

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Sailfish Keeps Repeating Tutorial/Wrong Rotation
« Reply #8 on: July 04, 2018, 04:55:20 am »
Quote from: Meganerd
Quote from: jakfish
Thanks for that pointer/post. Meganerd suggests this way to lock down landscape:

ii) Modify Page.qml (line 115)
    Original line: return Orientation.All
    Updated line: return Orientation.LandscapeInverted

    Other views: Orientation.Portrait | Orientation.Landscape | Orientation.LandscapeInverted

iii) Reboot phone to apply changes


But while I found line 115 (after "pkcon install nano"), I did not find "Orientation.All" There were other Orientations, but not that one, so I closed out without changing anything.

Jake


Hello, it sounds like you're on SFOS 2.1.4.14


Please see the notes I added from user Dietmar Schwertberge regarding the differences

https://gitlab.com/Meganerd.eth/Sailfish-De...20SFOS%202.x.md


Change this:
allowed = Orientation.LandscapeInverted | orientation === Orientation.Portrait | orientation === Orientation.PortraitInverted

To this:
allowed = Orientation.LandscapeInverted

Yes, same information that I found, though it was on this forum:

https://www.oesf.org/forum/index.php?showto...=35195&st=0

I think from the same Dietmar.

jakfish

  • Sr. Member
  • ****
  • Posts: 386
    • View Profile
Sailfish Keeps Repeating Tutorial/Wrong Rotation
« Reply #9 on: July 04, 2018, 08:08:11 am »
To this:
allowed = Orientation.LandscapeInverted

That did it and many thanks, meganerd, for weighing into this post.

One caveat to new Jolla folk--in nano, when deleting text, I found stray letters were left behind, at least on the screen. So I saved the file, reopened it, searched for the replaced text (ctrl-w), and found that it needed some retyping, even though I had deleted and typed correctly the first time.

Had I rebooted without checking the file, I think there would've been significant problems.

Thank you again, what a relief to stop craning my head,
Jake