{"id":516,"date":"2018-08-13T14:16:29","date_gmt":"2018-08-13T12:16:29","guid":{"rendered":"http:\/\/members.loria.fr\/AScheuer\/?p=516"},"modified":"2018-08-14T11:04:51","modified_gmt":"2018-08-14T09:04:51","slug":"xubuntu-hp-14-cf0013nf","status":"publish","type":"post","link":"https:\/\/members.loria.fr\/AScheuer\/system\/xubuntu-hp-14-cf0013nf\/","title":{"rendered":"Installing XUbuntu 18.04 on a HP 14-cf0013nf"},"content":{"rendered":"<p style=\"text-align: center\">(Comme beaucoup de r\u00e9f\u00e9rences \u00e0 cet article sont sur des pages fran\u00e7aises, je l&rsquo;ai <a href=\"..\/xubuntu-hp-14-cf0013nf-fr\">traduit<\/a>.)<\/p>\n<p>The installation of this laptop has two technical points: <a href=\"#wifi-bt\">finding modules to handle correctly the combo wifi\/bluetooth card<\/a>, and <a href=\"#vmware\">setting VMware<\/a> to use the Windows system of the disk.<\/p>\n<p><a name=\"wifi-bt\"><\/a><\/p>\n<h1>Getting Wi-Fi and Bluetooth<\/h1>\n<p>The <a href=\"http:\/\/hp.com\">HP<\/a> 14-cf0013nf contains an <a href=\"https:\/\/ark.intel.com\/products\/122590\/Intel-Core-i3-7020U-Processor-3M-Cache-2_30-GHz\">Intel\u00ae Core\u2122 i3-7020U<\/a> motherboard with a HD Graphics 620 graphic card. Both are perfectly handled by <a href=\"http:\/\/xubuntu.org\">XUbuntu<\/a> 18.04. This is however not the case for the <a href=\"http:\/\/realtek.cz\">Realtek<\/a> RTL8723DE wifi\/bluetooth card: it needs a few manipulations to get it to work well!<\/p>\n<p>I found two solutions to <strong>get the Wi-Fi working<\/strong> (the <a href=\"https:\/\/help.ubuntu.com\/community\/NetworkManager\">Network Manager<\/a> originally did not show any Wi-Fi, as the kernel module did not handle correctly the RTL8723DE card) :<\/p>\n<ol>\n<li>The solution the more widely recommended (including by <a href=\"https:\/\/h30434.www3.hp.com\/t5\/Notebook-Wireless-and-Networking\/Realtek-8723DE-wifi-module-amp-Bluetooth-Linux-driver\/td-p\/6477307\">HP<\/a>) is to use the <a href=\"https:\/\/github.com\/lwfinger\/rtlwifi_new\/tree\/extended\">extended branch<\/a> of Larry Finger&rsquo;s <a href=\"https:\/\/github.com\/lwfinger\/rtlwifi_new\"><tt style=\"font-size: .8em\">rtlwifi_new<\/tt> GitHub repository<\/a>. You can either <a href=\"https:\/\/github.com\/lwfinger\/rtlwifi_new\/archive\/extended.zip\">get the archive<\/a> on the page, or use <tt style=\"font-size: .8em\">git<\/tt> or <tt style=\"font-size: .8em\">svn<\/tt> to <a href=\"https:\/\/github.com\/lwfinger\/rtlwifi_new.git\">download the code<\/a>.<br \/>\nYou can either make and install this code (<tt style=\"font-size: .8em\">make; sudo make install<\/tt>), or use dkms to do it (<tt style=\"font-size: .8em\">sudo dkms add .\/rtlwifi_new; sudo dkms install rtlwifi-new\/0.6<\/tt>). The second solution is better, as the module should be automatically recompile for every new kernel (if I understood well). You will need to install <a href=\"https:\/\/help.ubuntu.com\/community\/CompilingEasyHowTo\"><tt style=\"font-size: .8em\">build-essential<\/tt><\/a> package, as well as <a href=\"https:\/\/help.ubuntu.com\/community\/DKMS\"><tt style=\"font-size: .8em\">dkms<\/tt><\/a> for the second solution.<br \/>\nYou can then use the module with <tt style=\"font-size: .8em\">sudo modprobe -v rtl8723de ant_sel=1<\/tt>, last argument setting which antenna you want to use (either 1 or 2, check which one is the better). <strong>Beware:<\/strong> <span style=\"color: red\">this solution is not efficient for my laptop, as the Wi-Fi signal is much weaker<\/span> (between 50 and 60 %) than under Windows on the same laptop, or under Xubuntu on other laptops.<\/li>\n<li>Looking for a way to have a better signal, I found in <a href=\"http:\/\/github.com\/lwfinger\/rtlwifi_new\/issues\/270\">one of the issues<\/a> of\u00a0Larry Finger&rsquo;s <a href=\"https:\/\/github.com\/lwfinger\/rtlwifi_new\">repository<\/a>\u00a0a reference to <a href=\"https:\/\/github.com\/smlinux\/rtl8723de\">smlinux&rsquo;s module<\/a>, which is newer.<br \/>\nI first had to remove the other module: <tt style=\"font-size: .8em\">sudo service NetworkManager stop; sudo rmmod -f rtl8723_common rtl8723de; sudo dkms uninstall rtlwifi-new\/0.6; sudo dkms remove rtlwifi-new\/0.6 --all; sudo service NetworkManager start<\/tt>.<br \/>\nOnce again, you can <a href=\"https:\/\/github.com\/smlinux\/rtl8723de\/archive\/4.15-up.zip\">get the archive<\/a> or <a href=\"https:\/\/github.com\/smlinux\/rtl8723de.git\">download the code<\/a>, and make and install it (<tt style=\"font-size: .8em\">make; sudo make install<\/tt>) or use dkms (<tt style=\"font-size: .8em\">sudo dkms add .\/rtl8723de; sudo dkms install rtl8723de\/5.1.1.8_21285.20171026_COEX20170111-1414<\/tt>). Starting this module (still with <tt style=\"font-size: .8em\">sudo modprobe -v rtl8723de ant_sel=#<\/tt>), <span style=\"color: green\">the Wi-Fi signal is much better<\/span> (similar to Windows or other laptops)!<\/li>\n<\/ol>\n<p>For both solution, <strong>secure boot has to be disabled<\/strong>, or the module is not activated (and you get once again no Wi-Fi connection in the <a href=\"https:\/\/help.ubuntu.com\/community\/NetworkManager\">Network Manager<\/a>). This may (it did for me) change the boot order, giving priority to MS boot loader (which starts Windows) instead of grub (which gives you the choice). You then need to restore the correct order in the Bios settings.<\/p>\n<p>It is too bad none of these modules were proposed in a simpler way, as <a href=\"https:\/\/github.com\/hanipouspilot\/rtlwifi_new\">Dmitry Tunin&rsquo;s module<\/a> (indicated in the <a href=\"https:\/\/doc.ubuntu-fr.org\/liste_portables_hp\">French list of Ubuntu checks on HP laptops<\/a>) which is available as a package: <tt style=\"font-size: .8em\">sudo add-apt-repository ppa:hanipouspilot\/rtlwifi; sudo apt-get update; sudo apt-get install rtlwifi-new-dkms; echo \"options rtl8723be fwlps=1 ips=0 ant_sel=2\" | sudo tee \/etc\/modprobe.d\/rtl8723be.conf<\/tt>. This is an easier solution, but the module does not handle RTL8723DE, but instead RTL8723BE and others.<\/p>\n<p><strong>Getting the bluetooth<\/strong> was easier, thanks to <a href=\"https:\/\/github.com\/hanipouspilot\">Dmitry Tunin<\/a>! Once again, the default module was not the good one: <a href=\"https:\/\/help.ubuntu.com\/community\/BluetoothDialup\">blueman<\/a> did not have any adaptor. I found out <a href=\"https:\/\/superuser.com\/questions\/1301390\/bluetooth-not-working-for-realtek-rtl8723de-hci0-didnt-find-patch-for-chip-i\">a frightening discussion<\/a>, but last post saved me: only a few commands are needed (<tt style=\"font-size: .8em\">sudo add-apt-repository ppa:hanipouspilot\/bluetooth; sudo apt update; sudo apt install btrtl-rtl8723de-dkms<\/tt>) to solve all!<\/p>\n<p><a name=\"vmware\"><\/a><\/p>\n<h1>Setting VMware to use the disk system<\/h1>\n<p>Soon!<\/p>\n","protected":false},"excerpt":{"rendered":"<p style=\"text-align: center\">(Comme beaucoup de r\u00e9f\u00e9rences \u00e0 cet article sont sur des pages fran\u00e7aises, je l&rsquo;ai <a href=\"..\/xubuntu-hp-14-cf0013nf-fr\">traduit<\/a>.)<\/p>\n<p>The installation of this laptop has two technical points: <a href=\"#wifi-bt\">finding modules to handle correctly the combo wifi\/bluetooth card<\/a>, and <a href=\"#vmware\">setting VMware<\/a> to use the Windows system of the disk.<\/p>\n<p><a name=\"wifi-bt\"><\/a><\/p>\n<p>Getting Wi-Fi and Bluetooth<\/p>\n<p>The <a href=\"http:\/\/hp.com\">HP<\/a> 14-cf0013nf contains an <a href=\"https:\/\/ark.intel.com\/products\/122590\/Intel-Core-i3-7020U-Processor-3M-Cache-2_30-GHz\">Intel\u00ae Core\u2122 i3-7020U<\/a> motherboard with a HD Graphics 620 graphic card. Both are perfectly handled by <a href=\"http:\/\/xubuntu.org\">XUbuntu<\/a> 18.04. This is however not the case for the <a href=\"http:\/\/realtek.cz\">Realtek<\/a> RTL8723DE wifi\/bluetooth card: it needs a few manipulations to get it to work well!<\/p>\n","protected":false},"author":105,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[17,18],"class_list":["post-516","post","type-post","status-publish","format-standard","hentry","category-system","tag-rtl8723de","tag-xubuntu"],"_links":{"self":[{"href":"https:\/\/members.loria.fr\/AScheuer\/wp-json\/wp\/v2\/posts\/516","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/members.loria.fr\/AScheuer\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/members.loria.fr\/AScheuer\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/members.loria.fr\/AScheuer\/wp-json\/wp\/v2\/users\/105"}],"replies":[{"embeddable":true,"href":"https:\/\/members.loria.fr\/AScheuer\/wp-json\/wp\/v2\/comments?post=516"}],"version-history":[{"count":28,"href":"https:\/\/members.loria.fr\/AScheuer\/wp-json\/wp\/v2\/posts\/516\/revisions"}],"predecessor-version":[{"id":565,"href":"https:\/\/members.loria.fr\/AScheuer\/wp-json\/wp\/v2\/posts\/516\/revisions\/565"}],"wp:attachment":[{"href":"https:\/\/members.loria.fr\/AScheuer\/wp-json\/wp\/v2\/media?parent=516"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/members.loria.fr\/AScheuer\/wp-json\/wp\/v2\/categories?post=516"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/members.loria.fr\/AScheuer\/wp-json\/wp\/v2\/tags?post=516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}