How to install Nvidia MX150 driver?

My laptop (Acer A515 51G) has Nvidia MX 150 (GP108M) GPU and I wish to install nvidia driver as I play some steam games and with default drivers the game was not running as smooth as it used to. I am new to linux your help would be very much appreciated.

System:
Kernel: 6.5.8-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
clocksource: tsc available: hpet,acpi_pm
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=cd91162f-2636-4eed-ae3d-288a3fbc2000 rw rootflags=subvol=@
quiet quiet rd.udev.log_priority=3 vt.global_cursor_default=0
resume=UUID=f195304e-a978-4f67-85e4-377a74796bd3 loglevel=3 ibt=off
Desktop: KDE Plasma v: 5.27.9 tk: Qt v: 5.15.11 wm: kwin_x11 vt: 2
dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: Acer product: Aspire A515-51G v: V2.02
serial:
Mobo: KBL model: Charmander_KL v: V2.02 serial:
UEFI-[Legacy]: Insyde v: 2.02 date: 01/03/2019
Battery:
ID-1: BAT1 charge: 25.3 Wh (68.8%) condition: 36.8/48.9 Wh (75.2%)
volts: 15.2 min: 15.2 model: LG 004B384234314341 type: Li-ion
serial: status: discharging
CPU:
Info: model: Intel Core i5-8250U bits: 64 type: MT MCP arch: Coffee Lake
gen: core 8 level: v3 note: check built: 2017 process: Intel 14nm family: 6
model-id: 0x8E (142) stepping: 0xA (10) microcode: 0xF4
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: 6 MiB desc: 1x6 MiB
Speed (MHz): avg: 700 high: 1600 min/max: 400/1600 scaling:
driver: intel_pstate governor: powersave cores: 1: 400 2: 1600 3: 400
4: 1600 5: 400 6: 400 7: 400 8: 400 bogomips: 28800
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities:
Graphics:
Device-1: Intel UHD Graphics 620 vendor: Acer Incorporated ALI driver: i915
v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports:
active: eDP-1 empty: HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:5917
class-ID: 0300
Device-2: NVIDIA GP108M [GeForce MX150] vendor: Acer Incorporated ALI
driver: nvidia v: 535.113.01 alternate: nouveau,nvidia_drm non-free: 535.xx+
status: current (as of 2023-09) arch: Maxwell code: GMxxx
process: TSMC 28nm built: 2014-19 pcie: gen: 1 speed: 2.5 GT/s lanes: 4
link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.0 chip-ID: 10de:1d10
class-ID: 0302
Device-3: Chicony Integrated HD WebCam driver: uvcvideo type: USB rev: 2.0
speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-7:3 chip-ID: 04f2:b5f7
class-ID: 0e02
Display: x11 server: X.Org v: 21.1.9 with: Xwayland v: 23.2.2
compositor: kwin_x11 driver: X: loaded: modesetting,nvidia unloaded: nouveau
alternate: fbdev,intel,nv,vesa dri: iris gpu: i915 display-ID: :0
screens: 1
Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.21x7.99")
s-diag: 414mm (16.31")
Monitor-1: eDP-1 model: BOE Display 0x0675 built: 2015 res: 1366x768
hz: 60 dpi: 101 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5")
ratio: 16:9 modes: 1366x768
API: EGL v: 1.5 hw: drv: intel iris drv: nvidia platforms: device: 0
drv: nvidia device: 1 drv: iris device: 3 drv: swrast surfaceless:
drv: nvidia x11: drv: iris inactive: gbm,wayland,device-2
API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 23.2.1-arch1.2
glx-v: 1.4 direct-render: yes renderer: Mesa Intel UHD Graphics 620 (KBL
GT2) device-ID: 8086:5917 memory: 7.46 GiB unified: yes
API: Vulkan v: 1.3.269 layers: 8 device: 0 type: integrated-gpu name: Intel
UHD Graphics 620 (KBL GT2) driver: mesa intel v: 23.2.1-arch1.2
device-ID: 8086:5917 surfaces: xcb,xlib device: 1 type: discrete-gpu
name: NVIDIA GeForce MX150 driver: nvidia v: 535.113.01
device-ID: 10de:1d10 surfaces: xcb,xlib device: 2 type: cpu name: llvmpipe
(LLVM 16.0.6 256 bits) driver: mesa llvmpipe v: 23.2.1-arch1.2 (LLVM
16.0.6) device-ID: 10005:0000 surfaces: xcb,xlib
Audio:
Device-1: Intel Sunrise Point-LP HD Audio vendor: Acer Incorporated ALI
driver: snd_hda_intel v: kernel alternate: snd_soc_skl,snd_soc_avs
bus-ID: 00:1f.3 chip-ID: 8086:9d71 class-ID: 0403
API: ALSA v: k6.5.8-zen1-1-zen status: kernel-api tools: N/A
Server-1: PipeWire v: 0.3.83 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Acer Incorporated ALI driver: r8169 v: kernel pcie: gen: 1
speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 02:00.1 chip-ID: 10ec:8168
class-ID: 0200
IF: enp2s0f1 state: down mac:
Device-2: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi
v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0
chip-ID: 8086:24fb class-ID: 0280
IF: wlp3s0 state: up mac:
Bluetooth:
Device-1: Intel Wireless-AC 3168 Bluetooth driver: btusb v: 0.8 type: USB
rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-5:2 chip-ID: 8087:0aa7
class-ID: e001
Report: btmgmt ID: hci0 rfk-id: 4 state: down bt-service: enabled,running
rfk-block: hardware: no software: yes address: bt-v: 4.2 lmp-v: 8
status: discoverable: no pairing: no
Drives:
Local Storage: total: 1.14 TiB used: 33.93 GiB (2.9%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Kingston model: SA2000M8250G
size: 232.89 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 tech: SSD serial: fw-rev: S5Z42105 temp: 33.9 C
scheme: MBR
ID-2: /dev/sda maj-min: 8:0 vendor: Western Digital
model: WD10SPZX-21Z10T0 size: 931.51 GiB block-size: physical: 4096 B
logical: 512 B speed: 6.0 Gb/s tech: HDD rpm: 5400 serial:
fw-rev: 1A02 scheme: GPT
Partition:
ID-1: / raw-size: 224.08 GiB size: 224.08 GiB (100.00%)
used: 33.93 GiB (15.1%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
ID-2: /home raw-size: 224.08 GiB size: 224.08 GiB (100.00%)
used: 33.93 GiB (15.1%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /var/log raw-size: 224.08 GiB size: 224.08 GiB (100.00%)
used: 33.93 GiB (15.1%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
ID-4: /var/tmp raw-size: 224.08 GiB size: 224.08 GiB (100.00%)
used: 33.93 GiB (15.1%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
ID-1: swap-1 type: zram size: 7.64 GiB used: 508.8 MiB (6.5%)
priority: 100 comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 8
dev: /dev/zram0
ID-2: swap-2 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -2
dev: /dev/nvme0n1p2 maj-min: 259:2
Sensors:
System Temperatures: cpu: 50.0 C mobo: N/A
Fan Speeds (rpm): N/A
Info:
Processes: 249 Uptime: 1h 3m wakeups: 3 Memory: total: 8 GiB
available: 7.64 GiB used: 2.23 GiB (29.2%) Init: systemd v: 254
default: graphical tool: systemctl Compilers: gcc: 13.2.1 Packages:
pm: pacman pkgs: 1317 libs: 384 tools: octopi,paru,yay Shell: fish v: 3.6.1
default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.30
Garuda (2.6.17-1):
System install date: 2023-10-22
Last full system update: 2023-10-25
Is partially upgraded: No
Relevant software: snapper NetworkManager dracut nvidia-dkms
Windows dual boot:
Failed units:

Please, post your garuda-inxi, as text, like the template ask for.

3 Likes

Have you added

prime-run %command%

to your steam game’s launch options? If you haven’t then your game is running off your integrated GPU and not your dedicated GPU.

Switching between integrated and dedicated GPU is mentioned in the wiki if you read through it. → Switching between integrated and dedicated graphics | Garuda Linux wiki

Also please post your garuda-inxi as per template.

7 Likes

Yes I have edited my post and pasted it there, if I am right about inxi.

1 Like

as per your instruction I have typed “prime-run steam” and steam launcher opened up and then I have checked “prime-run glxinfo -B | grep “OpenGL vendor string”” and it prompted “OpenGL vendor string: NVIDIA Corporation” I have played the game (Euro Truck Simulator 2) and it worked surprisingly well( perfectly). So my laptop is now running on open source NVIDIA driver? Or the proprietary driver? If I install NVIDIA proprietary driver will the performance improve furthermore?

find out yourself, type “garuda-inxi” (no quotes) into the terminal and have a look.

while there please remember to copypasta that info here every time you need assistance in the forums.

thanks =-)

garuda-inxi-nazi

3 Likes

Thank you very much :slight_smile: So much info came!! I will keep in mind to paste that here everytime when I am posting.

3 Likes

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