You are not logged in.

#1 2014-07-21 13:41:06

noirvent
Member
Registered: 2014-07-21
Posts: 8

[SOLVED] Xorg / Bumblebee on Asus N56V

Hello.

I've recently choose to give my laptop a true OS, but I encoutered some difficulties.

Modèle : ASUS N56V8 with Intel HD Graphics 4000 and Nvidia GeForce 650M

It came originally with Windows 8, uefi, secureboot and all.

I already had some experience with debian who's never too far away (I use it for my home servers), but for my personal needs I wanted to try something different, and some people talked to me about Archlinux, so why not give it a try.

Because I don't know If I'll need W8 again for my school next year (because I'm student in an IT school I was was using some windows-only software), I choose to keep it, and did a dual boot. I followed the Beginner's Guide and somewhat managed to install Archlinux without problems.

# uname -a
Linux yog-sothoth 3.15.5-2-ARCH #1 SMP PREEMPT Fri Jul 11 07:56:02 CEST 2014 x86_64 GNU/Linux

Here is my setup :

lsblk -f
NAME   FSTYPE LABEL    UUID                                 MOUNTPOINT
sda                                                         
├─sda1 vfat   SYSTEM   206F-C75B                            /boot
├─sda2 ntfs   Recovery 2CF4196AF4193812                     
├─sda3                                                      
├─sda4 ntfs            9C40CB1E40CAFDD0                     
├─sda5 ntfs   Data     F21E20A41E2063B7                     
├─sda6 ntfs   Restore  4C6623F16623DB0A                     
├─sda7 ext4            c74ce11d-1a68-4f80-8676-69bf0bc0ca6c /
└─sda8 ext4            5d5ccd3c-a000-4b98-a9ff-493319e2ea47 /home

where
sda1 is the originally installed EFI partition (who's dualbooting my AL/W8 without a hitch)
sda2-3-4 are the W8 systems partition
sda-5 is a ntfs partition shared for both systems
sda-6 is the asus recovery partition
sda-7 is Archlinux Root
sda-8 is Archlinux Home

The problem :
I watend to install a graphic interface (gnome 3), so I tried to install xorg, bumblebee and  so on since I've apparently Nvidia Optimus
Tutorials followed :
Archlinux wiki bumblebee
Archlinux wiki xorg

# lspci | grep "VGA"
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GT 650M] (rev ff)

.xinitrc

exec gnome-session

And... It didn't work. It try to launch and close immediately. (.xinit contain just exec gnome-session)

Optirun doesn't work either

Here's my Xorg.0.log :

Short version :

[  1071.726]
 (EE) No devices detected.
[  1071.726] (EE) 
Fatal server error:
[  1071.726] (EE) no screens found(EE) 
[  1071.726] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[  1071.726] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  1071.726] (EE) 

Xorg.0.log Long version
Xorg.8.log Long version (this one say kbd module doesn't exist but kbd is already installed ?)

EDIT : New Xorg.0.log without the xorg.conf.d.files : http://pastie.org/private/z6i8yygucboc0fteorbs9g && Xorg.8.log http://pastie.org/private/sx9ywyhodvsnjsrimlla


Here's my /etc/X11-6xorg.conf.d/ files :

10-keyboard-layout.conf

Section "InputClass"
	Identifier		"Keyboard Layout"
	MatchIsKeyboard		"yes"
	MatchDevicePath		"/dev/input/event*"
	Option			"XkbLayout"	"ch"
	Option			"XkbVariant"	"fr"
EndSection

10-monitor.conf

Section "Monitor"
	Identifier	"Monitor0"
	Option		"PreferredMode"	"1980x1024"
EndSection

10-intel.conf

Section "Device"
	Identifier "Intel Graphics"
	Driver	"intel"
	Option	"AccelMethod" "sna"
	#Option	"AccelMethod" "uxa"
	#Option "AccelMethod" "glamor"
EndSection

10-nvidia.conf

Section "ServerLayout"
	Identifier "layout"
	Screen 0 "nvidia"
EndSection

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

Section "Screen"
	Identifier "nvidia"
	Device "nvidia"
	Option "AllowEmptyInitialConfiguration"
EndSection

(10-evdev.conf and 10-quirks.conf are the default one)

Hope I don't have forgotten something.

Can you help me ?

Last edited by noirvent (2014-07-22 02:00:00)

Offline

#2 2014-07-21 13:49:49

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,013

Re: [SOLVED] Xorg / Bumblebee on Asus N56V

for now, remove 10-monitor.conf , 10-intel.conf & 10-nividia.conf .

Then run startx again and post the output of the Xorg.0.log .
That way we can see what X THINKS you have in your system.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2014-07-21 14:11:57

noirvent
Member
Registered: 2014-07-21
Posts: 8

Re: [SOLVED] Xorg / Bumblebee on Asus N56V

Here's the new Xorg.0.log :

http://pastie.org/private/z6i8yygucboc0fteorbs9g

new Xorg.8.log

http://pastie.org/private/sx9ywyhodvsnjsrimlla

Last edited by noirvent (2014-07-21 14:44:43)

Offline

#4 2014-07-21 22:39:04

noirvent
Member
Registered: 2014-07-21
Posts: 8

Re: [SOLVED] Xorg / Bumblebee on Asus N56V

Little up here.


I've tried many thing to resolve my problem, like using nouveau etc., but nothing good.

Then I re-installed the Intel/Nvidia Bumblebee initial lot.

I was wondering if the prob was my wrong configuration of Xorg, so I copied the default .xinitrc and startx and some ugly white and green window showed up, yaaay.

And then I realized I was probably editing the wrong conf file since no matter I was messing with /etc/X11/xorg.conf.d/. But Bumblebee seems to use /etc/bumblebee/xorg,conf.nvidia

Since the problem was he could not find the device to use for secondary screen, I uncommented the BusID line (after checking it was the right device with lspci)

Section "ServerLayout"
    Identifier  "Layout0"
    Option      "AutoAddDevices" "false"
    Option      "AutoAddGPU" "false"
EndSection

Section "Device"
    Identifier  "DiscreteNvidia"
    Driver      "nvidia"
    VendorName  "NVIDIA Corporation"

#   If the X server does not automatically detect your VGA device,
#   you can manually set it here.
#   To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
#   as you see in the commented example.
#   This Setting may be needed in some platforms with more than one
#   nvidia card, which may confuse the proprietary driver (e.g.,
#   trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
   BusID "PCI:01:00:0"

#   Setting ProbeAllGpus to false prevents the new proprietary driver
#   instance spawned to try to control the integrated graphics card,
#   which is already being managed outside bumblebee.
#   This option doesn't hurt and it is required on platforms running
#   more than one nvidia graphics card with the proprietary driver.
#   (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
#   If this option is not set, the new Xorg may blacken the screen and
#   render it unusable (unless you have some way to run killall Xorg).
    Option "ProbeAllGpus" "false"

    Option "NoLogo" "true"
    Option "UseEDID" "false"
    Option "UseDisplayDevice" "none"
EndSection

Pastie link

Aaand... The error message updated. now it's

Script started on Tue 22 Jul 2014 12:27:21 AM CEST                                                                                                                                                                                                                                      
 
# optirun -vv glxinfo

[ 1733.273715] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 1733.274423] [DEBUG]optirun version 3.2.1 starting...
[ 1733.274457] [DEBUG]Active configuration:
[ 1733.274476] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 1733.274495] [DEBUG] X display: :8
[ 1733.274513] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia:/usr/lib32/nvidia
[ 1733.274533] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 1733.274552] [DEBUG] Accel/display bridge: auto
[ 1733.274571] [DEBUG] VGL Compression: proxy
[ 1733.274588] [DEBUG] VGLrun extra options: 
[ 1733.274607] [DEBUG] Primus LD Path: /usr/lib/primus:/usr/lib32/primus
[ 1733.274660] [DEBUG]Using auto-detected bridge virtualgl
[ 1733.286662] [INFO]Response: No - error: [XORG] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA GPU at PCI:1:0:0.  Please

[ 1733.286689] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA GPU at PCI:1:0:0.  Please

[ 1733.286710] [DEBUG]Socket closed.
[ 1733.286743] [ERROR]Aborting because fallback start is disabled.
[ 1733.286762] [DEBUG]Killing all remaining processes.

Script done on Tue 22 Jul 2014 12:27:30 AM CEST

New Xorg.0.log : http://pastie.org/private/1zcvxvvnnm8wrtz7uvtpia
New Xorg.8.log : http://pastie.org/private/zlbiqgr5hozngzt8qlhkvq  (This one seems to have more usable informations)

So the new problem is : Failed to initialize the NVIDIA GPU at PCI:1:0:0

as ArchLinux Wiki Bumblebee Troubleshooting say, I should add rcutree.rcu_idle_gp_delay=1 to my kernel parameters. The source link of this fix talk about grub files to edit, but I'm using Gummiboot and don't know how to edit kernel parameters

(and now whenever I use startx or optirun, the nvidia's card fan start working like crazy until I shutdown yikes)


EDIT : found https://wiki.archlinux.org/index.php/ke … #Gummiboot

tried adding on boot (one shot).

copied /etc/skel/.xinitrc, uncommted the gnome-session line

startx

Yay, Gnome 3 ! But I don't have any mouse.

optimus still failed though

EDIT 2 : Seems like working (Gnome 3, though. Optirun is a matter of time. Thanks for... the help, I guess

Last edited by noirvent (2014-07-22 02:00:54)

Offline

#5 2014-07-22 10:02:35

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,013

Re: [SOLVED] Xorg / Bumblebee on Asus N56V

glad you solved it, noirvent.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB