maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   XWayland Victory! (https://talk.maemo.org/showthread.php?t=98882)

matemana 2017-03-10 05:36

Re: XWayland Victory!
 
Quote:

Originally Posted by mscion (Post 1525127)
Oops! You are right. I had cut and pasted the wrong part of the error message when writing the post. The path begins with /usr/share... Regardless, the warning was due to the file name. I'll edit my post. Thanks!

I searched that file on places error gave me but did not find, i found that file on github i even wanted to create it but i did not. It was working and i left it.

preflex

i used xfce on my nexus and that setting in fonts does not change anything. now i tried this on my nexus 4 and everything is so much better.

1 everything is much bigger and easy to use.
2 terminal in arc linux works

Nexus 4 is amazing device for SFOS and this too. Aliendalvik works on it without issues, google play, video playback, camera everything works. I even think to have nexus 4 as my daily driver not nexus 5 haha

matemana 2017-03-10 21:12

Re: XWayland Victory!
 
Quote:

Originally Posted by preflex (Post 1525082)
It's not emulated. It's just a chroot. The kernel (and some other resources, hence the bind mounts) are shared.

See: https://en.wikipedia.org/wiki/Chroot

You can use this script, it needs only one argument and it's either 'terminal' or 'startlxde'

You do not need two separate scripts.

HTML Code:

#!/bin/bash

if [[ "$1" != "terminal" ]] && [[ "$1" != "startlxde" ]]; then
        echo "No known args, please pass correct argument."
        echo "for terminal only 'terminal'"
        echo "for GUI 'startlxde'"
        exit
fi

mount --bind /dev /opt/easychroot/Arch/dev
mount --bind /dev/pts /opt/easychroot/Arch/dev/pts
mount --bind /proc /opt/easychroot/Arch/proc
mount --bind /run /opt/easychroot/Arch/run
mount --bind /sys /opt/easychroot/Arch/sys
mount --bind /var/lib/dbus /opt/easychroot/Arch/var/lib/dbus
mount --bind /var/run/dbus /opt/easychroot/Arch/var/run/dbus
mount --bind /tmp /opt/easychroot/Arch/tmp
mount --bind /dev/shm /opt/easychroot/Arch/dev/shm
#mount --bind /etc/ssl/certs /opt/easychroot/Arch/etc/ssl/certs
mount --bind /home/nemo/.config/pulse /opt/easychroot/Arch/home/nemo/.config/pulse
mount --bind /home/nemo /opt/easychroot/Arch/home/nemo/real_home
mount --bind /home/nemo/Downloads /opt/easychroot/Arch/home/nemo/Downloads
mount --bind /home/nemo/android_storage /opt/easychroot/Arch/home/nemo/android_storage
mount --bind /home/nemo/Music /opt/easychroot/Arch/home/nemo/Music
mount --bind /home/nemo/Videos /opt/easychroot/Arch/home/nemo/Videos
mount --bind /home/nemo/Pictures /opt/easychroot/Arch/home/nemo/Pictures
mount --bind /home/nemo/Documents /opt/easychroot/Arch/home/nemo/Documents

if [ $1 == 'terminal' ]; then
        chroot /opt/easychroot/Arch /bin/bash
fi

if [ $1 == 'startlxde' ]; then
        chmod 1777 /dev/shm
        resolution=`cat /sys/class/graphics/fb0/modes | grep -o -P '(?<=U:).*(?=p)'`
        x=${resolution%%x*}
        y=${resolution##*x}
        echo "selected screen resolution"
        echo $y $x
        sleep 3
        chroot /opt/easychroot/Arch bash /usr/share/easychroot/scripts/start_xwayland_user_shell.sh $y $x $1
fi


preflex 2017-03-25 04:00

Re: XWayland Victory!
 
DPI FIX!

QT_WAYLAND_FORCE_DPI="160" kwin_wayland --xwayland ...

This will make your title bars nice and big. Use whatever value you'd prefer
If you use xfce4, you should also set it in settings->appearance->fonts.


Also, my manager app is coming along well, and should see an alpha release shortly.

preflex 2017-03-25 08:25

Re: XWayland Victory!
 
Bonus round:

I messed around with Ubuntu Zesty Beta 2 rootfs from http://cdimage.ubuntu.com/ubuntu-bas.../zesty/beta-2/
It works ... mostly.

Unlike Archlinux, chromium does not work.
However, also unlike Archlinux, firefox does work!

preflex 2017-03-25 08:58

Re: XWayland Victory!
 
1 Attachment(s)
Sneak preview screenshot of manager app:

preflex 2017-03-25 22:26

Re: XWayland Victory!
 
To set XFCE dpi from command line:

xfconf-query -c xsettings -p /Xft/DPI -s 160

elros34 2017-04-04 11:05

Re: XWayland Victory!
 
I have compiled glibc 2.23 using crosstool-ng for those who have 3.0 kernel. In ubuntu 17.04 there is 2.24 version but it requires 3.2 kernel, however 2.23 works.

Also, I had to forget something because you need to create few symlinks from /lib/arm-linux-gnueabihf/*so* to /lib/.

moodroid 2017-04-04 15:56

Re: XWayland Victory!
 
Quote:

Originally Posted by elros34 (Post 1526435)
I have compiled glibc 2.23 using crosstool-ng for those who have 3.0 kernel. In ubuntu 17.04 there is 2.24 version but it requires 3.2 kernel, however 2.23 works.

Also, I had to forget something because you need to create few symlinks from /lib/arm-linux-gnueabihf/*so* to /lib/.

Excellent, thanks. If you get time, could we have a quick Ubuntu setup guide, or would I be better waiting for preflex's installer?

elros34 2017-04-04 16:54

Re: XWayland Victory!
 
2 Attachment(s)
Basically steps are the same like on arch. You have to unpack ubuntu rootfs to directory and install bunch of packages.
The best would be to work together (in github or here) to create well working build and chroot scripts.

I have attached my scripts but they need improving before execute.

preflex 2017-04-05 04:42

Re: XWayland Victory!
 
Quote:

Originally Posted by elros34 (Post 1526435)
I have compiled glibc 2.23 using crosstool-ng for those who have 3.0 kernel. In ubuntu 17.04 there is 2.24 version but it requires 3.2 kernel, however 2.23 works.Also, I had to forget something because you need to create few symlinks from /lib/arm-linux-gnueabihf/*so* to /lib/.

For which devices is this an issue?


All times are GMT. The time now is 05:43.

vBulletin® Version 3.8.8