UPERFECT X Mini lapdock works with Librem 5

Sometimes a symbolic link will do the trick.

Sometimes just having a directory that is outside ~ and putting the documents in it will do the trick.

Sometimes advanced mount functionality can do the trick.

That might not help with building software though because you may not directly control what directories the build process uses. You would have to know where exactly the build was trying to put stuff. A ā€˜niceā€™ build environment will be directory-independent i.e. put the sources anywhere you like, cd there, and build.

A different approach might be to use a cross-build environment i.e. build on your x86 desktop / laptop but for ARM.

1 Like

Thanks for the tips, I will try some of them. I am using Gnome Builder and tried to use a folder on the SD card, but as you indicated, the build files are put somewhere phones internal storage. Didnā€™t know that I could build for ARM on my laptop. Is that so also with Gnome Builder?

Edit: Unfortunately I get an error trying to clone loupe to Builder on my laptop, will dig into that later.

Either symlinks or bind mounts would work. I use a bind mount in /etc/fstab for my own SDcard, but if you do it, be sure to add the nofail option (my full list of options are auto,bind,nofail) so that you wonā€™t get stuck at boot if there isnā€™t an sd card present.

For instance this is how I ensure my Documents directory is stored on my SD card:

/dev/sda1 /mnt/sda1 auto auto,nofail 0 2
/mnt/sda1/Documents /home/purism/Documents none auto,bind,nofail 0 0

Repeat the second ā€œbindā€ mount line for any other folders you want to bind mount into your home dir. The destination directory will need to exist.

@Kyle_Rankin I put in a beefy sd card of 128GB and mounted according to your instructions, just to realize I didnā€™t move the contents of my previous Documents folder to the sd card folder before mounting.
Do you keep the Documents folder etc. on the device and just empty them or what do you recommend?

EDIT: Just noticed that all of the mounts are write protected for the user purism, how can I change that?

Thanks!

It sounds like the SD card is still some form of fat32/ntfs/etc?

I recommend first just mounting /mnt/sda1, it should be formatted with a Linux-permissions-friendly file system (such as ext4) so you can set file permissions. Once it is mounted, create a Documents directory on it and set the permissions how you wish. Then move over the files from your ~/Documents/ directory to it. Then you can mount /home/purism/Documents and it should behave as expected.

Thanks @Kyle_Rankin, moved the topic here as it is not really related to UPERFECT :slight_smile:

1 Like


Also Iā€™m finding as quite relevant that UPERFECTmonitor is listing Purism Librem 5 here: https://www.uperfectmonitor.com/pages/list-of-smartphones-with-displayport-alt-mode.

I know itā€™s typically bad form to revive a dead thread, but I felt like I should update this. Yesterday I decided to try out my Nexdock 360 after spending a few months on the X Mini. Since it had been so long it provided me a fresh perspective and means of comparison.

I have to say I think I prefer the Nexdock. In particular what is swaying me the most is two things:

  • screen quality
  • charging ability

While I prefer the X Miniā€™s size, the screen is inferior in crispness and quality compared to the nexdock. Switching back made that abundantly clear. Secondly, the X Mini only provides 500mA charging, which means the Librem 5 slowly drains. This isnā€™t a big deal for home use, however if I were at a conference, one of the advantages of using a dock is that I would be extending my Librem 5 use because it would be charging the whole time.

Both have pros and cons, but at least for now I think I might switch back to my Nexdock 360 for awhile.

6 Likes

Another update. I decided to do a battery test in this Nexdock similar to the X Mini, because I noticed yesterday that it seemed like the battery drained pretty fast. Sure enough, I just had my Librem 5 docked and left it idle with a stopwatch running. After 50 minutes the Nexdock battery is at 50%. Of course my Librem 5 is still at 100% battery, but this points to less than 2 hours of use with cellular and wifi on.

4 Likes

So is that to say that the X Mini is usable for longer than the Nexdock when charging the phone?

Yes, based on the tests I ran before in this thread, it appears the X Mini lasts 5.5 hours when charging the L5, after which the L5 had 60% charge. Which I guess makes some sense, since it is only providing at maximum, half the current to the Librem 5 (500mA vs 1A), and the smaller screen likely also draws less power.

So this makes the choice between the two even less clear. For instance, right now Iā€™m not entirely sure which I would prefer to take to a conference. Or, which I would prefer to use on an inter-continental flight.

I guess itā€™s pretty case-by-case. Do you need a keyboard or mouse? Will you be away from an outlet for a while? How long will you need a bigger screen? etc.

If on a flight (which is the instance Iā€™ve done recently myself) I wouldnā€™t want to pay for internet access, so I would bring the X Mini to watch movies or read. The conference would depend on if I wanted to take notes or just follow along on slides or something.

So I would say if you just want a bigger screen, use the X Mini. If you need something more laptop-y, use the Nexdock, though perhaps sparingly.

I would tend to agree with you I think. At least if I had to make the decision today, Iā€™d probably use the Nexdock as my home laptop, and when traveling, the X Mini because the smaller footprint is better for travel, especially on those ever-shrinking coach seats on airplanes.

At a conference I donā€™t know. If Iā€™m carrying a lapdock itā€™s in a backpack and if so I tend to also have a 20,000mAh battery pack in there as well, that I can use to charge the Librem 5 independently. But then I could also use that 20,000mAh battery to extend the life of the NexDock significantly.

Or, as they say, ā€œPorque no los dos?ā€ :wink:

Depends on the nature of the conference. If itā€™s a tech conference then the more equipment the better :slight_smile: and, if you are desperate, the batteries in the two lapdocks together extend your total run-time (albeit I saw that you also mentioned your 20Ah battery pack).

2 Likes

This is a really good point. At conferences where I would find myself walking around wearing a backpack anyway, adding the X Mini to the backpack along with the Nexdock wouldnā€™t add all that much weight. This is one area where the lapdock model gives you much more flexibility than a traditional laptop, you can swap from one lapdock to the next without closing any applications. Try that with a pair of traditional laptops!.

2 Likes

About the only issue I have with the Mini X is the rigidity of the usb c to usb c cable that comes with it. It makes it awkward to position your phone and the dock. Does anyone know of a cable to that is more flexible and not so long? I mean I need 6in / 15cm cable and that is it. The phone is always being used as a second screen, and so I donā€™t need it to be long.

Iā€™ve found this sort of cable to work well. Having a high quality cable seems to be important. The lower quality cables have a tendency to fail, causing flickering on the screen and other problems:

1 Like

Thanks Kyle. I didnā€™t get that one because Amazon.de could get me something a bit faster. I have been using my L5 quite a bit lately with the Mini X and it has been an ideal situation for the most part!!!

My only real gripe about the Mini X is that it canā€™t be charged via USB C. Only the little barrel connector that comes with it. Which I canā€™t find at the moment.

But the Mini X has basically tuned my Librem 5 into the work break programming station. I am able to work on my side projects and it all works awesomely. Syncing things with Resilio Sync things are all synced up when I get home.

The only bummer is that the L5 cannot negotiate cell signals when close to the border here.

Still being able to have a pocket computer like the L5 enable this kind of thing is truly awesome.

4 Likes

I found this adapter works so that I can charge it with my existing USB-C chargers:

2 Likes