You are not logged in.
Hi all,
I'm trying to get X working on a Macbook Pro with a busted discrete graphics card. I've tried so many things but no matter what I do I end up with startx hanging.
I have these graphics cards:
[macbook@macbook ~]$ lspci -k | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 18)
01:00.0 VGA compatible controller: NVIDIA Corporation GT216M [GeForce GT 330M] (rev a2)
I have the following in /etc/X11/xorg.conf.d/20-intel.conf - suggested by http://carlosbecker.com/posts/how-to-en … archlinux/
Section "Device"
Identifier "card0"
Driver "intel"
VendorName "Intel Corporation"
BoardName "Intel Corporation N10 Family Integrated Graphics Controller"
BusID "PCI:0:2:0"
Option "SwapbuffersWait" "false"
EndSection
I boot with the following kernel paramaters (UEFI)
root=/dev/sda2 rw modprobe.blacklist=nouveau
If I don't blacklist nouveau Arch hangs during boot.
When I run startx it prints the normal startx information and then just hangs. If I ssh in and run ps I can see the following:
root 333 0.0 0.1 89852 4144 ? Ss 03:42 0:00 login -- macbook
macbook 351 0.0 0.0 15868 3852 tty1 Ss 03:42 0:00 \_ -bash
macbook 934 0.0 0.0 13612 3180 tty1 S+ 04:10 0:00 \_ /bin/sh /usr/bin/startx
macbook 956 0.0 0.0 15928 2032 tty1 S+ 04:10 0:00 \_ xinit /home/macbook/.xinitrc -- /etc/X11/xinit/xserverrc :0 vt1 -auth /t
macbook 957 0.6 0.4 170884 18280 tty1 S<l 04:10 0:00 \_ /usr/lib/xorg-server/Xorg -nolisten tcp :0 vt1 -auth /tmp/serverauth
macbook 960 0.0 0.2 151712 10320 tty1 S 04:10 0:00 \_ i3
so it looks like i3 does in fact start, however if I run a strace on it I see:
[macbook@macbook xorg.conf.d]$ sudo strace -p `pidof i3`
Process 960 attached
recvmsg(4, 0x7fff1a78b760, 0) = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(7, 0x7fff1a78b740, 0) = -1 EAGAIN (Resource temporarily unavailable)
epoll_wait(5,
so it looks like it's hanging on something, not sure what to make of that.
If I instead try to run a random graphical application with xinit, eg "xinit /usr/bin/terminator -- :0" it gives up after around 10 seconds. The X log contains:
[macbook@macbook ~]$ cat ~/.local/share/xorg/Xorg.0.log
[ 2023.130]
X.Org X Server 1.17.4
Release Date: 2015-10-28
[ 2023.135] X Protocol Version 11, Revision 0
[ 2023.137] Build Operating System: Linux 4.2.5-1-ARCH x86_64
[ 2023.138] Current Operating System: Linux macbook 4.2.5-1-ARCH #1 SMP PREEMPT Tue Oct 27 08:13:28 CET 2015 x86_64
[ 2023.138] Kernel command line: initrd=\initramfs-linux.img root=/dev/sda2 rw modprobe.blacklist=nouveau
[ 2023.140] Build Date: 01 November 2015 10:36:50AM
[ 2023.141]
[ 2023.142] Current version of pixman: 0.32.8
[ 2023.145] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 2023.145] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 2023.149] (==) Log file: "/home/macbook/.local/share/xorg/Xorg.0.log", Time: Tue Nov 10 04:15:43 2015
[ 2023.150] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 2023.151] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 2023.152] (==) No Layout section. Using the first Screen section.
[ 2023.152] (==) No screen section available. Using defaults.
[ 2023.152] (**) |-->Screen "Default Screen Section" (0)
[ 2023.152] (**) | |-->Monitor "<default monitor>"
[ 2023.152] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 2023.152] (**) | |-->Device "card0"
[ 2023.152] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 2023.152] (==) Automatically adding devices
[ 2023.152] (==) Automatically enabling devices
[ 2023.152] (==) Automatically adding GPU devices
[ 2023.152] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[ 2023.152] Entry deleted from font path.
[ 2023.152] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[ 2023.152] Entry deleted from font path.
[ 2023.152] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[ 2023.152] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[ 2023.152] Entry deleted from font path.
[ 2023.152] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[ 2023.152] (==) FontPath set to:
/usr/share/fonts/misc/,
/usr/share/fonts/TTF/,
/usr/share/fonts/OTF/
[ 2023.152] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 2023.152] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 2023.152] (II) Loader magic: 0x817d60
[ 2023.152] (II) Module ABI versions:
[ 2023.152] X.Org ANSI C Emulation: 0.4
[ 2023.152] X.Org Video Driver: 19.0
[ 2023.152] X.Org XInput driver : 21.1
[ 2023.152] X.Org Server Extension : 9.0
[ 2023.156] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[ 2023.156] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 2023.157] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 8 paused 0
[ 2023.159] (--) PCI: (0:0:2:0) 8086:0046:0000:0000 rev 24, Mem @ 0xd3400000/4194304, 0xb0000000/268435456, I/O @ 0x00003130/8
[ 2023.159] (--) PCI:*(0:1:0:0) 10de:0a29:106b:00c7 rev 162, Mem @ 0xd2000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x00002000/128, BIOS @ 0x????????/524288
[ 2023.159] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 2023.159] (II) LoadModule: "glx"
[ 2023.159] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 2023.160] (II) Module glx: vendor="X.Org Foundation"
[ 2023.161] compiled for 1.17.4, module version = 1.0.0
[ 2023.161] ABI class: X.Org Server Extension, version 9.0
[ 2023.161] (==) AIGLX enabled
[ 2023.161] (II) LoadModule: "intel"
[ 2023.161] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 2023.161] (II) Module intel: vendor="X.Org Foundation"
[ 2023.161] compiled for 1.17.2, module version = 2.99.917
[ 2023.161] Module class: X.Org Video Driver
[ 2023.161] ABI class: X.Org Video Driver, version 19.0
[ 2023.161] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[ 2023.161] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[ 2023.161] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[ 2023.161] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
[ 2023.161] (EE)
Fatal server error:
[ 2023.161] (EE) xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)
[ 2023.161] (EE)
[ 2023.161] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 2023.161] (EE) Please also check the log file at "/home/macbook/.local/share/xorg/Xorg.0.log" for additional information.
[ 2023.161] (EE)
Not sure what to make of this error "(EE) xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)" as tty0 does exist:
[macbook@macbook ~]$ ls /dev/tty0 -l
crw--w---- 1 root tty 4, 0 Nov 10 03:42 /dev/tty0
Basically I have no idea what's wrong or where I can look for further information. Any advice would be greatly appreciated!
Offline
Possible duplicate of [SOLVED] startx: xf86OpenConsole: Cannot open /dev/tty0
(I know 2007 seems long ago, but some things never change, do they?)
Offline