Is there a utility or command that indicates Wayland running status on a PUP/DOG distro?
How to tell Wayland's running status?
Moderator: Forum moderators
-
- Posts: 4063
- Joined: Fri Jul 24, 2020 10:59 pm
- Has thanked: 1704 times
- Been thanked: 552 times
- Grey
- Posts: 2050
- Joined: Wed Jul 22, 2020 12:33 am
- Location: Russia
- Has thanked: 77 times
- Been thanked: 387 times
Re: Wayland detection?
Clarity wrote: Fri Jul 01, 2022 8:59 pmIs 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
Different devices. Different approach.
Re: Wayland detection?
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.
-
- Posts: 4063
- Joined: Fri Jul 24, 2020 10:59 pm
- Has thanked: 1704 times
- Been thanked: 552 times
Re: Wayland detection?
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?
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.
-
- Posts: 4063
- Joined: Fri Jul 24, 2020 10:59 pm
- Has thanked: 1704 times
- Been thanked: 552 times
Wayland detection?
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
-
- Posts: 2479
- Joined: Wed Dec 30, 2020 6:14 pm
- Has thanked: 53 times
- Been thanked: 1252 times
Re: How to tell Wayland's running status?
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
-
- Posts: 4063
- Joined: Fri Jul 24, 2020 10:59 pm
- Has thanked: 1704 times
- Been thanked: 552 times
Re: How to tell Wayland's running status?
Here's a video posted today on a review of a Wayland desktop