Skip to main content
Topic: Make Wayland Stay Gone (Read 10358 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: Make Wayland Stay Gone

Reply #15

It's called a session because it runs from login to logout, I think it's a pretty apt name for it. And although wayland can spawn programs in x11 for compatibility purposes, this refers to x11 alone.


People can make things up but this is technology where words have specific and exact meanings.  Linux does not have "session"s.  It has processes - heavy or light, which can be child processes or not.  It uses fork() and clone() and you can see the processes with the ps command or the pstree command.  Processes are sent to the scheduler to receive their share of time and share a memory stack which can be segregated and which is processed by a CPU which is a Newman machine.

None of which has the word "session".  So when the word session is used, I am confused to what you mean. 

I run several X server processes at the same time on different ttys, btw, for different work.

You are saying a session is a program that runs with login and ends with logout?  That doesn't even describe that X or Wayland does.  XDM or whatever greeting application you are running, is ran from the system as a service from the init.  A service is a process started by the init system which runs as a dameon.  So with a conventional graphics login, X or Wayland is running before you login and still runs upon exit.  If that is not correct, I am happen to be corrected.

https://tldp.org/LDP/tlk/kernel/processes.html

You are either heavily on the spectrum, or peaking in dunning-kruger. While session may not a rigorously defined term, everyone understand what it means in the context it is used in. Whether you are trying to flex your knowledge or are genuinely confused, you can only resolve that with introspection, derailing threads won't get you anywhere.

Then you have a waking session in which you started a system power on session which booted into a linux kernel session that let you start a x11 session that let you have a browser session during which you made this post. Noone argued that "session" was an x-related term, and I would advise against using a tech forum as a replacement for social interaction.

Cheers

Re: Make Wayland Stay Gone

Reply #16

You are either heavily on the spectrum, or peaking in dunning-kruger. While session may not a rigorously defined term, everyone understand what it means in the context it is used in. Whether you are trying to flex your knowledge or are genuinely confused, you can only resolve that with introspection, derailing threads won't get you anywhere.




Don't be a PRICK and one of the two of us in the conversation actually has a medical license and that would not be you.  Since you are an expert, you explain what a session is.  So far, you have struck out.  I am waiting for a definition and that definition has to conform the reality of real Linux... not made up BS.   Instead of just answering the question, you've decided to be a prick. which in fact, derails the thread.

So I will repeat, I am ignorant of what session means in this regard.   If you can explain it, then do so.  If you want to just blow smoke ...  you can find a different target.  I originally apologized for my ignorance, but what I don't apologize for is you slip slop non-answer, or your aggressive response.

What I am digging at here, BTW, is that there has been far too much sloppy use of language with regard to this technology, especially in anything that emulates from the Free Desktop world, and from systemd proponents.  When Artooo says session, I want to know if he means an independent X process that runs client software natively, or some plugin to Wayland, or the X compositor for wayland, or something else.  They are all different, especially within the context of this thread.

Re: Make Wayland Stay Gone

Reply #17
Plasma has pretty much adopted wayland as the main display server in the past year or so, and besides if you're using something as "bloated" as plasma, I don't understand why you'd worry about the couple MB of disk space removing wayland would give you. As for me personally I've had 0 hickups with wayland, and the only reason I would use x11 is for DWM.



They are not worried about that.  They are worried about being trapped into Wayland for the future and be subject to the whims of that coding team.  He prefers the freedom that X provides and the  flexibility of its  network aware architecture.

But you know that, right?, which is the cause of the hostility.

I agree with you, BTW,, that Plasma is bloated and it runs against the grain in some respects of why people might prefer X over wayland, but this combination has been used for well over a decade and some people want to have bloated Plasma without being locked into Wayland.  Not wanting to be locked into Wayland is a significant and rational desire for even those that use QT libraries.

Re: Make Wayland Stay Gone

Reply #18
Since you are an expert, you explain what a session is.
He already did. And it was fair explanation of shell sessions in hindsight, and would be understandable at least for someone completely casual "into computahs". You're just nitpicking at his words...
Don't be a PRICK and one of the two of us in the conversation actually has a medical license and that would not be you. [...] Since you are an expert, you explain what a session is.
Nobody is flaunting their "expert" status except you, and what's even funnier is that it's wrong since you're committing an appeal to authority fallacy by applying your medical credentials to IT tech. I don't see a connection. Judging by your website, which is still on HTTP with broken Apache configurations everywhere, your claimed IT experience is completely undermined. Are you seriously OK? Because I think you should take a few days off the forum, take your family someplace nice and cool off my friend...

Re: Make Wayland Stay Gone

Reply #19

Nobody is flaunting their "expert" status except you

People using advanced medical jargon that they don't understand while making armchair diagnosis on the internet is an old game.  It has been noted and called.   Don't worry about my website.  It serves my purpose and has been doing so since 1998.  As for the problems I am having with the terminology, I explained it in detail already.  Except it or not.  That is no reason to make armchair diagnosis to troll someone with.

Re: Make Wayland Stay Gone

Reply #20
Quote
and one of the two of us in the conversation actually has a medical license
Anti Nowhere League say it better than I could (original better than the Metallica cover)
Give it a rest for the love of Linus

Re: Make Wayland Stay Gone

Reply #21
Quote
and one of the two of us in the conversation actually has a medical license
Anti Nowhere League say it better than I could (original better than the Metallica cover)
Give it a rest for the love of Linus


Peace

Re: Make Wayland Stay Gone

Reply #22
Of course, you can use DWL if you want to stay on Wayland... DWL has a way to go to be on-par with DWM (IMHO, of course).
I managed to get it up and running but there are not enough patches (well, the ones I use anyways) and really don't want to invest time trying to convert/hack/whatever to get things working in Wayland with the patches I do use or created. Not even touching the apps I use.

Oh cool, I hadn't heard of DWL, I'll give it a look. Though there's already some other quite popular and well supported window managers for wayland, I've heard a lot of praise for hyprland though I haven't played around with anything new recently.
[/quote]

Actually river is a wayland compositor very regarded as well as being pretty DWM like, and also on the dynamic tiling compositor by itself.

Re: Make Wayland Stay Gone

Reply #23
According to google (now our AI overlord) linux processes appear to have something called sessions.

The setsid command can be used to start a new 'session'.

I'm not sure exactly what defines a 'session', but it seems to be describable by an integer equivalent in size to the PID_t and can be used in pkill commands to remove all 'session' members.

I know from messing with slim/openbox that the slim 'session' propagates to  openbox and its children. If any of the autostart kids becomes detached (so its parent is pid 1) the 'session' id remains that of slim.

I suspect session and process group are more or less the same.

Re: Make Wayland Stay Gone

Reply #24
According to google (now our AI overlord) linux processes appear to have something called sessions.

The setsid command can be used to start a new 'session'.

I'm not sure exactly what defines a 'session', but it seems to be describable by an integer equivalent in size to the PID_t and can be used in pkill commands to remove all 'session' members.

I know from messing with slim/openbox that the slim 'session' propagates to  openbox and its children. If any of the autostart kids becomes detached (so its parent is pid 1) the 'session' id remains that of slim.

I suspect session and process group are more or less the same.


That appears to lead to an answer..

Quote

      The autogroup feature
       Since Linux 2.6.38, the kernel provides a feature known as
       autogrouping to improve interactive desktop performance in the
       face of multiprocess, CPU-intensive workloads such as building the
       Linux kernel with large numbers of parallel build processes (i.e.,
       the make(1) -j flag).

       This feature operates in conjunction with the CFS scheduler and
       requires a kernel that is configured with CONFIG_SCHED_AUTOGROUP.
       On a running system, this feature is enabled or disabled via the
       file /proc/sys/kernel/sched_autogroup_enabled; a value of 0
       disables the feature, while a value of 1 enables it.  The default
       value in this file is 1, unless the kernel was booted with the
       noautogroup parameter.

       A new autogroup is created when a new session is created via
       setsid(2); this happens, for example, when a new terminal window
       is started.  A new process created by fork(2) inherits its
       parent's autogroup membership.  Thus, all of the processes in a
       session are members of the same autogroup.  An autogroup is
       automatically destroyed when the last process in the group
       terminates.

       When autogrouping is enabled, all of the members of an autogroup
       are placed in the same kernel scheduler "task group".  The CFS
       scheduler employs an algorithm that equalizes the distribution of
       CPU cycles across task groups.  The benefits of this for
       interactive desktop performance can be described via the following
       example.

       Suppose that there are two autogroups competing for the same CPU
       (i.e., presume either a single CPU system or the use of taskset(1)
       to confine all the processes to the same CPU on an SMP system).
       The first group contains ten CPU-bound processes from a kernel
       build started with make -j10.  The other contains a single CPU-
       bound process: a video player.  The effect of autogrouping is that
       the two groups will each receive half of the CPU cycles.  That is,
       the video player will receive 50% of the CPU cycles, rather than
       just 9% of the cycles, which would likely lead to degraded video
       playback.  The situation on an SMP system is more complex, but the
       general effect is the same: the scheduler distributes CPU cycles
       across task groups such that an autogroup that contains a large
       number of CPU-bound processes does not end up hogging CPU cycles
       at the expense of the other jobs on the system.

It is amazing what can be learned when people aren't being hostile and the smoke clears.

sched(7) — Linux manual page


So it seems essentially a session is a set of processes that are grouped together to help the scheduler balance loads between different sessions that might otherwise overload the CPU and cause a  deleterious user experience as otherwise seemingly random  CPU preemptions of applications that share a common environment would be blocked.

I have a few technical thoughts about that, but it doesn't really matter what I think, it is already done as it is.  Maybe it is time to re-look at the schedulers new source code.  This must have made Linus crazy.

Re: Make Wayland Stay Gone

Reply #25
It is amazing what can be learned when people aren't being hostile and the smoke clears.

Spoiler (click to show/hide)

Re: Make Wayland Stay Gone

Reply #26
It is amazing what can be learned when people aren't being hostile and the smoke clears.
Please consider hide your offtopic posts in other people's topics in spoiler tag or, even better, do not post it there at all. If your goal on this forum is not to provoke flood and if you have some extraneous questions and misunderstandings then start new topic. Thank you.


The only thing off topic was the hate mongering. 

But let me show you a forum function that might help you...

https://forum.artixlinux.org/index.php?action=profile;area=lists;sa=ignore


Re: Make Wayland Stay Gone

Reply #27
According to google (now our AI overlord) linux processes appear to have something called sessions.
The setsid command can be used to start a new 'session'.
I'm not sure exactly what defines a 'session', but it seems to be describable by an integer equivalent in size to the PID_t and can be used in pkill commands to remove all 'session' members.
I know from messing with slim/openbox that the slim 'session' propagates to  openbox and its children. If any of the autostart kids becomes detached (so its parent is pid 1) the 'session' id remains that of slim.
I suspect session and process group are more or less the same.

Guys you are waaay overcomplicating this... "Session" as a concept indicates user's timed (logged) interactions throughout their PC usage. Artoo and Dastard used this word merely as concept of time-bounded period of interaction between a user and a system, as mental shortcuts for this. Why are we even discussing simple shit as this thing? This reminds me of those wayland elaborations that point to absolutely nowhere.

Offtopic:
Spoiler (click to show/hide)

Re: Make Wayland Stay Gone

Reply #28
Spoiler (click to show/hide)

Re: Make Wayland Stay Gone

Reply #29
Guys you are waaay overcomplicating this... "Session" as a concept indicates user's timed (logged)


No, we are not, but thank you for adding to the confusion, since session can mean several different things in this context of removing wayland from the system.  Now that it is specifically defined, it leaves this question which is directly on this topic.   To clarify artoo's statement my question is "So are you saying that removing waylands packages and only installed xlibre or X.org will inevitably break most graphic user interfaces?  And is that because they expect a wayland session (which implies it needs to be up and running) to be present?   Or can plasma still run on some version of X without any wayland, which would imply at least theoretically, that we can remove wayland just as we have removed systemd.  It might be more work than the dev team cares to tackle, but in theory it should be able to be done.

Now try to dismiss any more emotional outburst and remain on the topic.