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)

preflex 2017-03-08 22:52

Re: XWayland Victory!
 
Quote:

Originally Posted by matemana (Post 1525071)
could you check again there are two files. one named 'mode' and second 'modes' first file is empty for me but second has resolution in it. i was looking for this info thanks for help. i'll make changes to script to select resolution automatically.

Sounds like we're the same. On my system "mode" was empty and "modes" had the screen res.

matemana 2017-03-09 05:37

Re: XWayland Victory!
 
Quote:

Originally Posted by preflex (Post 1525073)
Sounds like we're the same. On my system "mode" was empty and "modes" had the screen res.

All right then, i'll make script.

One thing, I do not understand how this works? is this some kind of emulation? Or does this arch linux use sailfish os kernel?

preflex 2017-03-09 06:39

Re: XWayland Victory!
 
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

matemana 2017-03-09 10:32

Re: XWayland Victory!
 
Here is script to automatically get resolution.
This only needs one argument. for example: startlxde.

This can be change to search that file and if it's not available or if it could not find resolution to ask user to enter by hand, but i'm on work now and do not have time. When i get home i'll add that.

If you change $y $x places you will see half of your screen. Because Arch itself will open in landscape mode, but the whole window is in portrait mode. So if we somehow manage to rotate whole window itself it will work in landscape mode :)

HTML Code:

resolution=`cat /sys/class/graphics/fb0/modes | grep -o -P '(?<=U:).*(?=p)'`
x=${resolution%%x*}
y=${resolution##*x}
chroot /opt/easychroot/Arch bash /usr/share/easychroot/scripts/start_xwayland_user_shell.sh $y $x $1


matemana 2017-03-09 21:10

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

Your script had typo and there were many outputs in terminal. correct it.

/usr/share/easychroot/scripts/start_xwayland_user_shell.sh: line 12: dbus-lsunch: command not found

it should be dbus-launch :)


Best way to kill arch linux processes

just run this command

pid=`ps -ef | grep -v grep | grep xw | awk '{print $2}'` && kill -9 $pid


Can you tell me what terminal output do you have when running DeskChroot.sh?

Here is what i am having everytime i run it on Nexus 5

HTML Code:

No backend specified through command line argument, trying auto resolution
Disabling glamor and dri3, EGL setup failed
Failed to initialize glamor, falling back to sw
X-Server started on display :0
[D] unknown:0 - Configuring Lock Action
[W] unknown:0 - Could not create scene graph context for backend 'customcontext' - check that plugins are installed correctly in /usr/lib/qt/plugins
[W] unknown:21 - file:///usr/share/kwin/virtualkeyboard/main.qml:21:1: module "QtQuick.VirtualKeyboard" is not installed
    import QtQuick.VirtualKeyboard 2.1
    ^
[W] unknown:21 - file:///usr/share/kwin/virtualkeyboard/main-enterprise.qml:21:1: module "QtQuick.Enterprise.VirtualKeyboard" is not installed
    import QtQuick.Enterprise.VirtualKeyboard 2.0
    ^
[W] unknown:0 - Could not locate service type file kservicetypes5/kwin-effect.desktop, tried ("/root/.local/share", "/usr/local/share", "/usr/share")
[W] unknown:0 - Could not locate service type file kservicetypes5/kwin-effect.desktop, tried ("/root/.local/share", "/usr/local/share", "/usr/share")
[W] unknown:0 - Could not locate service type file kservicetypes5/kwin-effect.desktop, tried ("/root/.local/share", "/usr/local/share", "/usr/share")
[W] unknown:0 - Could not locate service type file kservicetypes5/kwin-effect.desktop, tried ("/root/.local/share", "/usr/local/share", "/usr/share")
[W] unknown:0 - Could not locate service type file kservicetypes5/kwin-effect.desktop, tried ("/root/.local/share", "/usr/local/share", "/usr/share")
[W] unknown:0 - Could not locate service type file kservicetypes5/kwin-effect.desktop, tried ("/root/.local/share", "/usr/local/share", "/usr/share")
[W] unknown:0 - Could not locate service type file kservicetypes5/kwin-effect.desktop, tried ("/root/.local/share", "/usr/local/share", "/usr/share")
[W] unknown:0 - Could not locate service type file kservicetypes5/kwin-effect.desktop, tried ("/root/.local/share", "/usr/local/share", "/usr/share")
[W] unknown:0 - Could not locate service type file kservicetypes5/kwin-effect.desktop, tried ("/root/.local/share", "/usr/local/share", "/usr/share")
[W] unknown:0 - Could not locate service type file kservicetypes5/kwin-effect.desktop, tried ("/root/.local/share", "/usr/local/share", "/usr/share")
[W] unknown:0 - Could not locate service type file kservicetypes5/kwin-script.desktop, tried ("/root/.local/share", "/usr/local/share", "/usr/share")
[W] unknown:0 - Could not locate service type file kservicetypes5/kwin-script.desktop, tried ("/root/.local/share", "/usr/local/share", "/usr/share")
[W] unknown:0 - Could not locate service type file kservicetypes5/kwin-script.desktop, tried ("/root/.local/share", "/usr/local/share", "/usr/share")
[W] unknown:0 - Could not locate service type file kservicetypes5/kwin-script.desktop, tried ("/root/.local/share", "/usr/local/share", "/usr/share")
[W] unknown:0 - Could not locate service type file kservicetypes5/kwin-script.desktop, tried ("/root/.local/share", "/usr/local/share", "/usr/share")
[D] unknown:0 - Session path: "/org/freedesktop/login1/session/c2"
Service started, version: 7.0.0
access control disabled, clients can connect from any host
dbus-update-activation-environment: warning: error sending to systemd: org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.freedesktop.systemd1 exited with status 1
** Message: main.vala:102: Session is LXDE
** Message: main.vala:103: DE is LXDE
** Message: main.vala:134: log directory: /home/nemo/.cache/lxsession/LXDE
** Message: main.vala:135: log path: /home/nemo/.cache/lxsession/LXDE/run.log
[W] unknown:0 - X11 implementation of KKeyServer accessed from non-X11 platform! This is an application bug.


mscion 2017-03-09 22:04

Re: XWayland Victory!
 
Hi. In regards to several of the warnings you are getting, there seems to be an inconsistency in the file naming convention. If you go to

/usr/share/kservicetypes5

you will see that the file (or services) do not have a dash in the name.

That is

kwin-effect.desktop

is called

kwineffect.desktop

in the directory. Although probably not the best solution, I just made a symbolic link to the correct file in the same directory.

wdehoog 2017-03-09 22:11

Re: XWayland Victory!
 
Great work. Thanks for it. I run it on a oneplus one.

I tried to use plasmashell but everything is too small. (1920x1080 display) and eventhough I change dpi and 'scale desktop' a new start shows everything still too small (except the 'scale desktop' preview which seem to be the only widget that knows about this setting).

preflex 2017-03-09 23:39

Re: XWayland Victory!
 
Quote:

Originally Posted by wdehoog (Post 1525122)
Great work. Thanks for it. I run it on a oneplus one.

I tried to use plasmashell but everything is too small. (1920x1080 display) and eventhough I change dpi and 'scale desktop' a new start shows everything still too small (except the 'scale desktop' preview which seem to be the only widget that knows about this setting).

If you're using xfce, you might try changing the setting in the "Fonts" tab in xfce's Appearance settings.

preflex 2017-03-09 23:43

Re: XWayland Victory!
 
Quote:

Originally Posted by mscion (Post 1525119)
Hi. In regards to several of the warnings you are getting, there seems to be an inconsistency in the file naming convention. If you go to

/usr/local/share/kservicetypes5

you will see that the file (or services) do not have a dash in the name.

That is

kwin-effect.desktop

is called

kwineffect.desktop

in the directory. Although probably not the best solution, I just made a symbolic link to the correct file in the same directory.

Thanks!

For me the files were in /usr/share/kservicetypes5, and not in /usr/local/share/kservicetypes5.

Also there is a similar issue with the kwin-scripts.desktop file, which can be fixed the same way.

mscion 2017-03-09 23:57

Re: XWayland Victory!
 
Quote:

Originally Posted by preflex (Post 1525126)
Thanks!

For me the files were in /usr/share/kservicetypes5, and not in /usr/local/share/kservicetypes5.

Also there is a similar issue with the kwin-scripts.desktop file, which can be fixed the same way.

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!


All times are GMT. The time now is 04:26.

vBulletin® Version 3.8.8