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

    Windowed and Staged

    Scheduled Pinned Locked Moved Solved Support
    17 Posts 4 Posters 1.4k Views 2 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.
      • Pulsar33P Offline
        Pulsar33
        last edited by

        Hello,
        Searched this forum for Windowed and Staged, found 68 results but nothing relevant. Is there a way to switch dynamically (script or something like this) between Windowed Mode and Staged Mode without using UTTT ?
        BR
        Pulsar33

        Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
        Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
        Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

        Pulsar33P 1 Reply Last reply Reply Quote 0
        • K Offline
          kugiigi
          last edited by

          There's a toggle in the system indicator if your device screen is big enough or scaling is small enough. You can try the scaling but otherwise, you may need to change the code of the system indicator so that tge toggle os always shown. Personally, I think it should be that way anyway.

          Pulsar33P 1 Reply Last reply Reply Quote 0
          • Pulsar33P Offline
            Pulsar33 @kugiigi
            last edited by

            @kugiigi Wooo ! I don't see this toggle. My screen is 720x1280 ...
            I would be happy to know how to make the toggle visible
            Thank you in advance
            Pulsar33

            Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
            Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
            Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

            KenedaK 2 Replies Last reply Reply Quote 0
            • KenedaK Offline
              Keneda @Pulsar33
              last edited by Keneda

              @pulsar33
              If you don't see it it's because your scaling is not set small enough.
              Use uttt to change it.
              screenshot20210911_191206610.png

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

              1 Reply Last reply Reply Quote 0
              • Pulsar33P Offline
                Pulsar33 @Pulsar33
                last edited by Pulsar33

                @Keneda : Arggg !
                @pulsar33 said in Windowed and Staged:

                Is there a way to switch dynamically (script or something like this) between Windowed Mode and Staged Mode without using UTTT ?

                Advertisement in OpenStore concerning UTTT is frightening ... I wanted to bypass this solution. Can't I switch myself some variable somewhere ? Moreover, I would like to change it programmatically by my own code according to what I launch.
                Good evening
                Pulsar33

                Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
                Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
                Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

                KenedaK 1 Reply Last reply Reply Quote 0
                • KenedaK Offline
                  Keneda @Pulsar33
                  last edited by Keneda

                  @pulsar33
                  Using UTTT to change scaling will not break your device.

                  The "thing" with UTTT is that you can make all system files read/write, and doing so you can do good, or very bad, things, but appart from that, that's only advanced options... Scaling is part of those harmless advanced options.

                  You can break the same your device using only terminal app...

                  In fact any app that has full access to your device (unconfined apps) could have the same warning, but terminal don't have it because it's an ubport app, UTTT is not, so it has it...

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

                  Pulsar33P 1 Reply Last reply Reply Quote 0
                  • Pulsar33P Offline
                    Pulsar33 @Keneda
                    last edited by

                    @keneda Ok, I understand your comments, thank you. I will think about that to give a try. But switching manually is not what I hoped to do.

                    BR
                    Pulsar33

                    Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
                    Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
                    Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

                    1 Reply Last reply Reply Quote 0
                    • KenedaK Offline
                      Keneda @Pulsar33
                      last edited by

                      @pulsar33 said in Windowed and Staged:

                      I would be happy to know how to make the toggle visible

                      I only tried to help you about this.
                      Now i'm sure you can change scalling using terminal, but we have UTTT for this.

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

                      1 Reply Last reply Reply Quote 2
                      • Pulsar33P Offline
                        Pulsar33
                        last edited by

                        Hello
                        What I'm looking for existed in the past, but this key isn't available anymore :

                        #for Windowed mode:
                        gsettings set com.canonical.Unity8 usage-mode Windowed
                        #for Staged mode:
                        gsettings set com.canonical.Unity8 usage-mode Staged
                        

                        I listed all the "schemas" but didn't find something relevant ...
                        If you know it, please tell me.
                        BR
                        Pulsar33

                        Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
                        Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
                        Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

                        BollyB K 2 Replies Last reply Reply Quote 1
                        • BollyB Offline
                          Bolly @Pulsar33
                          last edited by

                          @pulsar33 said in Windowed and Staged:

                          I listed all the "schemas" but didn't find something relevant ...
                          If you know it, please tell me.
                          BR

                          You can look in the UTT code, there you will find how it is done.

                          2015-Now (Daily use) : BQ Aquaris E4.5 Ubuntu edition
                          2016-Now (Daily use) : BQ Aquaris M10 FHD Betatester

                          2020-Now : PinePhone Braveheart & CE UBports
                          2020-Now (Family/Daily use): Vollaphone Xenial
                          2022-Now (Family/Daily use): Vollaphone 22 Focal

                          1 Reply Last reply Reply Quote 0
                          • K Offline
                            kugiigi @Pulsar33
                            last edited by

                            @pulsar33 said in Windowed and Staged:

                            gsettings set com.canonical.Unity8 usage-mode Windowed

                            I'm pretty sure those will still work unless you device is already on 20.04.

                            BollyB 1 Reply Last reply Reply Quote 2
                            • BollyB Offline
                              Bolly @kugiigi
                              last edited by

                              @kugiigi said in Windowed and Staged:

                              @pulsar33 said in Windowed and Staged:

                              gsettings set com.canonical.Unity8 usage-mode Windowed

                              I'm pretty sure those will still work unless you device is already on 20.04.

                              Yes, it's working.

                              2015-Now (Daily use) : BQ Aquaris E4.5 Ubuntu edition
                              2016-Now (Daily use) : BQ Aquaris M10 FHD Betatester

                              2020-Now : PinePhone Braveheart & CE UBports
                              2020-Now (Family/Daily use): Vollaphone Xenial
                              2022-Now (Family/Daily use): Vollaphone 22 Focal

                              Pulsar33P 1 Reply Last reply Reply Quote 1
                              • Pulsar33P Offline
                                Pulsar33 @Bolly
                                last edited by Pulsar33

                                @bolly @kugiigi Yesss ! Thank you very much !
                                Having look at the code of UTTT as suggested, I had seen the key and didn't understand why I had the answer :
                                The schema "com.canonical.Unity8" doesn't exists
                                This was why I told you "but this key isn't available anymore" above.

                                After you said that it was working, I understood my mistake :
                                I was issuing the command in LXTerminal running inside the Libertine container, and there it doesn't work. You're right, if I type the command outside the Libertine container, it works ! Great !

                                I'm now facing some other problems with the Windowed mode but these are commented in other threads.

                                BR
                                Pulsar33

                                screenshot20210913_082935677.png

                                Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
                                Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
                                Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

                                1 Reply Last reply Reply Quote 1
                                • Pulsar33P Offline
                                  Pulsar33
                                  last edited by Pulsar33

                                  One more tip, if you don't want to install UTTT :
                                  When you see the picture above, you may usefully use this command

                                  gsettings set com.canonical.Unity8 launcher-width 6
                                  

                                  Then you get this below (minimal launcher width)
                                  BR
                                  Pulsar33
                                  screenshot20210913_155807460.png

                                  Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
                                  Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
                                  Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

                                  K 1 Reply Last reply Reply Quote 1
                                  • Pulsar33P Offline
                                    Pulsar33
                                    last edited by

                                    And the better tip, if you want to hide automatically the launcher :

                                    gsettings set com.canonical.Unity8 autohide-launcher true
                                    

                                    screenshot20210914_161117874.png

                                    Have fun !
                                    Pulsar33

                                    Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
                                    Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
                                    Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

                                    1 Reply Last reply Reply Quote 1
                                    • K Offline
                                      kugiigi @Pulsar33
                                      last edited by

                                      @pulsar33 This is actually in the settings app but it's hidden on small screen for some strange reasons. I have an open PR to just show it in all devices.

                                      KenedaK 1 Reply Last reply Reply Quote 1
                                      • KenedaK Offline
                                        Keneda @kugiigi
                                        last edited by

                                        @kugiigi
                                        It is in UTTT also, along with launcher scaling.

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

                                        1 Reply Last reply Reply Quote 0
                                        • First post
                                          Last post