Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X doesn't start, doesn't find modules (solved)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Spanik
l33t
l33t


Joined: 12 Dec 2003
Posts: 940
Location: Belgium

PostPosted: Wed Jan 30, 2013 8:28 pm    Post subject: X doesn't start, doesn't find modules (solved) Reply with quote

I'm setting up a Lenovo Thinkpad Edge E530. But I can't get past startx.

So far I have followed the "X server configuration HOWTO":
- disables all framebuffer entries in the kernel
- enables event interface
- framebuffer console support enabled
- enabled everything for Intel
- enabled nouveau

I enabled both Intel and nouveau as this laptop has an integrated intel video and a Geforce GT635M. The kernel setting for switching between both is set. (took me some time to figure that out).

/etc/portage/make.conf looks like this:

Code:

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="X alsa audiofile bindist caps cdda cdparanoia cups dri dvb dvd dvdr exif ffmpeg fftw flac grub ipv6 jack jpeg kde ladspa lash mmx -mono mp3 mpeg nptl ogg openal opengl -oss pdf png posix postscript -pulseaudio qt4 raw scanner shorten sound sse sse2 sse3 subversion threads tiff truetype udev v4l -wayland xine"
MAKEOPTS="-j5"
INPUT_DEVICES="evdev synaptics virtualbox"
VIDEO_CARDS="nouveau virtualbox"


Is it normal that I don't have a /etc/make.conf? A bit late to ask but this is different from all other Gentoo installs I ever did (some years ago now).

Startx gives the following Xorg.0.log

Code:

[    25.451]
X.Org X Server 1.12.4
Release Date: 2012-08-27
[    25.451] X Protocol Version 11, Revision 0
[    25.451] Build Operating System: Linux 3.6.11-gentoo x86_64 Gentoo
[    25.451] Current Operating System: Linux think 3.6.11-gentoo #6 SMP PREEMPT Thu Jan 31 04:38:17 CET 2013 x86_64
[    25.451] Kernel command line: root=/dev/sda3
[    25.451] Build Date: 31 January 2013  04:31:45AM
[    25.451] 
[    25.451] Current version of pixman: 0.28.0
[    25.452]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[    25.452] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    25.452] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Jan 31 04:41:05 2013
[    25.474] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    25.474] (==) No Layout section.  Using the first Screen section.
[    25.474] (==) No screen section available. Using defaults.
[    25.474] (**) |-->Screen "Default Screen Section" (0)
[    25.474] (**) |   |-->Monitor "<default monitor>"
[    25.487] (==) No monitor specified for screen "Default Screen Section".
   Using a default monitor configuration.
[    25.487] (==) Automatically adding devices
[    25.487] (==) Automatically enabling devices
[    25.547] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[    25.547]    Entry deleted from font path.
[    25.547] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[    25.547]    Entry deleted from font path.
[    25.547] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[    25.547]    Entry deleted from font path.
[    25.553] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[    25.553]    Entry deleted from font path.
[    25.553]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[    25.553] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[    25.553]    Entry deleted from font path.
[    25.553]    (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[    25.553] (==) FontPath set to:
   /usr/share/fonts/misc/
[    25.553] (==) ModulePath set to "/usr/lib64/xorg/modules"
[    25.553] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[    25.553] (II) Loader magic: 0x7d0ac0
[    25.553] (II) Module ABI versions:
[    25.553]    X.Org ANSI C Emulation: 0.4
[    25.553]    X.Org Video Driver: 12.1
[    25.553]    X.Org XInput driver : 16.0
[    25.553]    X.Org Server Extension : 6.0
[    25.554] (--) PCI:*(0:0:2:0) 8086:0166:17aa:5001 rev 9, Mem @ 0xe1400000/4194304, 0xd0000000/268435456, I/O @ 0x00006000/64
[    25.554] (--) PCI: (0:1:0:0) 10de:0de3:17aa:5001 rev 161, Mem @ 0xe0000000/16777216, 0xa0000000/536870912, 0xc0000000/33554432, I/O @ 0x00005000/128, BIOS @ 0x????????/524288
[    25.554] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    25.554] (II) LoadModule: "extmod"
[    25.593] (II) Loading /usr/lib64/xorg/modules/extensions/libextmod.so
[    25.606] (II) Module extmod: vendor="X.Org Foundation"
[    25.606]    compiled for 1.12.4, module version = 1.0.0
[    25.606]    Module class: X.Org Server Extension
[    25.606]    ABI class: X.Org Server Extension, version 6.0
[    25.606] (II) Loading extension MIT-SCREEN-SAVER
[    25.606] (II) Loading extension XFree86-VidModeExtension
[    25.606] (II) Loading extension XFree86-DGA
[    25.606] (II) Loading extension DPMS
[    25.606] (II) Loading extension XVideo
[    25.606] (II) Loading extension XVideo-MotionCompensation
[    25.606] (II) Loading extension X-Resource
[    25.606] (II) LoadModule: "dbe"
[    25.607] (II) Loading /usr/lib64/xorg/modules/extensions/libdbe.so
[    25.607] (II) Module dbe: vendor="X.Org Foundation"
[    25.607]    compiled for 1.12.4, module version = 1.0.0
[    25.607]    Module class: X.Org Server Extension
[    25.607]    ABI class: X.Org Server Extension, version 6.0
[    25.607] (II) Loading extension DOUBLE-BUFFER
[    25.607] (II) LoadModule: "glx"
[    25.607] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[    25.617] (II) Module glx: vendor="X.Org Foundation"
[    25.617]    compiled for 1.12.4, module version = 1.0.0
[    25.617]    ABI class: X.Org Server Extension, version 6.0
[    25.617] (==) AIGLX enabled
[    25.618] (II) Loading extension GLX
[    25.618] (II) LoadModule: "record"
[    25.618] (II) Loading /usr/lib64/xorg/modules/extensions/librecord.so
[    25.627] (II) Module record: vendor="X.Org Foundation"
[    25.627]    compiled for 1.12.4, module version = 1.13.0
[    25.627]    Module class: X.Org Server Extension
[    25.627]    ABI class: X.Org Server Extension, version 6.0
[    25.627] (II) Loading extension RECORD
[    25.627] (II) LoadModule: "dri"
[    25.627] (II) Loading /usr/lib64/xorg/modules/extensions/libdri.so
[    25.644] (II) Module dri: vendor="X.Org Foundation"
[    25.644]    compiled for 1.12.4, module version = 1.0.0
[    25.644]    ABI class: X.Org Server Extension, version 6.0
[    25.644] (II) Loading extension XFree86-DRI
[    25.644] (II) LoadModule: "dri2"
[    25.645] (II) Loading /usr/lib64/xorg/modules/extensions/libdri2.so
[    25.645] (II) Module dri2: vendor="X.Org Foundation"
[    25.645]    compiled for 1.12.4, module version = 1.2.0
[    25.645]    ABI class: X.Org Server Extension, version 6.0
[    25.645] (II) Loading extension DRI2
[    25.645] (==) Matched intel as autoconfigured driver 0
[    25.645] (==) Matched vesa as autoconfigured driver 1
[    25.645] (==) Matched fbdev as autoconfigured driver 2
[    25.645] (==) Assigned the driver to the xf86ConfigLayout
[    25.645] (II) LoadModule: "intel"
[    25.646] (WW) Warning, couldn't open module intel
[    25.646] (II) UnloadModule: "intel"
[    25.646] (II) Unloading intel
[    25.646] (EE) Failed to load module "intel" (module does not exist, 0)
[    25.646] (II) LoadModule: "vesa"
[    25.646] (WW) Warning, couldn't open module vesa
[    25.646] (II) UnloadModule: "vesa"
[    25.646] (II) Unloading vesa
[    25.646] (EE) Failed to load module "vesa" (module does not exist, 0)
[    25.646] (II) LoadModule: "fbdev"
[    25.646] (WW) Warning, couldn't open module fbdev
[    25.646] (II) UnloadModule: "fbdev"
[    25.646] (II) Unloading fbdev
[    25.646] (EE) Failed to load module "fbdev" (module does not exist, 0)
[    25.646] (EE) No drivers available.
[    25.646]
Fatal server error:
[    25.646] no screens found
[    25.646]
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
[    25.646] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    25.646]


I tried to follow the HOWTO to set up xorg.conf manually but the strange thig is that I don't have the /etc/X11/xorg.conf.d/ directory. There is only Sessions, xinit directories and chooser.sh and startDM.sh. I only can find /usr/share/X11/xorg.conf.d/ and that contains 10-evdev.conf and 50-synaptics.conf.

If it helps lspci:
Code:

00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
00:1c.3 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 4 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM77 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation Device 0de3 (rev a1)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01)
03:00.0 Network controller: Intel Corporation Centrino Wireless-N 2230 (rev c4)
0c:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller (rev 07)


I wouldn't mind if only the nvidia card worked

uname -a: Linux think 3.6.11-gentoo #6 SMP PREEMPT Thu Jan 31 04:38:17 CET 2013 x86_64 Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz GenuineIntel GNU/Linux
_________________
Expert in non-working solutions


Last edited by Spanik on Thu Jan 31, 2013 7:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
billium
Apprentice
Apprentice


Joined: 22 Mar 2003
Posts: 185

PostPosted: Wed Jan 30, 2013 9:06 pm    Post subject: Reply with quote

make.conf is in /etc/portage now.

I wonder if it is worth trying the nvidia driver for testing, if you have no wish to keep it.

I have an nvidia card and no xorg.conf.

emerge nvidia-drivers

I must admit the current version does not work for me so I use:

emerge -v =nvidia-drivers-310.19
Back to top
View user's profile Send private message
joekickass
n00b
n00b


Joined: 19 Mar 2012
Posts: 18
Location: Sweden

PostPosted: Wed Jan 30, 2013 9:31 pm    Post subject: Reply with quote

I'm actually using a similar hardware as you (Optimus, e.g. intel + nvidia) on my Arch Linux laptop. The easiest solution for me to get it to work was to remove nouveau and intel drivers and go for the nvidia blob just as billium suggests.

The big problem with nouveau for me is to get hardware acceleration to work. Currently, gnome-shell is consuming 300% CPU (I think it is hw acceleration, filed a bug here: https://bugzilla.gnome.org/show_bug.cgi?id=686218), but with nvidia blob this is not the case. Also, I had to struggle to get vga_switcheroo to work as it should...

/ Tomas
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Wed Jan 30, 2013 9:51 pm    Post subject: Reply with quote

One warning: if that's a MUX-less hardware, setting it up might be quite tricky.

But regardless, for a start add intel to VIDEO_CARDS, emerge xf86-video-intel and make sure the correct kernel bits for intel are selected too.
That way you should get at least a start.
Back to top
View user's profile Send private message
Spanik
l33t
l33t


Joined: 12 Dec 2003
Posts: 940
Location: Belgium

PostPosted: Thu Jan 31, 2013 7:25 pm    Post subject: Reply with quote

Quote:
for a start add intel to VIDEO_CARDS, emerge xf86-video-intel and make sure the correct kernel bits for intel are selected too.


That did the trick. I added intel to the VIDEO_CARDS in /etc/portage/make.conf, emerged xf86-video-intel and re-emerged xorg-server. If I now run startx I get twm. So I can continue. No idea what driver it is using richt now. But if I have some desktop I'm happy.

Thanks.
_________________
Expert in non-working solutions
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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