<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Ruslan&#39;s Tech Blog</title>
    <link>https://blog.bekenev.net/tags/macos.html</link>
    <description>Software development related stuff</description>
    <language>en-us</language>
    <lastBuildDate>Fri, 28 Oct 2022 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://blog.bekenev.net/tags/macos/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>MacOS Appearance Auto - theme isn&#39;t changing</title>
      <link>https://blog.bekenev.net/2022/10/28/macos-auto-theme.html</link>
      <pubDate>Fri, 28 Oct 2022 00:00:00 +0000</pubDate>
      <guid>https://blog.bekenev.net/2022/10/28/macos-auto-theme.html</guid>
      <description>&lt;p&gt;I recently started to appreciate light theme again. Feels great during a day light.&lt;br/&gt;&#xA;Still, I like the dark mode too but now I just want to see it at night.&lt;/p&gt;&#xA;&lt;p&gt;And fortunately, for those who likes both themes, there is a mode called &amp;ldquo;Auto&amp;rdquo; in the MacOS settings.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://blog.bekenev.net/assets/img/macos-auto-theme.png&#34; target=&#34;_blank&#34;&gt;&lt;img width=&#34;100%&#34; src=&#34;https://blog.bekenev.net/assets/img/macos-auto-theme.png&#34; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Hooray! Problem solved.&lt;/p&gt;&#xA;&lt;h2 id=&#34;not-really&#34;&gt;Not really&lt;/h2&gt;&#xA;&lt;p&gt;In case you haven&amp;rsquo;t configured &lt;strong&gt;Night Shift&lt;/strong&gt; feature then it&amp;rsquo;s not going to work.&lt;/p&gt;&#xA;&lt;p&gt;Also, if you like me, and configured Night Shift to start &amp;ldquo;night&amp;rdquo; at 12AM then it means that the dark mode will be enabled at 12AM.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Auto mode requires Night Shift feature. Make sure it&amp;rsquo;s configured.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;fun-solution-from-the-internet&#34;&gt;Fun solution from the internet&lt;/h2&gt;&#xA;&lt;p&gt;If you try to google this issue you&amp;rsquo;ll notice some reasonable points like:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;You wouldn’t like to see the screen colors suddenly change when you are in the middle of work, would you? It would be confusing and irritating, and you would most probably disable auto Dark Mode once and for good&#xA;&lt;br&gt;&lt;small&gt;Source: &lt;a href=&#34;https://geekupdated.com/automatic-dark-mode-issue-mac-os/&#34;&gt;geekupdated.com&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;&lt;/blockquote&gt;&#xA;&lt;p&gt;And solution is:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;All you have to remember is that the color theme is being switched when you put the display to sleep, even for a short period of time.&lt;br&gt;&lt;br&gt;If you want to apply the Dark Mode immediately, simply close the lid of your Mac and open it again.&#xA;&lt;br&gt;&lt;small&gt;Source: &lt;a href=&#34;https://geekupdated.com/automatic-dark-mode-issue-mac-os/&#34;&gt;geekupdated.com&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;&lt;/blockquote&gt;&#xA;&lt;p&gt;This solution is &amp;ldquo;obviously&amp;rdquo; not that &lt;strong&gt;irritating&lt;/strong&gt; as sudden color scheme change.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>MacOS fix not stable WiFi (ping spikes)</title>
      <link>https://blog.bekenev.net/2019/01/31/macos-wifi-spikes.html</link>
      <pubDate>Thu, 31 Jan 2019 00:00:00 +0000</pubDate>
      <guid>https://blog.bekenev.net/2019/01/31/macos-wifi-spikes.html</guid>
      <description>&lt;p&gt;hey,&lt;/p&gt;&#xA;&lt;p&gt;I currently use Windows machine but I do programming inside Linux virtual machine and&#xA;inside MacOS driven laptop (some iOS specific stuff) which is in the same room where I am and connected to the local network.&lt;/p&gt;&#xA;&lt;p&gt;Since I develop in Vim I use SSH connection to run Vim instance directly on MacOS machine.&#xA;If I need anything graphical (like Xcode) I use VNC client.&lt;/p&gt;&#xA;&lt;h2 id=&#34;issue&#34;&gt;Issue&lt;/h2&gt;&#xA;&lt;p&gt;SSH connection is super non-stable. It&amp;rsquo;s pretty painful to use Vim with very slow connection. If I try to ping my MacOS laptop&#xA;I can see clearly some ping spikes. Usual ICMP travel time is about 3ms but sometimes I get 700ms or 1000ms. Insane.&lt;/p&gt;&#xA;&lt;h2 id=&#34;solution&#34;&gt;Solution&lt;/h2&gt;&#xA;&lt;p&gt;Based on &lt;a href=&#34;https://symless.com/forums/topic/5902-workaround-macos-wifi-ping-spikes/&#34;&gt;this found&lt;/a&gt;&#xA;it is probably related to WiFi card power saving features.&lt;/p&gt;&#xA;&lt;p&gt;To prevent it you can use this command (inside MacOS machine)&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;ping -q -n -s 0 -i 0.1 192.168.0.1  # you can ping any (real) address basically&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;What this ping command does is just keeping your WiFi card busy all the time.&lt;/p&gt;&#xA;&lt;p&gt;Please note, you have to keep this command running all the time. You can probably create some kind of background script&#xA;but I just use alias which I run when I&amp;rsquo;m connected to my Mac. Otherwise I don&amp;rsquo;t want to overload my home network.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>VNC, MacOS, and frozen login screen</title>
      <link>https://blog.bekenev.net/2019/01/18/restart-loginscreen-vnc-mac.html</link>
      <pubDate>Fri, 18 Jan 2019 00:00:00 +0000</pubDate>
      <guid>https://blog.bekenev.net/2019/01/18/restart-loginscreen-vnc-mac.html</guid>
      <description>&lt;p&gt;Sometimes my VNC client just shows me Mac&amp;rsquo;s login screen with infinitely&#xA;loading animation. If it happens for you too, you can try to login via SSH and run this command:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo pkill loginwindow&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now you can try to connect trough VNC and it should work.&lt;/p&gt;&#xA;&lt;p&gt;Basically it just kills the process of login window and MacOS just runs it again automatically.&lt;/p&gt;&#xA;</description>
    </item>
  </channel>
</rss>
