Задача: получить файл /etc/X11/xorg.conf который содержит все текущие настройки для иксов. Не создать его заново и туда писать, а сгенерить с использующимся настройками.
Также необходимо, чтобы он был первичен над HAL. Желательно вообще HAL удалить (не нашел как)
Сейчас файл /etc/X11/xorg.conf существует, но содержит лишь настройки видеокарты:
Section "ServerLayout"
Identifier "amdcccle Layout"
Screen 0 "amdcccle-Screen[1]-0" 0 0
EndSection
Section "Monitor"
Identifier "0-LVDS"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
Option "PreferredMode" "1366x768"
Option "TargetRefresh" "60"
Option "Position" "0 0"
Option "Rotate" "normal"
Option "Disable" "false"
EndSection
Section "Device"
Identifier "ATI"
Driver "fglrx"
EndSection
Section "Device"
Identifier "amdcccle-Device[1]-0"
Driver "fglrx"
Option "Monitor-LVDS" "0-LVDS"
BusID "PCI:1:5:0"
EndSection
Section "Screen"
Identifier "Default Screen"
DefaultDepth 24
EndSection
Section "Screen"
Identifier "amdcccle-Screen[1]-0"
Device "amdcccle-Device[1]-0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
По интернету нашел способ. При убитых иксах:
#Xorg -configure
На что получил:
(WW) fglrx: No matching Device section for instance (Bus ID PCI:0@0:20:5) found
Backtrace:
0: Xorg (xorg_backtrace+0x3b) [0x80e7afb]
1: Xorg (0x8048000+0x61005) [0x80a9005]
2: (vdso) (__kernel_rt_sigreturn+0x0) [0xb787840c]
3: Xorg (xf86CallDriverProbe+0x182) [0x80b7e12]
4: Xorg (DoConfigure+0x1b5) [0x8168f25]
5: Xorg (InitOutput+0x1da) [0x80b82fa]
6: Xorg (0x8048000+0x1e7f0) [0x80667f0]
7: /lib/i686/cmov/libc.so.6 (__libc_start_main+0xe6) [0xb75aec76]
8: Xorg (0x8048000+0x1e5a1) [0x80665a1]
Segmentation fault at address (nil)
Fatal server error:
Caught signal 11 (Segmentation fault). Server aborting
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.
Вывод /var/log/Xorg.0.log: (выбрал ошибки)
X.Org X Server 1.7.7
Release Date: 2010-05-04
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.32-5-686 i686 Debian
Current Operating System: Linux (none) 2.6.32-5-686 #1 SMP Fri Dec 10 16:12:40 UTC 2010 i686
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.32-5-686 root=UUID=1398fb76-1491-4b1a-b7ba-27fc89edc658 rw init=/bin/bash
Build Date: 02 December 2010 01:08:37AM
xorg-server 2:1.7.7-10 (Julien Cristau <jcristau@debian.org>)
Current version of pixman: 0.16.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Jan 3 05:14:15 2011
(II) Loader magic: 0x81ec060
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.4
X.Org Video Driver: 6.0
X.Org XInput driver : 7.0
X.Org Server Extension : 2.0
(--) using VT number 2
(--) PCI:*(0:1:5:0) 1002:9612:1043:1b12 ATI Technologies Inc RS780M/RS780MN [Radeon HD 3200 Graphics] rev 0, Mem @ 0xd0000000/268435456, 0xfbdf0000/65536, 0xfbc00000/1048576, I/O @ 0x0000d000/256
List of video drivers:
ark apm siliconmotion cirrus voodoo sis openchrome nouveau s3 trident geode ztv mga tdfx i128 nv vmwlegacy chips fglrx
rendition savage r128 s3virge ati sisusb radeon intel i740 vmware neomagic mach64 tseng fbdev vesa
...
Тут успешные LoadModule
...
(II) LoadModule: "cirrus_alpine"
(II) Loading /usr/lib/xorg/modules/drivers/cirrus_alpine.so
(II) Module cirrus_alpine: vendor="X.Org Foundation"
compiled for 1.7.6.901, module version = 1.0.0
ABI class: X.Org Video Driver, version 6.0
(WW) Falling back to old probe method for voodoo
(WW) Falling back to old probe method for sis
(WW) Falling back to old probe method for s3
(WW) Falling back to old probe method for trident
(WW) Falling back to old probe method for z4l
(II) z4l driver for Video4Linux
(WW) Falling back to old probe method for i128
(WW) Falling back to old probe method for fglrx
(II) Loading PCS database from /etc/ati/amdpcsdb
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:17:0) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:18:0) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:18:1) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:18:2) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:19:0) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:19:2) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:20:0) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:20:1) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:20:2) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:20:3) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:20:4) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:20:5) found
(**) ChipID override: 0x9612
(**) Chipset Supported AMD Graphics Processor (0x9612) found
Backtrace:
0: Xorg (xorg_backtrace+0x3b) [0x80e7afb]
1: Xorg (0x8048000+0x61005) [0x80a9005]
2: (vdso) (__kernel_rt_sigreturn+0x0) [0xb787840c]
3: Xorg (xf86CallDriverProbe+0x182) [0x80b7e12]
4: Xorg (DoConfigure+0x1b5) [0x8168f25]
5: Xorg (InitOutput+0x1da) [0x80b82fa]
6: Xorg (0x8048000+0x1e7f0) [0x80667f0]
7: /lib/i686/cmov/libc.so.6 (__libc_start_main+0xe6) [0xb75aec76]
8: Xorg (0x8048000+0x1e5a1) [0x80665a1]
Segmentation fault at address (nil)
Fatal server error:
Caught signal 11 (Segmentation fault). Server aborting
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.
Понимаю, что иксы работают с ошибками, и чтобы файл создался успешно, необходимо их устранить, но не понимаю их (ошибок) сути.