maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Full linux distros on Sailfish OS (https://talk.maemo.org/showthread.php?t=101080)

edp17 2020-09-16 22:45

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by Fellfrosch (Post 1569294)
For me only Landscape works. But I haven't investigated why because that's my preferred orientation on this mini laptop :D

I guess you have got a physical keyboard. :D

levone1 2020-09-17 17:19

Re: Full linux distros on Sailfish OS
 
1 Attachment(s)
Quote:

Originally Posted by edp17 (Post 1569289)
I cannot use Onboard in landscape mode because its left half goes outside of the window. I have tried to change the size in configs but no luck. Therefore I use it in portrait mode, where it works really well. (Is there any other on-screen keyboard available? florence maybe?)

apt-get install matchbox-keyboard...

problem is that I can't get any other keys or layouts. A "keyboard" entry showed up in settings, but nothing seems to have any effect ...

Zeta 2020-09-17 21:26

Re: Full linux distros on Sailfish OS
 
I said I would look at running RedHat based distros a while ago... and time flies by...

Anyway, made some new tests with Fedora 32, and I got the following running without compositor (only the app):
* qtcreator (to test a Qt5 app) with wayland => not exactly full screen (portait vs landscape issue?), touchscreen works, but popup menu don't show (those must be seen as other windows and would need compositor)
* firefox-wayland (GTK based?) gives an error

For the compositor:
* weston shows (no app launched to test further), not full screen either
* kwin-wayland/plasma-wayland refuses to launch as root, and trying from another user gives an error ("Unable to set up transient service directory") and doesn't show
* gnome-shell/gnome-sessions gives an error (GTK based too, seems related to the issue with firefox)


Finally, Xwayland runs (and is fullscreen) and using it:
* firefox runs. Touch and keyboard are not active. Still no compositor here
* qtcreator runs, but doesn't look good (fonts size, dpi or something make the interface not as I would expect)


So it is encouraging, given the small time I spent on it. A few environment variables or file configurations should be enough to reach the next level with a desktop environment (compositor) either under X or wayland.
I will give detailed instructions as soon as I get it to actually work (it could take some time), and will write the scripts to include in the containers application. So far I concentrate on Fedora, but will probably also check with CentOS later to cover most of the RedHat/RPM based family.

levone1 2020-09-17 21:34

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by edp17 (Post 1569295)
I guess you have got a physical keyboard. :D

So, I've tried Matchbox, Florence, and XVKbd, and Matchbox is the only one that doesn't act wacky in landscape mode, (but has the issue of ultra-minimalism...)

levone1 2020-09-19 20:37

Re: Full linux distros on Sailfish OS
 
2 Attachment(s)
I found out how to get other layouts on Matchbox keyboard ... In /usr/share/Matchbox Keyboard, there are several files. Some are keyboard layouts and some are fragments. Take whichever one you want to use as layout and move it to /home/user/.matchbox, and name it "keyboard.xml". I'm using "keyboard-lq1", and it's all I need.... You can also edit it however you want ...(I have dpad arrows and ctrl/alt on mine).

edp17 2020-09-22 23:44

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by levone1 (Post 1569325)
I found out how to get other layouts on Matchbox keyboard ... In /usr/share/Matchbox Keyboard, there are several files. Some are keyboard layouts and some are fragments. Take whichever one you want to use as layout and move it to /home/user/.matchbox, and name it "keyboard.xml". I'm using "keyboard-lq1", and it's all I need.... You can also edit it however you want ...(I have dpad arrows and ctrl/alt on mine).

Thanks for this! I have created my own layout of matchbox-keyboard that I can use in landscape mode. :) (If someone is interested I used this site for inspiration.)
(In portrait mode, onboard is still a better option for me.)

edp17 2020-10-13 08:45

Re: Full linux distros on Sailfish OS
 
In case somebody has the same problem.

I had to reinstall the lxc and all parts including the guest distro.
Since that I couldn't start the distro because I was getting a weird error:
Code:

/opt/bin/Xwayland: 1: Not: not found
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

The content of '/opt/bin/Xwayland' was one line: Not Found

Despite I've installed everything the same way how I did before, the distro din't start.

Then I found the root cause.
I have run the '/mnt/guest/setup_desktop.sh' and '/mnt/guest/setups/debian.sh' commands right after each other and the second one wasn't run fully. (I don't know how it was possible.) There was no error message it just outputted a few lines and that's it.

The solution was, rebooting the phone and re-running the '/mnt/guest/setups/debian.sh' script. This then compiled the Xwayland program and properly put into the /opt/bin.
So, finally I got my desktop distro back and it's working again! :D

edp17 2020-10-13 09:29

Re: Full linux distros on Sailfish OS
 
Another good news and achievement! :)
On my Galaxy Note 4 (treltexx) port, I got the S-Pen working as a mouse! (The S-pen is a stylus with enhanced functionalities developed by Samsung for specifically this device family.)
Both the left- and right-clicks are working fine:
- left-click = I touch the screen with the S-Pen
- right-click = there is a button at the side of the S-Pen which is repurposed for right-clicks (as the device detects the distance between the screen and the S-pen, for right-click I don't even need to touch the screen with the S-Pen. :D)

Kabouik 2020-11-13 15:58

Re: Full linux distros on Sailfish OS
 
I'm several pages late on this topic, will try to catch up later. Until then, I thought you might be interested in a video with comments and more details on how to use LXC than the first video I shared here some months ago:

https://thumbs.gfycat.com/PoliticalD...restricted.gif
https://thumbs.gfycat.com/FewWideKil...restricted.gif
https://user-images.githubuserconten...a09c1a9a22.gif

The full video:
- LBRY for good connections (big file)
- Youtube for slower connections
It's rather long so check the description to jump to any chapter that might be more interesting to you.

Do you think these gifs and video URLs could be useful in the FP edp17?

edp17 2020-11-18 12:37

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by Kabouik (Post 1570179)
...
Do you think these gifs and video URLs could be useful in the FP edp17?

Yes, definitely! :) I have updated the first post but only used one of the gifs. Thanks for your work on creating them!


All times are GMT. The time now is 21:13.

vBulletin® Version 3.8.8