Skip to content

Instantly share code, notes, and snippets.

@niya3
Last active April 16, 2018 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niya3/2986ddc4faa809e4c5ada48c260f5fad to your computer and use it in GitHub Desktop.
Save niya3/2986ddc4faa809e4c5ada48c260f5fad to your computer and use it in GitHub Desktop.
Basic installation of Manjaro 17.1.7 KDE at UEFI and nvidia optimus card laptop
DISCLAMER
I don't know how to configure and install nvidia/bumblebee properly.
Now `inxi -G` gives drivers 'kernel' for intel and 'N/A' for nvidia.
I. On working machine download and burn iso to USB device at /dev/sdb
$ wget https://sourceforge.net/projects/manjarolinux/files/archive/17.1.7/kde/manjaro-kde-17.1.7-stable-x86_64.iso/download
$ wget https://sourceforge.net/projects/manjarolinux/files/archive/17.1.7/kde/manjaro-kde-17.1.7-stable-x86_64.iso.sha256/download
$ sha256sum -c ./manjaro-kde-17.1.7-stable-x86_64.iso.sha256
$ sudo dd bs=4M if=./manjaro-kde-17.1.7-stable-x86_64.iso of=/dev/sdb status=progress #CAUTION! Be careful with 'of' destination!
II. Configure target machine BIOS for loading from USB and using UEFI mode.
Insert USB-device to target machine and reboot machine.
Select 'free' drivers and load Manjaro KDE.
III. Connect to the Internet. Update 'Calamares' and 'sddm' packages (in my case to versions 3.1.13-1 and 0.17.0-5) to avoid
"Cannot enable systemd service sddm" and "systemctl enable call in chroot returned error code 1" errors at install-time.
$ sudo -i
# pacman -Sy
# pacman -S calamares sddm
IV. Install Manjaro using link on Desktop. Warning: switch locale back to en_US, can't find how to do it after install. Locale removing didn't helped.
Create 512Mb partition for UEFI, format it to FAT32, mount to '/boot/efi', set 'esp' flag.
Let '/dev/sda3' to be partition mounted to '/'
# mount /dev/sda3 /mnt
# manjaro-chroot /mnt
## echo blacklist nouveau >> /etc/modprobe.d/blacklist.conf
## sed -i -e 's/quiet//' /etc/default/grub #delete 'quiet' in GRUB_CMDLINE_LINUX_DEFAULT variable in place
## update-grub
## exit #from chroot
# reboot
V. Remove USB-device, load system. Done.
VI. Tips and trics.
0. Don't buy laptop with nvidia optimus card at all. Nothing changed from 2012: https://youtu.be/IVpOyKCNZYw
1. If your system stuck somwhere at system loading, e.g. around "Started TLP system startup/shutdown" message.
1.1 Press 'e' in GRUB
1.2 Move to line starting with 'linux' word. Remove 'nomodeset' if present, add '1' at the end of line. F10
1.3 Login as root and enjoy with console =)
1.4 Now you can try adding 'blacklist nouveau' to /etc/modprobe.d/blacklist.conf
1.5 Or removing new-installed video-packages:
$ grep pacman /var/log/pacman.log | less
# pacman -Rdd <package>
1.6 Or removing video-packages by 'mhwd':
list installed targets
# mhwd -li
remove installed target <name>
# mhwd -r <name>
install target for video card automatically (removes previously installed, just what we needed)
# mhwd -a pci free 0300 -f # or nonfree
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment