You are not logged in.

#1 2017-11-24 17:56:51

DeadLink404
Member
Registered: 2017-11-24
Posts: 40

[SOLVED] Bumblebee optimus xorg configuration

I had a working KDE install using the discreet GPU of my Laptop but wanted to enable msyhbrid/optimus.
However I cannot get Xorg to start anymore. Bumbleed is running and I can switch the dGPU using bbswitch.
I may have removed all xorg conf files (some overzealously) and I have gotten a myriad of errors from xorg (xinit or startx)
from segfaults to complete system freezes.

My understanding atm is that bumblebee wants xorg to use the iGPU but xorg is trying to use the dGPU.
if anybody has a working system of bumblebee with  nvidia proprietary drivers and could provide me with their
xorg.conf, kernel parameters and modules. I have tried everything under the sun.


(I am using another machine while I get this working so I can't easily get the logs sry)

Last edited by DeadLink404 (2017-12-10 11:52:24)

Offline

#2 2017-11-24 18:00:27

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

Re: [SOLVED] Bumblebee optimus xorg configuration

You don't need a graphical environment to provide the necessary logs: https://wiki.archlinux.org/index.php/Li … in_clients


Not an Installation issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-11-25 11:35:41

DeadLink404
Member
Registered: 2017-11-24
Posts: 40

Re: [SOLVED] Bumblebee optimus xorg configuration

Well I got this one now ~/.local/share/xorg/Xorg.0.log
with the key point being Cannot open /dev/tty0 (Permission denied).
however with root rights enabled I get a system freeze and no log.
And yes I checked the /var/log/ dir where Xorg claimed it's logfile would be.

This suggested using the xf86-video-modesetting, might try that next.

Last edited by DeadLink404 (2017-11-25 11:39:03)

Offline

#4 2017-11-25 12:37:49

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

Re: [SOLVED] Bumblebee optimus xorg configuration

pacman -Qkk bumblebee nvidia xf86-video-intel
lspci

Are you trying a rootless X11 server? https://wiki.archlinux.org/index.php/Xorg#Rootless_Xorg
Does it work otherwise?

Offline

#5 2017-11-25 13:05:22

DeadLink404
Member
Registered: 2017-11-24
Posts: 40

Re: [SOLVED] Bumblebee optimus xorg configuration

I am trying rootless but have need_roots_rights = yes in the Xwrapper.conf
I have the nvidia-dkms installed not nvidia.
so pacman -Qkk bumblee nvidia-dkms xf86-video-intel
and lspci

Last edited by DeadLink404 (2017-11-25 13:05:46)

Offline

#6 2017-11-25 14:21:46

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

Re: [SOLVED] Bumblebee optimus xorg configuration

I am trying rootless but have need_roots_rights = yes in the Xwrapper.conf

???
Do you bypass the wrapper or what does that mean?

Offline

#7 2017-11-25 21:41:09

DeadLink404
Member
Registered: 2017-11-24
Posts: 40

Re: [SOLVED] Bumblebee optimus xorg configuration

that means that I start Xorg through xinit or startx from the console without a login manager,
however I get an "Cannot open /dev/tty0 (Permission denied)" if I start it without root privileges.

Offline

#8 2017-11-25 21:47:55

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

Re: [SOLVED] Bumblebee optimus xorg configuration

That's not a rootless X11 server at all.
What says

pacman -Qkk xorg-server
stat /usr/lib/xorg-server/Xorg /usr/lib/xorg-server/Xorg.wrap /usr/bin/Xorg

Offline

#9 2017-11-25 22:09:02

DeadLink404
Member
Registered: 2017-11-24
Posts: 40

Re: [SOLVED] Bumblebee optimus xorg configuration

pacman -Qkk xorg-server:
xorg-server: 51 total files, 0 altered files

stat /usr/lib/xorg-server/Xorg /usr/lib/xorg-server/Xorg.wrap /usr/bin/Xorg


thank you for putting up with me btw

Last edited by DeadLink404 (2017-11-25 22:10:14)

Offline

#10 2017-11-25 22:47:54

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

Re: [SOLVED] Bumblebee optimus xorg configuration

This lacks the stat for "/usr/lib/xorg-server/Xorg" (you provided /usr/lib/xorg-server instead) but pacman suggests this is not the problem.
Do you have a ~/.xserverrc ?

Offline

#11 2017-11-25 22:59:48

DeadLink404
Member
Registered: 2017-11-24
Posts: 40

Re: [SOLVED] Bumblebee optimus xorg configuration

I do not.

Offline

#12 2017-11-26 16:28:09

DeadLink404
Member
Registered: 2017-11-24
Posts: 40

Re: [SOLVED] Bumblebee optimus xorg configuration

After some experimentation I got as far as the KDE splash screen by stopping the bumblebee deamon and running xinit.
Though I got a black screen afterwards once and back to the console another time.

Offline

#13 2017-11-26 21:46:31

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

Re: [SOLVED] Bumblebee optimus xorg configuration

skip KDE and try something simpler (openbox?)

Offline

#14 2017-11-26 22:05:18

DeadLink404
Member
Registered: 2017-11-24
Posts: 40

Re: [SOLVED] Bumblebee optimus xorg configuration

looks promising.... I got a grey background with a mouse cursor. Although the cursor is either unmoving or everything is frozen.
Plugged in a mouse as well but was unresponsive too. But atleast the power button got me a gracefull shutdown for once.

Last edited by DeadLink404 (2017-11-26 22:06:35)

Offline

#15 2017-11-26 22:08:47

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

Re: [SOLVED] Bumblebee optimus xorg configuration

Did you check the resulting Xorg log? (for eg. input device errors)
There's probably still some GL issue (causing most of KDE to crash)

Offline

#16 2017-11-26 22:22:13

DeadLink404
Member
Registered: 2017-11-24
Posts: 40

Re: [SOLVED] Bumblebee optimus xorg configuration

Here you go

[    22.172] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/event18)
[    22.172] (II) No input driver specified, ignoring this device.
[    22.172] (II) This device may have been added with another device file.
[    22.172] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/mouse1)
[    22.172] (II) No input driver specified, ignoring this device.
[    22.172] (II) This device may have been added with another device file.


xf86-input-synaptics is installed

Offline

#17 2017-11-26 22:43:43

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

Re: [SOLVED] Bumblebee optimus xorg configuration

Fatal server error:
[    38.970] (EE) systemd-logind disappeared (stopped/restarted?)

Remote login? Bad xinitrc?
https://wiki.archlinux.org/index.php/Xinit#xinitrc (see second note)

Offline

#18 2017-11-26 22:45:50

DeadLink404
Member
Registered: 2017-11-24
Posts: 40

Re: [SOLVED] Bumblebee optimus xorg configuration

I think that was me pressing the power button tbh

waited a little longer here
I launched a firefox this time and the system isn't frozen (the cursor bar thingy blinked)
just mouse and touchpad aren't working.

Last edited by DeadLink404 (2017-11-26 23:23:16)

Offline

#19 2017-11-27 09:49:14

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

Re: [SOLVED] Bumblebee optimus xorg configuration

neither libinput nor evdev nor  synaptics seems to be loaded?

pacman -Q | grep xf86-input

Offline

#20 2017-11-27 14:52:18

DeadLink404
Member
Registered: 2017-11-24
Posts: 40

Re: [SOLVED] Bumblebee optimus xorg configuration

pacman -Q | grep xf86-input

xf86-input-libinput 0.26.0-1
xf86-input-synaptics 1.9.0-1

Offline

#21 2017-11-27 15:38:41

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

Re: [SOLVED] Bumblebee optimus xorg configuration

That is ... weird - to say the least.

pacman -Qkk xf86-input-libinput xf86-input-synaptics

Offline

#22 2017-11-27 15:48:53

DeadLink404
Member
Registered: 2017-11-24
Posts: 40

Re: [SOLVED] Bumblebee optimus xorg configuration

xf86-input-libinput: 21 total files, 1 altered file
xf86-input-synaptics: 28 total files, 1 altered file

But the stderr told me the /usr/share/X11/xorg.conf.d/40-libinput.conf and /etc/X11/xorg.conf.d/70-synaptics.conf are gone.
So... I did done goofed.
How do I get em back?

Offline

#23 2017-11-27 15:54:16

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

Re: [SOLVED] Bumblebee optimus xorg configuration

Re-install the packages, but this entirely explains the situation.

Offline

#24 2017-11-27 20:52:27

DeadLink404
Member
Registered: 2017-11-24
Posts: 40

Re: [SOLVED] Bumblebee optimus xorg configuration

Good news: Bumblebee works now in openbox.
KDE still craps out on me with a black screen though
It caught my ctrl alt F2         (AIGLX: Suspending AIGLX clients for VT switch)
the screen looks to be right  (intel(0): EDID vendor "AUO" && intel(0): switch to mode 1920x1080@120.0 on eDP1 using pipe 0)
But it the screen went black.

heh

[    71.422] (II) event16 - (II) Chicony USB 2.0 Camera: Chicony: (II) is tagged by udev as: Keyboard

sure... whatever.

Offline

#25 2017-11-27 21:00:09

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

Re: [SOLVED] Bumblebee optimus xorg configuration

check glxinfo (in openbox) and try to suspend the kwin compositor (in kde) - SHIIFT+Alt+F12 toggles it.

Dunno why, but all cams and also my dvb-t register as keyboard...

Last edited by seth (2017-11-27 21:00:24)

Offline

Board footer

Powered by FluxBB