You are not logged in.

#1 2024-07-05 19:25:32

sima214
Member
Registered: 2024-07-05
Posts: 2

Add wayland on a different gpu alongside an already configured x11 wm.

I've been running the awesome wm on my nvidia gpu, but now I want to use my intel igpu to run a wayland application using cage.
I've re-enabled the igpu in the bios and connected a monitor to the motherboard. It's getting a signal, but the output is blank so far.
My knowledge specific to wayland is minimal, as it got popular after I spent a lot of time tinkering with linux, so I do not know how to continue.

Note 1: I am using grub as the bootloader, and getty autologgin along with exec startx in my bash profile.
Note 2: The application I want to run is waydroid, that's why I cannot just run it on the nvidia gpu.

Offline

#2 2024-08-01 18:07:31

sima214
Member
Registered: 2024-07-05
Posts: 2

Re: Add wayland on a different gpu alongside an already configured x11 wm.

The answer was apparently to just use weston.

First of all you have to switch to a virtual terminal that isn't currently being used.
To start weston I simply use: `weston --backend=drm --drm-device=cardN`.
You have to replace 'cardN' with the appropriate device based on the output of `lsgpu` and what you are trying to achieve.
To switch between them you just have to switch the currently active vt. Your inputs only go to the currently active vt, so this how input multiplexing is achieved.

The only issue left is related to some weirdness with screensaver and DPMS setting of the currently non-active view. I get around this by hitting the power switch on my monitor.

Btw, here's my 'weston.ini' contents that achieve similar behavior to cage:

[core]
xwayland=false

[keyboard]
keymap_layout=us

[shell]
background-color=0xFF2E293A
panel-position=none
cursor-size=20

[autolaunch]
path=/usr/bin/weston-terminal
watch=true

Notes:
- As my monitor has the ability to be controlled with a usb interface, I wrote a little program to automate the switching process: https://gitlab.com/Sima214/multi_drm_ms … itcher.cpp
- If you don't what vt is, I am referring to the Linux console.

Hope this was useful to some of you.

Offline

Board footer

Powered by FluxBB