2012/07/05

xorg-serverとかati-driversをアップデートするとXが起動しなくなった話。

x11-drivers/ati-drivers-12.6_beta 以降を入れて xorg-server もバージョンを上げると、Xが起動しなくなった。
その時のXのログ。

Xorg.0.log
[ 116.232] X.Org X Server 1.12.2 Release Date: 2012-05-29 [ 116.232] X Protocol Version 11, Revision 0 [ 116.232] Build Operating System: Linux 3.2.12-gentoo x86_64 Gentoo [ 116.232] Current Operating System: Linux kaputnik-gentoo 3.2.12-gentoo #1 SMP Tue Jun 19 23:15:38 JST 2012 x86_64 [ 116.232] Kernel command line: BOOT_IMAGE=/boot/kernel-genkernel-x86_64-3.2.12-gentoo root=UUID=708416de-8957-475f-a0a7-9bd4f3562e71 udev rootfstype=ext4 video=uvesafb:mtrr:3,ywrap,1920x1080-32@60 vga=0x37f [ 116.233] Build Date: 05 July 2012 09:20:42PM [ 116.233] [ 116.233] Current version of pixman: 0.26.2 [ 116.233] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 116.233] Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 116.233] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Jul 5 21:27:04 2012 [ 116.233] (==) Using system config directory "/usr/share/X11/xorg.conf.d" [ 116.233] (==) No Layout section. Using the first Screen section. [ 116.233] (==) No screen section available. Using defaults. [ 116.233] (**) |-->Screen "Default Screen Section" (0) [ 116.233] (**) | |-->Monitor "" [ 116.233] (==) No monitor specified for screen "Default Screen Section". Using a default monitor configuration. [ 116.233] (==) Automatically adding devices [ 116.233] (==) Automatically enabling devices [ 116.233] (==) 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/ [ 116.233] (==) ModulePath set to "/usr/lib64/xorg/modules" [ 116.233] (II) The server relies on udev to provide the list of input devices. If no devices become available, reconfigure udev or disable AutoAddDevices. [ 116.233] (II) Loader magic: 0x7c6ac0 [ 116.233] (II) Module ABI versions: [ 116.233] X.Org ANSI C Emulation: 0.4 [ 116.233] X.Org Video Driver: 12.0 [ 116.233] X.Org XInput driver : 16.0 [ 116.233] X.Org Server Extension : 6.0 [ 116.234] (--) PCI:*(0:0:2:0) 8086:0102:1458:d000 rev 9, Mem @ 0xfb800000/4194304, 0xe0000000/268435456, I/O @ 0x0000ff00/64 [ 116.234] (II) Open ACPI successful (/var/run/acpid.socket) [ 116.234] (II) LoadModule: "extmod" [ 116.234] (II) Loading /usr/lib64/xorg/modules/extensions/libextmod.so [ 116.234] (II) Module extmod: vendor="X.Org Foundation" [ 116.234] compiled for 1.12.2, module version = 1.0.0 [ 116.234] Module class: X.Org Server Extension [ 116.234] ABI class: X.Org Server Extension, version 6.0 [ 116.234] (II) Loading extension MIT-SCREEN-SAVER [ 116.234] (II) Loading extension XFree86-VidModeExtension [ 116.234] (II) Loading extension XFree86-DGA [ 116.234] (II) Loading extension DPMS [ 116.234] (II) Loading extension XVideo [ 116.234] (II) Loading extension XVideo-MotionCompensation [ 116.234] (II) Loading extension X-Resource [ 116.234] (II) LoadModule: "dbe" [ 116.234] (II) Loading /usr/lib64/xorg/modules/extensions/libdbe.so [ 116.234] (II) Module dbe: vendor="X.Org Foundation" [ 116.234] compiled for 1.12.2, module version = 1.0.0 [ 116.234] Module class: X.Org Server Extension [ 116.234] ABI class: X.Org Server Extension, version 6.0 [ 116.234] (II) Loading extension DOUBLE-BUFFER [ 116.234] (II) LoadModule: "glx" [ 116.234] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so [ 116.234] (II) Module glx: vendor="X.Org Foundation" [ 116.234] compiled for 1.12.2, module version = 1.0.0 [ 116.234] ABI class: X.Org Server Extension, version 6.0 [ 116.234] (==) AIGLX enabled [ 116.234] (II) Loading extension GLX [ 116.234] (II) LoadModule: "record" [ 116.234] (II) Loading /usr/lib64/xorg/modules/extensions/librecord.so [ 116.234] (II) Module record: vendor="X.Org Foundation" [ 116.234] compiled for 1.12.2, module version = 1.13.0 [ 116.234] Module class: X.Org Server Extension [ 116.234] ABI class: X.Org Server Extension, version 6.0 [ 116.234] (II) Loading extension RECORD [ 116.235] (II) LoadModule: "dri" [ 116.235] (II) Loading /usr/lib64/xorg/modules/extensions/libdri.so [ 116.235] (II) Module dri: vendor="X.Org Foundation" [ 116.235] compiled for 1.12.2, module version = 1.0.0 [ 116.235] ABI class: X.Org Server Extension, version 6.0 [ 116.235] (II) Loading extension XFree86-DRI [ 116.235] (II) LoadModule: "dri2" [ 116.235] (II) Loading /usr/lib64/xorg/modules/extensions/libdri2.so [ 116.235] (II) Module dri2: vendor="X.Org Foundation" [ 116.235] compiled for 1.12.2, module version = 1.2.0 [ 116.235] ABI class: X.Org Server Extension, version 6.0 [ 116.235] (II) Loading extension DRI2 [ 116.235] (==) Matched intel as autoconfigured driver 0 [ 116.235] (==) Matched vesa as autoconfigured driver 1 [ 116.235] (==) Matched fbdev as autoconfigured driver 2 [ 116.235] (==) Assigned the driver to the xf86ConfigLayout [ 116.235] (II) LoadModule: "intel" [ 116.235] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so [ 116.235] (II) Module intel: vendor="X.Org Foundation" [ 116.235] compiled for 1.11.4, module version = 2.19.0 [ 116.235] Module class: X.Org Video Driver [ 116.235] ABI class: X.Org Video Driver, version 11.0 [ 116.235] (EE) module ABI major version (11) doesn't match the server's version (12) [ 116.235] (II) UnloadModule: "intel" [ 116.235] (II) Unloading intel [ 116.235] (EE) Failed to load module "intel" (module requirement mismatch, 0) [ 116.235] (II) LoadModule: "vesa" [ 116.235] (WW) Warning, couldn't open module vesa [ 116.235] (II) UnloadModule: "vesa" [ 116.235] (II) Unloading vesa [ 116.235] (EE) Failed to load module "vesa" (module does not exist, 0) [ 116.235] (II) LoadModule: "fbdev" [ 116.236] (WW) Warning, couldn't open module fbdev [ 116.236] (II) UnloadModule: "fbdev" [ 116.236] (II) Unloading fbdev [ 116.236] (EE) Failed to load module "fbdev" (module does not exist, 0) [ 116.236] (EE) No drivers available. [ 116.236] Fatal server error: [ 116.236] no screens found [ 116.236] Please consult the The X.Org Foundation support at http://wiki.x.org for help. [ 116.236] Please also check the log file at "/var/log/Xorg.0.log" for additional information. [ 116.236]

ログの [ 116.235] (EE) module ABI major version (11) doesn't match the server's version (12) の部分から、モジュールがコンパイルされた時点とati-drivers, xorg-server等がコンパイルされた時点での gccのバージョンか何かの違いが原因だと推測。
$ qlist -I -C x11-drivers/ | xargs sudo emerge -1 を実行。再起動後、Xが正常に起動することを確認した。

追記 (2012/11/07)

module-rebuildなる便利なツールがあったのを忘れていた。 $ sudo module-rebuild rebuild で、必要なパッケージだけが再度buildされる。こっちを使うべき。

2012/07/02

xsessionでログインしたくなった

本当は xmonad.hs に書いてしまいたかったが、Ubuntuとgentooで共有するからには、コマンドの存在次第で分岐とか必要そうだったので、 ~/.xsession を使うことにした。その時のメモ。

  1. ~/.xsession を書く。無ければ作る。
  2. chmod +x ~/.xsession する。
  3. x11-apps/xsm と net-misc/keychain をmergeする。
  4. have fun!

こんな感じ。Ubuntuだともっと楽だった気がするけど、もう憶えてないのでパスで。