{"id":4691,"date":"2022-09-06T10:00:00","date_gmt":"2022-09-06T15:00:00","guid":{"rendered":"https:\/\/www.foell.org\/justin\/?p=4691"},"modified":"2022-11-28T08:48:41","modified_gmt":"2022-11-28T14:48:41","slug":"remove-etc-pipewire","status":"publish","type":"post","link":"https:\/\/www.foell.org\/justin\/remove-etc-pipewire\/","title":{"rendered":"Remove \/etc\/pipewire"},"content":{"rendered":"\n<p>Holy \ud83d\udca9 y&#8217;all &#8211; I just spent two weeks not being able to share my screen on Ubuntu. It started with a regular system update that I <em>think<\/em> updated Wayland. I noticed that my fonts in certain applications looked sharper &#8211; likely meaning that the 4k scaling was working better. Then I noticed that zoom wouldn&#8217;t share the whole screen, it would just share a portion. \ud83d\ude29<\/p>\n\n\n\n<p>To be clear about my setup, I was running Ubuntu 20.04 LTS with a dual monitor setup. I had been using <a href=\"https:\/\/www.foell.org\/justin\/simple-hidpi-monitor-scaling-with-wayland-in-ubuntu-18-04\/\">Wayland<\/a> because my XPS built-in screen is 4k and my external is standard HD (1080p).<\/p>\n\n\n\n<p>As luck would have it, Ubuntu 22.04 LTS was recently in my update queue, and I figured it couldn&#8217;t get much worse. So I upgraded, but (womp womp) it didn&#8217;t help. <\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Now zoom wouldn&#8217;t show a normal screen sharing option, but it had a new &#8220;System Capture&#8221; selection.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.foell.org\/justin\/files\/2022\/08\/Screenshot-from-2022-08-18-16-07-15.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"694\" data-attachment-id=\"4692\" data-permalink=\"https:\/\/www.foell.org\/justin\/remove-etc-pipewire\/screenshot-from-2022-08-18-16-07-15\/\" data-orig-file=\"https:\/\/www.foell.org\/justin\/files\/2022\/08\/Screenshot-from-2022-08-18-16-07-15.png\" data-orig-size=\"2004,1358\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-from-2022-08-18-16-07-15\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.foell.org\/justin\/files\/2022\/08\/Screenshot-from-2022-08-18-16-07-15-1024x694.png\" src=\"https:\/\/www.foell.org\/justin\/files\/2022\/08\/Screenshot-from-2022-08-18-16-07-15-1024x694.png\" alt=\"\" class=\"wp-image-4692\" srcset=\"https:\/\/www.foell.org\/justin\/files\/2022\/08\/Screenshot-from-2022-08-18-16-07-15-1024x694.png 1024w, https:\/\/www.foell.org\/justin\/files\/2022\/08\/Screenshot-from-2022-08-18-16-07-15-300x203.png 300w, https:\/\/www.foell.org\/justin\/files\/2022\/08\/Screenshot-from-2022-08-18-16-07-15-768x520.png 768w, https:\/\/www.foell.org\/justin\/files\/2022\/08\/Screenshot-from-2022-08-18-16-07-15-1536x1041.png 1536w, https:\/\/www.foell.org\/justin\/files\/2022\/08\/Screenshot-from-2022-08-18-16-07-15.png 2004w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>The system capture selection would bring up another new prompt:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.foell.org\/justin\/files\/2022\/08\/Screenshot-from-2022-08-18-16-09-10.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"695\" data-attachment-id=\"4693\" data-permalink=\"https:\/\/www.foell.org\/justin\/remove-etc-pipewire\/screenshot-from-2022-08-18-16-09-10\/\" data-orig-file=\"https:\/\/www.foell.org\/justin\/files\/2022\/08\/Screenshot-from-2022-08-18-16-09-10.png\" data-orig-size=\"1244,844\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-from-2022-08-18-16-09-10\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.foell.org\/justin\/files\/2022\/08\/Screenshot-from-2022-08-18-16-09-10-1024x695.png\" src=\"https:\/\/www.foell.org\/justin\/files\/2022\/08\/Screenshot-from-2022-08-18-16-09-10-1024x695.png\" alt=\"\" class=\"wp-image-4693\" srcset=\"https:\/\/www.foell.org\/justin\/files\/2022\/08\/Screenshot-from-2022-08-18-16-09-10-1024x695.png 1024w, https:\/\/www.foell.org\/justin\/files\/2022\/08\/Screenshot-from-2022-08-18-16-09-10-300x204.png 300w, https:\/\/www.foell.org\/justin\/files\/2022\/08\/Screenshot-from-2022-08-18-16-09-10-768x521.png 768w, https:\/\/www.foell.org\/justin\/files\/2022\/08\/Screenshot-from-2022-08-18-16-09-10.png 1244w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>But after I clicked &#8220;Share&#8221; nothing would happen. People on the other end would just see a black screen.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">PipeWire Debugging<\/h2>\n\n\n\n<p>After some research it seems that the new sharing subsystem for Wayland is called PipeWire. In my quest to debug it end-to-end I found this handy guide for debugging screen sharing in Wayland, the <a href=\"https:\/\/github.com\/emersion\/xdg-desktop-portal-wlr\/wiki\/%22It-doesn't-work%22-Troubleshooting-Checklist\">&#8220;It doesn&#8217;t work&#8221; Troubleshooting Checklist.<\/a><\/p>\n\n\n\n<p>One of the steps is to check the pipewire service itself:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl --user status pipewire<\/code><\/pre>\n\n\n\n<p>And mine was up-and-running but was returning this warning in yellow:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>no modules loaded<\/code><\/pre>\n\n\n\n<p>That led me to this post: <a href=\"https:\/\/www.linuxquestions.org\/questions\/slackware-14\/using-pipewire-instead-of-pulseaudio-in-slackware-15-a-4175693980\/page9.html\">https:\/\/www.linuxquestions.org\/questions\/slackware-14\/using-pipewire-instead-of-pulseaudio-in-slackware-15-a-4175693980\/page9.html<\/a><\/p>\n\n\n\n<p>Yes it was for a different distro (Slackware) but one of the pieces of advice seemed sound:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><em>Long story short, remove every little file from&nbsp;<\/em><strong>\/etc\/pipewire<\/strong><em>&nbsp;if exists and reboot the system.<\/em><\/p><\/blockquote>\n\n\n\n<p>I&#8217;m not sure why the folder was there with an old config file in it. Likely from when I was on 20.04 and tried upgrading PipeWire to try to fix zoom (which didn&#8217;t work).<\/p>\n\n\n\n<p>I deleted that folder (actually moved it to a temporary place first), rebooted and it did the trick. Screen sharing is back on! Good thing because my job depends on it \ud83d\udcaa<\/p>\n<div class='kindleWidget kindleLight' ><img decoding=\"async\" src=\"https:\/\/www.foell.org\/justin\/wp-content\/plugins\/send-to-kindle\/media\/white-15.png\" \/><span>Send to Kindle<\/span><\/div>","protected":false},"excerpt":{"rendered":"<p>Holy \ud83d\udca9 y&#8217;all &#8211; I just spent two weeks not being able to share my screen on Ubuntu. It started with a regular system update that I think updated Wayland. I noticed that my fonts in certain applications looked sharper &#8211; likely meaning that the 4k scaling was working better. Then I noticed that zoom&hellip; <a href=\"https:\/\/www.foell.org\/justin\/remove-etc-pipewire\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"OMG Wayland + PipeWire can be hell if you're upgrading Ubuntu from 2020 LTS to 2022. Here's a Zoom fix I found.","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1,8],"tags":[193,190],"class_list":["post-4691","post","type-post","status-publish","format-standard","hentry","category-business","category-ubuntu","tag-fix-repair","tag-wayland"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/posts\/4691","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/comments?post=4691"}],"version-history":[{"count":5,"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/posts\/4691\/revisions"}],"predecessor-version":[{"id":4754,"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/posts\/4691\/revisions\/4754"}],"wp:attachment":[{"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/media?parent=4691"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/categories?post=4691"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.foell.org\/justin\/wp-json\/wp\/v2\/tags?post=4691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}