Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wayland how to?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Tolstoi
l33t
l33t


Joined: 20 May 2004
Posts: 645

PostPosted: Wed Sep 18, 2013 8:23 am    Post subject: Wayland how to? Reply with quote

Ok, I installed Wayland and Weston. Set the wayland use flag globally and recompiled the necessary packages. But how do I go on from now on?
A weston-launch from a terminal only gives me an error message complaining about an XDG directory.
Couldn't find a how to anywhere.
Back to top
View user's profile Send private message
Yamakuzure
Veteran
Veteran


Joined: 21 Jun 2006
Posts: 1374
Location: Bardowick, Germany

PostPosted: Wed Sep 18, 2013 9:41 am    Post subject: Reply with quote

First of all: Wayland is very new, and highly experimental with only very limited support.

In general:
http://www.linux.com/news/software/applications/732649-wayland-is-coming-wayland-is-coming wrote:
Wayland has been in development for five years by the people with the most expertise: the Xorg team. It's going to take a few more years before it's ready for prime time, but you can play with it now. The best distro for previewing Wayland is Arch Linux, which has all the essential bits in their software repos and some good beginner instructions.


The most useful source would be (as so many times) ArchWiki:
https://wiki.archlinux.org/index.php/Wayland

A blog post about KDE Plasma on Wayland:
http://blog.martin-graesslin.com/blog/2013/06/starting-a-full-kde-plasma-session-in-wayland
_________________
I *do* know that I easily aggravate people due to my condensed writing. Rule of thumb: If I wrote anything that can be understood in two different ways, and one way offends you, then I meant the other! ;)
Back to top
View user's profile Send private message
Tolstoi
l33t
l33t


Joined: 20 May 2004
Posts: 645

PostPosted: Thu Sep 19, 2013 8:16 am    Post subject: Reply with quote

Thanks for providing me with those links to the articles. Yes, you are probably right that using Wayland isn't very convenient yet.
Back to top
View user's profile Send private message
^marcs
Apprentice
Apprentice


Joined: 09 Mar 2005
Posts: 169

PostPosted: Sat Sep 21, 2013 4:34 pm    Post subject: Reply with quote

I hate to go offtopic, but I hope they are exaggerating with this "few more years" :?
Back to top
View user's profile Send private message
Ant P.
Advocate
Advocate


Joined: 18 Apr 2009
Posts: 2333
Location: UK

PostPosted: Sat Sep 21, 2013 5:10 pm    Post subject: Reply with quote

^marcs wrote:
I hate to go offtopic, but I hope they are exaggerating with this "few more years" :?

They're building a display server intended to replace the oldest one in the world. It's better for them to take their time and get it right.
Back to top
View user's profile Send private message
Yamakuzure
Veteran
Veteran


Joined: 21 Jun 2006
Posts: 1374
Location: Bardowick, Germany

PostPosted: Wed Sep 25, 2013 2:25 pm    Post subject: Reply with quote

Ant P. wrote:
^marcs wrote:
I hate to go offtopic, but I hope they are exaggerating with this "few more years" :?

They're building a display server intended to replace the oldest one in the world. It's better for them to take their time and get it right.
And in the meantime:(Youtube)The real story behind Wayland and X. ;) (Warning! 45min!)
_________________
I *do* know that I easily aggravate people due to my condensed writing. Rule of thumb: If I wrote anything that can be understood in two different ways, and one way offends you, then I meant the other! ;)
Back to top
View user's profile Send private message
croutch
n00b
n00b


Joined: 04 Aug 2012
Posts: 31
Location: göteborg

PostPosted: Sun Oct 13, 2013 5:34 pm    Post subject: Reply with quote

I found this video from arch forums. And first time i see wayland in action.

http://www.youtube.com/watch?v=FZJrCt9e7To
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 195

PostPosted: Thu Jan 23, 2014 2:38 am    Post subject: Reply with quote

Well, there's no official Wayland how-to yet, but I struggled trying make it work and will show my steps (just what worked haha):

1) $ nano ~.config/weston.ini
Code:
[core]
modules=desktop-shell.so,xwayland.so

[keyboard]
keymap_layout=br-abnt2-rudregues


[launcher]
icon=/usr/share/icons/gnome/24x24/apps/utilities-terminal.png
path=/usr/bin/weston-terminal

[launcher]
icon=/usr/share/icons/hicolor/24x24/apps/google-chrome.png
path=/usr/bin/chromium


[output]
name=LVDS    ## if you don't know your device name, run xrandr and it will tell you
mode=1366x768   ## this is my notebook resolution
transform=90


2) $ nano ~.bash_profile
Code:
if test -z "${XDG_RUNTIME_DIR}"; then
    export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
    if ! test -d "${XDG_RUNTIME_DIR}"; then
        mkdir "${XDG_RUNTIME_DIR}"
        chmod 0700 "${XDG_RUNTIME_DIR}"
    fi
fi


3) # nano /etc/portage/package.use
Code:
sys-devel/llvm -ncurses


4) # emerge llvm weston

5)
Code:
# groupadd weston-launch
   # usermod -a -G weston-launch <user>


6) Start Wayland inside X:
$ weston
Oustside X:
$ weston-launch

Obs.: step 3 solved a bug related to terminfo that made me suck hard, it was very hard to figure out what was happening. And remember using open video drivers.

Sources:
http://wayland.freedesktop.org/building.html
https://wiki.archlinux.org/index.php/Wayland


I forgot to mention, never run weston or weston-launch as root, as your VT can freeze. I'm having freezes with weston-launch (yes, I ran as root...) but weston works inseide X yet.

EDIT: weston-launch was failing because of my keyboard setup in weston.ini (keymap_layout=br-abnt2-rudregues doesn't work, tried br, br-abnt2 and didn't worked too, just us worked...)

UPDATE (28/03/2014): solved keyboard issue! Just had to put one line with keymap_model=thinkpad60 and another with keymap_layout=br in weston.ini. It's funny, but the documentation that helped me was Ubuntu man pages http://manpages.ubuntu.com/manpages/saucy/man5/weston.ini.5.html and http://manpages.ubuntu.com/manpages/precise/man7/xkeyboard-config.7.html
Also, I've changed chrome icon to chromium one (/usr/share/icons/hicolor/24x24/apps/chromium-browser.png)
_________________
Emerging en gentoo


Last edited by rudregues on Fri Mar 28, 2014 6:53 pm; edited 2 times in total
Back to top
View user's profile Send private message
miket
Apprentice
Apprentice


Joined: 28 Apr 2007
Posts: 204
Location: Gainesville, FL, USA

PostPosted: Tue Mar 25, 2014 12:23 am    Post subject: Reply with quote

Yamakuzure wrote:
http://www.linux.com/news/software/applications/732649-wayland-is-coming-wayland-is-coming wrote:
Wayland has been in development for five years

^marcs wrote:
I hate to go offtopic, but I hope they are exaggerating with this "few more years"

I sure hope Wayland doesn't turn out to be the Hurd of the 2010's.
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 195

PostPosted: Tue Mar 25, 2014 3:13 am    Post subject: Reply with quote

miket wrote:

I sure hope Wayland doesn't turn out to be the Hurd of the 2010's.

I'm already able to start a weston session and run some apps: evince, gedit, gnumeric and transmission-remote-gtk.
I'm pretty sure Wayland will be my default graphical server in 1 or 2 years.
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1237
Location: 42.68n 85.41w

PostPosted: Tue Mar 25, 2014 5:26 am    Post subject: Reply with quote

im just waiting for the wayland threads to become moron brawls like the systemd threads. :lol: http://www.youtube.com/watch?v=8opI8sbChcY&feature=share

http://hollywoodhatesme.files.wordpress.com/2011/01/smithers-and-burns.png
_________________
cat /etc/*-release
Funtoo Linux - baselayout 2.2.0
consider this warning no. 1
https://wiki.gentoo.org/index.php?title=Special:Contributions/666threesixes666&offset=&limit=500&target=666threesixes666
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum