<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Septian Adi</title>
    <description>The latest articles on DEV Community by Septian Adi (@mcseptian).</description>
    <link>https://dev.to/mcseptian</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F244292%2F0f8a9c54-00f6-449c-a202-d6442105de3f.jpg</url>
      <title>DEV Community: Septian Adi</title>
      <link>https://dev.to/mcseptian</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mcseptian"/>
    <language>en</language>
    <item>
      <title>Ubuntu 21.04 on Mac Book Pro 11.1</title>
      <dc:creator>Septian Adi</dc:creator>
      <pubDate>Sun, 29 Aug 2021 16:34:11 +0000</pubDate>
      <link>https://dev.to/mcseptian/ubuntu-21-04-on-mac-book-pro-11-1-2789</link>
      <guid>https://dev.to/mcseptian/ubuntu-21-04-on-mac-book-pro-11-1-2789</guid>
      <description>&lt;h2&gt;
  
  
  Expect the unexpected...
&lt;/h2&gt;

&lt;p&gt;Let's start this by revisit macos &lt;a href="https://www.apple.com/macos/big-sur/"&gt;Big Sur&lt;/a&gt; oldest supported device. MacBook Pro (Retina, 13-inch, Late 2013) is one of them. Yet, I try to install it on my device a month ago, bugs exist but not stop the device to work; after a while I turn off the device. &lt;/p&gt;

&lt;p&gt;There are bugs that I cannot mitigate, one of them is (turn on) File Vault made my device fails to login. I've tried reset SMC, PRAM/NVRAM, even reset password from iCloud. Yes, there will be workaround like reinstall macos and disable File Vault after that or revert them using Time Machine. Note, this is the reason why you should backup your files before upgrade your OS.&lt;/p&gt;

&lt;p&gt;I prefer install Linux at the point that no workaround left for me. I didn't backup my previous OS using Time Machine and important files already on my external disk. I choose Ubuntu because the server and container project use the same distro. One environment less maintenance burden.&lt;/p&gt;

&lt;h2&gt;
  
  
  Boot Issue
&lt;/h2&gt;

&lt;p&gt;Skip the install process, because we already feed by amount of tutorial before decided to install Linux on Mac. Proceed to the next step, boot. First boot to the device I got nothing but black blank screen. Mitigated this by boot from the same USB installer to install the distro, detailed step:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Press alt on the first chime and choose EFI from boot device which is the USB Installer, then add &lt;code&gt;nomodeset&lt;/code&gt; parameter on the first boot option. You could change this by pressing letter &lt;code&gt;e&lt;/code&gt; on the selected option.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Once you boot to Ubuntu, choose try ubuntu without install. Open terminal and mount the boot/efi partition. There will be two folder &lt;code&gt;EFI&lt;/code&gt; and &lt;code&gt;grub&lt;/code&gt;, you need to backup two files here.&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cp&lt;/span&gt; &lt;span class="nt"&gt;-b&lt;/span&gt; /boot/efi/EFI/ubuntu/grubx64.efi /boot/efi/EFI/ubuntu/shimx64.efi
&lt;span class="nb"&gt;cp&lt;/span&gt; &lt;span class="nt"&gt;-b&lt;/span&gt; /boot/efi/EFI/ubuntu/grubx64.efi /boot/efi/EFI/BOOT/BOOTX64.efi 
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Reboot your device, this time it will boot to your SSD.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_2lQCHnj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o1jdshkq0qlqypyj3ktb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_2lQCHnj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o1jdshkq0qlqypyj3ktb.png" alt="Boot success" width="880" height="550"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Sound Issue
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--AqNThrMD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yda8hcb40ubw8r6pb73s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AqNThrMD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yda8hcb40ubw8r6pb73s.png" alt="Volume setting" width="880" height="550"&gt;&lt;/a&gt;&lt;br&gt;
Boot to Ubuntu success and you don't need to install another driver here. Wifi working fine, display show no glitch but sound not working even if you set the volume to the highest. I try to install pavucontrol to see what the volume slider on the setting use for. You could do so by using command &lt;code&gt;sudo apt install pavucontrol&lt;/code&gt;. My device show dummy-output, which is default if the mixer fail to detect the soundcard or driver not exist. Mitigated this using these steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Check mixer using &lt;code&gt;alsamixer&lt;/code&gt;, you should see your soundcard and the volume setting on each. If there are no soundcard add &lt;code&gt;options snd-hda-intel model=auto dmic_detect=0&lt;/code&gt; on the last line of &lt;code&gt;/etc/modprobe.d/alsa-base.conf&lt;/code&gt;. You should use sudo here.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5o-V5zHv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/32snzgx6k6scwnjkni4n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5o-V5zHv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/32snzgx6k6scwnjkni4n.png" alt="Alsa mixer" width="880" height="531"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Mute PCH/PDIF and exec &lt;code&gt;sudo alsactl store&lt;/code&gt; after exit.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Jn4uzq6S--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wermfugosmrmm8ett1jj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Jn4uzq6S--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wermfugosmrmm8ett1jj.png" alt="PCH/PDIF" width="880" height="531"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create alsa config on &lt;code&gt;$HOME&lt;/code&gt; and exec &lt;code&gt;sudo alsa force-reload&lt;/code&gt; after put content on it. I use nano to edit the file here,&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;touch&lt;/span&gt; .asoundrc
&lt;span class="nv"&gt;$ &lt;/span&gt;nano .asoundrc
&lt;span class="c"&gt;# put these inside the file&lt;/span&gt;
&lt;span class="c"&gt;# defaults.pcm.!card 1&lt;/span&gt;
&lt;span class="c"&gt;# defaults.ctl.!card 1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;




&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Reload alsa with &lt;code&gt;sudo alsa force-reload&lt;/code&gt; and make sure pulse is running &lt;code&gt;pulseaudio --start&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;I don't use orca (screen reader) so uninstall this along with its dependencies. This is optional if your speaker still not working.&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# check if orca is running&lt;/span&gt;
&lt;span class="nv"&gt;$ &lt;/span&gt;ps aux | &lt;span class="nb"&gt;grep &lt;/span&gt;speech
&lt;span class="nv"&gt;$ &lt;/span&gt;ps aux | &lt;span class="nb"&gt;grep &lt;/span&gt;orca
&lt;span class="c"&gt;# remove them&lt;/span&gt;
&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt remove &lt;span class="nt"&gt;--auto-remove&lt;/span&gt; speech-dispatcher
&lt;span class="c"&gt;# remove them and their deps&lt;/span&gt;
&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt purge &lt;span class="nt"&gt;--auto-remove&lt;/span&gt; speech-dispatcher
&lt;/code&gt;&lt;/pre&gt;




&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;These step, in my case also fix red light on headphone jack, which you can quick fix by select &lt;code&gt;Analog Surround 2.1 Output&lt;/code&gt; on Sound configuration but not fix the sound problem.&lt;/p&gt;

&lt;p&gt;Update: Three weeks after use this ubuntu version with wayland as its default windowing system.&lt;/p&gt;

&lt;h2&gt;
  
  
  Touch-pad and Mouse Issue
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--I42_ck1k--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j0mw2abaelulc03v1fgs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--I42_ck1k--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j0mw2abaelulc03v1fgs.png" alt="Touch-pad and Mouse Issue" width="880" height="313"&gt;&lt;/a&gt;&lt;br&gt;
Touch-pad do not respond to click, or double click. This issue happen not so often, or at least after logout for a while (&amp;gt; 1 min). Mouse affected same way with touch-pad, as I try to mitigate this issue with wireless mouse or wired mouse. The only workaround with this issue is restart &lt;code&gt;gdm&lt;/code&gt;, which in my case will switch windowing system to X11.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt; &lt;span class="c"&gt;# press Ctrl+Alt+T if your keyboard still working&lt;/span&gt;
 &lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;systemctl restart gdm3.service
 &lt;span class="c"&gt;# wait until window restart, &lt;/span&gt;
 &lt;span class="c"&gt;# may take a while on blank screen&lt;/span&gt;
 &lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;nano /etc/gdm3/custom.conf
 &lt;span class="c"&gt;# Find line below and uncomment the next line to disable wayland on gdm&lt;/span&gt;
 &lt;span class="c"&gt;# Uncomment the line below to force the login screen to use Xorg&lt;/span&gt;
 &lt;span class="c"&gt;# WaylandEnable=false&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What if your mouse or touchpad problem still persist after restart gdm? Well, there is workaround from the kernel mod, you have to edit &lt;code&gt;/etc/default/grub&lt;/code&gt; and find the boot option which consist of this line &lt;code&gt;GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"&lt;/code&gt; change it to:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# modify this file with sudo&lt;/span&gt;
&lt;span class="nv"&gt;GRUB_CMDLINE_LINUX_DEFAULT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"quiet splash i8042.nomux i8042.reset"&lt;/span&gt;
&lt;span class="c"&gt;# run this command to update the new config to grub&lt;/span&gt;
&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;update-grub2
&lt;span class="c"&gt;# after these steps you should reboot your device to the config takes effect.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The option above will tell the grub to stop checking whether multiplexing controller exist or not, which in this case is PS/2 controller for the touchpad device, and reset it on reboot or suspend. You can read the full available option &lt;a href="https://www.kernel.org/doc/Documentation/admin-guide/kernel-parameters.txt"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;I found another issue even after update the latest patch, will add another if any. &lt;/p&gt;

&lt;p&gt;Hope this will help you, thank you for reading.&lt;/p&gt;

</description>
      <category>ubuntu</category>
      <category>macbookpro</category>
      <category>linux</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
