• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

How to set Desktop Mode off and make it stick?

Scheduled Pinned Locked Moved Solved Lenovo Tab M10 X605F/L
58 Posts 8 Posters 11.9k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      dtarrant @MrT10001
      last edited by arubislander 21 May 2022, 02:05

      @mrt10001 @Luksus @Keneda @Pulsar33
      So, I created a startup file set-staged in ~/.config/upstart, closed the Lenovo, took a deep breath and powered back on.
      Sadly, it did not start in staged mode.
      Here is a listing of set-staged:

      start on started unity8
      exec gsettings set com.canonical.Unity8 usage-mode staged
      

      I'm a novice, so I won't be offended if someone points out my silly mistake.

      L 1 Reply Last reply 22 May 2022, 11:41 Reply Quote 0
      • L Offline
        Luksus @dtarrant
        last edited by 22 May 2022, 11:41

        @dtarrant

        Staged should be written with capital "S", I think.

        start on started unity8
        exec gsettings set com.canonical.Unity8 usage-mode Staged
        

        But even then, it does not work on boot.
        The upstart file itself seems to be alright, since executing start set-staged in terminal works.

        So maybe the "start on" entry point is wrong... but I have no Idea what would be right.
        Maybe there are also execution permission issues.

        Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605F, Pinephone, Moto Z2 Force, OnePlus5T

        1 Reply Last reply Reply Quote 0
        • K Offline
          kugiigi
          last edited by 22 May 2022, 17:10

          Perhaps try this
          start on starting dbus
          That's what is used to set scaling from the tweal tool.

          D 2 Replies Last reply 22 May 2022, 22:19 Reply Quote 0
          • D Offline
            dtarrant @kugiigi
            last edited by arubislander 22 May 2022, 22:19

            @kugiigi @Luksus @MrT10001
            Well I tried your suggestions and it still started in Desktop mode.
            Here's what I put into ~/.config/upstart:

            start on starting dbus
            exec gsettings set com.canonical.Unity8 usage-mode Staged
            

            Permissions have been mentioned as a possible issue.
            Does anyone have any advice to offer regarding permissions?
            (this post has been written and sent from my Lenovo tablet)

            1 Reply Last reply Reply Quote 0
            • K Offline
              kugiigi
              last edited by 22 May 2022, 23:17

              Not sure how but maybe make it execute after Unity8 started. My guess is that Unity8 detects something that overrides the usage mode so changing it beforehand will be useless.

              D 1 Reply Last reply 23 May 2022, 20:48 Reply Quote 0
              • D Offline
                dtarrant @kugiigi
                last edited by 23 May 2022, 02:47

                @kugiigi @Fuseteam
                How did you type the red text Kugi?

                K 1 Reply Last reply 23 May 2022, 04:45 Reply Quote 0
                • K Offline
                  kugiigi @dtarrant
                  last edited by 23 May 2022, 04:45

                  @dtarrant Enclose the text with "`" (the special type of single quote). For multiple lines, enclose them with triple of that character.

                  D 1 Reply Last reply 23 May 2022, 09:12 Reply Quote 0
                  • D Offline
                    dtarrant @kugiigi
                    last edited by 23 May 2022, 09:12

                    @kugiigi
                    Thanks Kugi.
                    ""If you know stuff, you can do stuff"" ☺

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      dtarrant @kugiigi
                      last edited by dtarrant 23 May 2022, 20:48

                      @kugiigi @Luksus @Pulsar33 @Flohack @dobey @fredldotme
                      Well I've tried your suggestions so far pretty thoroughly.
                      I've repeated some of the approaches taking great care with the spellings etc.
                      So far nothing has worked. Seems to me we don't understand how Ubuntu Touch can be controlled by software to open in a certain way.
                      I wonder if anyone else in our community might be able to recommend an approach. The names that came to mind were Florian and Rodney (no volcanos please), but there must be others. Alfred?
                      What do y'all think?

                      K 1 Reply Last reply 24 May 2022, 13:23 Reply Quote 0
                      • K Offline
                        Keneda @dtarrant
                        last edited by Keneda 24 May 2022, 13:23

                        @dtarrant
                        For now i don't use scripting, but from what i understood, you need two files for a script on device startup, one file with the script that you want to run on startup, one other to execute this file on startup, like i said in my post above where i gave you a link to another topic.

                        2015-2023 : Meizu MX4 ☠️⚰️✝️
                        2023-2024 : Nexus 5 ☠️⚰️✝️
                        2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                        🇲🇫🇬🇧

                        D 1 Reply Last reply 24 May 2022, 22:09 Reply Quote 1
                        • D Offline
                          dtarrant @Keneda
                          last edited by 24 May 2022, 22:09

                          @keneda @Luksus @MrT10001 @kugiigi @Pulsar33
                          I've revisited the links you gave me and am interested by the topic regarding how to auto-execute startup scripts.
                          I now understand there is a need to put one script in ~/.config/upstart and another script in a different location.
                          I think I've learnt enough over the last three weeks to be able to give this a try.
                          So many thanks for suggesting a new line of approach.

                          L 1 Reply Last reply 25 May 2022, 23:15 Reply Quote 0
                          • L Offline
                            Luksus @dtarrant
                            last edited by 25 May 2022, 23:15

                            Hey @all,
                            it seems that I have solved the issue with always starting in desktop mode... 🙂
                            Turns out that it were some kernel configs, which leads to unity8 thinking, that there is some kind of input device connected... how @kugiigi suggested.
                            So there is no need anymore for creating an upstart script in this regard.

                            I am not sure if the boot-image is being updated by the OTA update, so maybe I need to adjust the installer configuration first and you have to reinstall the bootimage with the installer afterwards. I will inform you here, how to proceed.

                            I additionally got usb-mtp mode working. Which should be available with tomorrows devel-update.

                            Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605F, Pinephone, Moto Z2 Force, OnePlus5T

                            D 1 Reply Last reply 25 May 2022, 23:43 Reply Quote 3
                            • D Offline
                              dtarrant @Luksus
                              last edited by dtarrant 25 May 2022, 23:43

                              @luksus
                              Great news, well done!
                              I look forward to reading your instructions on how to proceed.

                              L 1 Reply Last reply 26 May 2022, 08:55 Reply Quote 0
                              • L Offline
                                Luksus @dtarrant
                                last edited by 26 May 2022, 08:55

                                @dtarrant so it seems, just doing an update in Systemsettings/Updates is enough 🙂

                                Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605F, Pinephone, Moto Z2 Force, OnePlus5T

                                D 1 Reply Last reply 26 May 2022, 11:30 Reply Quote 0
                                • D Offline
                                  dtarrant @Luksus
                                  last edited by dtarrant 26 May 2022, 11:30

                                  @luksus
                                  Cool! When will I be able to update my tablet?
                                  I've not done any updates since I first installed UT.
                                  Didn't want to bork it.
                                  Where can I find SystemSettings? Is it accessible with file-manager?

                                  L K 2 Replies Last reply 26 May 2022, 12:32 Reply Quote 0
                                  • L Offline
                                    Luksus @dtarrant
                                    last edited by 26 May 2022, 12:32

                                    @dtarrant If you installed your device with the Ubports-Installer using the devel channel, you can just go into System-Settings on the device, choose the "Updates" category and let it search for new updates (with a Wifi connection active).
                                    Then if it downloaded the new version, just install it.

                                    Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605F, Pinephone, Moto Z2 Force, OnePlus5T

                                    D 1 Reply Last reply 26 May 2022, 20:08 Reply Quote 1
                                    • K Offline
                                      Keneda @dtarrant
                                      last edited by Keneda 26 May 2022, 12:48

                                      @dtarrant
                                      System setting is a system app installed by default on any UT device, you can launch it from app tray, its icon is a grey cog wheel.

                                      2015-2023 : Meizu MX4 ☠️⚰️✝️
                                      2023-2024 : Nexus 5 ☠️⚰️✝️
                                      2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                                      🇲🇫🇬🇧

                                      1 Reply Last reply Reply Quote 1
                                      • D Offline
                                        dtarrant @Luksus
                                        last edited by 26 May 2022, 20:08

                                        @luksus
                                        So, I checked for updates and it reported software up to date. On investigation I discovered it was on release candidate channel, so I switched to devel channel and it downloaded 532mb of updates.
                                        I installed the updates and after a couple of trys, I managed to coax it to boot.
                                        Deep joy, it booted into staged mode! So pleased with the result. I am typing this on my Lenovo tab.
                                        Thank you so much for working your magic. ☺

                                        1 Reply Last reply Reply Quote 3
                                        • D dtarrant has marked this topic as solved on 26 May 2022, 20:29
                                        50 out of 58
                                        • First post
                                          50/58
                                          Last post