LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   some questions about Wayland (https://www.linuxquestions.org/questions/linux-general-1/some-questions-about-wayland-4175715032/)

Skaperen 07-24-2022 06:56 PM

some questions about Wayland
 
i'm still using X but interested in how Wayland behaves in certain cases to see how soon i should try jumping to it.

1. does Wayland use virtual terminals in Linux like X does, like typically being on tty7. would i be able to switch to a text console by pressing Ctrl+Alt+F1 on the keyboard or running (as root) chvt 1.

2. can i run X and Wayland concurrently on different virtual terminal and be able to switch between them?

3. can i run multiple instances of Wayland concurrently like i do, now, with multiple instances of X?

4. will Wayland be including any support for sound?

5. can Wayland be run on a VNC console and be connected over a internet connection (best done considering security)? RDP? other protocols?

6. can Wayland be run as an X client and open a window on X to do it's thing there?

Jan K. 07-24-2022 07:30 PM

Seing you're running Slackware, why not just switch?

evo2 07-24-2022 10:22 PM

I think the answer to all of those is yes. Which Wayland compositor(s?) are you thinking of trying?

Skaperen 07-24-2022 11:36 PM

Quote:

Originally Posted by Jan K. (Post 6369689)
Seing you're running Slackware, why not just switch?

i have run Slackware in the past, but i am running Xubuntu 20.04 right now. i may run Slackware, again, in the future, inside a VM or in a cloud instance. it would not be my "desktop" (on a laptop).

so, Slackware has Wayland already set up to go? the questions i posted would be for planning the changes in want to do. so now:

7. can Slackware 15.0 run multiple instances each of X and Wayland concurrently? is there a HOWTO for that?

Skaperen 07-24-2022 11:42 PM

Quote:

Originally Posted by evo2 (Post 6369701)
I think the answer to all of those is yes. Which Wayland compositor(s?) are you thinking of trying?

i don't know of these choices. does it matter?

8. how can the choice of Wayland compositor impact how Wayland would run within Linux virtual terminals like tty7 or tty10.

9. what user interface tool does Wayland use to switch between instances?

10. can Wayland handle more than 12 instances where tty numbers beyond tty12 would be needed?

evo2 07-25-2022 02:42 AM

Quote:

Originally Posted by Skaperen (Post 6369711)
i don't know of these choices. does it matter?

You don't just "run wayland" like you run an X display server plus a window manager.
A wayland compositor provides both the display server and the window management.

So what were you actually planning to run when you wrote "try jumping to it"?

Evo2.

evo2 07-25-2022 02:46 AM

Quote:

Originally Posted by Skaperen (Post 6369711)
8. how can the choice of Wayland compositor impact how Wayland would run within Linux virtual terminals like tty7 or tty10.

They would all be completely independent of each other.
Quote:

Originally Posted by Skaperen (Post 6369711)
9. what user interface tool does Wayland use to switch between instances?

If you're running them on raw VTs then the usual Ctrl+Alt+FN the same as you would normally use to switch between VTs.

Quote:

Originally Posted by Skaperen (Post 6369711)
10. can Wayland handle more than 12 instances where tty numbers beyond tty12 would be needed?

No, that's not how wayland works. Configure as many VTs as you like, and run whatever you want on each of them.

Evo2.

aus9 07-25-2022 06:13 AM

sound is independent of the desktop.....unless you run KDE which has phonon but alsa runs fine on libX, Xorg or Wayland

Skaperen 07-29-2022 01:29 AM

Quote:

Originally Posted by evo2 (Post 6369728)
You don't just "run wayland" like you run an X display server plus a window manager.
A wayland compositor provides both the display server and the window management.

So what were you actually planning to run when you wrote "try jumping to it"?

Evo2.

i don't know how Wayland is really different than X. i've read many past discussions about it that concluded that the Wayland organization solves many problems that the X organization is stuck with.

as for running it i hoped it would be as simple as one command when you start out at a command line virtual text console. it would have some kind of "driver" for each different video card/chip that it supports. i assume it would switch things into what i call "pixel mode" (as opposed to "text mode"). or is it more complex than that.

a document describing Wayland for techies would be nice to have. i prefer not videos or audios.

Skaperen 07-29-2022 01:37 AM

Quote:

Originally Posted by aus9 (Post 6369743)
sound is independent of the desktop.....unless you run KDE which has phonon but alsa runs fine on libX, Xorg or Wayland

so, if i avoid running something like Pulseaudio, running something the produces sound (perhaps with alsa), then switching to another virtual console, will leave that sound playing (as long as that program does nothing else that could cause it to be stalled waiting for the virtual console to be switched back)?

Skaperen 07-29-2022 01:48 AM

Quote:

Originally Posted by evo2 (Post 6369729)
They would all be completely independent of each other.

If you're running them on raw VTs then the usual Ctrl+Alt+FN the same as you would normally use to switch between VTs.

11. can i run Wayland on vt7 and vt8 and vt9 all under the same user name, or, like X, must each be run under a different username?

12. can Wayland be switched with chvt?


Quote:

Originally Posted by evo2 (Post 6369729)
No, that's not how wayland works. Configure as many VTs as you like, and run whatever you want on each of them.

Evo2.

13. what limitations would Wayland impose on this?

14. what about using something like LightDM? or does Wayland include this capability?

Skaperen 07-29-2022 01:58 AM

Quote:

Originally Posted by aus9 (Post 6369743)
sound is independent of the desktop.....unless you run KDE which has phonon but alsa runs fine on libX, Xorg or Wayland

i'm thinking in terms of making a fully encrypted, secure, networked console connection to another host, logging in securely to that host, and play a video in a window (that is seen as a subwindow within the window associated with that networked console connection).

the abstraction to make this possible would need sound to be included in the desktop.

evo2 07-29-2022 02:15 AM

Hi,
Quote:

Originally Posted by Skaperen (Post 6370566)
11. can i run Wayland on vt7 and vt8 and vt9 all under the same user name, or, like X, must each be run under a different username?

They can all be the same user.
Quote:

Originally Posted by Skaperen (Post 6370566)
12. can Wayland be switched with chvt?

I just tried it in a river(See https://github.com/riverwm/river ) session. Worked as root but as my normal user
if failed with:
Code:

% chvt 1
Couldn't get a file descriptor referring to the console.



Quote:

Originally Posted by Skaperen (Post 6370566)
13. what limitations would Wayland impose on this?

Wayland in no way imposes any limitations on how many vts you run.


Quote:

Originally Posted by Skaperen (Post 6370566)
14. what about using something like LightDM? or does Wayland include this capability?

LightDM is an X11 program. There are wayland based alternatives like gdm.

I suggest you do some reading about what wayland actually is.

What is stopping you from just trying this stuff for yourself?

Evo2.

evo2 07-29-2022 02:34 AM

Quote:

Originally Posted by Skaperen (Post 6370562)
as for running it i hoped it would be as simple as one command when you start out at a command line virtual text console.

Log in to a vt, install a wayland compositor, and run it.

I don't know what distro you are running, but on debian you just login on a vt and do

Code:

sudo apt install sway foot
sway

This will launch sway which is a wayland compositor that is almost like i3 window manger.

The default sway keybinding to open the default terminal emulator, called foot is Super+Enter.

Alternatively if you are running gdm, after installing sway you can select if from the gdm menu when you log in.

Evo2.

Skaperen 07-29-2022 07:16 PM

Quote:

Originally Posted by evo2 (Post 6370569)
Hi,
Code:

% chvt 1
Couldn't get a file descriptor referring to the console.


i run into the same problem with X (a different message) but with sudo it works.

Quote:

Originally Posted by evo2 (Post 6370569)
Wayland in no way imposes any limitations on how many vts you run.

years ago, on Slackware, i ran 63 VTs, X on 3 of them and the other 60 were text mode. i remapped the keyboard so i had Ctrl+Alt+keys all over the keyboard, one for each.

Quote:

Originally Posted by evo2 (Post 6370569)
I suggest you do some reading about what wayland actually is.

i have. most things i find leave me with more questions to ask.

Quote:

Originally Posted by evo2 (Post 6370569)
What is stopping you from just trying this stuff for yourself?

Evo2.

not knowing the overall impact to my laptop by just trying things like this. for example, what will happen if i try to run one user with Wayland? i have everything running under LightDM, now, and that can't be changed until i figure out exactly how i am going to organize things so i have a key press with Alt to go to each different user (typically 18 to 21 of them are running) and a keypad keypress to go to a different workspace within each user (most have 10 workspaces, a couple have 16 which i will be expanding to 20.

also i currently run Xfce. i'll need to have that or an equivalent controlling my working environment.

i need to continue using my computer ever day and i am limited to one laptop right now. so i have to get it all setup for me nearly instantly (a couple hours at most) or have Wayland concurrently run with what have now and not break anything.

during the transition to Wayland, i need to be able to do everything i do now, every day, just about every hour.


All times are GMT -5. The time now is 07:25 PM.