Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dell XPS 17 Xorg configuration
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Andrey_
n00b
n00b


Joined: 10 Feb 2010
Posts: 27

PostPosted: Wed Oct 26, 2011 10:36 pm    Post subject: Dell XPS 17 Xorg configuration Reply with quote

I have the notebook indicated in the subject, and I've a problem with mi X server.

Substantially, it doesn't run.

Here is my lspci:
Quote:
00:00.0 Host bridge: Intel Corporation Device 0104 (rev 09)
00:01.0 PCI bridge: Intel Corporation Device 0101 (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Device 0126 (rev 09)
00:16.0 Communication controller: Intel Corporation Cougar Point HECI Controller #1 (rev 04)
00:1a.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation Cougar Point High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 1 (rev b5)
00:1c.1 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 2 (rev b5)
00:1c.3 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 4 (rev b5)
00:1c.4 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 5 (rev b5)
00:1c.5 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 6 (rev b5)
00:1d.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation Device 1c4b (rev 05)
00:1f.2 SATA controller: Intel Corporation Cougar Point 6 port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation Cougar Point SMBus Controller (rev 05)
01:00.0 VGA compatible controller: nVidia Corporation Device 0dd6 (rev a1)
03:00.0 Network controller: Intel Corporation WiFi Link 1000 Series
04:00.0 USB Controller: NEC Corporation Device 0194 (rev 04)
0a:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)


and my Xorg.0.log:
Quote:
[ 503.772]
X.Org X Server 1.10.4
Release Date: 2011-08-19
[ 503.787] X Protocol Version 11, Revision 0
[ 503.792] Build Operating System: Linux 3.0.6-gentoo x86_64 Gentoo
[ 503.797] Current Operating System: Linux andrey 3.0.6-gentoo #23 SMP Wed Oct 26 23:45:01 CEST 2011 x86_64
[ 503.809] Kernel command line: root=/dev/sda4
[ 503.815] Build Date: 25 October 2011 01:58:53AM
[ 503.821]
[ 503.828] Current version of pixman: 0.22.2
[ 503.834] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 503.848] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 503.871] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Oct 27 00:26:56 2011
[ 503.945] (==) Using config file: "/etc/X11/xorg.conf"
[ 503.952] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 503.990] (==) ServerLayout "Default Layout"
[ 503.990] (**) |-->Screen "Screen0" (0)
[ 503.990] (**) | |-->Monitor "Monitor0"
[ 503.990] (**) | |-->Device "Device1"
[ 503.990] (**) |-->Input Device "Keyboard0"
[ 503.990] (**) |-->Input Device "Mouse0"
[ 503.990] (==) Automatically adding devices
[ 503.990] (==) Automatically enabling devices
[ 504.046] (==) FontPath set to:
/usr/share/fonts/misc/,
/usr/share/fonts/TTF/,
/usr/share/fonts/OTF/,
/usr/share/fonts/Type1/,
/usr/share/fonts/100dpi/,
/usr/share/fonts/75dpi/
[ 504.046] (==) ModulePath set to "/usr/lib64/xorg/modules"
[ 504.046] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[ 504.046] (WW) Disabling Keyboard0
[ 504.046] (WW) Disabling Mouse0
[ 504.046] (II) Loader magic: 0x7d9160
[ 504.046] (II) Module ABI versions:
[ 504.046] X.Org ANSI C Emulation: 0.4
[ 504.046] X.Org Video Driver: 10.0
[ 504.046] X.Org XInput driver : 12.2
[ 504.046] X.Org Server Extension : 5.0
[ 504.047] (--) PCI:*(0:0:2:0) 8086:0126:1028:04b8 rev 9, Mem @ 0xf2400000/4194304, 0xe0000000/268435456, I/O @ 0x00005000/64
[ 504.047] (--) PCI: (0:1:0:0) 10de:0dd6:1028:04b8 rev 161, Mem @ 0xf0000000/33554432, 0xc0000000/268435456, 0xd0000000/67108864, I/O @ 0x00004000/128, BIOS @ 0x????????/524288
[ 504.047] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 504.047] (WW) "dri" will not be loaded unless you've specified it to be loaded elsewhere.
[ 504.047] (II) "extmod" will be loaded by default.
[ 504.047] (II) "dbe" will be loaded by default.
[ 504.047] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[ 504.047] (II) "record" will be loaded by default.
[ 504.047] (II) "dri" will be loaded even though the default is to disable it.
[ 504.047] (II) "dri2" will be loaded by default.
[ 504.047] (II) LoadModule: "glx"
[ 504.145] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[ 504.695] (II) Module glx: vendor="NVIDIA Corporation"
[ 504.718] compiled for 4.0.2, module version = 1.0.0
[ 504.718] Module class: X.Org Server Extension
[ 504.718] (II) NVIDIA GLX Module 285.05.09 Fri Sep 23 17:51:24 PDT 2011
[ 504.718] (II) Loading extension GLX
[ 504.718] (II) LoadModule: "extmod"
[ 504.718] (II) Loading /usr/lib64/xorg/modules/extensions/libextmod.so
[ 504.733] (II) Module extmod: vendor="X.Org Foundation"
[ 504.733] compiled for 1.10.4, module version = 1.0.0
[ 504.733] Module class: X.Org Server Extension
[ 504.733] ABI class: X.Org Server Extension, version 5.0
[ 504.733] (II) Loading extension MIT-SCREEN-SAVER
[ 504.733] (II) Loading extension XFree86-VidModeExtension
[ 504.733] (II) Loading extension XFree86-DGA
[ 504.733] (II) Loading extension DPMS
[ 504.733] (II) Loading extension XVideo
[ 504.733] (II) Loading extension XVideo-MotionCompensation
[ 504.733] (II) Loading extension X-Resource
[ 504.733] (II) LoadModule: "dbe"
[ 504.734] (II) Loading /usr/lib64/xorg/modules/extensions/libdbe.so
[ 504.740] (II) Module dbe: vendor="X.Org Foundation"
[ 504.740] compiled for 1.10.4, module version = 1.0.0
[ 504.740] Module class: X.Org Server Extension
[ 504.740] ABI class: X.Org Server Extension, version 5.0
[ 504.740] (II) Loading extension DOUBLE-BUFFER
[ 504.740] (II) LoadModule: "record"
[ 504.740] (II) Loading /usr/lib64/xorg/modules/extensions/librecord.so
[ 504.741] (II) Module record: vendor="X.Org Foundation"
[ 504.741] compiled for 1.10.4, module version = 1.13.0
[ 504.741] Module class: X.Org Server Extension
[ 504.741] ABI class: X.Org Server Extension, version 5.0
[ 504.741] (II) Loading extension RECORD
[ 504.741] (II) LoadModule: "dri2"
[ 504.741] (WW) Warning, couldn't open module dri2
[ 504.741] (II) UnloadModule: "dri2"
[ 504.741] (II) Unloading dri2
[ 504.741] (EE) Failed to load module "dri2" (module does not exist, 0)
[ 504.749] (II) LoadModule: "nvidia"
[ 504.749] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[ 504.830] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 504.834] compiled for 4.0.2, module version = 1.0.0
[ 504.834] Module class: X.Org Video Driver
[ 504.851] (II) NVIDIA dlloader X Driver 285.05.09 Fri Sep 23 17:33:35 PDT 2011
[ 504.851] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 504.851] (--) using VT number 7

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


uname -r:
Quote:
3.0.6-gentoo


I know that my notebook has two video cards (integrated intel and nvidia), but I don't know how make them work.

I tried various methods, such as the nvidia-drivers emerged from portage, the intel drivers (xf86-video-intel), this drivers directly from nVidia site: http://www.nvidia.it/object/linux-display-amd64-285.05.09-driver-it.html (The last xorg log refers to this drivers). I have a 64 bit system.
I tried to follow this guide too, but with no result: http://en.gentoo-wiki.com/wiki/X.Org/nVidia_Optimus

I always obain the same error:
Quote:
[ 504.858] (EE) No devices detected.
[ 504.858]
Fatal server error:
[ 504.858] no screens found


Can anyone help me please? Thanks in advance.
Back to top
View user's profile Send private message
gentoo_dude
l33t
l33t


Joined: 08 May 2004
Posts: 645
Location: Washington, DC

PostPosted: Thu Oct 27, 2011 2:29 am    Post subject: Reply with quote

from a terminal as root run X -configure.
Copy the ~/xorg.conf.example created to /etc/X11/xorg.conf
Try starting X again.
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Thu Oct 27, 2011 12:26 pm    Post subject: Reply with quote

gentoo_dude wrote:
from a terminal as root run X -configure.
Copy the ~/xorg.conf.example created to /etc/X11/xorg.conf
Try starting X again.

Doooooon't do that!! Why do people still recommend that? It's been outdated since a loooong time.

@Andrey_: "with no result" is not really helpful. Without knowing what exactly went wrong, we can't help. One huge problem is if you ran the nvidia installer. Gentoo has it's own way of dealing with graphics libraries, running the nvidia installer screws that up. So who knows what the state of your machine is currently.
For starters, I'd forget about the nvidia card, and configure the machine for the intel card. This requires activating KMS supports in the kernel, if you haven't already, and then installing xf86-video-intel. X will then work. You do *not* need any xorg.conf for this, if you have one, remove it. Once that is working, you can go playing around with Bumblebee to get the nvidia card running.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Thu Oct 27, 2011 1:07 pm    Post subject: Reply with quote

Run
Code:
# update-pciids
to make lspci output more informative. Ensure that your kernel is configured as described in the Xorg guide http://www.gentoo.org/doc/en/xorg-config.xml

Normally you don't need any xorg.conf at all.

Note that if you have a computer with switchable graphics / NVidia Optimus, the integrated graphics will be active by default. Only if you have a BIOS option to switch to the discrete graphics you can normally use them in Linux. (bumblebee hack exists to make limited use of the discrete graphics if no BIOS switch exists)
Back to top
View user's profile Send private message
Andrey_
n00b
n00b


Joined: 10 Feb 2010
Posts: 27

PostPosted: Thu Oct 27, 2011 10:12 pm    Post subject: Reply with quote

Gusar wrote:

@Andrey_: "with no result" is not really helpful.

I'm sorry. I mean "with same result", in fact after following that guide I obtained the same error 'No found devices ...', and also an error related to a missing 'module i915', if I remember well.

Gusar wrote:

So who knows what the state of your machine is currently.

How can I restore it?

Gusar wrote:

For starters, I'd forget about the nvidia card, and configure the machine for the intel card. This requires activating KMS supports in the kernel, if you haven't already, and then installing xf86-video-intel. X will then work. You do *not* need any xorg.conf for this, if you have one, remove it. Once that is working, you can go playing around with Bumblebee to get the nvidia card running.

So, I have to activating KMS and use Intel drivers. Can I follow this guide? http://en.gentoo-wiki.com/wiki/Intel_GMA (I tried it but i can't see the 'i915 driver' menu entry, even though I set those ACPI option to built-in [i can't toggle those at all]...)

chithanh wrote:
Run
Code:
# update-pciids
to make lspci output more informative. Ensure that your kernel is configured as described in the Xorg guide http://www.gentoo.org/doc/en/xorg-config.xml

Quote:
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5)
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5)
00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b5)
00:1c.5 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 (rev b5)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation HM67 Express Chipset Family LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
01:00.0 VGA compatible controller: nVidia Corporation Device 0dd6 (rev a1)
03:00.0 Network controller: Intel Corporation Centrino Wireless-N 1000
04:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04)
0a:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)


chithanh wrote:
Note that if you have a computer with switchable graphics / NVidia Optimus, the integrated graphics will be active by default. Only if you have a BIOS option to switch to the discrete graphics you can normally use them in Linux. (bumblebee hack exists to make limited use of the discrete graphics if no BIOS switch exists)

I don't have this BIOS option.
I don't understand, can I use bumblebee without this option, or not? If yes, how can I configure it?

I have another important question. With Intel Graphics can I enable effects such as window transparency, or Virtualbox video drivers for the guest systems? (I work with Fluxbox)
If this is possible, I don't need to activate the nvidia card at all (I'll use it only on Windows), so I save my battery life too.

Thank you all for the help, and sorry for my crappy English. I'm Italian, but I prefer this forum. :P


Last edited by Andrey_ on Thu Oct 27, 2011 10:24 pm; edited 4 times in total
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Thu Oct 27, 2011 10:16 pm    Post subject: Reply with quote

Before you try bumblebee, you should get the "normal" graphics to work. VIDEO_CARDS="intel" must be set in make.conf (and re-emerge xorg-drivers if it wasn't set before).
Then you must have the kernel configured as in the xorg-config guide linked above.

Intel graphics support OpenGL desktop effects fine. Regarding virtualbox I can't say.
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Thu Oct 27, 2011 10:28 pm    Post subject: Reply with quote

Andrey_ wrote:
How can I restore it?

No idea really. I'd say run "NVIDIA-Linux-x86_64-285.05.09.run --uninstall" and then emerge mesa. Hopefully it will do the trick.

Andrey_ wrote:
So, I have to activating KMS and use Intel drivers. Can I follow this guide? http://en.gentoo-wiki.com/wiki/Intel_GMA

Skip the parts about xorg.conf, you don't need an xorg.conf for intel (remove it if you already have one). The rest is ok.

Andrey_ wrote:
I don't have this BIOS option.
I don't understand, can I use bumblebee without this option, or not? How can I configure it?

Bumblebee was created exactly for machines like yours, which do not have a bios option. Setting it up is tricky. Can't help you there though, as I've never done it myself.

Andrey_ wrote:
I have another important question. With Intel Graphics can I enable effects such as window transparency, or Virtualbox video drivers for the guest systems? (I work with Fluxbox)
If this is possible, I don't need to activate the nvidia card at all (I'll use it only on Windows), so I save my battery life too.

A Virtualbox guest will use it's own driver, it has nothing to do with what card your machine has. Intel graphics is capable of the transparency stuff, yes, so it seems you don't need the nvidia card and so don't need to care about bumblebee. The problem is that the nvidia card is activated even if you don't use it. Deactivating it is usually done with acpi_call. That's again something I don't have experience yet, so do a search on how to use acpi_call.
Back to top
View user's profile Send private message
Andrey_
n00b
n00b


Joined: 10 Feb 2010
Posts: 27

PostPosted: Thu Oct 27, 2011 10:49 pm    Post subject: Reply with quote

Yes, it works great with only Intel card following that guide, so it can be considered solved.

I'll try Virtualbox and other things and I will know you the results (if I need bumblebbe or not).


Thanks for all the helps! :D
Back to top
View user's profile Send private message
Andrey_
n00b
n00b


Joined: 10 Feb 2010
Posts: 27

PostPosted: Thu Oct 27, 2011 10:54 pm    Post subject: Reply with quote

Gusar wrote:
Andrey_ wrote:
How can I restore it?

No idea really. I'd say run "NVIDIA-Linux-x86_64-285.05.09.run --uninstall" and then emerge mesa. Hopefully it will do the trick.

Fortunately it wasn't necessary.

In order, I run 'emerge --unmerge nvidia-drivers', removed xorg.conf files, set VIDEO_CARDS to 'intel', configured the kernel and the modules ('i915 driver' menu entry has a different name in 3.0 kernel), rebooted with new kernel, 'eselected' xorg-x11 for opengl and re-emerged xorg-drivers.

That's all. :) Thanks again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum