You are not logged in.

#1 2019-04-10 22:36:25

xangaii
Member
Registered: 2019-04-10
Posts: 3

Intel+ Geforce 940MX (Optimus) [SOLVED]

Hello everyone. Always looking at Arch forums,but first post here. Correct me if i posted in the wrong place.

I have a Laptop using both Intel + nVidia GPU (Geforce 940MX). Followed Arch Wiki steps to install it ,but i had no luck. Here's the link i used https://wiki.archlinux.org/index.php/NVIDIA

I did the installation both using nVidia Drivers(Website Download Driver .run file) and through pacman(Recommended). Used the nvidia-xconfig file and/or changed my xorg with the BusID,but no luck.

A black screen comes after i start the 'startx' ,which makes me restore de xorg file to default(using intel). Something that is making crazy, is that i'm installing the Driver using my physical laptop and glxinfo|grep -i "vendor" is
giving the information about vmware.

Here are some information i gathered, if you guys need any further infos , i'll post them here.

lsmod |grep -i "nvidia"
nvidia_drm             53248  2
drm_kms_helper        208896  2 nvidia_drm,i915
drm                   499712  7 drm_kms_helper,nvidia_drm,i915
nvidia_uvm            937984  0
nvidia_modeset       1089536  1 nvidia_drm
nvidia              17637376  11 nvidia_uvm,nvidia_modeset
ipmi_msghandler        65536  2 ipmi_devintf,nvidia
~]$ lspci |egrep -i "3d|vga"
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)
01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 940MX] (rev a2)
glxinfo|grep -i "vendor"
server glx vendor string: SGI
client glx vendor string: Mesa Project and SGI
    Vendor: VMware, Inc. (0xffffffff)
OpenGL vendor string: VMware, Inc.
cat /etc/modprobe.d/nvidia-drm.conf 
options nvidia_drm modeset=1
 cat /etc/mkinitcpio.conf 
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES=(piix ide_disk reiserfs)
MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)

I'm using the standard xorg.conf file that comes after a fresh install. I'll post a log of /var/log/Xorg.0.log when i change xorg again so you guys can see any detail i'm not aware of.

Thanks btw.

Last edited by xangaii (2019-04-12 14:19:44)

Offline

#2 2019-04-10 22:46:54

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Intel+ Geforce 940MX (Optimus) [SOLVED]

xangaii wrote:

I'm using the standard xorg.conf file that comes after a fresh install.


There is no "standard" xorg.conf with an arch install. Arch doesn't ship one.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2019-04-11 00:27:48

xangaii
Member
Registered: 2019-04-10
Posts: 3

Re: Intel+ Geforce 940MX (Optimus) [SOLVED]

jasonwryan wrote:
xangaii wrote:

I'm using the standard xorg.conf file that comes after a fresh install.


There is no "standard" xorg.conf with an arch install. Arch doesn't ship one.

Well then,maybe i have generated him somehow using Xorg and i didn't noticed.

I made it work by inserting intel modules on blacklist using the following url : https://wiki.archlinux.org/index.php/NV … grated_GPU

Thanks !

Offline

#4 2019-04-11 07:45:13

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,771

Re: Intel+ Geforce 940MX (Optimus) [SOLVED]

uhmm are you sure that worked? What's your glxinfo output now? Your nvidia hardware is not connected to a display and simply blacklisting the intel modules should at best give you a software accelerated screen. You should read https://wiki.archlinux.org/index.php/NV … ing_nvidia for the actual proper way to set up PRIME over nvidia.

Offline

#5 2019-04-11 20:49:23

xangaii
Member
Registered: 2019-04-10
Posts: 3

Re: Intel+ Geforce 940MX (Optimus) [SOLVED]

V1del wrote:

uhmm are you sure that worked? What's your glxinfo output now? Your nvidia hardware is not connected to a display and simply blacklisting the intel modules should at best give you a software accelerated screen. You should read https://wiki.archlinux.org/index.php/NV … ing_nvidia for the actual proper way to set up PRIME over nvidia.


Hi there V1del. It seems like it worked, at least my nvidia-settings is telling me so,no screen tearing and glxinfo shows the following output:

glxinfo|grep -i "vendor"
server glx vendor string: NVIDIA Corporation
client glx vendor string: NVIDIA Corporation
OpenGL vendor string: NVIDIA Corporation

I'm using lightdm and did exactly what it's being said there. I just set the script at /usr/local/bin/script.sh and pointed him out in lightdm.conf.

Its working now, i guess.

Last edited by xangaii (2019-04-11 20:50:28)

Offline

#6 2019-04-12 07:33:34

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,771

Re: Intel+ Geforce 940MX (Optimus) [SOLVED]

Well alright, I didn't think it would if you were actually blacklisting the intel modules. However if it does and you don't notice anything off, that's fine by me.

If you are generally happy with the solution, please mark your thread as [SOLVED] by editing the title in your first post: https://wiki.archlinux.org/index.php/Co … ow_to_post

Last edited by V1del (2019-04-12 08:07:52)

Offline

Board footer

Powered by FluxBB