You are not logged in.

#1 2018-04-26 12:21:20

sidambhire
Member
Registered: 2013-10-15
Posts: 8

nvidia optimus installation issue

Hi all,
I have ASUS X541U laptop which has both nvidia and intel GPUs. I wanted to install nvidia drivers. I followed last option on this wiki article: https://wiki.archlinux.org/index.php/NVIDIA_Optimus by installing nvidia-xrun-git package from AUR.

I faced this problem: https://wiki.archlinux.org/index.php/NV … X_shutdown
I followed instructions on that page. Last line:

# modprobe nvidia

is showing no nvidia module present. Can you please help.
thanks,
Sid

PS: I have linux-lts kernel installed. I booted into it when I got blank screen.

PPS: I forgot to mention I've gnome and lightdm installed on my computer.

Last edited by sidambhire (2018-04-26 14:30:01)

Offline

#2 2018-04-26 12:40:01

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

Re: nvidia optimus installation issue

If you use linux-lts you have to install nvidia-lts to provide the kernel module.

Online

#3 2018-04-26 14:31:13

sidambhire
Member
Registered: 2013-10-15
Posts: 8

Re: nvidia optimus installation issue

But still it doesn't work for linux regular kernel. I get blank screen as mentioned in my first post.

Offline

#4 2018-04-26 15:23:11

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: nvidia optimus installation issue

sidambhire wrote:

# modprobe nvidia
is showing no nvidia module present.

What output do you expect from modprobe?

# modprobe nvidia
# lsmod | grep nvidia
nvidia_drm             45056  3
nvidia_modeset       1077248  5 nvidia_drm
nvidia              13955072  181 nvidia_modeset
# modprobe nvidia

Offline

#5 2018-04-26 20:38:19

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: nvidia optimus installation issue

So far it seems he only could boot the lts kernel because he had no nvidia module installed there (I assume he got "modprobe: FATAL: Module nvidia not found in directory")

@sidambhire, let's start with the basics, please provide:
- lspci
- lsmod
- dmesg
- pacman -Qs nvidia
- all xorg logs
- every /etc/X11/xorg.conf* file (including those in xorg.conf.d)

Offline

#6 2018-04-26 21:12:37

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: nvidia optimus installation issue

@seth ah so sidambhire was providing a narrative of the commands output.  I thought the command was literally producing no output
@sidambhire please post commands and their outputs not a narrative of that output https://bbs.archlinux.org/viewtopic.php?id=57855

Offline

#7 2018-04-27 07:23:12

sidambhire
Member
Registered: 2013-10-15
Posts: 8

Re: nvidia optimus installation issue

@seth and @loqs

$ lspci
https://pastebin.com/4xBMUm4G

$ lsmod
https://pastebin.com/59Cm4c3n

$ dmesg
https://pastebin.com/CXmFCraN

$ pacman -Qs nvidia
local/libvdpau 1.1.1+3+ga21bf7a-1
    Nvidia VDPAU library
local/nvidia 390.48-10
    NVIDIA drivers for linux
local/nvidia-utils 390.48-1
    NVIDIA drivers utilities
local/nvidia-xrun-git 0.3.29.g2d4e772-1
    Script to run dedicated X server with discrete nvidia graphics (git version)

$ cat /var/log/Xorg.0.log
https://pastebin.com/kh9ST4Pi

$ cat /var/log/Xorg.1.log
https://pastebin.com/A6sYZGb9

$ cat /etc/X11/xorg.conf.d/00-keyboard.conf 
# Written by systemd-localed(8), read by systemd-localed and Xorg. It's
# probably wise not to edit this file manually. Use localectl(1) to
# instruct systemd-localed to update it.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "us,in"
        Option "XkbVariant" ",bolnagri"
EndSection

$ cat /etc/X11/xorg.conf.d/50-synaptics.conf
https://pastebin.com/NYJffm7p

$ cat /etc/X11/xorg.conf.d/99-killX.conf 
Section "ServerFlags"
   Option "DontZap" "false"
EndSection

Section "InputClass"
   Identifier      "Keyboard Defaults"
   MatchIsKeyboard   "yes"
   Option         "XkbOptions" "terminate:ctrl_alt_bksp"

Note: I'm able to log in from the blank screen by typing my password. Just there is a blank screen in the beginning.

I think there is a xorg.conf file missing in my /etc/X11 folder.
I also tied to run nvidia-xrun from tty as mentioned in the nvidia-xrun-git package's git page. It said modules already running. I couldn't copy the entire error code. Can anyone tell me how I can copy it?

Last edited by sidambhire (2018-04-27 07:32:16)

Offline

#8 2018-04-27 07:26:53

sidambhire
Member
Registered: 2013-10-15
Posts: 8

Re: nvidia optimus installation issue

seth wrote:

So far it seems he only could boot the lts kernel because he had no nvidia module installed there (I assume he got "modprobe: FATAL: Module nvidia not found in directory")

That is correct.

Offline

#10 2018-04-27 12:21:15

sidambhire
Member
Registered: 2013-10-15
Posts: 8

Re: nvidia optimus installation issue

Thanks @seth.

First I blacklisted nvidia.

Then I ran

# nvidia-xrun

There was a long error shown which I was not able to copy from tty.

Last edited by sidambhire (2018-04-27 12:50:45)

Offline

#11 2018-04-27 12:31:41

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: nvidia optimus installation issue

Do you have an xinitrc?
Otherwise this is not the correct syntax for nvidia-xrun, please ensure to fully read https://github.com/Witko/nvidia-xrun

You cannot run nvidia-settings on the intel driven X11 server, that's what https://github.com/Witko/nvidia-xrun is all about ...

Offline

#12 2018-04-27 13:31:14

sidambhire
Member
Registered: 2013-10-15
Posts: 8

Re: nvidia optimus installation issue

Sorry I'll check and try again.

Last edited by sidambhire (2018-04-27 13:45:59)

Offline

Board footer

Powered by FluxBB