You are not logged in.

#1 2017-12-11 06:15:54

bazalia
Member
Registered: 2017-12-11
Posts: 6

[SOLVED] Wayland configurations in weston.ini are not being applied

I am following the arch Wayland wiki to configure weston.

Currently I made the following configuration under ~/.config/weston.ini to make sure that the configuration is working:

[output]
name=LVDS1
mode=1920x1080
transform=flipped
scale=2

I run weston using weston-launch.

But nothing changes, namely, weston launches normally without applying the configurations because there is no scale and no flipping.

When I close weston and read its output I find the following line:

Using config file './weston.ini'

So it seems like it is reading the file (note I am in .config directory), but why am I not seeing the changes?

Last edited by bazalia (2017-12-11 15:15:11)

Offline

#2 2017-12-11 10:54:58

bazalia
Member
Registered: 2017-12-11
Posts: 6

Re: [SOLVED] Wayland configurations in weston.ini are not being applied

The main option I want for now is scale=2 because I have a HiDPI display.

I tried running

weston --backend=drm-backend.so --scale=2

But that crashed (I don't know how to copy the stdout to here as the machine I am trying to get wayland to work in doesn't have a gui)

I noticed that --scale seems to be an option for the wayland and x11 backends only and not for drm backend. So I tried running

weston --backend=wayland-backend.so

and

weston --backend=x11-backend.so

And they returned

Loading module '/usr/lib/libweston-3/wayland-backend.so'
failed to create display: No such file or directory
fatal: failed to create compositor backend

and

Loading module '/usr/lib/libweston-3/x11-backend.so'
fatal: failed to create compositor backend

Note /usr/lib/libweston-3 directory does include both of these files, and that I am running as root, and that I am using nvidia drivers

Offline

#3 2017-12-11 12:14:52

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,618

Re: [SOLVED] Wayland configurations in weston.ini are not being applied

Re-read the wiki page,
then decide whether you prefer to change compositor or videocard manufacturer.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#4 2017-12-11 13:08:41

bazalia
Member
Registered: 2017-12-11
Posts: 6

Re: [SOLVED] Wayland configurations in weston.ini are not being applied

Ok I think I understand this a bit more. But correct me if I'm wrong.

There are multiple compositors that implement the Wayland protocol.

These compositors include Weston, GNOME, Sway and Grefsen.

Weston does not support NVIDIA GPU drivers but other three mentioned above do.

Hence I need to change to another compositor.

Offline

#5 2017-12-11 14:55:59

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,618

Re: [SOLVED] Wayland configurations in weston.ini are not being applied

Close, but not entirely correct.

The official wayland protocol only mentions GBM as Buffer API.
All linux drivers support GBM except the nvidia driver.
Nvidia proposed an alternative called EGLStreams, but they are the only ones that use it and it was rejected for becoming part of the official wayland protocol.

Nvidia started work on a new buffer API that is intended to be supported/usable by all drivers, but no one knows when that will be ready.
The developers of some wayland compositors decided they didn't want to wait for that and implemented EGLStreams support in their compositor.

If you want to combine wayland with the nvidia driver you can only choose between the compositors that include EGLStreams support.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#6 2017-12-11 15:14:41

bazalia
Member
Registered: 2017-12-11
Posts: 6

Re: [SOLVED] Wayland configurations in weston.ini are not being applied

Ok thanks for the answer, I'm always happy to learn something new.

I ended up installing GNOME and everything is fine now.

Offline

#7 2017-12-11 16:18:00

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [SOLVED] Wayland configurations in weston.ini are not being applied

bazalia wrote:

When I close weston and read its output I find the following line:

Using config file './weston.ini'

So it seems like it is reading the file (note I am in .config directory), but why am I not seeing the changes?

Maybe no longer interesting fo you, but this meens that the config file needs to be in ~, not in ~/.config.

Offline

#8 2017-12-11 16:31:41

progandy
Member
Registered: 2012-05-17
Posts: 5,298

Re: [SOLVED] Wayland configurations in weston.ini are not being applied

Stefan Husmann wrote:
bazalia wrote:

When I close weston and read its output I find the following line:

Using config file './weston.ini'

So it seems like it is reading the file (note I am in .config directory), but why am I not seeing the changes?

Maybe no longer interesting fo you, but this meens that the config file needs to be in ~, not in ~/.config.

No. That means it should be loading the configuration file from "{CURRENT_WORKING_DIRECTORY}/weston.ini". bazalia said he was running it after "cd ~/.config", so it should be right.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#9 2017-12-11 16:35:46

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Wayland configurations in weston.ini are not being applied

Stefan Husmann wrote:
bazalia wrote:

When I close weston and read its output I find the following line:

Using config file './weston.ini'

So it seems like it is reading the file (note I am in .config directory), but why am I not seeing the changes?

Maybe no longer interesting fo you, but this meens that the config file needs to be in ~, not in ~/.config.

No it doesn't. It means that it is looking for weston.ini in the current directory.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB