{"id":658,"date":"2026-08-13T12:55:04","date_gmt":"2026-08-13T09:55:04","guid":{"rendered":"https:\/\/netbsd.name\/?p=658"},"modified":"2026-08-13T12:55:04","modified_gmt":"2026-08-13T09:55:04","slug":"a-few-recent-netbsd-issues-and-how-i-solved-them","status":"publish","type":"post","link":"https:\/\/netbsd.name\/?p=658","title":{"rendered":"A Few Recent NetBSD Issues and How I Solved Them"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Firefox issue<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I recently had to reinstall my main PC&#8217;s NetBSD system after an unexpected NVMe SSD failure. I didn&#8217;t have a full backup of the system, just some configuration and home folder files that made it easier to restore the system, so it was essentially a fresh install of the recent NetBSD 11 release.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;m using Xfce as my main desktop environment and Firefox as my primary browser. My current graphics card, a Radeon 5700 XT, doesn&#8217;t support graphics acceleration reliably. More precisely, it is buggy and causes frequent system crashes, so I started X.org with acceleration disabled.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Interestingly, this caused Firefox to crash and, after the second attempt, drop me into rescue mode. Since it was a pretty fresh installation, I didn&#8217;t think it was a plugin issue. Initially, I kept using rescue mode, but since it disables all plugins, that quickly became unfeasible.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After some fiddling around, I found that both the &#8220;Use recommended performance settings&#8221; and &#8220;Use hardware acceleration when available&#8221; options had to be disabled. I don&#8217;t remember this happening in the past. Typically, these options wouldn&#8217;t cause Firefox to crash, but would instead just make it slower. It is likely that newer versions of Firefox behave differently when hardware acceleration is unavailable or disabled.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Disabling the aforementioned options made the browser work normally again. An additional improvement in stability was achieved by rebuilding the packages from the current pkgsrc tree.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">wmux issue<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">As soon as I switched to the NetBSD 11 branch, I started experiencing a very annoying issue with mouse handling. The symptoms would start appearing after a few applications, or a few windows of the same application, had been opened. Switching windows, for example with Alt+Tab, would not actually switch the focus to the new window. The previous application would continue to react as if it still had focus. Additionally, application menus would stop working, even when using keyboard shortcuts.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Using the desktop environment in this state was quite complicated. I suffered from this issue for quite a long time, which forced me either to avoid rebooting for as long as possible when the mouse was working correctly, or to rely mainly on keyboard shortcuts.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Fortunately, I noticed at one point that the mouse would suddenly start working correctly after I removed my wireless gamepad receiver. It turned out that the receiver was attached as a second <a href=\"https:\/\/man.netbsd.org\/wsmouse.4\">wsmouse(4)<\/a> device to <a href=\"https:\/\/man.netbsd.org\/wsmux.4\">wsmux(4)<\/a>, causing the symptoms described above.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The solution I decided to use was to remove <code>wsmouse0<\/code> (which was the receiver) from <code>wsmux<\/code> using the following cron line:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>@reboot \/usr\/sbin\/wsmuxctl -f 0 -r wsmouse0<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There is a risk that <code>wsmouse0<\/code> could be the actual mouse if the receiver is disconnected, or if the device enumeration changes for some other reason. However, this worked quite reliably for me and made my system usable again.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">ssh gnome-daemon-keyring<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Another small issue I always face is getting <code>gnome-keyring-daemon<\/code> to start its SSH agent service so that <code>xfce4-terminal<\/code> asks for the SSH passphrase only once, using a graphical prompt, and then works across all terminal windows during the session.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This can be solved quite easily by enabling the <strong>&#8220;SSH Key Agent (GNOME Keyring: SSH Agent)&#8221;<\/strong> checkbox in the Xfce4 <strong>&#8220;Session and Startup&#8221;<\/strong> settings, under the <strong>&#8220;Application Autostart&#8221;<\/strong> tab. However, this is not enough, because it starts the session but does not propagate the <code>SSH_AUTH_SOCK<\/code> environment variable to the rest of the environment.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For that, the <strong>&#8220;Launch GNOME services on startup&#8221;<\/strong> checkbox also needs to be enabled in the <strong>&#8220;Advanced&#8221;<\/strong> tab of the same <strong>&#8220;Session and Startup&#8221;<\/strong> settings. I also add the following line to <code>.profile<\/code>:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>export SSH_AUTH_SOCK=0<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With these settings, the GNOME Keyring SSH agent works properly across the Xfce session, and <code>xfce4-terminal<\/code> can reuse the same SSH credentials across terminal windows.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Firefox issue I recently had to reinstall my main PC&#8217;s NetBSD system after an unexpected NVMe SSD failure. I didn&#8217;t have a full backup of the system, just some configuration and home folder files that made it easier to restore the system, so it was essentially a fresh install of the recent NetBSD 11 release. &hellip; <a href=\"https:\/\/netbsd.name\/?p=658\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">A Few Recent NetBSD Issues and How I Solved Them<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,18,12],"tags":[],"class_list":["post-658","post","type-post","status-publish","format-standard","hentry","category-netbsd","category-pkgsrc","category-window-managers"],"_links":{"self":[{"href":"https:\/\/netbsd.name\/index.php?rest_route=\/wp\/v2\/posts\/658","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netbsd.name\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netbsd.name\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netbsd.name\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netbsd.name\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=658"}],"version-history":[{"count":4,"href":"https:\/\/netbsd.name\/index.php?rest_route=\/wp\/v2\/posts\/658\/revisions"}],"predecessor-version":[{"id":668,"href":"https:\/\/netbsd.name\/index.php?rest_route=\/wp\/v2\/posts\/658\/revisions\/668"}],"wp:attachment":[{"href":"https:\/\/netbsd.name\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=658"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netbsd.name\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=658"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netbsd.name\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}