LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-24-2022, 06:56 PM   #1
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
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?

Last edited by Skaperen; 07-24-2022 at 06:58 PM.
 
Old 07-24-2022, 07:30 PM   #2
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Seing you're running Slackware, why not just switch?
 
Old 07-24-2022, 10:22 PM   #3
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
I think the answer to all of those is yes. Which Wayland compositor(s?) are you thinking of trying?
 
Old 07-24-2022, 11:36 PM   #4
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by Jan K. View Post
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?
 
Old 07-24-2022, 11:42 PM   #5
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by evo2 View Post
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?
 
Old 07-25-2022, 02:42 AM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by Skaperen View Post
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.
 
Old 07-25-2022, 02:46 AM   #7
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by Skaperen View Post
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 View Post
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 View Post
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.
 
Old 07-25-2022, 06:13 AM   #8
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
sound is independent of the desktop.....unless you run KDE which has phonon but alsa runs fine on libX, Xorg or Wayland
 
Old 07-29-2022, 01:29 AM   #9
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by evo2 View Post
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.
 
Old 07-29-2022, 01:37 AM   #10
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by aus9 View Post
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)?
 
Old 07-29-2022, 01:48 AM   #11
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by evo2 View Post
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 View Post
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?
 
Old 07-29-2022, 01:58 AM   #12
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by aus9 View Post
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.
 
Old 07-29-2022, 02:15 AM   #13
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by Skaperen View Post
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 View Post
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 View Post
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 View Post
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.

Last edited by evo2; 07-29-2022 at 02:17 AM.
 
Old 07-29-2022, 02:34 AM   #14
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by Skaperen View Post
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.
 
2 members found this post helpful.
Old 07-29-2022, 07:16 PM   #15
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by evo2 View Post
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 View Post
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 View Post
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 View Post
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.

Last edited by Skaperen; 07-29-2022 at 07:19 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wayland: Inaccessible and restrictive by design? (Aka, Wayland won't get out of my way and I don't want it in my future.) CajunCoder Linux - General 2 09-04-2017 12:32 PM
Does gnome-flashback session use wayland? Do all gtk3 apps use wayland? rubankumars Linux - Desktop 1 08-08-2017 04:13 AM
LXer: Mutter Wayland 3.11.2 Now Syncs Keymap from X.Org to Wayland LXer Syndicated Linux News 0 12-04-2013 02:15 AM
Future !X ? Wayland : X - what is wayland? serafean Linux - General 5 03-04-2011 11:09 AM
LXer: Wayland VS X - Some Perspectives LXer Syndicated Linux News 0 11-22-2010 10:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration