Skip to content

u/Protolomeo

In this archive from Jan 2017 to Feb 2021

0
posts
31
comments
0
media
68
score

Don't really know anything about primus_vk, but I'm sure that Bumblebee won't work at all with Vulkan.

Anyway, I've got a 840M and it's capable of running games, not latest games and not really demanding games, lowering the settings A LOT :)

1 points

Ditch bumblebee completely, it doesn't support Vulkan.

Anyway: /etc/X11/nvidia-xorg.conf

Section "Files"
    ModulePath "/usr/lib/nvidia"
    ModulePath "/usr/lib32/nvidia"
    ModulePath "/usr/lib32/nvidia/xorg/modules"
    ModulePath "/usr/lib32/xorg/modules"
    ModulePath "/usr/lib64/nvidia/xorg/modules"
    ModulePath "/usr/lib64/xorg/modules"
EndSection

Section "ServerLayout"
    Identifier "layout"
    Screen 1 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
     Identifier "nvidia"
     Driver "nvidia"
     BusID "PCI:4:0:0"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    #  Option "AllowEmptyInitialConfiguration" "Yes"
    #  Option "UseDisplayDevice" "none"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    Option "AccelMethod" "none"
EndSection

Section "Screen"
    Identifier "intel"  
    Device "intel"
EndSection

/usr/lib/modprobe.d/nvidia-xrun.conf

blacklist nvidia
blacklist nvidia-drm
blacklist nvidia-modeset
blacklist nvidia-uvm
blacklist nouveau

There shouldn't be other config files.

2 points

I've got the same laptop (almost the same, ASUS K551L). I don't use optimus-manager, but nvidia-xrun with bbswitch... maybe you could give it a try, but previously you have to delete all the configuration files optimus-manager did set up.

If you need help with setting that up, I can post here my nvidia-xrun related configs, but if I remember correctly I didn't do much, just installed nvidia-xrun from AUR

1 points

Assuming this is an Optimus laptop, so with a dedicated GPU and an integrated one, I guess you're running on the dedicated GPU all the time, even if it's not needed.

If it is like I said, look into prime offloading on the wiki, so that you run everything on the integrated card and use the nvidia one only when needed.

2 points

Depending on what do you need to do with the dGpu, bumblebee should be avoided at all costs (it doesn't support Vulkan, so, basically, useless for gaming).

Personally I use nvidia-xrun, at the cost of switching tty when I want to use the nVidia card.

I've heard good things about optimus-manager, it's just that I'm used to nvidia-xrun.

Since nVidia driver 435.17 PRIME render offload should be supported too (see https://wiki.archlinux.org/index.php/PRIME#PRIME_render_offload)

1 points

Don't know about miniconda, I use pyenv to handle multiple python versions on my system, but always in specific virtualenvs. I keep the system python as it is, and install whichever version I need to support with pyenv.

Also, never installed any python package from AUR: if I need something for some project, ther's always the project virtualenv where I install with pip

1 points

You're right, I'm on Arch since like 6 months. Thanks for the wiki page: at work we use Ubuntu so I've never had any problem, since we install everything in every project virtualenv. Don't really know why one should do differently: it's not like you'll use the same version of a python/node package for EVERY project you have.

1 points

Can't speak for npm, but working with python packages, I always use a virtualenv for that, and install packages with pip inside the virtualenv. This way I can have several different packages versions if needed for different projects. Didn't even know that you can find python or npm packages on the AUR.

14 points

I don't know if it could help, but I think the problem here is that you need to plug screens to your nvidia card: since driver 435.something you could set up things like this https://download.nvidia.com/XFree86/Linux-x86_64/435.17/README/primerenderoffload.html , it could work because the nvidia gpu would not be totally powered off. You'll probably lose some battery saving, but it's something you should try

1 points

Archwiki is definitely one of the best thing of Arch, I agree. I moved from Debian Sid to Arch, because I wasn't able to make nvidia-xrun work, and I wanted to try something else (using Kubuntu at work, I wanted to move from debian based distros to something different)

Welcome!

10 points

Don't know if I can help, but I have a laptop with optimus too (Nvidia 840M). I've ditched bumblebee totally and use nvidia-xrun now. This is what I've done:

  • installed nvidia driver (latest is like 435.something)

  • installed bbswitch (which blacklist the nvidia driver)

  • installed nvidia-xrun from aur

As of now, the laptop starts with the intel gpu on and nvidia gpu off, if I want to play something I switch tty and fire nvidia-xrun openbox (running KDE normally, openbox just for nvidia-xrun), load steam, and play. I guess that with bumblebee you can't run properly vulkan games, so you can't really take advantage of proton and dxvk

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.