<SOLVED>NVIDIA fails, how to get back to inegrated graphics for now?

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Wayne_

<SOLVED>NVIDIA fails, how to get back to inegrated graphics for now?

Post by Wayne_ »

First of all, hey all!

I'm new here and I've been wrestling with Linux mint 19 Cinnamon a few days now on my Asus Zenbook UX303LN -laptop. Sometimes winning most of it losing.
BUT, I'm learning something, babysteps, as they say.

So, here is the

Code: Select all

inxi -Fx
you'll ask first anyway.

Code: Select all

System:    Host: wayne-UX303LN Kernel: 4.15.0-39-generic x86_64
           bits: 64 gcc: 7.3.0
           Desktop: Cinnamon 3.8.9 (Gtk 3.22.30-1ubuntu1)
           Distro: Linux Mint 19 Tara
Machine:   Device: laptop System: ASUSTeK product: UX303LN v: 1.0 serial: N/A
           Mobo: ASUSTeK model: UX303LN v: 1.0 serial: N/A
           UEFI: American Megatrends v: UX303LN.204 date: 09/01/2014
Battery    BAT0: charge: 42.3 Wh 95.6% condition: 44.3/50.1 Wh (88%)
           
           model: ASUSTeK UX3-44 status: Discharging
CPU:       Dual core Intel Core i7-4510U (-MT-MCP-) 
           arch: Haswell rev.1 cache: 4096 KB
           
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 10375
           clock speeds: max: 3100 MHz 1: 1195 MHz 2: 1270 MHz
           3: 1337 MHz 4: 1241 MHz
Graphics:  Card-1: Intel Haswell-ULT Integrated Graphics Controller
           bus-ID: 00:02.0
           Card-2: NVIDIA GM108M [GeForce 840M] bus-ID: 03:00.0
           Display Server: x11 (X.Org 1.19.6 )
           drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: 960x540@59.82hz
           OpenGL: renderer: Mesa DRI Intel Haswell Mobile
           version: 4.5 Mesa 18.0.5 Direct Render: Yes
Audio:     Card-1 Intel 8 Series HD Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Card-2 Intel Haswell-ULT HD Audio Controller
           driver: snd_hda_intel bus-ID: 00:03.0
           Sound: ALSA v: k4.15.0-39-generic
Network:   Card-1: Intel Wireless 7260
           driver: iwlwifi bus-ID: 02:00.0
           IF: wlp2s0 state: up mac: e8:2a:ea:76:bc:68
           Card-2: Atmel usb-ID: 001-003
           IF: null-if-id state: N/A speed: N/A duplex: N/A mac: N/A
Drives:    HDD Total Size: 256.1GB (20.5% used)
           ID-1: /dev/sda model: SanDisk_SD6SB1M2 size: 256.1GB
Partition: ID-1: / size: 234G used: 49G (23%)
           fs: ext4 dev: /dev/sda2
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 49.5C mobo: N/A
           Fan Speeds (in rpm): cpu: 2200
Info:      Processes: 215 Uptime: 24 min Memory: 1123.7/7426.1MB
           Init: systemd runlevel: 5 Gcc sys: 7.3.0
           Client: Shell (bash 4.4.191) inxi: 2.3.56 
After installing the Nvidia driver, (415, which is recommended by linux, according to ubuntu-drivers devices -command shown below) It doesn't matter from where I install the drivers, (from driver manager, or manually via terminal) end result is the same: After boot, loading mint logo, 5-10 sec of black screen, then the still cursor on left top corner.
From there, i can access and log into tty1. Mostly only to purge Nvidia and trying something different.

Code: Select all

ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:1c.4/0000:03:00.0 ==
modalias : pci:v000010DEd00001341sv00001043sd0000167Dbc03sc02i00
vendor   : NVIDIA Corporation
model    : GM108M [GeForce 840M]
driver   : nvidia-driver-390 - third-party free
driver   : nvidia-340 - distro non-free
driver   : nvidia-driver-410 - third-party free
driver   : nvidia-driver-415 - third-party free recommended
driver   : nvidia-driver-396 - third-party free
driver   : xserver-xorg-video-nouveau - distro free builtin
Problem now is: How do I get my resolution back to native 3200x1800 or preferably to 1920x1080 after purgin Nvidia? It seems like it took something with with it so screen dpi or resolution is not identified?

Goal for now is not to install the Nvidia. First I just want to know how to get back to where I was, as it worked quite beautifully with integrated graphics.

I'm sorry that I can't report everything I did earlier to ALMOST get everything to work. But I followed these instructions. I got drivers installed, I even got Nvidia X Settings work, and it showed Nvidia clockspeeds etc. Everything was nice, got trough the first reboot, tho the second reboot was too much and ended back to purging Nvidia from tty1. Now im here. Stuck with low resolution, I tried to install the .run package I downloaded from Nvidia(mentioned in the instructions. Also it was right one for my GPU, 840M), but it failed. so i don't think it affected anything.

Things I've tried:
-With Nvidia drivers, putting 'nomodeset' in grub, as well as 'nouveau.noaccel=1'. With Nvidia drivers, i cant get to login screen even with recovery mode. But I am able to login with native resolution while using 4.15.0-20 kernel. Tho everything feels jerky.
Note, after restart the 'nomodeset' is gone from grub, is it supposed to be?

-Installing i965-va-driver - 'VAAPI driver for Intel G45 & HD Graphics family' -package from synaptic, do i have to enable it somehow?

-Multiple different drivers from Nvidia, all seem to lead to same end result. What Intel drives can i try? or how do I load the defaults, as it worked well enough out of the box. I don't understand whats different now than what was before installing (and purging Nvidia drivers)

Edit:
-UEFI / secure boot is disabled



Thank you in advance, I'll reply asap to any messages.




Edit2

Okay so. Timeshift saved my skin.
Went back few days and it uses the integrated, or so i think, as the Nvidia X Settings -applet shows error, also system info shows only integrated GPU (Intel Corporation Haswell-ULT Integrated Graphics Controller). But its smooth and works fine.

I'm wondering whats different?

Code: Select all

inxi -Fx
System:    Host: wayne-UX303LN Kernel: 4.15.0-39-generic x86_64
           bits: 64 gcc: 7.3.0
           Desktop: Cinnamon 3.8.9 (Gtk 3.22.30-1ubuntu1)
           Distro: Linux Mint 19 Tara
           
Machine:   Device: laptop System: ASUSTeK product: UX303LN v: 1.0 serial: N/A
           Mobo: ASUSTeK model: UX303LN v: 1.0 serial: N/A
           UEFI: American Megatrends v: UX303LN.204 date: 09/01/2014
           
           model: ASUSTeK UX3-44 status: Discharging
CPU:       Dual core Intel Core i7-4510U (-MT-MCP-) 
           arch: Haswell rev.1 cache: 4096 KB
           
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 10377
           clock speeds: max: 3100 MHz 1: 1902 MHz 2: 1742 MHz
           3: 1946 MHz 4: 1315 MHz
           
Graphics:  Card-1: Intel Haswell-ULT Integrated Graphics Controller
           bus-ID: 00:02.0
           Card-2: NVIDIA GM108M [GeForce 840M] bus-ID: 03:00.0
           Display Server: x11 (X.Org 1.19.6 )
           drivers: modesetting,nvidia (unloaded: fbdev,vesa,nouveau)
           Resolution: 1600x900@59.95hz
           OpenGL: renderer: GeForce 840M/PCIe/SSE2
           version: 4.6.0 NVIDIA 390.77 Direct Render: Yes
Seems that i were trying to use wrong drivers. oh well

Code: Select all

dkms status
nvidia, 390.77, 4.15.0-20-generic, x86_64: installed
nvidia, 390.77, 4.15.0-39-generic, x86_64: installed
Did I just have wrong drives, or not all what were needed? I yet fail to understand what was the exact reason.
Anyway i guess this is some sort solved.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
firepower
Level 1
Level 1
Posts: 41
Joined: Fri Sep 01, 2017 7:39 pm

Re: NVIDIA fails, how to get back to inegrated graphics for now?

Post by firepower »

check out my post
viewtopic.php?f=59&t=276201
I found only
Kernel 4.15.0-20 Work with prime (Bios set to Intel Hybrid Graphics)
Kernel 4.15.0-22 Work with prime (Bios set to Intel Hybrid Graphics)
later kernel give black screen after grub boot menu.
you can use later kernels if only using nvidia discrete set in bios.

when using hybrid graphics (optimus) use these commands to switch between intel or nvidia graphics
prime-select query|intel|nvidia
query prime mode your using.
sudo prime-select query
select prime mode intel
sudo prime-select intel
select prime mode nvidia
sudo prime-select nvidia
Last edited by firepower on Sat Dec 01, 2018 4:09 am, edited 1 time in total.
Wayne_

Re: NVIDIA fails, how to get back to inegrated graphics for now?

Post by Wayne_ »

firepower wrote: Wed Nov 21, 2018 9:52 am Kernel 4.15.0-20 Work with prime (Bios set to Intel Hybrid Graphics)
Kernel 4.15.0-22 Work with prime (Bios set to Intel Hybrid Graphics)
later kernel give black screen after grub boot menu.
you can use later kernels if only using nvidia discrete set in bios.
So I need to use those kernels in order to use Nvidia drivers?
Is there any downside switching to an older kernel?

EDIT
Very good information, thank you.
I'm now finally running Nvidia drivers(390.77, 4.15.0-22-generic) without blackscreen and I'm able to choose between Nvidia and Intel drivers.
Wayne_

Re: <SOLVED>NVIDIA fails, how to get back to inegrated graphics for now?

Post by Wayne_ »

Just came back to report that the newest kernel(4.15.0-39) works at least for me without any blackscreens or issues while nvidia drives are installed and enabled.
User avatar
JerryF
Level 16
Level 16
Posts: 6543
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: NVIDIA fails, how to get back to inegrated graphics for now?

Post by JerryF »

Wayne_ wrote: Wed Nov 21, 2018 2:37 pm ...
Is there any downside switching to an older kernel?
There's always a chance at a downside by switching to an older kernel but...

Kernels contain the drivers. Newer kernels have additional/updated drivers (which might not have a driver you need that would be in a previous kernel), so sometimes a newer kernel is no always the best choice.
Locked

Return to “Graphics Cards & Monitors”