You are not logged in.

#1 2011-07-28 05:11:56

ldb88
Member
Registered: 2010-06-20
Posts: 6

[SOLVED] Trouble starting Xorg on Macbook Pro 7,1

I'm trying to set up Xorg on my 13" Macbook Pro 7,1.  Every time I run startx, I get a blank screen and have to do a hard reset.  This is on a brand new install.  I've installed the wireless drivers, connected to the network, upgraded any packages needing it (pacman -Syuu), installed vim and yaourt, and created a non-privileged user.  I did not upgrade kernel26 or kernel26-headers because they fail to boot (I think I need the physical mode patch).

Here's what I've done so far:

pacman -S xorg-server xorg-utils xorg-xinit xorg-twm xterm
pacman -S nvidia nvidia-utils
(reboot)
nvidia-xconfig
pacman -S acpid hal
/etc/rc.d/hal start
(log in as non-privileged user)
startx

The screen goes black, and then nothing happens.  I've tried it both with and without acpid and hal.

Here is my xorg.conf:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 280.11  (buildmeister@swio-display-x86-rhel47-07.nvidia.com)  Thu Jul 21 14:16:58 PDT 2011

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

And my Xorg.0.log:

[   237.871] 
X.Org X Server 1.10.3
Release Date: 2011-07-08
[   237.871] X Protocol Version 11, Revision 0
[   237.871] Build Operating System: Linux 2.6.39-ARCH x86_64 
[   237.872] Current Operating System: Linux jhallLinux 2.6.39-ARCH #1 SMP PREEMPT Mon Jun 6 22:37:55 CEST 2011 x86_64
[   237.872] Kernel command line: BOOT_IMAGE=/boot/vmlinuz26 root=/dev/sda3 reboot=pci
[   237.872] Build Date: 09 July 2011  07:52:32AM
[   237.873]  
[   237.873] Current version of pixman: 0.22.2
[   237.873]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[   237.873] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   237.874] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Jul 27 21:24:48 2011
[   237.889] (==) Using config file: "/etc/X11/xorg.conf"
[   237.889] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   237.916] (==) ServerLayout "Layout0"
[   237.916] (**) |-->Screen "Screen0" (0)
[   237.916] (**) |   |-->Monitor "Monitor0"
[   237.916] (**) |   |-->Device "Device0"
[   237.916] (**) |-->Input Device "Keyboard0"
[   237.916] (**) |-->Input Device "Mouse0"
[   237.917] (==) Automatically adding devices
[   237.917] (==) Automatically enabling devices
[   237.949] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[   237.949]     Entry deleted from font path.
[   237.949] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[   237.949]     Entry deleted from font path.
[   237.949] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[   237.949]     Entry deleted from font path.
[   237.949] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[   237.950]     Entry deleted from font path.
[   237.950]     (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[   237.950] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[   237.950]     Entry deleted from font path.
[   237.950]     (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[   237.950] (==) FontPath set to:
    /usr/share/fonts/misc/
[   237.950] (==) ModulePath set to "/usr/lib/xorg/modules"
[   237.950] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[   237.950] (WW) Disabling Keyboard0
[   237.950] (WW) Disabling Mouse0
[   237.950] (II) Loader magic: 0x7d3440
[   237.950] (II) Module ABI versions:
[   237.950]     X.Org ANSI C Emulation: 0.4
[   237.950]     X.Org Video Driver: 10.0
[   237.950]     X.Org XInput driver : 12.2
[   237.950]     X.Org Server Extension : 5.0
[   237.951] (--) PCI:*(0:4:0:0) 10de:08a0:106b:00c2 rev 162, Mem @ 0xd2000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x00001000/128, BIOS @ 0x????????/131072
[   237.952] (II) Open ACPI successful (/var/run/acpid.socket)
[   237.952] (II) LoadModule: "extmod"
[   237.959] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
[   237.967] (II) Module extmod: vendor="X.Org Foundation"
[   237.967]     compiled for 1.10.3, module version = 1.0.0
[   237.967]     Module class: X.Org Server Extension
[   237.967]     ABI class: X.Org Server Extension, version 5.0
[   237.967] (II) Loading extension MIT-SCREEN-SAVER
[   237.967] (II) Loading extension XFree86-VidModeExtension
[   237.967] (II) Loading extension XFree86-DGA
[   237.967] (II) Loading extension DPMS
[   237.967] (II) Loading extension XVideo
[   237.967] (II) Loading extension XVideo-MotionCompensation
[   237.967] (II) Loading extension X-Resource
[   237.967] (II) LoadModule: "dbe"
[   237.967] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
[   237.968] (II) Module dbe: vendor="X.Org Foundation"
[   237.968]     compiled for 1.10.3, module version = 1.0.0
[   237.968]     Module class: X.Org Server Extension
[   237.968]     ABI class: X.Org Server Extension, version 5.0
[   237.968] (II) Loading extension DOUBLE-BUFFER
[   237.968] (II) LoadModule: "glx"
[   237.968] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   238.562] (II) Module glx: vendor="NVIDIA Corporation"
[   238.569]     compiled for 4.0.2, module version = 1.0.0
[   238.569]     Module class: X.Org Server Extension
[   238.569] (II) NVIDIA GLX Module  280.11  Thu Jul 21 14:13:06 PDT 2011
[   238.570] (II) Loading extension GLX
[   238.570] (II) LoadModule: "record"
[   238.570] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
[   238.578] (II) Module record: vendor="X.Org Foundation"
[   238.578]     compiled for 1.10.3, module version = 1.13.0
[   238.578]     Module class: X.Org Server Extension
[   238.578]     ABI class: X.Org Server Extension, version 5.0
[   238.578] (II) Loading extension RECORD
[   238.578] (II) LoadModule: "dri"
[   238.578] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
[   238.585] (II) Module dri: vendor="X.Org Foundation"
[   238.585]     compiled for 1.10.3, module version = 1.0.0
[   238.585]     ABI class: X.Org Server Extension, version 5.0
[   238.585] (II) Loading extension XFree86-DRI
[   238.585] (II) LoadModule: "dri2"
[   238.585] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[   238.586] (II) Module dri2: vendor="X.Org Foundation"
[   238.586]     compiled for 1.10.3, module version = 1.2.0
[   238.586]     ABI class: X.Org Server Extension, version 5.0
[   238.586] (II) Loading extension DRI2
[   238.586] (II) LoadModule: "nvidia"
[   238.607] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[   238.672] (II) Module nvidia: vendor="NVIDIA Corporation"
[   238.674]     compiled for 4.0.2, module version = 1.0.0
[   238.674]     Module class: X.Org Video Driver
[   238.701] (II) NVIDIA dlloader X Driver  280.11  Thu Jul 21 13:56:10 PDT 2011
[   238.701] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   238.701] (--) using VT number 7

[   238.751] (II) Loading sub module "fb"
[   238.751] (II) LoadModule: "fb"
[   238.751] (II) Loading /usr/lib/xorg/modules/libfb.so
[   238.762] (II) Module fb: vendor="X.Org Foundation"
[   238.762]     compiled for 1.10.3, module version = 1.0.0
[   238.762]     ABI class: X.Org ANSI C Emulation, version 0.4
[   238.762] (II) Loading sub module "wfb"
[   238.762] (II) LoadModule: "wfb"
[   238.762] (II) Loading /usr/lib/xorg/modules/libwfb.so
[   238.775] (II) Module wfb: vendor="X.Org Foundation"
[   238.775]     compiled for 1.10.3, module version = 1.0.0
[   238.775]     ABI class: X.Org ANSI C Emulation, version 0.4
[   238.775] (II) Loading sub module "ramdac"
[   238.775] (II) LoadModule: "ramdac"
[   238.775] (II) Module "ramdac" already built-in
[   238.790] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[   238.790] (II) Loading /usr/lib/xorg/modules/libwfb.so
[   238.790] (II) Loading /usr/lib/xorg/modules/libfb.so
[   238.800] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
[   238.800] (==) NVIDIA(0): RGB weight 888
[   238.800] (==) NVIDIA(0): Default visual is TrueColor
[   238.800] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[   239.489] (EE) NVIDIA(0): Failed to initialize the display subsystem for the NVIDIA
[   239.489] (EE) NVIDIA(0):     graphics device!
[   239.489] (EE) NVIDIA(0): Failed to get supported display device(s)
[   239.489] (EE) NVIDIA(0): Failed to initialize dac HAL
[   239.490] (II) UnloadModule: "nvidia"
[   239.490] (II) Unloading nvidia
[   239.490] (II) UnloadModule: "wfb"
[   239.490] (II) Unloading wfb
[   239.490] (II) UnloadModule: "fb"
[   239.490] (II) Unloading fb
[   239.490] (EE) Screen(s) found, but none have a usable configuration.
[   239.490] 
Fatal server error:
[   239.490] no screens found
[   239.490] 
Please consult the The X.Org Foundation support 
     at http://wiki.x.org
 for help. 
[   239.490] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   239.490] 

The NVIDIA page in the Arch Wiki says to comment out any occurrences of dri (and I assume dri2 as well) in xorg.conf.  As you can see, they are not in xorg.conf, but they are still being loaded.  I'm not sure where they are coming from.  I haven't messed with anything in xord.conf.d (though the 20-nvidia.conf file showed up).  I don't see any references to dri there, either.

I've also tried nvidia-beta and nvidia-utils-beta, but the same thing happens.

Does anyone know what the problem is?

Last edited by ldb88 (2011-07-30 23:56:55)

Offline

#2 2011-07-28 18:33:04

mdschechtman
Member
Registered: 2011-05-26
Posts: 14

Re: [SOLVED] Trouble starting Xorg on Macbook Pro 7,1

Have you tried starting the dbus daemon?  I believe X needs it to run.  It also might be worth checking if X if running on one of the displays.  After you run startx try hitting CTRL+ALT+F7.

Last edited by mdschechtman (2011-07-28 19:06:34)


Tide goes in, stain comes out. Never a miscommunication.

Offline

#3 2011-07-28 20:44:12

ego.abyssi
Member
Registered: 2011-07-27
Posts: 45

Re: [SOLVED] Trouble starting Xorg on Macbook Pro 7,1

On a typical setup, Ctrl+Alt+F7--or really, Alt-F7--switches to Display 0, where X will attach if you're using startx.

Probably, Display 0 is on screen after startx, and you're just not getting anything.  As long as your keyboard is binding correctly, you should be able to hit Ctrl+Alt+F1 to get back to the first terminal, assuming that is from where you started X.

Otherwise, yes, make sure dbus is installed and started.

rc.d dbus start

Or, is it--

rc.d start dbus

I've been using systemd for a while now.  Can't remember.

Also make sure dbus is in your daemons array in /etc/rc.conf.


Fortune sides with him who dares -Virgil

Offline

#4 2011-07-29 03:24:37

ldb88
Member
Registered: 2010-06-20
Posts: 6

Re: [SOLVED] Trouble starting Xorg on Macbook Pro 7,1

Got it to work using Nouveau and mesa-git from AUR (with dbus running).  Thanks for the suggestions.

In case anyone runs across this problem again, running dbus didn't help; neither did Ctrl-Alt-F1(-7).

By the way, if xorg requires dbus, why isn't it a dependency in pacman?

Offline

Board footer

Powered by FluxBB