Restore nvidia settings

Hi all,
I am a medium experienced linux user and recently i decide to tryout Manjaro KDE. My older experience was with Debian based distros.

When i installed Manjaro KDE on my new laptop (an HP 15 with intel core i5 7th gen CPU nvidia MX110 and intel GPU 8 GB RAM) and tried to install nvidia drivers i probably messed up my system.

By default system had installed bumblebee drivers but nvidia-settings was not running with message "ERROR: NVIDIA driver is not loaded ERROR: Unable to load info from any available" system message appeared.

So i tried to correct this error as follows:

First i try solution of this link [HowTo] Set up PRIME (output offload) with NVIDIA proprietary driver but laptop hangs on startup.
After that i try to install the nvidia driver by downloading the driver from nvidia website and running it on a tty. And this solution was not successful. So i uninstalled it.
At the end i try the solution of this link https://wiki.manjaro.org/index.php?title=Configure_NVIDIA_(non-free)_settings_and_load_them_on_Startup#Introduction but when i tried to install non free drivers using "sudo mhwd -a pci nonfree 0302" i get a pacman error and during the procedure says that all needed files are installed.

Meanwhile mhwd says that there is no display driver installed on system!!.

The following photos showing the installation errors.

Is there any solution, after all my actions, or it is time for another format????

this is output from inxi -Fx:

System:    Host: panagiotis-pc Kernel: 4.19.30-1-MANJARO x86_64 bits: 64 compiler: gcc v: 8.2.1 
           Desktop: KDE Plasma 5.15.3 Distro: Manjaro Linux 
Machine:   Type: Laptop System: HP product: HP Laptop 15-da0xxx v: Type1ProductConfigId serial: <root required> 
           Mobo: HP model: 84A7 v: 80.28 serial: <root required> UEFI: Insyde v: F.04 date: 08/02/2018 
Battery:   ID-1: BAT1 charge: 40.6 Wh condition: 40.6/41.9 Wh (97%) model: Hewlett-Packard PABAS0241231 
           status: Full 
           Device-1: hidpp_battery_0 model: Logitech Wireless Mouse MX Anywhere 2 charge: 55% (should be ignored) 
           status: Discharging 
CPU:       Topology: Dual Core model: Intel Core i5-7200U bits: 64 type: MT MCP arch: Kaby Lake rev: 9 
           L2 cache: 3072 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 21704 
           Speed: 2509 MHz min/max: 400/3100 MHz Core speeds (MHz): 1: 2509 2: 2674 3: 2735 4: 2442 
Graphics:  Device-1: Intel HD Graphics 620 vendor: Hewlett-Packard driver: i915 v: kernel bus ID: 00:02.0 
           Device-2: NVIDIA GM108M [GeForce MX110] driver: N/A bus ID: 01:00.0 
           Display: x11 server: X.Org 1.20.4 driver: modesetting resolution: 1920x1080~60Hz 
           OpenGL: renderer: llvmpipe (LLVM 7.0 256 bits) v: 3.3 Mesa 18.3.4 direct render: Yes 
Audio:     Device-1: Intel Sunrise Point-LP HD Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel 
           bus ID: 00:1f.3 
           Sound Server: ALSA v: k4.19.30-1-MANJARO 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Hewlett-Packard driver: r8168 
           v: 8.045.08-NAPI port: 4000 bus ID: 02:00.0 
           IF: eno1 state: down mac: 84:a9:3e:5d:94:94 
           Device-2: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter vendor: Hewlett-Packard 
           driver: rtl8821ce v: N/A port: 3000 bus ID: 03:00.0 
           IF: wlo1 state: up mac: 80:2b:f9:44:35:53 
Drives:    Local Storage: total: 2.05 TiB used: 64.04 GiB (3.0%) 
           ID-1: /dev/nvme0n1 vendor: Toshiba model: KBG30ZMV256G size: 238.47 GiB 
           ID-2: /dev/sda vendor: Seagate model: ST2000LM015-2E8174 size: 1.82 TiB 
RAID:      Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci v: 3.0 bus ID: 00:17.0 
Partition: ID-1: / size: 220.09 GiB used: 36.08 GiB (16.4%) fs: ext4 dev: /dev/nvme0n1p2 
           ID-2: /home size: 1.79 TiB used: 27.96 GiB (1.5%) fs: ext4 dev: /dev/sda1 
           ID-3: swap-1 size: 11.91 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/nvme0n1p1 
Sensors:   System Temperatures: cpu: 34.0 C mobo: 29.8 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 233 Uptime: 1h 36m Memory: 7.71 GiB used: 2.93 GiB (38.0%) Init: systemd Compilers: 
           gcc: 8.2.1 clang: 7.0.1 Shell: bash v: 5.0.0 inxi: 3.0.32 

And this is output from dkms status

nvidia, 418.56, 4.19.30-1-MANJARO, x86_64: installed
rtl8821ce, 1.0.1.r26.gab6154e, 4.19.30-1-MANJARO, x86_64: installed!

mhwd mhwdinstall

[Edit 2]

Well i finally went to "format" option. On the fresh installed system with only the driver for wifi card (network-r8168), i tried to install the nvidia driver as prime following at first this link https://medium.com/@vfbsilva/howto-set-up-prime-with-nvidia-proprietary-driver-c647e3597447 and secondary with this link [HowTo] Set up PRIME (output offload) with NVIDIA proprietary driver. There is a difference on step 5. Both of attempts failed. I don't know the reasons but is probably because my laptop BIOS don't have an option to select which chip set i want as primary. My old laptop (Sony Vaio SZ-650 N) had also a hybrid video card (nvidia and intel) but i had an option to select which one want to use from a switch on panel. Probably the best way to use Manjaro on my new laptop is with bumblebee display driver at list for now.
Thank you for your concern and your help.

1 Like

Edit your inxi output, like this , use </> or three backticks on start and end. Please :slight_smile:

System: Host: panagiotis-pc Kernel: 4.19.30-1-MANJARO x86_64 bits: 64 compiler: gcc v: 8.2.1
Desktop: KDE Plasma 5.15.3 Distro: Manjaro Linux
Machine: Type: Laptop System: HP product: HP Laptop 15-da0xxx v: Type1ProductConfigId serial:
Mobo: HP model: 84A7 v: 80.28 serial: UEFI: Insyde v: F.04 date: 08/02/2018
Battery: ID-1: BAT1 charge: 40.6 Wh condition: 40.6/41.9 Wh (97%) model: Hewlett-Packard PABAS0241231
status: Full
Device-1: hidpp_battery_0 model: Logitech Wireless Mouse MX Anywhere 2 charge: 55% (should be ignored)
status: Discharging
CPU: Topology: Dual Core model: Intel Core i5-7200U bits: 64 type: MT MCP arch: Kaby Lake rev: 9
L2 cache: 3072 KiB
flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 21704
Speed: 2509 MHz min/max: 400/3100 MHz Core speeds (MHz): 1: 2509 2: 2674 3: 2735 4: 2442
Graphics: Device-1: Intel HD Graphics 620 vendor: Hewlett-Packard driver: i915 v: kernel bus ID: 00:02.0
Device-2: NVIDIA GM108M [GeForce MX110] driver: N/A bus ID: 01:00.0
Display: x11 server: [X.Org](http://X.Org) 1.20.4 driver: modesetting resolution: 1920x1080~60Hz
OpenGL: renderer: llvmpipe (LLVM 7.0 256 bits) v: 3.3 Mesa 18.3.4 direct render: Yes
Audio: Device-1: Intel Sunrise Point-LP HD Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel
bus ID: 00:1f.3
Sound Server: ALSA v: k4.19.30-1-MANJARO
Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Hewlett-Packard driver: r8168
v: 8.045.08-NAPI port: 4000 bus ID: 02:00.0
IF: eno1 state: down mac: 84:a9:3e:5d:94:94
Device-2: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter vendor: Hewlett-Packard
driver: rtl8821ce v: N/A port: 3000 bus ID: 03:00.0
IF: wlo1 state: up mac: 80:2b:f9:44:35:53
Drives: Local Storage: total: 2.05 TiB used: 64.04 GiB (3.0%)
ID-1: /dev/nvme0n1 vendor: Toshiba model: KBG30ZMV256G size: 238.47 GiB
ID-2: /dev/sda vendor: Seagate model: ST2000LM015-2E8174 size: 1.82 TiB
RAID: Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci v: 3.0 bus ID: 00:17.0
Partition: ID-1: / size: 220.09 GiB used: 36.08 GiB (16.4%) fs: ext4 dev: /dev/nvme0n1p2
ID-2: /home size: 1.79 TiB used: 27.96 GiB (1.5%) fs: ext4 dev: /dev/sda1
ID-3: swap-1 size: 11.91 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/nvme0n1p1
Sensors: System Temperatures: cpu: 34.0 C mobo: 29.8 C
Fan Speeds (RPM): N/A
Info: Processes: 233 Uptime: 1h 36m Memory: 7.71 GiB used: 2.93 GiB (38.0%) Init: systemd Compilers:
gcc: 8.2.1 clang: 7.0.1 Shell: bash v: 5.0.0 inxi: 3.0.32

And this is output from dkms status
nvidia, 418.56, 4.19.30-1-MANJARO, x86_64: installed
rtl8821ce, 1.0.1.r26.gab6154e, 4.19.30-1-MANJARO, x86_64: installed

You try??
grafik

“sudo mhwd -a pci nonfree 0302” do you mean 0300?

1 Like

Another thing i noticed too, you are using the Oxygen theme.

not sure if that issue was addressed or not.

Yes i try Auto Install Proprietary Driver but i got the same pacman error.
[Edit 1]
I tried “sudo mhwd -a pci nonfree 0302” do you mean 0302" because from
lspci i got this output:

> PCI devices:
--------------------------------------------------------------------------------
                          TYPE            BUS   CLASS  VENDOR  DEVICE   CONFIGS
--------------------------------------------------------------------------------
            Network controller   0000:03:00.0    0200    10ec    c821         0
       Mass storage controller   0000:00:17.0    0104    8086    282a         0
             Memory controller   0000:00:1f.2    0580    8086    9d21         0
                        Bridge   0000:00:1c.0    0604    8086    9d10         0
     Generic system peripheral   0000:00:08.0    0880    8086    1911         0
                        Bridge   0000:00:1f.0    0601    8086    9d4e         0
            Network controller   0000:02:00.0    0200    10ec    8168         1
  Signal processing controller   0000:00:04.0    1180    8086    1903         0
                        Bridge   0000:00:1c.5    0604    8086    9d15         0
      Communication controller   0000:00:16.0    0780    8086    9d3a         0
            Display controller   0000:01:00.0    0302    10de    174e         5
         Multimedia controller   0000:00:1f.3    0403    8086    9d71         0
                        Bridge   0000:00:00.0    0600    8086    5904         0
                        Bridge   0000:00:1d.0    0604    8086    9d18         0
  Signal processing controller   0000:00:14.2    1180    8086    9d31         0
                        Bridge   0000:00:1c.4    0604    8086    9d14         0
       Mass storage controller   0000:04:00.0    0108    1179    0113         0
            Display controller   0000:00:02.0    0300    8086    5916         4
         Serial bus controller   0000:00:14.0    0c03    8086    9d2f         0
         Serial bus controller   0000:00:1f.4    0c05    8086    9d23         0

Yes I am currently using Oxygen theme, but i'm not sure this post relates to my issue.

I have tried to install nvidia drivers in order for my OS to use the nvidia card, but when I manage to install the drivers from the first solution, the laptop hangs on startup (HP logo).

Maybe you could get help from this post

1 Like

you probably missed a step, it happens. or didnt remove all the existing xorg configurations an ended up with a conflict.

bumblebee requires that nvidia-settings be opened in a certain manor.
optirun -b none nvidia-settings -c :8

before doing anything else i think you should look at and compare different optimus options. i would recommend either PRIME following the tutorial you mentioned as i've used it many times with success. or optimus-switch if you want all the benefits of PRIME and also have the option to use an intel-only mode and extend battery life. both work and work very well.

read, compare, see what fits.

i think this has to do with the drivers you installed from outside of manjaro which also happen to be a newer version than the ones currently available in stable.

if this is a brand new install, all of this might just be easier to start from a clean slate, and if you want to use anything other than bumblebee, when you re-install manjaro select the free drivers as they are easier to fully remove before trying other configurations.

Nvidia, I think, is 0300 :slight_smile: but I can also be wrong about it.

Zusammenfassung

he had it right, 0300 is intel and 0302 is the nvidia.
nvidia is on 0000:01:00.0 and intel is on 0000:00:02.0

but i think to use the mhwd -a it should be
mhwd -a pci nonfree 0300

because the intel gpu is still the primary gpu when using bumblebee and the nvidia is only used as needed with optirun

1 Like

Ahh, thanks, I assigned 0300 for nvidia because I only knew this

one. :slight_smile:

1 Like

Well I did followed every step twice to be frank and it always ended up laptop staying hang on the startup, I don't think I missed a step in the process. I'm not sure if skipping the steps to install LightDM and GDM make the whole process fail thought. What do you think?

I indeed noticed that when pacman fails the installation of the drivers, the log message says that a lot of the libraries that it wanted to install were already installed, see below

Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/nvidia/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
Processing classid: 0302
:: Synchronizing package databases...
downloading core.db...
 extra is up to date
downloading community.db...
 multilib is up to date
 antergos is up to date
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: eglexternalplatform will be installed before its nvidia-utils dependency

Packages (5) egl-wayland-1.1.2-1  eglexternalplatform-1.0+3+g7c8f8e2-1  lib32-nvidia-utils-1:418.43-2  linux419-nvidia-1:418.43-7  nvidia-utils-1:418.43-2

Total Installed Size:  307.10 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
error: failed to commit transaction (conflicting files)
egl-wayland: /usr/lib/libnvidia-egl-wayland.so.1 exists in filesystem
egl-wayland: /usr/lib/libnvidia-egl-wayland.so.1.1.2 exists in filesystem
egl-wayland: /usr/share/egl/egl_external_platform.d/10_nvidia_wayland.json exists in filesystem
nvidia-utils: /usr/bin/nvidia-bug-report.sh exists in filesystem
nvidia-utils: /usr/bin/nvidia-cuda-mps-control exists in filesystem
nvidia-utils: /usr/bin/nvidia-cuda-mps-server exists in filesystem
nvidia-utils: /usr/bin/nvidia-debugdump exists in filesystem
nvidia-utils: /usr/bin/nvidia-modprobe exists in filesystem
nvidia-utils: /usr/bin/nvidia-persistenced exists in filesystem
nvidia-utils: /usr/bin/nvidia-settings exists in filesystem
nvidia-utils: /usr/bin/nvidia-smi exists in filesystem
nvidia-utils: /usr/bin/nvidia-xconfig exists in filesystem
nvidia-utils: /usr/lib/libEGL_nvidia.so.0 exists in filesystem
nvidia-utils: /usr/lib/libGLESv1_CM_nvidia.so.1 exists in filesystem
nvidia-utils: /usr/lib/libGLESv2_nvidia.so.2 exists in filesystem
nvidia-utils: /usr/lib/libGLX_nvidia.so.0 exists in filesystem
nvidia-utils: /usr/lib/libcuda.so exists in filesystem
nvidia-utils: /usr/lib/libcuda.so.1 exists in filesystem
nvidia-utils: /usr/lib/libnvcuvid.so exists in filesystem
nvidia-utils: /usr/lib/libnvcuvid.so.1 exists in filesystem
nvidia-utils: /usr/lib/libnvidia-cfg.so exists in filesystem
nvidia-utils: /usr/lib/libnvidia-cfg.so.1 exists in filesystem
nvidia-utils: /usr/lib/libnvidia-encode.so exists in filesystem
nvidia-utils: /usr/lib/libnvidia-encode.so.1 exists in filesystem
nvidia-utils: /usr/lib/libnvidia-fbc.so exists in filesystem
nvidia-utils: /usr/lib/libnvidia-fbc.so.1 exists in filesystem
nvidia-utils: /usr/lib/libnvidia-ifr.so exists in filesystem
nvidia-utils: /usr/lib/libnvidia-ifr.so.1 exists in filesystem
nvidia-utils: /usr/lib/libnvidia-ml.so exists in filesystem
nvidia-utils: /usr/lib/libnvidia-ml.so.1 exists in filesystem
nvidia-utils: /usr/lib/libnvidia-opticalflow.so exists in filesystem
nvidia-utils: /usr/lib/libnvidia-opticalflow.so.1 exists in filesystem
nvidia-utils: /usr/lib/libnvidia-ptxjitcompiler.so exists in filesystem
nvidia-utils: /usr/lib/libnvidia-ptxjitcompiler.so.1 exists in filesystem
nvidia-utils: /usr/lib/libnvoptix.so.1 exists in filesystem
nvidia-utils: /usr/lib/vdpau/libvdpau_nvidia.so.1 exists in filesystem
nvidia-utils: /usr/lib/xorg/modules/drivers/nvidia_drv.so exists in filesystem
nvidia-utils: /usr/share/applications/nvidia-settings.desktop exists in filesystem
nvid
ia-utils: /usr/share/glvnd/egl_vendor.d/10_nvidia.json exists in filesystem
nvidia-utils: /usr/share/man/man1/nvidia-cuda-mps-control.1.gz exists in filesystem
nvidia-utils: /usr/share/man/man1/nvidia-modprobe.1.gz exists in filesystem
nvidia-utils: /usr/share/man/man1/nvidia-persistenced.1.gz exists in filesystem
nvidia-utils: /usr/share/man/man1/nvidia-settings.1.gz exists in filesystem
nvidia-utils: /usr/share/man/man1/nvidia-smi.1.gz exists in filesystem
nvidia-utils: /usr/share/man/man1/nvidia-xconfig.1.gz exists in filesystem
lib32-nvidia-utils: /usr/lib32/libEGL_nvidia.so.0 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libGLESv1_CM_nvidia.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libGLESv2_nvidia.so.2 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libGLX_nvidia.so.0 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libcuda.so exists in filesystem
lib32-nvidia-utils: /usr/lib32/libcuda.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvcuvid.so exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvcuvid.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-encode.so exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-encode.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-fbc.so exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-fbc.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-ifr.so exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-ifr.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-ml.so exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-ml.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-opticalflow.so exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-opticalflow.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-ptxjitcompiler.so exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-ptxjitcompiler.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/vdpau/libvdpau_nvidia.so.1 exists in filesystem

I tried uninstalling everything (graphics driver based) but the same error showed again.
I debated actually deleting those so called remnants but I withdrew that thought.

What's your opinion on those?

this is a common point of confusion for some, at step 5 you only follow the directions for the DM your using. so for you using kde/sddm you would only follow the SDDM instructions.

it's up to you if you want to just reinstall manjaro or try to fix whats been done already but it might be quicker/easier to start from a clean install and if you need assistance i can help get you up and running.

if you want to salvage your current install you need to start by removing the nvidia drivers you installed from outside of manjaro so they dont interfere with ones needed to be installed via MHWD

where did this come from? did you manually add this repo? it should not be there and will only cause conflicts. is there anything important you need to save thats stopping you from re-installing because now you also have antergos repo which likely pulled in packages that are not in sync with the current manjaro packages.

2 Likes

@dglt
That was a great spot you found - I will push it so far to say you found IT.

@pharis
Mixing in a third-party repo will always be a risk and should not be taken lightly.
To my knowledge nvidia modules in Manjaro repos are versioned against specific kernels - and possibly using the nvidia driver from Antergos will cause problems in your system.

So - uninstall this antergos package - remove the antergos repo from pacman.conf and do a full update of your system.

2 Likes

This. Don't use binary drivers from other distros on Manjaro, as they're specific to the kernel which they're built for.

in addition to my last post, i also noticed a couple other things.

lib32-nvidia-utils and nvidia-utilsconflict with each other, you only need nvidia-utils package.

also, it looks like on top of the fact that antergos should not be there, it appears your missing
the manjaro core and community repos.

you should not try saving this if it's a new install, who knows what packages other than the nvidia drivers got pulled in from the antergos repo, and if it's a newer version you'll need to downgrade all of them to sync properly with manjaro's packages/versions.

do yourself a favor and just re-install. you can always just backup the home folder and restore it later after re-installing manjaro so it saves any custom configurations and data you might not want to lose.

I add antergos mirrorlist after all the actions i done on nvidia drivers.

ok but the problems it can introduce are fairly concerning at best.

most importantly
is there any reason at all for you to avoid re-installing manjaro?
at this point it is your "best" option, especially if this is a new install.

if you want something other than bumblebee, i suggest you re-install with free drivers, and then setup prime or optimus-switch using provided instructions. if you need help with anything i can help walk you through it

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by