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: 678

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
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2280
Location: Adendorf, 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
_________________
Important German:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
Tolstoi
l33t
l33t


Joined: 20 May 2004
Posts: 678

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.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

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
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2280
Location: Adendorf, 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!)
_________________
Important German:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
croutch
n00b
n00b


Joined: 04 Aug 2012
Posts: 32
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: 231
Location: Brazil

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=xwayland.so
# modules=desktop-shell.so,xwayland.so # obsolete from 1.7

[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)
Code:
 # usermod -a -G video <user>


7) Start Wayland
Inside X:
$ weston
Oustside X:
$ weston-launch

Wayland Restrictions: You can only switch from Weston tty to X11 tty. Say, for example, you ran startx in tty1 and your X11 setup went tty7. Then, you ran weston-launch in tty2, so your Weston setup stayed tty2. If you are in Weston tty2, the only tty you can swicth to is tty7, the one with X11. If you try another tty your system will freeze.

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)

UPDATE2 (23/04/2015): If you didn't added your user to video group you can have trouble playing videos with mpv. For this, I just added step 6
_________________
Emerging en gentoo


Last edited by rudregues on Sat May 21, 2016 7:33 pm; edited 8 times in total
Back to top
View user's profile Send private message
miket
Guru
Guru


Joined: 28 Apr 2007
Posts: 483
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: 231
Location: Brazil

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: 1248
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
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 231
Location: Brazil

PostPosted: Mon Apr 27, 2015 1:05 am    Post subject: Reply with quote

I'm with weston version 1.7 installed. Was playing around with google-chrome version 42 but I'm not able to click to open new tabs, enter a link etc. Anyone using wayland with this problem?
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
synss
Apprentice
Apprentice


Joined: 08 Mar 2006
Posts: 282
Location: Dijon > Berlin > Tokyo > Nürnberg > München

PostPosted: Sun May 31, 2015 1:01 pm    Post subject: Reply with quote

rudregues wrote:
I'm with weston version 1.7 installed. Was playing around with google-chrome version 42 but I'm not able to click to open new tabs, enter a link etc. Anyone using wayland with this problem?


This is apparently a known bug:
https://bugs.freedesktop.org/show_bug.cgi?id=89178
_________________
Compress portage tree
Elog viewer
Autodetect swap
Back to top
View user's profile Send private message
ShanaXXII
Apprentice
Apprentice


Joined: 29 Jun 2014
Posts: 283
Location: Canada

PostPosted: Sun May 31, 2015 9:20 pm    Post subject: Reply with quote

Sorry to go off topic, but did anyone experience really slow mouse cursor on Weston?
I literally have to slide my finger across the touchpad 4-5 times to get from one side of the screen to the other.
Back to top
View user's profile Send private message
synss
Apprentice
Apprentice


Joined: 08 Mar 2006
Posts: 282
Location: Dijon > Berlin > Tokyo > Nürnberg > München

PostPosted: Sun May 31, 2015 9:40 pm    Post subject: Reply with quote

ShanaXXII wrote:
Sorry to go off topic, but did anyone experience really slow mouse cursor on Weston?
I literally have to slide my finger across the touchpad 4-5 times to get from one side of the screen to the other.


Same here. As well as for some people on Arch:

https://bbs.archlinux.org/viewtopic.php?pid=1384381#p1384381


Trying the very latest from git may help. There were walyand/libinput patches last week. I do not know, though, I only played 5 min with the version in the tree.
_________________
Compress portage tree
Elog viewer
Autodetect swap
Back to top
View user's profile Send private message
friesia
Apprentice
Apprentice


Joined: 23 Mar 2007
Posts: 202

PostPosted: Fri Jun 12, 2015 10:37 am    Post subject: Reply with quote

I tried Weston today and video playback in mpv seems to be not very smooth... People movements feel unnatural. I immediately see the difference once I play it again in X.
I run mpv with "-vo wayland".
I have a radeon card.
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