Hi it is my first steps with Manjaro + amd-nvidia combination and I faced following problem:
When I plug in my two external monitors I can see in the ’Display configuration’ that they are detected, but if I click ’enable’ checkbox then nothing happens to my external monitors, but my main laptop screen becomes black, and I cannot do anything.
I make sure that I have ’non-free’ drivers installed and output says that they are already installed:
sudo mhwd -a pci nonfree 0300
> Skipping already installed config 'video-hybrid-amd-nvidia-prime' for device: 0000:01:00.0 (0300:10de:249d) Display controller nVidia Corporation GA104M [GeForce RTX 3070 Mobile / Max-Q]
> Skipping already installed config 'video-hybrid-amd-nvidia-prime' for device: 0000:05:00.0 (0300:1002:1638) Display controller ATI Technologies Inc Cezanne
Then I do some research, and it looks like maybe I have installed NVIDIA drivers, but my OS is using AMD graphic driver:
Then i read this answer Monitor detected, but black screen - #2 by @pobrn and i thought that maybe it is a good idea to install Nvidia Optimus, but in official Manjaro Wiki I can read that Nvidia Optimus is for combiantion intel + invidia where mine is amd + nvidia (this is the source of my concern that maybe I can break sth). @pobrn also suggested in his answer few changes to make it work with amd + nvidia.
What do you think should I try this solution? Or maybe now there is other suggested way to solve this problem?
You shouldn’t be concerned. I still suggest optimus-manager for (almost) all multi-GPU configurations. I believe that’s a flexible and easy to use solution.
@pobrn okay, so I have installed Nvidia Optimus then optimus-manager --switch nvidia then my screen become black then I open shell mode (ctrl + alt + f2) and poweroff my computer. After I turn on again it seems it didn’t work, and I still cannot use my external monitors + result of glxinfo|egrep "OpenGL vendor|OpenGL renderer" is the same:
I have tried to run optimus-manager --switch nvidia one more time, and now it returns such output:
sudo optimus-manager --switch nvidia
A GPU switch from integrated to nvidia is pending.
Log out and log back in to apply.
WARNING : no power management option is currently enabled (this is the default since v1.2). Switching between GPUs will work but you will likely experience poor battery life.
Follow instructions at https://github.com/Askannz/optimus-manager/wiki/A-guide--to-power-management-options to enable power management.
You are about to switch GPUs. This will forcibly close all graphical sessions and all your applications WILL CLOSE.
(you can pass the --no-confirm option to disable this warning)
Continue ? (y/N)
> y
Switching to mode : nvidia
/bin/sh: line 1: i3-msg: command not found
/bin/sh: line 1: openbox: command not found
/bin/sh: line 1: awesome-client: command not found
/bin/sh: line 1: bspc: command not found
/bin/sh: line 1: qtile-cmd: command not found
Any ideas?
EDIT-1:
I also see that now I cannot see my monitors in Display configuration and also cannot open nvidia-settings:
nvidia-settings
(nvidia-settings:4516): Gtk-WARNING **: 19:33:02.533: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version
ERROR: Unable to load info from any available system
I put # before DisplayCommand and the one starting with DisplayStopCommand it was also in the instruction which you have linked in another answer.
I am getting this output:
optimus-manager --status
A GPU switch from integrated to nvidia is pending.
Log out and log back in to apply.
Optimus Manager (Client) version 1.4
Current GPU mode : integrated
GPU mode requested for next login : nvidia
GPU at startup : integrated
Temporary config path: no
ls /etc/X11/xorg.conf.d/
00-keyboard.conf 10-optimus-manager.conf 30-touchpad.conf
I get black screen again then I open shell mode and type optimus-manager --status one more time and it returned:
ERROR: a GPU setup was initiated but Xorg post-start hook did not run.
Log at /var/log/optimus-manager/switch/switch-20210612T194807.log
If your login manager is GDM, make sure to follow those instructions:
https://github.com/Askannz/optimus-manager#important--gnome-and-gdm-users
If your display manager is neither GDM, SDDM nor LightDM, or if you don't use one, read the wiki:
https://github.com/Askannz/optimus-manager/wiki/FAQ,-common-issues,-troubleshooting
Cannot execute command because of previous errors.
Then i poweroff and run optimus-manager --status one more time. This is the result now:
optimus-manager --status
Optimus Manager (Client) version 1.4
Current GPU mode : integrated
GPU mode requested for next login : no change
GPU at startup : integrated
Temporary config path: no
@pobrn I logout and login again nothing changed still cannot open nvidia-settings and do not see my monitors in Display configuration.
optimus-manager --status still gives the same result
optimus-manager --status
Optimus Manager (Client) version 1.4
Current GPU mode : integrated
GPU mode requested for next login : no change
GPU at startup : integrated
Temporary config path: no
They had different sizes. When I was moving my mouse, those ‘noisy squares’ were moving too. Sometimes it was working correctly, and I was not seeing any ‘noisy squares’, but in the end (today) it has stopped working correctly at all, boot process always stopped at /dev/nvme0n1p5: clean. What do you think, is there something wrong with my laptop GPU or maybe these Nvidia + AMD configuration is super hard to make them work under Linux with 2 external displays?
I did sth like that: AMD + NVIDIA setup on linux manjaro / arch (github.com). I found this on some forum, but now I cannot find this anymore (I am not an author of this script. I only modified it a little for my own peruse).
Today I make it to work with optiums-manager. I build optiums-menager using AURA repository, then remove /etc/X11/xorg.conf.d/90-mhwd.conf. In the README.md of this project, it is written that optiums-manager should take care of this and remove this file by himself, to avoid any conflicts. In my case, is didn’t happen, and I had to do it manually, then everything started to work.
Only one issue left. I still have those ‘noisy-squares’. Can you advise me something @pobrn@philm ? Is it connected more with Nvidia drivers for linux, or maybe more possible that there is sth wrong with my GPU? (I am connecting with this monitors by usb-c docking station with 2 display ports 1.4, but actually the same thing happens if I connect on directly to my laptop with HDMI cable).