How to tell Wayland's running status?

Moderator: Forum moderators

Post Reply
Clarity
Posts: 3271
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1348 times
Been thanked: 438 times

How to tell Wayland's running status?

Post by Clarity »

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

User avatar
Grey
Posts: 1984
Joined: Wed Jul 22, 2020 12:33 am
Location: Russia
Has thanked: 75 times
Been thanked: 355 times

Re: Wayland detection?

Post 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 :)

Fossapup OS, Ryzen 5 3600 CPU, 64 GB RAM, GeForce GTX 1050 Ti 4 GB, Sound Blaster Audigy Rx with amplifier + Yamaha speakers for loud sound, USB Sound Blaster X-Fi Surround 5.1 Pro V3 + headphones for quiet sound.

williams2
Posts: 1023
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 288 times

Re: Wayland detection?

Post 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.

Clarity
Posts: 3271
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1348 times
Been thanked: 438 times

Re: Wayland detection?

Post 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.

williams2
Posts: 1023
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 288 times

Re: Wayland detection?

Post 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.

Clarity
Posts: 3271
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1348 times
Been thanked: 438 times

Wayland detection?

Post 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

dimkr
Posts: 1907
Joined: Wed Dec 30, 2020 6:14 pm
Has thanked: 36 times
Been thanked: 827 times

Re: How to tell Wayland's running status?

Post 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

Clarity
Posts: 3271
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1348 times
Been thanked: 438 times

Re: How to tell Wayland's running status?

Post by Clarity »

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

Post Reply

Return to “Graphics/Video”