maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nemo Mobile (https://talk.maemo.org/forumdisplay.php?f=53)
-   -   Wayland on N950 / N9 (https://talk.maemo.org/showthread.php?t=90227)

w00t 2013-05-26 18:19

Wayland on N950 / N9
 
I spent a weekend working on Stskeeps' old prototype (with his help) and have successfully replicated it to have Wayland working on N950 (on top of Nemo). Much much thanks is due to him for his patience while working with me and for all of his help and support.

http://qtl.me/wayland_n950.png

It's still quite early days and there's a lot of bugs and hacking to do, but it looks promising.

Source is at https://github.com/rburchell/ti-omap3-sgx-wayland-wsegl, but this is a provisional location, it'll likely move into nemomobile once it's cleaned up.

w00t 2013-05-26 18:20

Re: Wayland on N950 / N9
 
P.S. The same source may also even work on N900. I don't have one still working to try it out, unfortunately.

shmerl 2013-05-26 23:24

Re: Wayland on N950 / N9
 
Very cool. What driver does it use?

w00t 2013-05-26 23:25

Re: Wayland on N950 / N9
 
Quote:

Originally Posted by shmerl (Post 1347069)
Very cool. What driver does it use?

The same one Nemo uses now. ti-omap3-sgx.

w00t 2013-06-04 19:05

Re: Wayland on N950 / N9
 
Update: the repository URL has changed. Link in the main post edited. I have experimental quality packaging in https://build.merproject.org/project...%3An9xx-common, complete with patching of ti-omap3-sgx's installation to ensure it's always pulled in.

What this means in practice: soon, with a bit more QA/testing, it will be possible to use Wayland on N9/N950 with Nemo through just editing /etc/powervr.ini. And once Nemo is in a position where we can jump to Wayland directly (hopefully not forever away...?) -- we can switch the default over ourselves.

w00t 2013-06-06 12:55

Re: Wayland on N950 / N9
 
Some instructions on how to try it out, given a Nemo device: https://wiki.merproject.org/wiki/Ada...9-N950/Wayland

NB! This can lead to you having to reinstall or troubleshoot without a working display if things change in the future. If you aren't comfortable with doing that, don't try this.

qole 2013-08-19 23:08

Re: Wayland on N950 / N9
 
How about XWayland? Does that work?

w00t 2013-08-19 23:10

Re: Wayland on N950 / N9
 
Quote:

Originally Posted by qole (Post 1368245)
How about XWayland? Does that work?

not tried at all. feel free to kick the tyres and see what happens - if it breaks, you can keep the pieces. ;)

(or alternatively report on it and we'll see what happens)

juiceme 2013-08-23 07:00

Re: Wayland on N950 / N9
 
If you are running Nemo from ubiboot, here is a nice hack needed to fix the framebuffer problem in the kernel...

Background:
When you use Wayland instead of X11, the default framebuffer configuration of N9 is not correct. (that's 3 framebuffers, each sized 2MB)
Instead you would need to have one larger FB with 6MB of memory allocated to it.
The solution to this is to add kernel command line parameters "vram=6m omapfb.vram=0:6M", but the current implementation of ubiboot has automatically parsed command line with no option to add your own parameters to it.

Solution:
You can get around this by injecting the needed parameters as sedscript arguments to the command line mangler.
In ubiboot.conf there's the following line: G_NEMO_INITSCRIPT="\/sbin\/init"
You need to change that to G_NEMO_INITSCRIPT="\/sbin\/init\ vram\=6m\ omapfb.vram\=0\:6M"

In the next ubiboot release there will be a feature for appending your own command line arguments, but meanwhile you can use this hack to experiment with Wayland :D

marmistrz 2013-08-23 08:05

Re: Wayland on N950 / N9
 
Is it possible to embed a wayland session into the X session (The whole system runs X, but you can run wayland stuff too)?


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

vBulletin® Version 3.8.8