amd ryzen 5 mobile nvidia gtx 1050 login loop ubuntu 18.04

help me please I see solution for intel but not for amd. I’m newbie in linux please give me full instruction.

i have been check appropriate driver on now i use version 430
nvidia-bug-report.log.gz (75.5 KB)

Please run as root and attach the resulting .gz file to your post. Hovering the mouse over an existing post of yours will reveal a paperclip icon.

you can use pastebinit to upload it from console.

  • switch to VT (ctrl+alt+f1)
  • log in
  • install pastebinit (sudo apt install pastebinit)
  • run the script (sudo
  • unzip logfile (gunzip nvidia-bug-report.log.gz)
  • upload logfile (pastebinit -i nvidia-bug-report.log)
  • note down and post the url you’re given

Ok, that’s a true hybrid graphics setup using an integrated amd vega and a dicrete nvidia gpu. I suspect Ubuntu’s automatic setup for hybrid graphics doesn’t catch that yet so everything gets confused. So you will have to set it up by hand.
As a first step, please exchange GDM for lightdm to avoid known bugs with it

sudo apt install lightdm

at the end of the installation, it will ask you which you want to have as default display manager, choose lightdm. Then reboot, log in and create a new nvidia-bug-report.log

After i switch to lightdm and reboot i got black screen from graphics mode but i can use console from ctrl+alt+f1

how to fix black screen?

“The Paste you are looking for does not currently exist”
Wong pastebin url?

now i lost wifi connection

i can’t connect wifi in console how to switch back to gdm?

sudo dpkg-reconfigure gdm

Ok, your xorg.conf is broken. Please edit it and replace

BusID    "PCI:0:2:0"


BusID    "PCI:4:0:0"

then enable lightdm again
sudo dpkg-reconfigure lightdm
and reboot, create a new nvidia-bug-report.log

The exact file is /etc/X11/xorg.conf

Looks like you now have a proper working X session on the amd gpu running. Anything not working?

werterzz@werterzz:~$ nvidia-settings

ERROR: NVIDIA driver is not loaded

ERROR: Unable to load info from any available system

(nvidia-settings:4186): GLib-GObject-CRITICAL **: 08:31:37.391: g_object_unref: assertion ‘G_IS_OBJECT (object)’ failed
** Message: 08:31:37.395: PRIME: No offloading required. Abort
** Message: 08:31:37.395: PRIME: is it supported? no

how i can use nvidia gpu?

Ok, now let’s see if you can switch to nvidia. The v430 driver from ppa already seems to be installed.
Please make sure the package nvidia-prime is installed

sudo apt install nvidia-prime

Try switching to nvidia:

sudo prime-select nvidia

Remove any stray blacklist files:

sudo rm /etc/modprobe.d/blacklist-nvidia.conf /lib/modprobe.d/blacklist-nvidia.conf

Update the initrd:

sudo update-initramfs -u

and reboot. Please create a new nvidia-bug-report.log afterwards.

Ok, the kernel driver is loaded but it’s not yet picked up by the Xserver.
Please delete /etc/X11/xorg.conf
and modify /usr/share/X11/xorg.conf.d/10-amdgpu.conf
replacing only

Driver "amdgpu"


Driver "modesetting"

then reboot.