Ubuntu 18.04 hangs after login page after installing nvidia drivers












0















I just freshly installed Ubuntu 18.04 on ASUS Zenbook UX303L. After installing nvadia graphics and rebooting I can't get past the login page after entering my credentials.



I used these commands to install nvidia graphics driver



sudo add-apt-repository ppa:graphics-drivers/ppa 
sudo apt-get update
sudo apt-get install nvidia-390


Here are some of the solutions I have tried.



1) Get into TTY terminal and reinstalling nvidia graphics drivers. I am unable to do that because of these error Output when I try to debug via TTY. I am basically helpless on TTY as I can't execute anything.



login hang after password



2) Installed Ubuntu and Nvidia drivers
on the GRUB page, pressed E and added nouveau.modeset=0 to the end of the linux line and F10.



3) I loaded older kernel version using the advanced option on GRUB menu. I still get stuck after login screen.



Still no luck. Right now I am confused if its my graphics or kernel. Any idea what should I do? Any help will be appreciated.



Also here is my system info (I got this by booting using USB cus I didn't wanna reinstall Ubuntu.)




ubuntu@ubuntu:~$ inxi -Fx
System: Host: ubuntu Kernel: 4.15.0-29-generic x86_64 bits: 64 compiler: gcc v: 7.3.0 Desktop: Gnome 3.28.2
Distro: Ubuntu 18.04.1 LTS (Bionic Beaver)
Machine: Type: Laptop System: ASUSTeK product: UX303LNB v: 1.0 serial: <root required>
Mobo: ASUSTeK model: UX303LNB v: 1.0 serial: <root required> UEFI: American Megatrends v: UX303LNB.203
date: 12/10/2014
Battery: ID-1: BAT0 charge: 22.9 Wh condition: 40.3/50.1 Wh (80%) model: ASUSTeK ASUS Battery status: Discharging
CPU: Topology: Dual Core model: Intel Core i7-5500U bits: 64 type: MT MCP arch: Broadwell rev: 4 L2 cache: 4096 KiB
flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 19154
Speed: 1400 MHz min/max: 500/3000 MHz Core speeds (MHz): 1: 1400 2: 1397 3: 1397 4: 1397
Graphics: Device-1: Intel HD Graphics 5500 vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0
Device-2: NVIDIA GM108M [GeForce 840M] vendor: ASUSTeK driver: nouveau v: kernel bus ID: 03:00.0
Display: x11 server: X.Org 1.19.6 driver: nouveau resolution: 3200x1800~60Hz
Message: Unable to show advanced data. Required tool glxinfo missing.
Audio: Device-1: Intel Broadwell-U Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel bus ID: 00:03.0
Device-2: Intel Wildcat Point-LP High Definition Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel
bus ID: 00:1b.0
Sound Server: ALSA v: k4.15.0-29-generic
^ANetwork: Device-1: Intel Wireless 7265 driver: iwlwifi v: kernel port: f040 bus ID: 02:00.0
IF: wlp2s0 state: down mac: 60:57:18:3d:ed:0c
Device-2: ASIX AX88772B type: USB driver: asix bus ID: 1-3:6
IF: enx9cebe81d1999 state: up speed: 100 Mbps duplex: full mac: 9c:eb:e8:1d:19:99
Drives: Local Storage: total: 503.04 GiB used: 406.9 MiB (0.1%)
ID-1: /dev/sda vendor: HGST (Hitachi) model: HTS545050B7E660 size: 465.76 GiB
ID-2: /dev/sdb vendor: Kingston model: SMSM150S324G2 size: 22.37 GiB
ID-3: /dev/sdc type: USB vendor: SanDisk model: Cruzer Switch size: 14.91 GiB
Partition: ID-1: / size: 3.85 GiB used: 406.9 MiB (10.3%) fs: overlay source: ERR-102
Sensors: Missing: Required tool sensors not installed. Check --recommends
Info: Processes: 221 Uptime: 8m Memory: 7.70 GiB used: 1.25 GiB (16.2%) Init: systemd runlevel: 5 Compilers: gcc: N/A
Shell: bash v: 4.4.19 inxi: 3.0.30











share|improve this question



























    0















    I just freshly installed Ubuntu 18.04 on ASUS Zenbook UX303L. After installing nvadia graphics and rebooting I can't get past the login page after entering my credentials.



    I used these commands to install nvidia graphics driver



    sudo add-apt-repository ppa:graphics-drivers/ppa 
    sudo apt-get update
    sudo apt-get install nvidia-390


    Here are some of the solutions I have tried.



    1) Get into TTY terminal and reinstalling nvidia graphics drivers. I am unable to do that because of these error Output when I try to debug via TTY. I am basically helpless on TTY as I can't execute anything.



    login hang after password



    2) Installed Ubuntu and Nvidia drivers
    on the GRUB page, pressed E and added nouveau.modeset=0 to the end of the linux line and F10.



    3) I loaded older kernel version using the advanced option on GRUB menu. I still get stuck after login screen.



    Still no luck. Right now I am confused if its my graphics or kernel. Any idea what should I do? Any help will be appreciated.



    Also here is my system info (I got this by booting using USB cus I didn't wanna reinstall Ubuntu.)




    ubuntu@ubuntu:~$ inxi -Fx
    System: Host: ubuntu Kernel: 4.15.0-29-generic x86_64 bits: 64 compiler: gcc v: 7.3.0 Desktop: Gnome 3.28.2
    Distro: Ubuntu 18.04.1 LTS (Bionic Beaver)
    Machine: Type: Laptop System: ASUSTeK product: UX303LNB v: 1.0 serial: <root required>
    Mobo: ASUSTeK model: UX303LNB v: 1.0 serial: <root required> UEFI: American Megatrends v: UX303LNB.203
    date: 12/10/2014
    Battery: ID-1: BAT0 charge: 22.9 Wh condition: 40.3/50.1 Wh (80%) model: ASUSTeK ASUS Battery status: Discharging
    CPU: Topology: Dual Core model: Intel Core i7-5500U bits: 64 type: MT MCP arch: Broadwell rev: 4 L2 cache: 4096 KiB
    flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 19154
    Speed: 1400 MHz min/max: 500/3000 MHz Core speeds (MHz): 1: 1400 2: 1397 3: 1397 4: 1397
    Graphics: Device-1: Intel HD Graphics 5500 vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0
    Device-2: NVIDIA GM108M [GeForce 840M] vendor: ASUSTeK driver: nouveau v: kernel bus ID: 03:00.0
    Display: x11 server: X.Org 1.19.6 driver: nouveau resolution: 3200x1800~60Hz
    Message: Unable to show advanced data. Required tool glxinfo missing.
    Audio: Device-1: Intel Broadwell-U Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel bus ID: 00:03.0
    Device-2: Intel Wildcat Point-LP High Definition Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel
    bus ID: 00:1b.0
    Sound Server: ALSA v: k4.15.0-29-generic
    ^ANetwork: Device-1: Intel Wireless 7265 driver: iwlwifi v: kernel port: f040 bus ID: 02:00.0
    IF: wlp2s0 state: down mac: 60:57:18:3d:ed:0c
    Device-2: ASIX AX88772B type: USB driver: asix bus ID: 1-3:6
    IF: enx9cebe81d1999 state: up speed: 100 Mbps duplex: full mac: 9c:eb:e8:1d:19:99
    Drives: Local Storage: total: 503.04 GiB used: 406.9 MiB (0.1%)
    ID-1: /dev/sda vendor: HGST (Hitachi) model: HTS545050B7E660 size: 465.76 GiB
    ID-2: /dev/sdb vendor: Kingston model: SMSM150S324G2 size: 22.37 GiB
    ID-3: /dev/sdc type: USB vendor: SanDisk model: Cruzer Switch size: 14.91 GiB
    Partition: ID-1: / size: 3.85 GiB used: 406.9 MiB (10.3%) fs: overlay source: ERR-102
    Sensors: Missing: Required tool sensors not installed. Check --recommends
    Info: Processes: 221 Uptime: 8m Memory: 7.70 GiB used: 1.25 GiB (16.2%) Init: systemd runlevel: 5 Compilers: gcc: N/A
    Shell: bash v: 4.4.19 inxi: 3.0.30











    share|improve this question

























      0












      0








      0








      I just freshly installed Ubuntu 18.04 on ASUS Zenbook UX303L. After installing nvadia graphics and rebooting I can't get past the login page after entering my credentials.



      I used these commands to install nvidia graphics driver



      sudo add-apt-repository ppa:graphics-drivers/ppa 
      sudo apt-get update
      sudo apt-get install nvidia-390


      Here are some of the solutions I have tried.



      1) Get into TTY terminal and reinstalling nvidia graphics drivers. I am unable to do that because of these error Output when I try to debug via TTY. I am basically helpless on TTY as I can't execute anything.



      login hang after password



      2) Installed Ubuntu and Nvidia drivers
      on the GRUB page, pressed E and added nouveau.modeset=0 to the end of the linux line and F10.



      3) I loaded older kernel version using the advanced option on GRUB menu. I still get stuck after login screen.



      Still no luck. Right now I am confused if its my graphics or kernel. Any idea what should I do? Any help will be appreciated.



      Also here is my system info (I got this by booting using USB cus I didn't wanna reinstall Ubuntu.)




      ubuntu@ubuntu:~$ inxi -Fx
      System: Host: ubuntu Kernel: 4.15.0-29-generic x86_64 bits: 64 compiler: gcc v: 7.3.0 Desktop: Gnome 3.28.2
      Distro: Ubuntu 18.04.1 LTS (Bionic Beaver)
      Machine: Type: Laptop System: ASUSTeK product: UX303LNB v: 1.0 serial: <root required>
      Mobo: ASUSTeK model: UX303LNB v: 1.0 serial: <root required> UEFI: American Megatrends v: UX303LNB.203
      date: 12/10/2014
      Battery: ID-1: BAT0 charge: 22.9 Wh condition: 40.3/50.1 Wh (80%) model: ASUSTeK ASUS Battery status: Discharging
      CPU: Topology: Dual Core model: Intel Core i7-5500U bits: 64 type: MT MCP arch: Broadwell rev: 4 L2 cache: 4096 KiB
      flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 19154
      Speed: 1400 MHz min/max: 500/3000 MHz Core speeds (MHz): 1: 1400 2: 1397 3: 1397 4: 1397
      Graphics: Device-1: Intel HD Graphics 5500 vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0
      Device-2: NVIDIA GM108M [GeForce 840M] vendor: ASUSTeK driver: nouveau v: kernel bus ID: 03:00.0
      Display: x11 server: X.Org 1.19.6 driver: nouveau resolution: 3200x1800~60Hz
      Message: Unable to show advanced data. Required tool glxinfo missing.
      Audio: Device-1: Intel Broadwell-U Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel bus ID: 00:03.0
      Device-2: Intel Wildcat Point-LP High Definition Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel
      bus ID: 00:1b.0
      Sound Server: ALSA v: k4.15.0-29-generic
      ^ANetwork: Device-1: Intel Wireless 7265 driver: iwlwifi v: kernel port: f040 bus ID: 02:00.0
      IF: wlp2s0 state: down mac: 60:57:18:3d:ed:0c
      Device-2: ASIX AX88772B type: USB driver: asix bus ID: 1-3:6
      IF: enx9cebe81d1999 state: up speed: 100 Mbps duplex: full mac: 9c:eb:e8:1d:19:99
      Drives: Local Storage: total: 503.04 GiB used: 406.9 MiB (0.1%)
      ID-1: /dev/sda vendor: HGST (Hitachi) model: HTS545050B7E660 size: 465.76 GiB
      ID-2: /dev/sdb vendor: Kingston model: SMSM150S324G2 size: 22.37 GiB
      ID-3: /dev/sdc type: USB vendor: SanDisk model: Cruzer Switch size: 14.91 GiB
      Partition: ID-1: / size: 3.85 GiB used: 406.9 MiB (10.3%) fs: overlay source: ERR-102
      Sensors: Missing: Required tool sensors not installed. Check --recommends
      Info: Processes: 221 Uptime: 8m Memory: 7.70 GiB used: 1.25 GiB (16.2%) Init: systemd runlevel: 5 Compilers: gcc: N/A
      Shell: bash v: 4.4.19 inxi: 3.0.30











      share|improve this question














      I just freshly installed Ubuntu 18.04 on ASUS Zenbook UX303L. After installing nvadia graphics and rebooting I can't get past the login page after entering my credentials.



      I used these commands to install nvidia graphics driver



      sudo add-apt-repository ppa:graphics-drivers/ppa 
      sudo apt-get update
      sudo apt-get install nvidia-390


      Here are some of the solutions I have tried.



      1) Get into TTY terminal and reinstalling nvidia graphics drivers. I am unable to do that because of these error Output when I try to debug via TTY. I am basically helpless on TTY as I can't execute anything.



      login hang after password



      2) Installed Ubuntu and Nvidia drivers
      on the GRUB page, pressed E and added nouveau.modeset=0 to the end of the linux line and F10.



      3) I loaded older kernel version using the advanced option on GRUB menu. I still get stuck after login screen.



      Still no luck. Right now I am confused if its my graphics or kernel. Any idea what should I do? Any help will be appreciated.



      Also here is my system info (I got this by booting using USB cus I didn't wanna reinstall Ubuntu.)




      ubuntu@ubuntu:~$ inxi -Fx
      System: Host: ubuntu Kernel: 4.15.0-29-generic x86_64 bits: 64 compiler: gcc v: 7.3.0 Desktop: Gnome 3.28.2
      Distro: Ubuntu 18.04.1 LTS (Bionic Beaver)
      Machine: Type: Laptop System: ASUSTeK product: UX303LNB v: 1.0 serial: <root required>
      Mobo: ASUSTeK model: UX303LNB v: 1.0 serial: <root required> UEFI: American Megatrends v: UX303LNB.203
      date: 12/10/2014
      Battery: ID-1: BAT0 charge: 22.9 Wh condition: 40.3/50.1 Wh (80%) model: ASUSTeK ASUS Battery status: Discharging
      CPU: Topology: Dual Core model: Intel Core i7-5500U bits: 64 type: MT MCP arch: Broadwell rev: 4 L2 cache: 4096 KiB
      flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 19154
      Speed: 1400 MHz min/max: 500/3000 MHz Core speeds (MHz): 1: 1400 2: 1397 3: 1397 4: 1397
      Graphics: Device-1: Intel HD Graphics 5500 vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0
      Device-2: NVIDIA GM108M [GeForce 840M] vendor: ASUSTeK driver: nouveau v: kernel bus ID: 03:00.0
      Display: x11 server: X.Org 1.19.6 driver: nouveau resolution: 3200x1800~60Hz
      Message: Unable to show advanced data. Required tool glxinfo missing.
      Audio: Device-1: Intel Broadwell-U Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel bus ID: 00:03.0
      Device-2: Intel Wildcat Point-LP High Definition Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel
      bus ID: 00:1b.0
      Sound Server: ALSA v: k4.15.0-29-generic
      ^ANetwork: Device-1: Intel Wireless 7265 driver: iwlwifi v: kernel port: f040 bus ID: 02:00.0
      IF: wlp2s0 state: down mac: 60:57:18:3d:ed:0c
      Device-2: ASIX AX88772B type: USB driver: asix bus ID: 1-3:6
      IF: enx9cebe81d1999 state: up speed: 100 Mbps duplex: full mac: 9c:eb:e8:1d:19:99
      Drives: Local Storage: total: 503.04 GiB used: 406.9 MiB (0.1%)
      ID-1: /dev/sda vendor: HGST (Hitachi) model: HTS545050B7E660 size: 465.76 GiB
      ID-2: /dev/sdb vendor: Kingston model: SMSM150S324G2 size: 22.37 GiB
      ID-3: /dev/sdc type: USB vendor: SanDisk model: Cruzer Switch size: 14.91 GiB
      Partition: ID-1: / size: 3.85 GiB used: 406.9 MiB (10.3%) fs: overlay source: ERR-102
      Sensors: Missing: Required tool sensors not installed. Check --recommends
      Info: Processes: 221 Uptime: 8m Memory: 7.70 GiB used: 1.25 GiB (16.2%) Init: systemd runlevel: 5 Compilers: gcc: N/A
      Shell: bash v: 4.4.19 inxi: 3.0.30








      drivers nvidia kernel graphics login-screen






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 30 at 3:30









      John MillerJohn Miller

      1




      1






















          1 Answer
          1






          active

          oldest

          votes


















          0














          My experience with setting up NVIDIA graphics with proprietary drivers:




          1. Go to https://www.geforce.com/drivers and download latest Linux 64-bit
            drivers for your GPU (Pick the latest one, 410.93 being the latest
            as am writing)

          2. Reboot your Laptop in recovery mode (In the GRUB
            screen, press 'e' and add '1' to the line that starts with linux, it
            should 2nd line from the bottom) and press 'F10'

          3. Enter the root password

          4. Make sure there is no 'xorg.conf' under '/etc/X11/' folder

          5. Go to the directory where you have downloaded the latest NVIDIA driver

          6. Run the NVIDIA driver installer as 'sh ./NVIDIA-xxxxx.run' and follow the instructions

          7. Edit the file with 'sudo nano /etc/initramfs-tools/modules' and add the following modules in separate lines: nvidia, nvidia_modeset, nvidia_uvm, nvidia_drm

          8. Run 'sudo update-initramfs -c -k all'

          9. Add the kernel parameter 'nvidia-drm.modeset=1' in the file '/etc/default/grub' to the line that starts with "GRUB_CMDLINE_LINUX_DEFAULT"

          10. Run 'sudo update-grub'

          11. Reboot the Laptop into Linux normally


          If you run into compilation problems, look into the NVIDIA installer logs for exact errors. In most cases, you may need to install the 'linux-headers' (corresponding to your linux kernel version), 'gcc' packages and then retry the NVIDIA driver installation.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1113998%2fubuntu-18-04-hangs-after-login-page-after-installing-nvidia-drivers%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            My experience with setting up NVIDIA graphics with proprietary drivers:




            1. Go to https://www.geforce.com/drivers and download latest Linux 64-bit
              drivers for your GPU (Pick the latest one, 410.93 being the latest
              as am writing)

            2. Reboot your Laptop in recovery mode (In the GRUB
              screen, press 'e' and add '1' to the line that starts with linux, it
              should 2nd line from the bottom) and press 'F10'

            3. Enter the root password

            4. Make sure there is no 'xorg.conf' under '/etc/X11/' folder

            5. Go to the directory where you have downloaded the latest NVIDIA driver

            6. Run the NVIDIA driver installer as 'sh ./NVIDIA-xxxxx.run' and follow the instructions

            7. Edit the file with 'sudo nano /etc/initramfs-tools/modules' and add the following modules in separate lines: nvidia, nvidia_modeset, nvidia_uvm, nvidia_drm

            8. Run 'sudo update-initramfs -c -k all'

            9. Add the kernel parameter 'nvidia-drm.modeset=1' in the file '/etc/default/grub' to the line that starts with "GRUB_CMDLINE_LINUX_DEFAULT"

            10. Run 'sudo update-grub'

            11. Reboot the Laptop into Linux normally


            If you run into compilation problems, look into the NVIDIA installer logs for exact errors. In most cases, you may need to install the 'linux-headers' (corresponding to your linux kernel version), 'gcc' packages and then retry the NVIDIA driver installation.






            share|improve this answer




























              0














              My experience with setting up NVIDIA graphics with proprietary drivers:




              1. Go to https://www.geforce.com/drivers and download latest Linux 64-bit
                drivers for your GPU (Pick the latest one, 410.93 being the latest
                as am writing)

              2. Reboot your Laptop in recovery mode (In the GRUB
                screen, press 'e' and add '1' to the line that starts with linux, it
                should 2nd line from the bottom) and press 'F10'

              3. Enter the root password

              4. Make sure there is no 'xorg.conf' under '/etc/X11/' folder

              5. Go to the directory where you have downloaded the latest NVIDIA driver

              6. Run the NVIDIA driver installer as 'sh ./NVIDIA-xxxxx.run' and follow the instructions

              7. Edit the file with 'sudo nano /etc/initramfs-tools/modules' and add the following modules in separate lines: nvidia, nvidia_modeset, nvidia_uvm, nvidia_drm

              8. Run 'sudo update-initramfs -c -k all'

              9. Add the kernel parameter 'nvidia-drm.modeset=1' in the file '/etc/default/grub' to the line that starts with "GRUB_CMDLINE_LINUX_DEFAULT"

              10. Run 'sudo update-grub'

              11. Reboot the Laptop into Linux normally


              If you run into compilation problems, look into the NVIDIA installer logs for exact errors. In most cases, you may need to install the 'linux-headers' (corresponding to your linux kernel version), 'gcc' packages and then retry the NVIDIA driver installation.






              share|improve this answer


























                0












                0








                0







                My experience with setting up NVIDIA graphics with proprietary drivers:




                1. Go to https://www.geforce.com/drivers and download latest Linux 64-bit
                  drivers for your GPU (Pick the latest one, 410.93 being the latest
                  as am writing)

                2. Reboot your Laptop in recovery mode (In the GRUB
                  screen, press 'e' and add '1' to the line that starts with linux, it
                  should 2nd line from the bottom) and press 'F10'

                3. Enter the root password

                4. Make sure there is no 'xorg.conf' under '/etc/X11/' folder

                5. Go to the directory where you have downloaded the latest NVIDIA driver

                6. Run the NVIDIA driver installer as 'sh ./NVIDIA-xxxxx.run' and follow the instructions

                7. Edit the file with 'sudo nano /etc/initramfs-tools/modules' and add the following modules in separate lines: nvidia, nvidia_modeset, nvidia_uvm, nvidia_drm

                8. Run 'sudo update-initramfs -c -k all'

                9. Add the kernel parameter 'nvidia-drm.modeset=1' in the file '/etc/default/grub' to the line that starts with "GRUB_CMDLINE_LINUX_DEFAULT"

                10. Run 'sudo update-grub'

                11. Reboot the Laptop into Linux normally


                If you run into compilation problems, look into the NVIDIA installer logs for exact errors. In most cases, you may need to install the 'linux-headers' (corresponding to your linux kernel version), 'gcc' packages and then retry the NVIDIA driver installation.






                share|improve this answer













                My experience with setting up NVIDIA graphics with proprietary drivers:




                1. Go to https://www.geforce.com/drivers and download latest Linux 64-bit
                  drivers for your GPU (Pick the latest one, 410.93 being the latest
                  as am writing)

                2. Reboot your Laptop in recovery mode (In the GRUB
                  screen, press 'e' and add '1' to the line that starts with linux, it
                  should 2nd line from the bottom) and press 'F10'

                3. Enter the root password

                4. Make sure there is no 'xorg.conf' under '/etc/X11/' folder

                5. Go to the directory where you have downloaded the latest NVIDIA driver

                6. Run the NVIDIA driver installer as 'sh ./NVIDIA-xxxxx.run' and follow the instructions

                7. Edit the file with 'sudo nano /etc/initramfs-tools/modules' and add the following modules in separate lines: nvidia, nvidia_modeset, nvidia_uvm, nvidia_drm

                8. Run 'sudo update-initramfs -c -k all'

                9. Add the kernel parameter 'nvidia-drm.modeset=1' in the file '/etc/default/grub' to the line that starts with "GRUB_CMDLINE_LINUX_DEFAULT"

                10. Run 'sudo update-grub'

                11. Reboot the Laptop into Linux normally


                If you run into compilation problems, look into the NVIDIA installer logs for exact errors. In most cases, you may need to install the 'linux-headers' (corresponding to your linux kernel version), 'gcc' packages and then retry the NVIDIA driver installation.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 31 at 11:30









                Sharath ChandramouliSharath Chandramouli

                1487




                1487






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1113998%2fubuntu-18-04-hangs-after-login-page-after-installing-nvidia-drivers%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                    Mangá

                     ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕