18.04: Why both Xorg and Xwayland?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
4
down vote

favorite












In bionic, why are both Xwayland and Xorg running?



As far as I understand Xwayland's job is to allow x11 apps running under wayland. So this means there's two X11 servers running, Xorg as :0 and Xwayland as :1024. And there's two corresponding sockets in /tmp/.X11-unix



What's that good for?










share|improve this question























  • It's Wayland, btw, not to be mixed up with XWayland which is a emulation layer that wayland uses to run X11 native aps. Wayland's advantages are security and eventually better graphical performance with less screen tearing. Disadvantages: intensely unstable (need a few years to mature and a rewrite of gnome shell), the add security will result in loss of functionality until workarounds found. XOrg. Advantages: tons of functionality not listed in the answer below. More stability. Disadvantage: INTENSELY insecure and vulnerable: keystrokes root pws can be sniffed,commands can be injected.
    – thebunnyrules
    Mar 12 at 5:00














up vote
4
down vote

favorite












In bionic, why are both Xwayland and Xorg running?



As far as I understand Xwayland's job is to allow x11 apps running under wayland. So this means there's two X11 servers running, Xorg as :0 and Xwayland as :1024. And there's two corresponding sockets in /tmp/.X11-unix



What's that good for?










share|improve this question























  • It's Wayland, btw, not to be mixed up with XWayland which is a emulation layer that wayland uses to run X11 native aps. Wayland's advantages are security and eventually better graphical performance with less screen tearing. Disadvantages: intensely unstable (need a few years to mature and a rewrite of gnome shell), the add security will result in loss of functionality until workarounds found. XOrg. Advantages: tons of functionality not listed in the answer below. More stability. Disadvantage: INTENSELY insecure and vulnerable: keystrokes root pws can be sniffed,commands can be injected.
    – thebunnyrules
    Mar 12 at 5:00












up vote
4
down vote

favorite









up vote
4
down vote

favorite











In bionic, why are both Xwayland and Xorg running?



As far as I understand Xwayland's job is to allow x11 apps running under wayland. So this means there's two X11 servers running, Xorg as :0 and Xwayland as :1024. And there's two corresponding sockets in /tmp/.X11-unix



What's that good for?










share|improve this question















In bionic, why are both Xwayland and Xorg running?



As far as I understand Xwayland's job is to allow x11 apps running under wayland. So this means there's two X11 servers running, Xorg as :0 and Xwayland as :1024. And there's two corresponding sockets in /tmp/.X11-unix



What's that good for?







xorg wayland 18.04






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 31 at 7:11









jokerdino♦

32k21117185




32k21117185










asked Mar 5 at 10:47









Hadmut

9115




9115











  • It's Wayland, btw, not to be mixed up with XWayland which is a emulation layer that wayland uses to run X11 native aps. Wayland's advantages are security and eventually better graphical performance with less screen tearing. Disadvantages: intensely unstable (need a few years to mature and a rewrite of gnome shell), the add security will result in loss of functionality until workarounds found. XOrg. Advantages: tons of functionality not listed in the answer below. More stability. Disadvantage: INTENSELY insecure and vulnerable: keystrokes root pws can be sniffed,commands can be injected.
    – thebunnyrules
    Mar 12 at 5:00
















  • It's Wayland, btw, not to be mixed up with XWayland which is a emulation layer that wayland uses to run X11 native aps. Wayland's advantages are security and eventually better graphical performance with less screen tearing. Disadvantages: intensely unstable (need a few years to mature and a rewrite of gnome shell), the add security will result in loss of functionality until workarounds found. XOrg. Advantages: tons of functionality not listed in the answer below. More stability. Disadvantage: INTENSELY insecure and vulnerable: keystrokes root pws can be sniffed,commands can be injected.
    – thebunnyrules
    Mar 12 at 5:00















It's Wayland, btw, not to be mixed up with XWayland which is a emulation layer that wayland uses to run X11 native aps. Wayland's advantages are security and eventually better graphical performance with less screen tearing. Disadvantages: intensely unstable (need a few years to mature and a rewrite of gnome shell), the add security will result in loss of functionality until workarounds found. XOrg. Advantages: tons of functionality not listed in the answer below. More stability. Disadvantage: INTENSELY insecure and vulnerable: keystrokes root pws can be sniffed,commands can be injected.
– thebunnyrules
Mar 12 at 5:00




It's Wayland, btw, not to be mixed up with XWayland which is a emulation layer that wayland uses to run X11 native aps. Wayland's advantages are security and eventually better graphical performance with less screen tearing. Disadvantages: intensely unstable (need a few years to mature and a rewrite of gnome shell), the add security will result in loss of functionality until workarounds found. XOrg. Advantages: tons of functionality not listed in the answer below. More stability. Disadvantage: INTENSELY insecure and vulnerable: keystrokes root pws can be sniffed,commands can be injected.
– thebunnyrules
Mar 12 at 5:00










1 Answer
1






active

oldest

votes

















up vote
6
down vote













See this Ubuntu Insights post:




We have decided that we will ship Xorg by default, and that Wayland
will be an optional session available from the login screen.



Why opt for Xorg by default? There are three main reasons:



  1. Screen sharing in software like WebRTC services, Google Hangouts, Skype, etc works well under Xorg.

  2. Remote Desktop control for example RDP & VNC works well under Xorg.

  3. Recoverability from Shell crashes is less dramatic under Xorg.



For an LTS release, it's not practical to ship Wayland as the default when too much still relies on X11 features.






share|improve this answer




















  • 4. gedit and nautilus as root.
    – WinEunuuchs2Unix
    Mar 5 at 12:48










  • I don't think people running GUI apps as root is high up on the list of any dev's priorities.
    – muru
    Mar 5 at 13:29










  • You are right of course. It is just for me (and perhaps 1 or 2 other people) the first two points are meaningless. The third point I've never used but its good to know crash reporting is better.
    – WinEunuuchs2Unix
    Mar 5 at 13:35






  • 1




    You can run gedit as admin under wayland via gvfs, just put in: gedit admin:///boot/grub/grub.cfg for example. This protocol uses partial elevation of privileges and is way more secure than running all of gedit as root.
    – thebunnyrules
    Mar 12 at 4:54










  • I've just tried Wayland on a dell xps13 because it handled different resolutions on two 4K monitors (which X11 doesn't) but.. its no where near prime time yet. At first it all worked fine, then some apps installed as snaps failed, the menu items in the task bar failed to work correctly and things got ugly quickly..
    – Peter NUnn
    Jul 11 at 2:57










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1012031%2f18-04-why-both-xorg-and-xwayland%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
6
down vote













See this Ubuntu Insights post:




We have decided that we will ship Xorg by default, and that Wayland
will be an optional session available from the login screen.



Why opt for Xorg by default? There are three main reasons:



  1. Screen sharing in software like WebRTC services, Google Hangouts, Skype, etc works well under Xorg.

  2. Remote Desktop control for example RDP & VNC works well under Xorg.

  3. Recoverability from Shell crashes is less dramatic under Xorg.



For an LTS release, it's not practical to ship Wayland as the default when too much still relies on X11 features.






share|improve this answer




















  • 4. gedit and nautilus as root.
    – WinEunuuchs2Unix
    Mar 5 at 12:48










  • I don't think people running GUI apps as root is high up on the list of any dev's priorities.
    – muru
    Mar 5 at 13:29










  • You are right of course. It is just for me (and perhaps 1 or 2 other people) the first two points are meaningless. The third point I've never used but its good to know crash reporting is better.
    – WinEunuuchs2Unix
    Mar 5 at 13:35






  • 1




    You can run gedit as admin under wayland via gvfs, just put in: gedit admin:///boot/grub/grub.cfg for example. This protocol uses partial elevation of privileges and is way more secure than running all of gedit as root.
    – thebunnyrules
    Mar 12 at 4:54










  • I've just tried Wayland on a dell xps13 because it handled different resolutions on two 4K monitors (which X11 doesn't) but.. its no where near prime time yet. At first it all worked fine, then some apps installed as snaps failed, the menu items in the task bar failed to work correctly and things got ugly quickly..
    – Peter NUnn
    Jul 11 at 2:57














up vote
6
down vote













See this Ubuntu Insights post:




We have decided that we will ship Xorg by default, and that Wayland
will be an optional session available from the login screen.



Why opt for Xorg by default? There are three main reasons:



  1. Screen sharing in software like WebRTC services, Google Hangouts, Skype, etc works well under Xorg.

  2. Remote Desktop control for example RDP & VNC works well under Xorg.

  3. Recoverability from Shell crashes is less dramatic under Xorg.



For an LTS release, it's not practical to ship Wayland as the default when too much still relies on X11 features.






share|improve this answer




















  • 4. gedit and nautilus as root.
    – WinEunuuchs2Unix
    Mar 5 at 12:48










  • I don't think people running GUI apps as root is high up on the list of any dev's priorities.
    – muru
    Mar 5 at 13:29










  • You are right of course. It is just for me (and perhaps 1 or 2 other people) the first two points are meaningless. The third point I've never used but its good to know crash reporting is better.
    – WinEunuuchs2Unix
    Mar 5 at 13:35






  • 1




    You can run gedit as admin under wayland via gvfs, just put in: gedit admin:///boot/grub/grub.cfg for example. This protocol uses partial elevation of privileges and is way more secure than running all of gedit as root.
    – thebunnyrules
    Mar 12 at 4:54










  • I've just tried Wayland on a dell xps13 because it handled different resolutions on two 4K monitors (which X11 doesn't) but.. its no where near prime time yet. At first it all worked fine, then some apps installed as snaps failed, the menu items in the task bar failed to work correctly and things got ugly quickly..
    – Peter NUnn
    Jul 11 at 2:57












up vote
6
down vote










up vote
6
down vote









See this Ubuntu Insights post:




We have decided that we will ship Xorg by default, and that Wayland
will be an optional session available from the login screen.



Why opt for Xorg by default? There are three main reasons:



  1. Screen sharing in software like WebRTC services, Google Hangouts, Skype, etc works well under Xorg.

  2. Remote Desktop control for example RDP & VNC works well under Xorg.

  3. Recoverability from Shell crashes is less dramatic under Xorg.



For an LTS release, it's not practical to ship Wayland as the default when too much still relies on X11 features.






share|improve this answer












See this Ubuntu Insights post:




We have decided that we will ship Xorg by default, and that Wayland
will be an optional session available from the login screen.



Why opt for Xorg by default? There are three main reasons:



  1. Screen sharing in software like WebRTC services, Google Hangouts, Skype, etc works well under Xorg.

  2. Remote Desktop control for example RDP & VNC works well under Xorg.

  3. Recoverability from Shell crashes is less dramatic under Xorg.



For an LTS release, it's not practical to ship Wayland as the default when too much still relies on X11 features.







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 5 at 11:12









muru

130k19274467




130k19274467











  • 4. gedit and nautilus as root.
    – WinEunuuchs2Unix
    Mar 5 at 12:48










  • I don't think people running GUI apps as root is high up on the list of any dev's priorities.
    – muru
    Mar 5 at 13:29










  • You are right of course. It is just for me (and perhaps 1 or 2 other people) the first two points are meaningless. The third point I've never used but its good to know crash reporting is better.
    – WinEunuuchs2Unix
    Mar 5 at 13:35






  • 1




    You can run gedit as admin under wayland via gvfs, just put in: gedit admin:///boot/grub/grub.cfg for example. This protocol uses partial elevation of privileges and is way more secure than running all of gedit as root.
    – thebunnyrules
    Mar 12 at 4:54










  • I've just tried Wayland on a dell xps13 because it handled different resolutions on two 4K monitors (which X11 doesn't) but.. its no where near prime time yet. At first it all worked fine, then some apps installed as snaps failed, the menu items in the task bar failed to work correctly and things got ugly quickly..
    – Peter NUnn
    Jul 11 at 2:57
















  • 4. gedit and nautilus as root.
    – WinEunuuchs2Unix
    Mar 5 at 12:48










  • I don't think people running GUI apps as root is high up on the list of any dev's priorities.
    – muru
    Mar 5 at 13:29










  • You are right of course. It is just for me (and perhaps 1 or 2 other people) the first two points are meaningless. The third point I've never used but its good to know crash reporting is better.
    – WinEunuuchs2Unix
    Mar 5 at 13:35






  • 1




    You can run gedit as admin under wayland via gvfs, just put in: gedit admin:///boot/grub/grub.cfg for example. This protocol uses partial elevation of privileges and is way more secure than running all of gedit as root.
    – thebunnyrules
    Mar 12 at 4:54










  • I've just tried Wayland on a dell xps13 because it handled different resolutions on two 4K monitors (which X11 doesn't) but.. its no where near prime time yet. At first it all worked fine, then some apps installed as snaps failed, the menu items in the task bar failed to work correctly and things got ugly quickly..
    – Peter NUnn
    Jul 11 at 2:57















4. gedit and nautilus as root.
– WinEunuuchs2Unix
Mar 5 at 12:48




4. gedit and nautilus as root.
– WinEunuuchs2Unix
Mar 5 at 12:48












I don't think people running GUI apps as root is high up on the list of any dev's priorities.
– muru
Mar 5 at 13:29




I don't think people running GUI apps as root is high up on the list of any dev's priorities.
– muru
Mar 5 at 13:29












You are right of course. It is just for me (and perhaps 1 or 2 other people) the first two points are meaningless. The third point I've never used but its good to know crash reporting is better.
– WinEunuuchs2Unix
Mar 5 at 13:35




You are right of course. It is just for me (and perhaps 1 or 2 other people) the first two points are meaningless. The third point I've never used but its good to know crash reporting is better.
– WinEunuuchs2Unix
Mar 5 at 13:35




1




1




You can run gedit as admin under wayland via gvfs, just put in: gedit admin:///boot/grub/grub.cfg for example. This protocol uses partial elevation of privileges and is way more secure than running all of gedit as root.
– thebunnyrules
Mar 12 at 4:54




You can run gedit as admin under wayland via gvfs, just put in: gedit admin:///boot/grub/grub.cfg for example. This protocol uses partial elevation of privileges and is way more secure than running all of gedit as root.
– thebunnyrules
Mar 12 at 4:54












I've just tried Wayland on a dell xps13 because it handled different resolutions on two 4K monitors (which X11 doesn't) but.. its no where near prime time yet. At first it all worked fine, then some apps installed as snaps failed, the menu items in the task bar failed to work correctly and things got ugly quickly..
– Peter NUnn
Jul 11 at 2:57




I've just tried Wayland on a dell xps13 because it handled different resolutions on two 4K monitors (which X11 doesn't) but.. its no where near prime time yet. At first it all worked fine, then some apps installed as snaps failed, the menu items in the task bar failed to work correctly and things got ugly quickly..
– Peter NUnn
Jul 11 at 2:57

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1012031%2f18-04-why-both-xorg-and-xwayland%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491