[SOLVED] Not booting past the login screen

I was able to boot and install manjaro 18.1.0 alongside with windows 10 on my laptop using the live media using free drivers and nomodeset=0 on radeon and noveau. However upon successful installation and rebooting to my new system. It won't make me pass through login screen. What's happening is after I enter my credentials, the loading circle (in the middle) would get stucked up and I have to hard reboot my laptop. Also I am able to go to tty but upon entering commands like inxi -Fxxx or mhwd -li it would just simply flash some text then shutdown (not reboot). Had to take a video frame for it because it just flashed it in less than a second.
Screenshot_20191004-194330~2

Also while installing I tried to enter the inxi -Fxxx command in terminal via the live session and here is the result. IMG_20191004_191729

All help are muchly appreciated.

Maybe you need to add some custom kernel boot parameters like on most ROG laptops. Example:
add_efi_memmap i915.i915_enable_rc6=1 drm.vblankoffdelay=1 i915.semaphores=1

Some even use:
pcie_aspm=force

I think you have to research a bit more on this. See what others did on similar hardware (as this model of yours in particular seems quite new).
Check also:


1 Like

Sorry for being such a noob but to where will I add this kernel parameter?

What I did so far as my search for solutions continue was this:
Screenshot_20191005-073018

I followed every steps however upon sudo grub-update I have this error.

And when I tried to reboot, it won't even load my grub menu thus I did a fresh install of the os again and have the same problem again.

got your DM, you installed with free drivers because the nonfree drivers wouldnt boot right?

boot the manjaro usb, (free or nonfree, doesnt matter), when you get to the desktop connect to network, open a terminal and enter

sudo manjaro-chroot -a

if your presented with an option and the only option is 0, dont enter zero and instead either enter 1 or just leave it blank and hit enter. this should drop you to a root shell on your installed manjaro (chroot) where you can make the changes needed. post the command and the full output from the manjaro-chroot command so i can see that your actually in a chroot.

thank you for taking a look at this matter sir. here is my output of chroot.

[manjaro@manjaro ~]$ manjaro-chroot -a
==> Detected systems:
--> 0) ManjaroLinux
==> Select system to mount [0-0] :
1
==> Mounting (ManjaroLinux) [/dev/nvme0n1p5]
--> mount: [/mnt]
--> mount: [/mnt/boot/efi]
[manjaro /]#

edit: I forgot to answer your question, I have installed the system via booting the live media in free driver and modifying the modeset parameters of noveau and radeon to 0 leaving only the intel driver (i915 something?) to 1 since it won't boot in non-free mode.

ok good, thats chroot. the problem where your system shuts down whenever you inxi or run mhwd commands is due to the nouveau (free) driver. this started happening more recently. if you want a setup that works go with optimus-switch.

post these outputs as text (not pictures) and use the </> button above the post entry box when pasting so the output is formatted properly

from the chroot terminal

mhwd -li
[manjaro@manjaro ~]$ manjaro-chroot -a
==> Detected systems:
 --> 0) ManjaroLinux
==> Select system to mount [0-0] : 
1
==> Mounting (ManjaroLinux) [/dev/nvme0n1p5]
 --> mount: [/mnt]
 --> mount: [/mnt/boot/efi]
[manjaro /]# mhwd -li
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI


Warning: No installed USB configs!
[manjaro /]#

ok, start by running a full update in the chroot terminal

pacman-mirrors -f8 ; pacman -Syyu

if that finishes without errors continue to these commands one at a time, if any commands fail or produce errors just stop and post the command and error output here (this assumes your installed manjaro is using the 5.2 kernel. if your unsure you can check with mhwd-kernel -li

mhwd -r pci video-linux
mhwd -i pci video-nvidia-430xx

cd ~
pacman -S linux52-headers dkms acpi_call-dkms xf86-video-intel xorg-xrandr git
git clone https://github.com/dglt1/optimus-switch-sddm.git
cd ~/optimus-switch-sddm
chmod +x install.sh
./install.sh
[manjaro /]# pacman-mirrors -f8 ; pacman -Syyu
::INFO Downloading mirrors from repo.manjaro.org
::INFO Using default mirror file
::INFO Querying mirrors - This may take some time
  1.325 United_States  : https://mirrors.gigenet.com/manjaro/
  ..... United_States  : http://mirrors.gigenet.com/manjaro/
  ..... Japan          : http://ftp.tsukuba.wide.ad.jp/Linux/manjaro/
  ..... Germany        : https://ftp.halifax.rwth-aachen.de/manjaro/

::ERROR [Errno 101] Network is unreachable 'https://ftp.halifax.rwth-aachen.de/manjaro/'

  ..... Germany        : ftp://ftp.halifax.rwth-aachen.de/manjaro/

::ERROR ftp error: timeout('timed out') 'ftp://ftp.halifax.rwth-aachen.de/manjaro/'

  ..... Portugal       : http://ftp.dei.uc.pt/pub/linux/manjaro/

::ERROR timed out 'http://ftp.dei.uc.pt/pub/linux/manjaro/'

  ..... Norway         : http://mirror.terrahost.no/linux/manjaro/
  ..... France         : http://ftp.free.org/mirrors/repo.manjaro.org/repos/
  ..... France         : ftp://ftp.free.org/mirrors/repo.manjaro.org/repos/

::ERROR ftp error: timeout('timed out') 'ftp://ftp.free.org/mirrors/repo.manjaro.org/repos/'

  2.540 Germany        : https://manjaro.moson.eu/
  ..... Germany        : http://manjaro.moson.eu/
  ..... Belgium        : https://mirror.futureweb.be/manjaro/
  ..... Belgium        : http://mirror.futureweb.be/manjaro/

::ERROR [Errno 101] Network is unreachable 'http://mirror.futureweb.be/manjaro/'

::INFO Writing mirror list
::United_States   : https://mirrors.gigenet.com/manjaro/stable
::Germany         : https://manjaro.moson.eu/stable
::Japan           : http://ftp.tsukuba.wide.ad.jp/Linux/manjaro/stable
::Norway          : http://mirror.terrahost.no/linux/manjaro/stable
::Germany         : ftp://ftp.halifax.rwth-aachen.de/manjaro/stable
::Portugal        : http://ftp.dei.uc.pt/pub/linux/manjaro/stable
::France          : http://ftp.free.org/mirrors/repo.manjaro.org/repos/stable
::Belgium         : https://mirror.futureweb.be/manjaro/stable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
:: Synchronizing package databases...
 core                                        148.9 KiB   182K/s 00:01 [#######################################] 100%
 extra                                      1886.9 KiB   323K/s 00:06 [#######################################] 100%
 community                                     5.3 MiB   350K/s 00:16 [#######################################] 100%
 multilib                                    183.6 KiB   402K/s 00:00 [#######################################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (5) bauh-0.5.2-1  firefox-69.0.1-0  screenfetch-3.8.0.r213.g50ac492-1  thunderbird-68.1.1-0
             wallpapers-juhraya-1.1-2

Total Download Size:   103.81 MiB
Total Installed Size:  361.91 MiB
Net Upgrade Size:       10.73 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 firefox-69.0.1-0-x86_64                      47.6 MiB   343K/s 02:22 [#######################################] 100%
 thunderbird-68.1.1-0-x86_64                  37.0 MiB   313K/s 02:01 [#######################################] 100%
 wallpapers-juhraya-1.1-2-any                 19.0 MiB   348K/s 00:56 [#######################################] 100%
 bauh-0.5.2-1-any                            191.1 KiB   490K/s 00:00 [#######################################] 100%
 screenfetch-3.8.0.r213.g50ac492-1-any        54.3 KiB  1645K/s 00:00 [#######################################] 100%
(5/5) checking keys in keyring                                        [#######################################] 100%
(5/5) checking package integrity                                      [#######################################] 100%
(5/5) loading package files                                           [#######################################] 100%
(5/5) checking for file conflicts                                     [#######################################] 100%
(5/5) checking available disk space                                   [#######################################] 100%
:: Running pre-transaction hooks...
(1/2) Remove Firefox Distribution Settings
(2/2) Remove Thunderbird Distribution Settings
:: Processing package changes...
(1/5) upgrading bauh                                                  [#######################################] 100%
(2/5) upgrading firefox                                               [#######################################] 100%
(3/5) upgrading screenfetch                                           [#######################################] 100%
(4/5) upgrading thunderbird                                           [#######################################] 100%
(5/5) upgrading wallpapers-juhraya                                    [#######################################] 100%
:: Running post-transaction hooks...
(1/5) Copy Firefox Distribution Settings
(2/5) Updating icon theme caches...
(3/5) Arming ConditionNeedsUpdate...
(4/5) Copy Thunderbird Distribution Settings
(5/5) Updating the desktop file MIME type cache...
[manjaro /]# 

It had some errors but only in fetching mirrors so I decided to push through the full system upgrade and that was the result. Currently doing the removal of intel driver and installing the nvida. And yes sir, I'm running on 5.2 kernel and verified through mhwd-kernel -li. here is the verification:

[manjaro /]# mhwd-kernel -li
Currently running: 5.2.11-1-MANJARO (linux52)
The following kernels are installed in your system:
   * linux52
[manjaro /]# 

Update: removal and installation complete. Output is as follows.

[manjaro /]# mhwd -r pci video-linux
> Removing video-linux...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true                                                                                             
Sourcing /var/lib/mhwd/local/pci/video-linux/MHWDCONFIG                                                             
Processing classid: 0300                                                                                            
Sourcing /var/lib/mhwd/scripts/include/0300                                                                         
Processing classid: 0380                                                                                            
Processing classid: 0302                                                                                            
checking dependencies...                                                                                            
:: lib32-libva optionally requires lib32-libva-vdpau-driver: vdpau back-end for nvidia                              
:: lib32-mesa optionally requires lib32-mesa-vdpau: for accelerated video playback                                  
:: libva optionally requires libva-vdpau-driver: backend for Nvidia and AMD cards                                   
:: mesa optionally requires mesa-vdpau: for accelerated video playback                                              
:: mesa optionally requires libva-mesa-driver: for accelerated video playback                                       
:: vlc optionally requires libva-vdpau-driver: vdpau backend nvidia                                                 
:: vulkan-icd-loader optionally requires vulkan-driver: packaged vulkan driver                                      

Packages (15) lib32-libvdpau-1.3-1  libxvmc-1.0.11-1  lib32-libva-vdpau-driver-0.7.4-6  lib32-mesa-vdpau-19.1.5-1  lib32-vulkan-intel-19.1.5-1  lib32-vulkan-radeon-19.1.5-1  libva-mesa-driver-19.1.5-1  libva-vdpau-driver-0.7.4-4  mesa-vdpau-19.1.5-1  vulkan-intel-19.1.5-1  vulkan-radeon-19.1.5-1  xf86-video-amdgpu-19.0.1-1  xf86-video-ati-1:19.0.1-1  xf86-video-intel-1:2.99.917+870+g6f4972d5-1  xf86-video-nouveau-1.0.16-1                                       

Total Removed Size:  42.90 MiB                                                                                      

:: Do you want to remove these packages? [Y/n]                                                                      
:: Processing package changes...                                                                                    
removing lib32-mesa-vdpau...                                                                                        
removing lib32-libva-vdpau-driver...                                                                                
removing lib32-libvdpau...                                                                                          
removing lib32-vulkan-radeon...                                                                                     
removing lib32-vulkan-intel...                                                                                      
removing mesa-vdpau...                                                                                              
removing libva-vdpau-driver...                                                                                      
removing libva-mesa-driver...                                                                                       
removing vulkan-radeon...                                                                                           
removing vulkan-intel...                                                                                            
removing xf86-video-nouveau...                                                                                      
removing xf86-video-intel...                                                                                        
removing libxvmc...                                                                                                 
removing xf86-video-amdgpu...                                                                                       
removing xf86-video-ati...                                                                                          
:: Running post-transaction hooks...                                                                                
(1/1) Arming ConditionNeedsUpdate...                                                                                
> Successfully removed video-linux
[manjaro /]# mhwd -i pci video-nvidia-430xx
> Installing video-nvidia-430xx...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true                                                                                             
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/nvidia-430xx/MHWDCONFIG                                               
Processing classid: 0300                                                                                            
Sourcing /var/lib/mhwd/scripts/include/0300                                                                         
Processing classid: 0302                                                                                            
:: Synchronizing package databases...                                                                               
 core is up to date                                                                                                 
 extra is up to date                                                                                                
 community is up to date                                                                                            
 multilib is up to date                                                                                             
resolving dependencies...                                                                                           
looking for conflicting packages...                                                                                 
warning: dependency cycle detected:                                                                                 
warning: eglexternalplatform will be installed before its nvidia-430xx-utils dependency                             

Packages (5) egl-wayland-1.1.3-1  eglexternalplatform-1.0+3+g7c8f8e2-1  lib32-nvidia-430xx-utils-430.40-2  linux52-nvidia-430xx-430.40-6  nvidia-430xx-utils-430.40-2                                                                   

Total Download Size:    77.71 MiB                                                                                   
Total Installed Size:  313.28 MiB                                                                                   

:: Proceed with installation? [Y/n]                                                                                 
:: Retrieving packages...                                                                                           
downloading eglexternalplatform-1.0+3+g7c8f8e2-1-any.pkg.tar.xz...                                                  
downloading egl-wayland-1.1.3-1-x86_64.pkg.tar.xz...                                                                
downloading nvidia-430xx-utils-430.40-2-x86_64.pkg.tar.xz...                                                        
downloading linux52-nvidia-430xx-430.40-6-x86_64.pkg.tar.xz...                                                      
downloading lib32-nvidia-430xx-utils-430.40-2-x86_64.pkg.tar.xz...                                                  
checking keyring...                                                                                                 
checking package integrity...                                                                                       
loading package files...                                                                                            
checking for file conflicts...                                                                                      
checking available disk space...                                                                                    
:: Processing package changes...                                                                                    
installing eglexternalplatform...                                                                                   
installing egl-wayland...                                                                                           
installing nvidia-430xx-utils...                                                                                    
==> If you run into trouble with CUDA not being available, run nvidia-modprobe first.
Optional dependencies for nvidia-430xx-utils
    gtk2: nvidia-settings [installed]                                                                               
    xorg-server-devel: nvidia-xconfig                                                                               
    opencl-nvidia: OpenCL support                                                                                   
installing lib32-nvidia-430xx-utils...                                                                              
Optional dependencies for lib32-nvidia-430xx-utils                                                                  
    lib32-opencl-nvidia-430xx                                                                                       
installing linux52-nvidia-430xx...                                                                                  
In order to use nvidia module, reboot the system.                                                                   
:: Running post-transaction hooks...                                                                                
(1/6) Creating system user accounts...                                                                              
(2/6) Updating linux52 module dependencies...                                                                       
(3/6) Updating Kernel initcpios for Nvidia-DRM...                                                                   
==> Building image from preset: /etc/mkinitcpio.d/linux52.preset: 'default'                                         
  -> -k /boot/vmlinuz-5.2-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.2-x86_64.img                          
==> Starting build: 5.2.11-1-MANJARO                                                                                
  -> Running build hook: [base]                                                                                     
  -> Running build hook: [udev]                                                                                     
  -> Running build hook: [autodetect]                                                                               
  -> Running build hook: [modconf]                                                                                  
  -> Running build hook: [block]                                                                                    
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.2-x86_64.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux52.preset: 'fallback'
  -> -k /boot/vmlinuz-5.2-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.2-x86_64-fallback.img -S autodetect
==> Starting build: 5.2.11-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.2-x86_64-fallback.img
==> Image generation successful
(4/6) Reloading system manager configuration...
  Skipped: Current root is not booted.
(5/6) Arming ConditionNeedsUpdate...
(6/6) Updating the desktop file MIME type cache...
xorg configuration file: '/etc/X11/mhwd.d/nvidia.conf'
> Successfully installed video-nvidia-430xx
[manjaro /]# 

Next are the result of the succeeding commands:

[manjaro /]# cd ~
[manjaro ~]# ^C
[manjaro ~]# pacman -S linux52-headers dkms acpi_call-dkms xf86-video-intel xorg-xrandr git
warning: xorg-xrandr-1.5.1-1 is up to date -- reinstalling
warning: git-2.23.0-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (7) libxvmc-1.0.11-1  acpi_call-dkms-1.1.0-241  dkms-2.7.1-1  git-2.23.0-1  linux52-headers-5.2.11-1
             xf86-video-intel-1:2.99.917+870+g6f4972d5-1  xorg-xrandr-1.5.1-1

Total Download Size:    15.00 MiB
Total Installed Size:  104.92 MiB
Net Upgrade Size:       68.57 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 linux52-headers-5.2.11-1-x86_64               9.3 MiB   350K/s 00:27 [#######################################] 100%
 dkms-2.7.1-1-any                             51.4 KiB   571K/s 00:00 [#######################################] 100%
 xorg-xrandr-1.5.1-1-x86_64                   35.1 KiB   462K/s 00:00 [#######################################] 100%
 git-2.23.0-1-x86_64                           5.6 MiB   356K/s 00:16 [#######################################] 100%
 acpi_call-dkms-1.1.0-241-x86_64              11.3 KiB  0.00B/s 00:00 [#######################################] 100%
(7/7) checking keys in keyring                                        [#######################################] 100%
(7/7) checking package integrity                                      [#######################################] 100%
(7/7) loading package files                                           [#######################################] 100%
(7/7) checking for file conflicts                                     [#######################################] 100%
(7/7) checking available disk space                                   [#######################################] 100%
:: Processing package changes...
(1/7) installing linux52-headers                                      [#######################################] 100%
(2/7) installing dkms                                                 [#######################################] 100%
Optional dependencies for dkms
    linux-headers: build modules against the Arch kernel [installed]
    linux-lts-headers: build modules against the LTS kernel
    linux-zen-headers: build modules against the ZEN kernel
    linux-hardened-headers: build modules against the HARDENED kernel
(3/7) installing acpi_call-dkms                                       [#######################################] 100%
(4/7) installing libxvmc                                              [#######################################] 100%
(5/7) installing xf86-video-intel                                     [#######################################] 100%
>>> This driver now uses DRI3 as the default Direct Rendering
    Infrastructure. You can try falling back to DRI2 if you run
    into trouble. To do so, save a file with the following 
    content as /etc/X11/xorg.conf.d/20-intel.conf :
      Section "Device"
        Identifier  "Intel Graphics"
        Driver      "intel"
        Option      "DRI" "2"             # DRI3 is now default 
        #Option      "AccelMethod"  "sna" # default
        #Option      "AccelMethod"  "uxa" # fallback
      EndSection
Optional dependencies for xf86-video-intel
    libxrandr: for intel-virtual-output [installed]
    libxinerama: for intel-virtual-output [installed]
    libxcursor: for intel-virtual-output [installed]
    libxtst: for intel-virtual-output [installed]
    libxss: for intel-virtual-output [installed]
(6/7) reinstalling xorg-xrandr                                        [#######################################] 100%
(7/7) reinstalling git                                                [#######################################] 100%
:: Running post-transaction hooks...
(1/5) Creating system user accounts...
(2/5) Updating linux52 module dependencies...
(3/5) Install DKMS modules
==> dkms install acpi_call/1.1.0 -k 5.2.11-1-MANJARO
(4/5) Reloading system manager configuration...
  Skipped: Current root is not booted.
(5/5) Arming ConditionNeedsUpdate...
[manjaro ~]# git clone https://github.com/dglt1/optimus-switch-sddm.git
Cloning into 'optimus-switch-sddm'...
remote: Enumerating objects: 111, done.
remote: Total 111 (delta 0), reused 0 (delta 0), pack-reused 111
Receiving objects: 100% (111/111), 31.70 KiB | 282.00 KiB/s, done.
Resolving deltas: 100% (41/41), done.
[manjaro ~]# cd ~/optimus-switch-sddm
[manjaro optimus-switch-sddm]# chmod +x install.sh
[manjaro optimus-switch-sddm]# ./install.sh
##################################################################
# be sure you have all requirements BEFORE running this script  ##
# linux*-headers acpi_call-dkms xf86-video-intel git xorg-xrandr##
# ****installing in 5 sec... CTRL+C to abort****                ##
##################################################################
 
##################################################################
#errors about removing files can be ignored, i wrote this script##
#with the most common files in mind, you will not have all of   ##
#them, this is ok!                                              ##
##################################################################
## IF YOU HAVE ERRORS ABOUT COPYING FILES, SOMETHING IS WRONG   ##
## MAKE SURE THIS IS RUN WITH SUDO AND FROM DIRECTORY           ##
## ~/optimus-switch-sddm/  (this is very important!!!)          ##
##################################################################
 
Removing current nvidia prime setup if applicable, file not found can be ignored......
Removing gpu configurations from /etc/X11/mhwd.d/  .......
Removing gpu configurations from /etc/X11/xorg.conf.d/ ........
Removing gpu configurations from /etc/modprobe.d/  ........
Removing gpu configurations from /etc/modules-load.d/
removing any display setup scripts.....
Copying contents of ~/optimus-switch-sddm/* to /etc/ .......
Copying set-intel.sh and set-nvidia.sh to /usr/local/bin/
 
Setting nvidia prime mode (sudo set-nvidia.sh).......
 
Setting permissions........
 
 
Currently boot mode is set to nvidia prime.
 
you can switch to intel only mode with sudo set-intel.sh and reboot.
 
same can be done for nvidia prime mode with sudo set-nvidia.sh
 
 
Install finished!
 
[manjaro optimus-switch-sddm]# 

ah shyte, i forgot to have you remove the mhwd generated configurations. hope you didnt reboot yet. if you did, boot back into the usb, chroot again and run these

rm -rf /etc/modprobe.d/mhwd-gpu.conf
rm -rf /etc/modules-load.d/mhwd-gpu.conf
rm -rf /etc/X11/xorg.conf.d/90-mhwd.conf
exit

then reboot

1 Like

I haven't rebooted yet sir since I've last replied to this topic. I had to go for work that time. If I haven't rebooted yet should I still run these commands?

I did the last set of commands you have told me and I got past the login screen. Currently writing this reply on the booted system now. Thank you, kind sir for this smooth guide and the patience for people like me.

If not much to add, can I ask one last thing in this post? Is this tutorial for creating a custom ISO of my current system viable as a backup in case I f***ed up everything in future use or even then I have to do your guide for making my graphics card working?

P.S. I've already marked your guide as solution, however I don't know where is "Topic Solved button" as per the forum rules stated.

that was just a summed up version of the directions here

you should read through the bottom part to setup the power management when you use intel mode. what you just setup was optimus-switch.

to switch modes
sudo set-intel.sh and reboot and you'll be on intel mode
sudo set-nvidia.sh and reboot and you'll be on nvidia (what your on now)

@linesma made a nice gui tool for switching thats very simple to setup and works great

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by