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?
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
I have changed but nvidia-settings still not working.
Please create a new nvidia-bug-report.log
Option "PrimaryGPU" "Yes"
inside the OutputClass of /usr/share/X11/xorg.conf.d/10-nvidia.conf
Afterwards, create a new nvidia-bug-report.log
great, it’s worked and what about how to switch gpu between amd and nvidia ?
nvidia-bug-report.log (2.07 MB)
sudo prime-select intel
and reboot to switch to amd.
To save your config, run
sudo mkdir /etc/X11/xorg.conf.d sudo cp /usr/share/X11/xorg.conf.d/10-nvidia.conf /usr/share/X11/xorg.conf.d/10-amdgpu.conf /etc/X11/xorg.conf.d
it’s worked , thank you a lot.
This method works for me also. I am using an ASUS Vivobook X570ZD with R7 2700U and Gtx 1050 on Ubuntu 19.10. I am experiencing a lot of screen tearing though and there are a lot of options missing from the Nvidia X Server Settings Menu like PRIME Select, also the Advanced button in X Server Display Configuration is not working. Any ideas how to fix these issues? I am sort of new to linux so if you need any other info that might help please tell me what I need to provide!
- Tearing: the amdgpu driver has to implement prime synchronization, I guess that this is currently only implemented in the intel i915 driver, you’ll have to poke the amdgpu devs for that.
- The ‘Advanced’ button is in general not available on prime displays since it is handled by the igpu. No bug, won’t change.
- The prime select feature is an ubuntu feature, they’re running a patched version of nvidia-settings. The config changes needed to get the amd/nvidia combo running are because Ubuntu’s nvidia-prime and gpu-manager don’t expect/support this. Please file a bug at Ubuntu’s bug-tracker for the nvidia-prime package to get support for amdgpu/nvidia combos.
Thank you for enlightening my dumb mind :))
I will try to do some more research on the amdgpu prime sync!
I suspect those are the patches for the i915 driver:
Don’t look that complicated, asking the amdgpu devs on freedesktop.org nicely should be worth a try.
Somewhat similar problem:
Asus TUF laptop with Ryzen CPU (vega 10 IGPU) + Nvidia RTX 2060.
Ubuntu 18.04 linux, 220.127.116.11.
On 18.104.22.168 kernel my laptop screen and an external samsung screeen worked (internal probably on vega, external on the only HDMI available which is connected to the NVIDIA card with drivers 4.35 - same situation also reported on windows 10 which I have in dual boot).
On dec 7 linux wanted to update the grub and when I restarted only the laptop screen still works, but not the external. I’ve changed now to ubuntu-nvidia drivers 4.40 (from PPA)
xrandr reports only the laptop screen, not the external.
gnome display also sees only the laptop one.
nvidia-smi reports the Nvidia gpu working
any ideeas on how to access the external screen ?
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
eDP-1-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
1920x1080 120.00*+ 48.00
nvidia-bug-report.log.gz (1.1 MB)