Nvidia gtx-1050 not detected on laptop

Hi there.
I switched from Kubuntu to Manjaro KDE a couple months ago and have enjoyed the experience until now. Suddenly my GTX 1050 is not detected. Not sure if this was caused by an update. Maybe when I installed an intel vulkan package, which let Yuzu run on my iGPU. But when I tried switching to nVidia using prime-plasma it didn’t work. I played around a bit and only got nVidia to show up in Settings Manager once. I thought it was a hardware issue, but…

Using a bootable PopOS image I have been able to detect the nvidia card

01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)

mhwd -l -d  INT ✘

--------------------------------------------------------------------------------
> PCI Device: /devices/pci0000:00/0000:00:02.0 (0300:8086:3e9b)
  Display controller Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
--------------------------------------------------------------------------------
  > INSTALLED:

   NAME:        video-linux
   ATTACHED:    PCI
   VERSION:     2018.05.04
   INFO:        Standard open source drivers.
   PRIORITY:    2
   FREEDRIVER:  true
   DEPENDS:     -
   CONFLICTS:   -
   CLASSIDS:    0300 0380 0302 
   VENDORIDS:   1002 8086 10de 

   NAME:        video-modesetting
   ATTACHED:    PCI
   VERSION:     2020.01.13
   INFO:        X.org modesetting video driver.
   PRIORITY:    1
   FREEDRIVER:  true
   DEPENDS:     -
   CONFLICTS:   -
   CLASSIDS:    0300 
   VENDORIDS:   * 



  > AVAILABLE:

   NAME:        video-linux
   ATTACHED:    PCI
   VERSION:     2018.05.04
   INFO:        Standard open source drivers.
   PRIORITY:    2
   FREEDRIVER:  true
   DEPENDS:     -
   CONFLICTS:   -
   CLASSIDS:    0300 0380 0302 
   VENDORIDS:   1002 8086 10de 

   NAME:        video-modesetting
   ATTACHED:    PCI
   VERSION:     2020.01.13
   INFO:        X.org modesetting video driver.
   PRIORITY:    1
   FREEDRIVER:  true
   DEPENDS:     -
   CONFLICTS:   -
   CLASSIDS:    0300 
   VENDORIDS:   * 

   NAME:        video-vesa
   ATTACHED:    PCI
   VERSION:     2017.03.12
   INFO:        X.org vesa video driver.
   PRIORITY:    0
   FREEDRIVER:  true
   DEPENDS:     -
   CONFLICTS:   -
   CLASSIDS:    0300 
   VENDORIDS:   * 


Warning: no configs for USB devices found!

sudo inxi -v7azy  :heavy_check_mark:

System:
  Kernel: 5.15.72-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=8f780df1-123c-4f36-ba64-2245427b9396 rw quiet
    udev.log_priority=3
  Console: pty pts/1 wm: kwin_x11 DM: SDDM Distro: Manjaro Linux
    base: Arch Linux
Machine:
  Type: Laptop System: Dell product: XPS 15 9570 v: N/A serial: <filter>
    Chassis: type: 10 serial: <filter>
  Mobo: Dell model: 0JVFJ2 v: A00 serial: <filter> UEFI: Dell v: 1.18.1
    date: 12/14/2020
Battery:
  ID-1: BAT0 charge: 41.5 Wh (58.2%) condition: 71.3/97.0 Wh (73.5%)
    volts: 11.3 min: 11.4 model: SMP DELL GPM0365 type: Li-ion serial: <filter>
    status: discharging
Memory:
  RAM: total: 30.98 GiB used: 1.4 GiB (4.5%)
  Array-1: capacity: 32 GiB slots: 2 EC: None max-module-size: 16 GiB
    note: est.
  Device-1: DIMM A type: DDR4 detail: synchronous size: 16 GiB
    speed: 2667 MT/s volts: curr: 1.2 min: 1.2 max: 1.2 width (bits): data: 64
    total: 64 manufacturer: 04CD000080AD part-no: F4-2666C18-16GRS serial: N/A
  Device-2: DIMM B type: DDR4 detail: synchronous size: 16 GiB
    speed: 2667 MT/s volts: curr: 1.2 min: 1.2 max: 1.2 width (bits): data: 64
    total: 64 manufacturer: 04CD000080AD part-no: F4-2666C18-16GRS serial: N/A
CPU:
  Info: model: Intel Core i5-8300H socket: BGA1440 (U3E1) note: check bits: 64
    type: MT MCP arch: Coffee Lake gen: core 8 level: v3 note: check built: 2018
    process: Intel 14nm family: 6 model-id: 0x9E (158) stepping: 0xA (10)
    microcode: 0xF0
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
    L3: 8 MiB desc: 1x8 MiB
  Speed (MHz): avg: 921 high: 970 min/max: 800/4000 base/boost: 3366/4000
    scaling: driver: intel_pstate governor: powersave volts: 1.0 V
    ext-clock: 100 MHz cores: 1: 900 2: 900 3: 970 4: 952 5: 908 6: 900 7: 900
    8: 940 bogomips: 36812
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 bmi1 bmi2 bts clflush
    clflushopt cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64
    dtherm dts epb ept ept_ad erms est f16c flexpriority flush_l1d fma fpu
    fsgsbase fxsr ht hwp hwp_act_window hwp_epp hwp_notify ibpb ibrs ida
    intel_pt invpcid invpcid_single lahf_lm lm mca mce md_clear mmx monitor
    movbe mpx msr mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm
    pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts rdrand rdseed rdtscp
    rep_good sdbg sep sgx sgx_lc smap smep ss ssbd sse sse2 sse4_1 sse4_2
    ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust tsc_deadline_timer
    vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt xsaves xtopology
    xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: IBRS
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl and seccomp
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: IBRS, IBPB: conditional, RSB filling,
    PBRSB-eIBRS: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: Dell
    driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
    ports: active: eDP-1 empty: DP-1,DP-2,DP-3 bus-ID: 00:02.0
    chip-ID: 8086:3e9b class-ID: 0300
  Device-2: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo
    bus-ID: 1-12:4 chip-ID: 0c45:671d class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.4 compositor: kwin_x11 driver: X:
    loaded: modesetting dri: iris gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 507x285mm (19.96x11.22")
    s-diag: 582mm (22.9")
  Monitor-1: eDP-1 model: Sharp 0x148d built: 2018 res: 1920x1080 hz: 60
    dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5")
    ratio: 16:9 modes: 3840x2160
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 22.1.7
    direct render: Yes
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Dell driver: snd_hda_intel
    v: kernel alternate: snd_soc_skl,snd_sof_pci_intel_cnl bus-ID: 00:1f.3
    chip-ID: 8086:a348 class-ID: 0403
  Sound API: ALSA v: k5.15.72-1-MANJARO running: yes
  Sound Server-1: JACK v: 1.9.21 running: no
  Sound Server-2: PulseAudio v: 16.1 running: yes
  Sound Server-3: PipeWire v: 0.3.58 running: yes
Network:
  Device-1: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter
    vendor: Rivet Networks Killer Wireless-n/a/ac 1535 driver: ath10k_pci
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 3b:00.0
    chip-ID: 168c:003e class-ID: 0280 temp: 39.0 C
  IF: wlp59s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Qualcomm Atheros type: USB driver: btusb v: 0.8 bus-ID: 1-4:2
    chip-ID: 0cf3:e301 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 1.82 TiB used: 1.15 TiB (63.2%)
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Crucial model: CT2000P2SSD8
    size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: P2CR031 temp: 33.9 C scheme: GPT
  SMART: yes health: PASSED on: 1y 100d 20h cycles: 297 read-units: 8,969,000
    [4.59 TB] written-units: 11,619,988 [5.94 TB]
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 97.66 GiB size: 95.56 GiB (97.86%) used: 23.84 GiB (24.9%)
    fs: ext4 block-size: 4096 B dev: /dev/nvme0n1p2 maj-min: 259:2 label: N/A
    uuid: 8f780df1-123c-4f36-ba64-2245427b9396
  ID-2: /boot/efi raw-size: 200 MiB size: 196.9 MiB (98.45%) used: 298 KiB
    (0.1%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p1 maj-min: 259:1
    label: N/A uuid: 5E7B-D3D8
  ID-3: /home raw-size: 1.53 TiB size: 1.51 TiB (98.36%) used: 1.13 TiB
    (74.7%) fs: ext4 block-size: 4096 B dev: /dev/nvme0n1p3 maj-min: 259:3
    label: home uuid: ec46ced5-45b4-4d90-bedb-d5aa1de43f23
Swap:
  Alert: No swap data was found.
Unmounted:
  ID-1: /dev/nvme0n1p4 maj-min: 259:4 size: 195.31 GiB fs: N/A label: N/A
    uuid: N/A
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 16 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-4:2 info: Qualcomm Atheros type: Bluetooth driver: btusb
    interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 0cf3:e301
    class-ID: e001
  Device-2: 1-7:3 info: Shenzhen Goodix Fingerprint Reader
    type: Abstract (modem),CDC-Data driver: N/A interfaces: 2 rev: 2.0
    speed: 12 Mb/s power: 100mA chip-ID: 27c6:5395 class-ID: 0a00
    serial: <filter>
  Device-3: 1-12:4 info: Microdia Integrated_Webcam_HD type: Video
    driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 0c45:671d class-ID: 0e02
  Hub-2: 2-0:1 info: Super-speed hub ports: 10 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 46.0 C pch: 48.0 C mobo: N/A
  Fan Speeds (RPM): cpu: 2510 fan-2: 2483
Info:
  Processes: 241 Uptime: 1m wakeups: 231 Init: systemd v: 251
  default: graphical tool: systemctl Compilers: gcc: 12.2.0 clang: 14.0.6
  Packages: 1500 pm: dpkg pkgs: 0 pm: pacman pkgs: 1489 libs: 385 tools: pamac
  pm: flatpak pkgs: 11 Shell: Zsh (sudo) v: 5.9 default: Bash v: 5.1.16
  running-in: konsole inxi: 3.3.22

post output from:
mhwd -l && mhwd -li
lspci | grep nvidia
pacman -Qs 'optimus|bbswitch|bumblebee'

mhwd -l && mhwd -li

> 0000:00:02.0 (0300:8086:3e9b) Display controller Intel Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI
video-hybrid-intel-nvidia-prime            2021.11.04               false            PCI
     video-modesetting            2020.01.13                true            PCI

lspci | grep nvidia

.

pacman -Qs 'optimus|bbswitch|bumblebee

local/optimus-manager 1.4+r12-2
    Management utility to handle GPU switching for Optimus laptops (Git version)

Again, I do get the following line when running ‘lspci’ from a live Pop OS drive

01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)

Thanks for the rapid reply.

you have installed optimus, but optimus doesnt disable nvidia like this…
post output from:
ls /etc/modprobe.d
find /etc/X11/ -name "*.conf"

ls /etc/modprobe.d

mhwd-gpu.conf

find /etc/X11/ -name “*.conf”

/etc/X11/mhwd.d/nvidia.conf
/etc/X11/xorg.conf.d/10-optimus-manager.conf
/etc/X11/xorg.conf.d/00-keyboard.conf
/etc/X11/xorg.conf.d/30-touchpad.conf

Not sure when/if I manually installed that particular optimus module/package, but I did have working prime switching from the plasma systray applet at one point.

so uninstall optimus:
pamac remove optimus-manager
reboot and see if nvidia is being detected

Okay. I need 10 minutes or so first…

lspci | grep NVIDIA

01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)

Funny how many times I’ve followed instructions to grep nvidia but it shows up as NVIDIA on this machine. I have many nvidia in Manjaro Settings Manager now, with many options. Can you recommend installation instructions that will allow me to switch between intel/nvidia/hybrid modes, preferably with the plasma widget?

Thanks so much for your prompt assistance.

Never would have guessed it was that optimus-manager package that did it. Don’t think it was that alone, because I installed it when I was trying to get mode switching to work, and it did work until either a) I tried adding intel Vulkan support or b) from some update or unrelated package installation.

I would like to have Vulkan support for Intel. Not sure best way to do it, or if it will just work now. Don’t want to install anything until I hear back from you though.

i would recommend optimus, the only strange thing is that it completely disabled your nvidia… but im no longer using optimus, so maybe it can do it now…
so open this file:
kate /etc/sddm.conf
and put a # before the line starting with DisplayCommand and the one starting with DisplayStopCommand, so that they look like this:
#DisplayCommand
#DisplayStopCommand
you may not have these display options in the conf, so proceed with install:
pamac install optimus-manager optimus-manager-plasma
then reboot, and try switching between gpus via the optimus tray and see if it works as it should

The two commands were already commented out. I installed optimus-manager and optimus-manager-plasma from the command line and rebooted. nvidia vanished from my system again.

I removed optimus again and rebooted. nVidia returned.

So all I need is the video-hybrid-intel-nvidia-prime package? I don’t need any of the numbered drivers?

mhwd -l && mhwd -li

--------------------------------------------------------------------------------
                  NAME                     VERSION         FREEDRIVER       TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2021.11.04       false            PCI
video-hybrid-intel-nvidia-470xx-prime      2021.11.04       false            PCI
video-hybrid-intel-nvidia-390xx-bumblebee  2021.11.26       false            PCI
          video-nvidia                     2021.11.04       false            PCI
    video-nvidia-470xx                     2021.11.04       false            PCI
    video-nvidia-390xx                     2021.11.26       false            PCI
           video-linux                     2018.05.04       true             PCI


> 0000:00:02.0 (0300:8086:3e9b) Display controller Intel Corporation:
--------------------------------------------------------------------------------
                  NAME                     VERSION        FREEDRIVER        TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2021.11.04       false            PCI
video-hybrid-intel-nvidia-470xx-prime      2021.11.04       false            PCI
video-hybrid-intel-nvidia-390xx-bumblebee  2021.11.26       false            PCI
           video-linux                     2018.05.04       true             PCI
     video-modesetting                     2020.01.13       true             PCI
            video-vesa                     2017.03.12       true             PCI


> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux                     2018.05.04       true            PCI
video-hybrid-intel-nvidia-prime            2021.11.04       false           PCI
     video-modesetting                     2020.01.13       true            PCI

Are there any additional steps that might clear broken optimus-manager configs or find conflicting packages? I need to disable nvidia most of the time.

did you tried switching the modes between hybrid/intel/nvidia, before you uninstalled optimus?

you have alredy installed the proper nvidia drivers, just to be sure post output from:
inxi -G

dont you have some plasma widget installed that is for switching gpus? check under widgets/show installed

inxi -G

Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] driver: i915 v: kernel
  Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] driver: nvidia
    v: 515.76
  Device-3: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo
  Display: x11 server: X.Org v: 21.1.4 driver: X:
    loaded: modesetting,nvidia unloaded: nouveau dri: iris gpu: i915
    resolution: 1920x1080~60Hz
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa
    22.1.7

I used optimus-manager-plasma to switch before. I never used in-game or lutris options to configure games individually or anything like that.

So if I am running the hybrid-intel-nvidia-prime driver does that mean my nvidia graphics are turned off unless an application specifically uses it? In Yuzu I can choose OpenGL, Vulkan nvidia, or Vulkan intel. It looks like I might not have an nvidia OpenGL option though.

Also, when I first installed Yuzu and Dolphin there was no option for Vulkan on intel. I installed something like intel-video to gain vulkan support. I still have that Intel option now. That might have been when nvidia/optimus was broken.

Yeah so picking OpenGL defaults to intel unless I primerun Yuzu. For Vulkan I can choose. I guess this is the expected behavior now, and Optimus is a relic of the past that got stuck in my head.

As long nvidia is powered off/down when not using it I guess I don’t need optimus. I can just set certain games to nVidia in Lutris and use Intel for the ones that can run on it. Then no more logging out to play a certain game.

Ideally I would like to fix my Optimus issue, but if it doesn’t kill my battery, I’m happy with this newer method, which wasn’t an option in the past.

so everyhting is now working as it should?
and no nvidia is not being powered down, its still active… when it was not detected, it was powered down …

If its not powered down I can’t use my system like this. I need to maintain my 6 to 8 hour battery life.

do you have installed envycontrol:
pacman -Qs envycontrol

No. Never heard of it. Looking it up now.