Page 1 of 1

How to tell Wayland's running status?

Posted: Fri Jul 01, 2022 8:59 pm
by Clarity

Is there a utility or command that indicates Wayland running status on a PUP/DOG distro?


Re: Wayland detection?

Posted: Fri Jul 01, 2022 9:31 pm
by Grey
Clarity wrote: Fri Jul 01, 2022 8:59 pm

Is there a utility or command that indicates Wayland running status on a PUP/DOG distro?

If you go to the Display section in HardInfo, then the vendor is listed there for X as "The X.Org Foundation". There will probably be something specified for Wayland too :)


Re: Wayland detection?

Posted: Sat Jul 02, 2022 12:15 am
by williams2

Depends what you want to do. For example,

Code: Select all

# ps|grep -i [x]org
 4161 root      0:26 /usr/lib/xorg/Xorg :0 -br -nolisten tcp
 5008 root      0:00 earlyoom -r0 -m1 --avoid Xorg
# 

shows that I am running Xorg.
and that I am running earlyoom with the --avoid Xorg option.
what do you get running ps|grep -i [x]org ?

Do you want something to happen if ypu are running Wayland?
Or do you just want information?

This will do something if Xorg is running:

ps|grep -qi [x]org && gxmessage 'Xorg is running'

Change Xorg to Wayland if you want to test for Wayland instead of Xorg.

What kind of status? How much ram it is using? How much cpu power it is using? How long it has been running?
htop can show you that.


Re: Wayland detection?

Posted: Sat Jul 02, 2022 1:31 am
by Clarity

Thanks

... Or do you just want information? ...

Want to know which environment the screen-system is running in. Important as we go forward in helping to know which we are dealing with.

As is already noted, there are some subtle differences in behaviors. Thus, wanted to know how to tell and what to report when a PUP/DOG has a desktop started in Wayland vs the traditional Xorg.

I am imagining that we will begin to see more forum distros running the current 2 paradigm changes afoot in Linux: Namely Wayland & Pipewire for very good reasons as the world's hardware manufacturers are behind these 2 recent development changes.

The Vanilla series is just 1 of many that will surface.


Re: Wayland detection?

Posted: Sat Jul 02, 2022 1:53 am
by williams2

Sorry, I think I meant what do you get running ps|grep -i [w]ayland ?
not what do you get running ps|grep -i [x]org ?

If you just want some information, you could use hardinfo as Grey suggested.

If you want your machine to do something if you are running Wayland, ps might work.
And htop can show if Wayland is running or not, and how much memory and cpu power it is using.


Wayland detection?

Posted: Tue Aug 09, 2022 2:18 am
by Clarity

Thought members might find this useful as PUPs/DOGs progress into our future: Are WE There YET .... in WoofCE progress and direction

And from Arch Linux, an updated understanding.

Merely FYI


Re: How to tell Wayland's running status?

Posted: Tue Aug 09, 2022 9:26 am
by dimkr

Use XDG_SESSION_TYPE. It's "wayland" under Wayland, otherwise x11. If you use Wayland but GDK_BACKEND=x11, GTK+ applications talk to Xwayland instead of running natively under Wayland.

If you want to track the current status of Wayland support in Puppy:

https://github.com/puppylinux-woof-CE/w ... nd-Support
https://github.com/puppylinux-woof-CE/w ... projects/1
https://github.com/vanilla-dpup/unstable


Re: How to tell Wayland's running status?

Posted: Mon Jan 23, 2023 8:13 pm
by Clarity

Here's a video posted today on a review of a Wayland desktop