You are not logged in.

#1 2015-04-24 12:04:14

3shaqA6air
Member
Registered: 2014-05-07
Posts: 7

nvidia/intel and bumblebee

hi,

i got a new laptop "asus n56jn-eb71" it came with 2 graphics cards intel and nvidia 840m

i installed the bumblebee following the wiki and when i reboot the gnome login screen shows up and i cant log in till i use the Wayland i dont like it it has some  bugs

can you tell me how to make gnome login as usual


sorry for my bad english

Last edited by 3shaqA6air (2015-04-25 16:57:04)

Offline

#2 2015-04-24 14:20:31

Shawn8901
Member
Registered: 2013-05-07
Posts: 38

Re: nvidia/intel and bumblebee

Hi,

the nvidia card will be used, if you launch an application with the optirun pre-command.
ex:

optirun glxinfo

will output the glxinfos from the nvidiacard

If this works in cooperation with wayland im not really sure, i would say no, because the nvidia-glx driver has not the nessesary EGL implementation, so your application should have to run inside a xserver.
Also i think that most problems also are because you use wayland and not the traditional xserver.

Is there a reason for using wayland?

Offline

#3 2015-04-24 17:31:13

3shaqA6air
Member
Registered: 2014-05-07
Posts: 7

Re: nvidia/intel and bumblebee

Shawn8901 wrote:

Hi,

the nvidia card will be used, if you launch an application with the optirun pre-command.
ex:

optirun glxinfo

will output the glxinfos from the nvidiacard

If this works in cooperation with wayland im not really sure, i would say no, because the nvidia-glx driver has not the nessesary EGL implementation, so your application should have to run inside a xserver.
Also i think that most problems also are because you use wayland and not the traditional xserver.

Is there a reason for using wayland?

the reason why i'm using wayland because i cant log in after installing bumblebee

Offline

#4 2015-04-27 12:57:04

3shaqA6air
Member
Registered: 2014-05-07
Posts: 7

Re: nvidia/intel and bumblebee

any idea please

Offline

#5 2015-04-27 14:24:52

dice
Member
From: Germany
Registered: 2014-02-10
Posts: 413

Re: nvidia/intel and bumblebee

What exactly prevents you from logging in? What display manager do you use? Can you still login on a tty? Errors in dmesg or journal?
You see a little more information would help a lot to help you


I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do.  (Gune | Titan A.E.)

Offline

#6 2015-04-27 17:53:38

3shaqA6air
Member
Registered: 2014-05-07
Posts: 7

Re: nvidia/intel and bumblebee

i use gdm as a display manager when i type the password to login using gnome or gnome classic or kde but the log-in screen shows up again and it prevent me from login. i can login on wayland, but you know wayland still have some bugs and problems.

i can login on tty, i dont see any errors in dmesg

i don't know which information could help but when i use enter lspci|grep VGA it shows only the intel card i can see the nvidia card with lspci | grep -E "VGA|3D"

and this is the status of bumblebeed

* bumblebeed.service - Bumblebee C Daemon
   Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2015-04-27 15:56:00 AST; 4h 54min ago
 Main PID: 1122 (bumblebeed)
   CGroup: /system.slice/bumblebeed.service
           `-1122 /usr/bin/bumblebeed

Apr 27 15:56:00 localhost systemd[1]: Started Bumblebee C Daemon.
Apr 27 15:56:00 localhost systemd[1]: Starting Bumblebee C Daemon...
Apr 27 15:56:00 localhost bumblebeed[1122]: [  411.035434] [INFO]/usr/bin/bumblebeed 3.2.1 started.

Offline

#7 2015-04-28 07:36:06

dice
Member
From: Germany
Registered: 2014-02-10
Posts: 413

Re: nvidia/intel and bumblebee

I doubt this is related to bumblebee. Does uninstalling bumblebee fix the problem?


I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do.  (Gune | Titan A.E.)

Offline

#8 2015-04-28 09:11:16

Mercader1902
Member
Registered: 2014-09-01
Posts: 55

Re: nvidia/intel and bumblebee

Take a look at the logs (~/.local/share/xorg) and try to use startx instead of gdm to figure out what's happening.

Last edited by Mercader1902 (2015-04-28 09:12:22)

Offline

#9 2015-04-28 13:09:26

3shaqA6air
Member
Registered: 2014-05-07
Posts: 7

Re: nvidia/intel and bumblebee

Mercader1902 wrote:

Take a look at the logs (~/.local/share/xorg) and try to use startx instead of gdm to figure out what's happening.

this is the xorg log

[    43.802] 
X.Org X Server 1.17.1
Release Date: 2015-02-10
[    43.802] X Protocol Version 11, Revision 0
[    43.802] Build Operating System: Linux 3.19.2-1-ARCH x86_64 
[    43.802] Current Operating System: Linux localhost 3.14.39-1-lts #1 SMP Sun Apr 19 13:09:40 CEST 2015 x86_64
[    43.802] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-lts root=UUID=cabe0e3a-8e82-4fdf-b504-58d1ce3f85e3 rw rcutree.rcu_idle_gp_delay=1 rcutree.rcu_idle_gp_delay=1
[    43.802] Build Date: 14 April 2015  10:34:18AM
[    43.802]  
[    43.802] Current version of pixman: 0.32.6
[    43.802] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    43.802] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    43.802] (==) Log file: "/home/abdullah/.local/share/xorg/Xorg.0.log", Time: Tue Apr 28 16:01:48 2015
[    43.851] (==) Using config file: "/etc/X11/xorg.conf"
[    43.851] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    43.851] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    43.916] (==) ServerLayout "Layout0"
[    43.916] (**) |-->Screen "Screen0" (0)
[    43.916] (**) |   |-->Monitor "Monitor0"
[    43.945] (**) |   |-->Device "Device0"
[    43.945] (**) |-->Input Device "Keyboard0"
[    43.945] (**) |-->Input Device "Mouse0"
[    43.945] (==) Automatically adding devices
[    43.945] (==) Automatically enabling devices
[    43.945] (==) Automatically adding GPU devices
[    43.945] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/OTF/".
[    43.945] 	Entry deleted from font path.
[    43.945] 	(Run 'mkfontdir' on "/usr/share/fonts/OTF/").
[    43.945] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[    43.945] 	Entry deleted from font path.
[    43.945] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[    43.945] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[    43.945] 	Entry deleted from font path.
[    43.945] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[    43.945] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/Type1/
[    43.945] (==) ModulePath set to "/usr/lib/xorg/modules"
[    43.945] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[    43.945] (WW) Disabling Keyboard0
[    43.945] (WW) Disabling Mouse0
[    43.966] (II) Loader magic: 0x815d80
[    43.966] (II) Module ABI versions:
[    43.966] 	X.Org ANSI C Emulation: 0.4
[    43.966] 	X.Org Video Driver: 19.0
[    43.966] 	X.Org XInput driver : 21.0
[    43.966] 	X.Org Server Extension : 9.0
[    43.967] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c2
[    43.968] (II) xfree86: Adding drm device (/dev/dri/card0)
[    43.968] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 9 paused 0
[    43.969] (--) PCI:*(0:0:2:0) 8086:0416:1043:14ad rev 6, Mem @ 0xf7400000/4194304, 0xd0000000/268435456, I/O @ 0x0000f000/64
[    43.969] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    43.970] (II) LoadModule: "glx"
[    44.036] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    44.148] (II) Module glx: vendor="X.Org Foundation"
[    44.148] 	compiled for 1.17.1, module version = 1.0.0
[    44.148] 	ABI class: X.Org Server Extension, version 9.0
[    44.148] (==) AIGLX enabled
[    44.148] (II) LoadModule: "nvidia"
[    44.210] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[    44.323] (II) Module nvidia: vendor="NVIDIA Corporation"
[    44.323] 	compiled for 4.0.2, module version = 1.0.0
[    44.323] 	Module class: X.Org Video Driver
[    44.338] (II) NVIDIA dlloader X Driver  349.16  Tue Apr  7 23:19:49 PDT 2015
[    44.338] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    44.339] (++) using VT number 2

[    44.339] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[    44.339] (EE) No devices detected.
[    44.339] (EE) 
Fatal server error:
[    44.339] (EE) no screens found(EE) 
[    44.339] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[    44.339] (EE) Please also check the log file at "/home/abdullah/.local/share/xorg/Xorg.0.log" for additional information.
[    44.339] (EE) .

the startx shows

X.Org X Server 1.17.1
Release Date: 2015-02-10
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.19.2-1-ARCH x86_64 
Current Operating System: Linux localhost 3.14.39-1-lts #1 SMP Sun Apr 19 13:09:40 CEST 2015 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-lts root=UUID=cabe0e3a-8e82-4fdf-b504-58d1ce3f85e3 rw rcutree.rcu_idle_gp_delay=1 rcutree.rcu_idle_gp_delay=1
Build Date: 14 April 2015  10:34:18AM
 
Current version of pixman: 0.32.6
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Tue Apr 28 16:02:31 2015
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) 
Fatal server error:
(EE) no screens found(EE) 
(EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
(EE) Please also check the log file at "/var/log/Xorg.1.log" for additional information.
(EE) 
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error.

Offline

#10 2015-04-28 13:24:13

dice
Member
From: Germany
Registered: 2014-02-10
Posts: 413

Re: nvidia/intel and bumblebee

What is in you /etc/X11/xorg.conf?
And explain what you did exactly to install bumblebee.
You are using lts kernel did you also install the nvidia-lts package? If you are using bbswitch you also need the bbswitch-lts package


I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do.  (Gune | Titan A.E.)

Offline

#11 2015-04-28 13:36:02

3shaqA6air
Member
Registered: 2014-05-07
Posts: 7

Re: nvidia/intel and bumblebee

dice wrote:

What is in you /etc/X11/xorg.conf?
And explain what you did exactly to install bumblebee.
You are using lts kernel did you also install the nvidia-lts package? If you are using bbswitch you also need the bbswitch-lts package

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 349.16  (buildmeister@swio-display-x86-rhel47-06)  Wed Apr  8 00:52:19 PDT 2015

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

i followed the wiki way https://wiki.archlinux.org/index.php/Bumblebee

i already installed the lts packages

Offline

#12 2015-04-28 15:04:32

dice
Member
From: Germany
Registered: 2014-02-10
Posts: 413

Re: nvidia/intel and bumblebee

The X11 config was created by nvidia-xconfig. Did you run that or was it automatically run by installing nvidia package maybe? If it is automatically run I would consider it a bug in this case.
Backup the file and delete it or rename it. Then see if it works.

It looks like X tries to use your nvidia card although it should use the intel gpu because of the xorg.conf made by nvidia.

EDIT: Maybe gdm itself is broken. Did you see this thread. I haven't read it myself but it looks related to your problem.

Last edited by dice (2015-04-28 15:07:37)


I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do.  (Gune | Titan A.E.)

Offline

#13 2015-04-28 17:44:02

3shaqA6air
Member
Registered: 2014-05-07
Posts: 7

Re: nvidia/intel and bumblebee

thank you all, the problem was installing nvidia before installing xorg i renamed the file and now it work perfect

thanks again

Offline

Board footer

Powered by FluxBB