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

    Libertine tweak tool, how to install on Focal?

    Scheduled Pinned Locked Moved Libertine
    28 Posts 7 Posters 4.3k Views 4 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
        doniks
        last edited by

        unfortunately I don't have a focal device ... I've made a build for it, but I have no way to test it myself. But if there is a brave soul who wants to try and give feedback, that would be awesome. Here's how you download: https://gitlab.com/doniks/libertine-tweak-tool/-/blob/xenial/README.md#development-version

        G TotalSonicT 2 Replies Last reply Reply Quote 0
        • D Offline
          doniks @idj
          last edited by

          @idj maybe rephrase the topic to reflect "on focal"

          MoemM 1 Reply Last reply Reply Quote 0
          • MoemM Offline
            Moem @doniks
            last edited by

            @doniks said in Libertine tweak tool, how to install?:

            maybe rephrase the topic to reflect "on focal"

            Done.

            Is currently using an Op5t
            Also owns an Op1, a BQ E4.5 and an Xperia X, as well as a BQ tablet and a Pinetab2. Please, someone... make it stop.

            I 1 Reply Last reply Reply Quote 1
            • I Offline
              idj @Moem
              last edited by

              Thanks a lot guys, but I switched to Xenial and I'll stick with it.
              Also, I'll not use LTT anymore, because it causes me issues.
              The best thing I'll do, if it's possible and if I'll learn how, is to lower screen resolution to 1280x720

              1 Reply Last reply Reply Quote 1
              • G Offline
                grumpyoldbloke @doniks
                last edited by grumpyoldbloke

                @doniks said in Libertine tweak tool, how to install on Focal?:

                unfortunately I don't have a focal device ... I've made a build for it, but I have no way to test it myself. But if there is a brave soul who wants to try and give feedback, that would be awesome. Here's how you download: https://gitlab.com/doniks/libertine-tweak-tool/-/blob/xenial/README.md#development-version

                Just tried this but unfortunately it doesn't have any effect on my focal container.

                D 1 Reply Last reply Reply Quote 0
                • D Offline
                  doniks @grumpyoldbloke
                  last edited by

                  @grumpyoldbloke said in Libertine tweak tool, how to install on Focal?:

                  @doniks said in Libertine tweak tool, how to install on Focal?:

                  unfortunately I don't have a focal device ... I've made a build for it, but I have no way to test it myself. But if there is a brave soul who wants to try and give feedback, that would be awesome. Here's how you download: https://gitlab.com/doniks/libertine-tweak-tool/-/blob/xenial/README.md#development-version

                  Just tried this but unfortunately it doesn't have any effect on my focal container.

                  are you able to connect via adb? If so, can you extract the logfile for ltt for me? Like this:

                  adb pull /home/phablet/.cache/upstart/application-click-libertine-tweak-tool.doniks_libertine-tweak-tool_1.4.0.log
                  
                  G 1 Reply Last reply Reply Quote 0
                  • G Offline
                    grumpyoldbloke @doniks
                    last edited by

                    @doniks ADB isn't working on my 20.04 install but there is no logfile in upstart anyway.

                    Tried to reinstall the app but no change, Openstore says that it is version 1.4.0.

                    D 1 Reply Last reply Reply Quote 0
                    • D Offline
                      doniks @grumpyoldbloke
                      last edited by doniks

                      @grumpyoldbloke said in Libertine tweak tool, how to install on Focal?:

                      @doniks ADB isn't working on my 20.04 install but there is no logfile in upstart anyway.

                      uh yeah, makes sense I guess. I think upstart is gone in focal. Probably there are app logs somewhere ... but I don't know where :man_shrugging:

                      wouldn't have to be adb either. ssh, or if you find it with the filemanager or terminal that's fine also, but well, I'm kinda talking blindly here, sorry.

                      Tried to reinstall the app but no change, Openstore says that it is version 1.4.0.

                      so, I haven't updated the version number, so if you take it from gitlab it will always show up as 1.4.0

                      D 1 Reply Last reply Reply Quote 0
                      • D Offline
                        doniks @doniks
                        last edited by

                        @doniks said in Libertine tweak tool, how to install on Focal?:

                        wouldn't have to be adb either. ssh, or if you find it with the filemanager or terminal that's fine also, but well, I'm kinda talking blindly here, sorry.

                        maybe even better can you try to find the log with Logviewer app from the openstore? (might need to scroll a lot to find it someone told me)

                        G 1 Reply Last reply Reply Quote 0
                        • G Offline
                          grumpyoldbloke @doniks
                          last edited by

                          @doniks Found it: https://dpaste.com/CBE4VMJTE

                          D 1 Reply Last reply Reply Quote 0
                          • D Offline
                            doniks @grumpyoldbloke
                            last edited by

                            @grumpyoldbloke awesome!

                            mhm, it seems that the xdpi value in container "focal" has been changed to 203. but you say

                            it doesn't have any effect on my focal container.

                            how do you check whether it has an effect?

                            can you do the following:

                            • close LTT
                            • open xterm from your focal container
                            • take a photo (not a screenshot, please use another camera if you can)
                            • close xterm
                            • open LTT and change the value to the lowest possible value and close LTT
                            • reopen xterm and take another photo

                            and then share the photos here

                            G 1 Reply Last reply Reply Quote 0
                            • G Offline
                              grumpyoldbloke @doniks
                              last edited by

                              @doniks I have been running Aisleriot in my container, in 16.04 changing xdpi changed the toolbar size but in 20.04 it does not.

                              Xterm behaves correctly, if I change the xdpi the font becomes bigger or smaller as expected but I don't actually use xterm very often so I will try with another app when I have time, hopefully later today.

                              D 1 Reply Last reply Reply Quote 0
                              • D Offline
                                doniks @grumpyoldbloke
                                last edited by

                                @grumpyoldbloke ah ok. yeah you are right xterm is kinda pointless on UT, it was just a simple test. well. good news we know that version of LTT does something, bad news it seems setting xdpi doesn't help aisleriot in 20.04 ...

                                I could start speculating about gnome/gtk apps and mir/wayland, maybe it is now "better" integrated and not falling back to X anymore, but then it would need some other trick to scale up. If you want to dig deeper I can maybe look up some suggestions, but it will be some painstaiking trial and error and editing obscure config files and no promises

                                G 1 Reply Last reply Reply Quote 0
                                • G Offline
                                  grumpyoldbloke @doniks
                                  last edited by

                                  @doniks Just tried another couple of apps: Firefox worked correctly but Kpatience didn't..

                                  I would be quite interested in helping to solve this problem, happy enough to poke at things with a little bit of guidance.

                                  D 1 Reply Last reply Reply Quote 1
                                  • TotalSonicT Offline
                                    TotalSonic @doniks
                                    last edited by TotalSonic

                                    @doniks - thank you so much for this! In my tests on Volla Phone running Focal it works 🙂
                                    The only issue I saw is that the default container id shown by it on launch is "xenial" - please change this so it defaults to "focal" so users do not have to enter this for each new install.

                                    Beat regards,
                                    Steve Berson

                                    D 1 Reply Last reply Reply Quote 1
                                    • D Offline
                                      doniks @TotalSonic
                                      last edited by

                                      @totalsonic said in Libertine tweak tool, how to install on Focal?:

                                      @doniks - thank you so much for this! In my tests on Volla Phone running Focal it works 🙂
                                      The only issue I saw is that the default container id shown by it on launch is "xenial" - please change this so it defaults to "focal" so users do not have to enter this for each new install.

                                      Beat regards,
                                      Steve Berson

                                      done 🙂 feel free to retest from gitlab

                                      1 Reply Last reply Reply Quote 2
                                      • D Offline
                                        doniks @grumpyoldbloke
                                        last edited by doniks

                                        @grumpyoldbloke said in Libertine tweak tool, how to install on Focal?:

                                        @doniks Just tried another couple of apps: Firefox worked correctly but Kpatience didn't..

                                        I would be quite interested in helping to solve this problem, happy enough to poke at things with a little bit of guidance.

                                        Awesome!

                                        So, the first thing to understand (at least for me that was a revelation) is that libertine isn't all that magical. There are a few layers of magic (to me) like mir, wayland, xmir, xwayland, android drivers, chroot, proot, lxd, but we can ignore all of those.

                                        For our discussion here, Libertine is basically just a folder with a regular old linux installation inside. And what you want to do is shoehorn the X configuration and X based apps inside that regular old linux installation into ... mostly just make things larger on the screen. Sometimes maybe also hide some parts or maybe arrange things in a more touch friendly way. That means that there actually is already a large part of information out there in the internet where people are trying to force X into small screens or fighting with high dpi screens stuff like this. The challenge here is to find this information. Many of those things have been reinvented a few times over the decades. However, often this information also rots away, since, well it is not a future proof solution. The future proof solution is stuff like wayland and (new) apps that are built with touch and small screens in mind. But, alas, here we are playing Libertine and trying yet again to carry the non-touchfriendly oldschool apps over to UT.

                                        As with many advanced linuxy topics, a great place to start is arch documentation: https://wiki.archlinux.org/title/HiDPI Next to X things there are now also quite a few gtk/gnome or kde specific tricks that one can play. Also there are for practically every desktop environment some appearance, theme tweaking tools. a few loose notes I collected are here: https://gitlab.com/doniks/libertine-tweak-tool/-/blob/xenial/TODO Once we know how to tweak some app this boils down to changing some config file inside ~/.config or ~/.gtkblahdiblub or so. Libertine-Tweak-Tool is even less magically, it just performs some specific changes in some of these config files.

                                        rough and quick and dirty. give it a read and let me know what you think

                                        I AppLeeA 2 Replies Last reply Reply Quote 0
                                        • I Offline
                                          idj @doniks
                                          last edited by

                                          Excuse me, but I bet if we can set a certain display resolution, the DPI settings would be surpassed.
                                          In the same device as I now use with UT, I used to have Android and Termux/Andronix+Ubuntu XFCE.
                                          It used to work (graphically) very well by setting a 1280x720 display resolution for VNC (the X Server is actually deployed with VNC in Termux and the like systems).
                                          Why then don't I stick with Termux? Hardware support = none!

                                          By the way, forcing a customized resolution instead of DPI could be a game changer.

                                          1 Reply Last reply Reply Quote 0
                                          • AppLeeA Offline
                                            AppLee @doniks
                                            last edited by

                                            @doniks said in Libertine tweak tool, how to install on Focal?:

                                            The future proof solution is stuff like wayland and (new) apps that are built with touch and small screens in mind. But, alas, here we are playing Libertine and trying yet again to carry the non-touchfriendly oldschool apps over to UT.

                                            Emphasis on this part 😉
                                            Yeah basically convergence is the future.
                                            In my opinion Ubuntu Touch is the best OS for it and if enough effort is made towards convergence we won't need what are distractions to me: Libertine, Waydroid, Anbox, ... Android, iOS :beaming_face_with_smiling_eyes:

                                            Native and convergence is the way.

                                            D 1 Reply Last reply Reply Quote 0
                                            • D Offline
                                              doniks @AppLee
                                              last edited by

                                              @applee said in Libertine tweak tool, how to install on Focal?:

                                              @doniks said in Libertine tweak tool, how to install on Focal?:

                                              The future proof solution is stuff like wayland and (new) apps that are built with touch and small screens in mind. But, alas, here we are playing Libertine and trying yet again to carry the non-touchfriendly oldschool apps over to UT.

                                              Emphasis on this part 😉
                                              Yeah basically convergence is the future.
                                              In my opinion Ubuntu Touch is the best OS for it and if enough effort is made towards convergence we won't need what are distractions to me: Libertine, Waydroid, Anbox, ... Android, iOS :beaming_face_with_smiling_eyes:

                                              Native and convergence is the way.

                                              Well, I agree it is the future. But it has been the future for quite a while and it still hasn't turned into the present. While I'm waiting for the future I still see the need for a (multiple-years .. decades?) stopgap ...

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