View previous topic :: View next topic |
Author |
Message |
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Mon Apr 19, 2021 9:22 am Post subject: unable to get bumblebee working |
|
|
I have the following cards:
Code: | samsung ~ # lspci -k | grep -i -e vga -e nvidia
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] (rev ff)
Kernel modules: nvidia_drm, nvidia
|
I have followed the bumblebee article but when I try to use optirun I get the following:
Code: | adel@samsung ~ $ optirun glxgears
[ 178.096304] [ERROR]Accel/display bridge primus is not installed.
adel@samsung ~ $ primusrun glxgears
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 154 (NV-GLX)
Minor opcode of failed request: 4 ()
Resource id in failed request: 0x200002
Serial number of failed request: 39
Current serial number in output stream: 39 |
primus is installed:
Code: | [ebuild R ] sys-power/bbswitch-0.8-r5::gentoo USE="(-dist-kernel)" 0 KiB
[ebuild R ] x11-misc/bumblebee-3.2.1_p20210112::gentoo USE="bbswitch" VIDEO_CARDS="nvidia -nouveau" 0 KiB
[ebuild R ~] x11-misc/primus-0.2-r3::gentoo USE="(libglvnd)" ABI_X86="(64) -32 (-x32)" 0 KiB |
my bumblebee.conf:
http://dpaste.com//8PDT5CBYA |
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2715
|
Posted: Mon Apr 19, 2021 10:00 am Post subject: |
|
|
Looking at the card that's with nvidia-drivers-390.xx I guess?
Unfortunately glvnd support for these legacy drivers is only partial (Xorg needs to use nvidia directly for glx rather than intel+nvidia), I don't "think" using bumblebee/primus can work properly with it anymore in gentoo (since eselect-opengl and compat libraries are no longer usable). Not that I have such setup to confirm. |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Mon Apr 19, 2021 10:31 am Post subject: |
|
|
yes
Code: | [ebuild R ] x11-drivers/nvidia-drivers-390.141:0/390::gentoo USE="X driver kms -compat (-dist-kernel) -multilib -static-libs -tools -uvm -wayland" ABI_X86="(64) -32 (-x32)" 0 KiB
|
can I use the nvidia card to run xorg? from my understanding xorg always needs to run on intel and nvidia card can only be used to accelerate
or do I have it wrong? |
|
Back to top |
|
|
krumpf Apprentice
Joined: 15 Jul 2018 Posts: 175
|
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Wed Apr 21, 2021 7:29 am Post subject: |
|
|
that did not work unfortunately:
I have copied the config file and set the PCI parameters:
http://dpaste.com//C2CNG8J4Q
I launch X using the bash profile file as following:
Code: | if [[ ! ${DISPLAY} && ${XDG_VTNR} == 1 ]]; then
exec startx /usr/bin/dbus-launch --exit-with-session icewm-session
fi |
so I added the following line before it:
Code: | xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto |
but then xorg server will not start:
xorg.log:
http://dpaste.com//AL24G9T2D |
|
Back to top |
|
|
krumpf Apprentice
Joined: 15 Jul 2018 Posts: 175
|
Posted: Wed Apr 21, 2021 12:29 pm Post subject: |
|
|
Code: | $ xrandr --setprovideroutputsource modesetting NVIDIA-0
$ xrandr --auto |
The xrandr commands have to executed before running startx. Try adding them in a .xinitrc, or create an executable script that your display manager will launch before X |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Wed Apr 21, 2021 1:20 pm Post subject: |
|
|
I have added them to bash_profile, before the startx line
so they should be running before startx. |
|
Back to top |
|
|
guitou Guru
Joined: 02 Oct 2003 Posts: 534 Location: France
|
Posted: Wed Apr 21, 2021 5:08 pm Post subject: |
|
|
Hi
Code: |
[...]
xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[...]
|
This might be your issue, googling for this led me there, just in case.
Edit: forgot to close code tag
++
Gi) |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Thu Apr 22, 2021 8:57 am Post subject: |
|
|
he resolved the problem by :
sudo chmod u+s /usr/bin/xinit
which I already have, but mabe how I start my xserver is problematic?
I use autologin to terminal followed by launchuing icewm freom the bash profile:
Code: | exec startx /usr/bin/dbus-launch --exit-with-session icewm-session |
|
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21595
|
Posted: Thu Apr 22, 2021 4:41 pm Post subject: |
|
|
Changing the mode of xinit is almost certainly the wrong solution. Making Xorg itself suid is the traditional solution to avoid dealing with elogind-related issues. Is your autologin not notifying elogind that the login occurred? To get elogind to cooperate, elogind must have been notified, usually by PAM, that you exist and are a console user. Does this work if you log in manually on a terminal, and start X that way? |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Sun Apr 25, 2021 1:27 pm Post subject: |
|
|
the installation of elogind is blocked by systemd.
elogind is not installed on the system.
chmod u+s on /usr/bin/Xorg did not work, I get teh same error. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21595
|
Posted: Sun Apr 25, 2021 4:08 pm Post subject: |
|
|
On a systemd system, you should have systemd-logind, which should work instead of elogind. My other questions still apply - does logind know you exist? Is PAM configured to tell it that? |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Mon Apr 26, 2021 4:22 pm Post subject: |
|
|
I have a /run/user/1000 does that verify this piece of info?
or how can we check? |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Sun May 09, 2021 11:58 am Post subject: |
|
|
bump |
|
Back to top |
|
|
|