View previous topic :: View next topic |
Author |
Message |
Tolstoi l33t
Joined: 20 May 2004 Posts: 678
|
Posted: Wed Sep 18, 2013 8:23 am Post subject: Wayland how to? |
|
|
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 |
|
|
Yamakuzure Advocate
Joined: 21 Jun 2006 Posts: 2284 Location: Adendorf, Germany
|
Posted: Wed Sep 18, 2013 9:41 am Post subject: |
|
|
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:- "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
- "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
|
|
Back to top |
|
|
Tolstoi l33t
Joined: 20 May 2004 Posts: 678
|
Posted: Thu Sep 19, 2013 8:16 am Post subject: |
|
|
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 |
|
|
^marcs Apprentice
Joined: 09 Mar 2005 Posts: 169
|
Posted: Sat Sep 21, 2013 4:34 pm Post subject: |
|
|
I hate to go offtopic, but I hope they are exaggerating with this "few more years" |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Sat Sep 21, 2013 5:10 pm Post subject: |
|
|
^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 |
|
|
Yamakuzure Advocate
Joined: 21 Jun 2006 Posts: 2284 Location: Adendorf, Germany
|
Posted: Wed Sep 25, 2013 2:25 pm Post subject: |
|
|
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:- "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
- "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
|
|
Back to top |
|
|
croutch n00b
Joined: 04 Aug 2012 Posts: 32 Location: göteborg
|
|
Back to top |
|
|
rudregues Apprentice
Joined: 29 Jan 2013 Posts: 231 Location: Brazil
|
Posted: Thu Jan 23, 2014 2:38 am Post subject: |
|
|
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 |
|
|
miket Guru
Joined: 28 Apr 2007 Posts: 488 Location: Gainesville, FL, USA
|
Posted: Tue Mar 25, 2014 12:23 am Post subject: |
|
|
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 |
|
|
rudregues Apprentice
Joined: 29 Jan 2013 Posts: 231 Location: Brazil
|
Posted: Tue Mar 25, 2014 3:13 am Post subject: |
|
|
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 |
|
|
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
|
Back to top |
|
|
rudregues Apprentice
Joined: 29 Jan 2013 Posts: 231 Location: Brazil
|
Posted: Mon Apr 27, 2015 1:05 am Post subject: |
|
|
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 |
|
|
synss Apprentice
Joined: 08 Mar 2006 Posts: 282 Location: Dijon > Berlin > Tokyo > Nürnberg > München
|
|
Back to top |
|
|
ShanaXXII Apprentice
Joined: 29 Jun 2014 Posts: 283 Location: Canada
|
Posted: Sun May 31, 2015 9:20 pm Post subject: |
|
|
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 |
|
|
synss Apprentice
Joined: 08 Mar 2006 Posts: 282 Location: Dijon > Berlin > Tokyo > Nürnberg > München
|
Posted: Sun May 31, 2015 9:40 pm Post subject: |
|
|
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 |
|
|
friesia Apprentice
Joined: 23 Mar 2007 Posts: 202
|
Posted: Fri Jun 12, 2015 10:37 am Post subject: |
|
|
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 |
|
|
|