LINUX.ORG.RU

[Gentoo][Xorg] Черный экран

 ,


0

0

Возможно тема уже была, но все-таки.

Собираю себе генту на домашнем ноуте - Acer Aspire 3690. Собрал базовую систему, собрал хорг по описаниям из документации на gentoo.org. Делаю

Xorg -configure
Xorg -config /root/xorg.conf.new
В результате виже просто черный экран, хотя в доках написано, что должне видеть сетку и черно-белый курсор. Ладно, гугль сказал, что заместо сетки теперь черный фон. Но он не реагирует ни на Ctrl+Alt+Backspace, ни на что либо другое, из чего я сделал вывод, что хорг не видит клавы и мыши. Hal, Dbus, Acpid стоят.

Уже четыре дня неистово гуглю, пробовал практически все, что там говорилось - и добавление Option «AutoAddDevice» «off», и другие подобные вещи, обновил дрова для интелоской видяшки и прочего.

emerge xf86-video-intel
emerge xf86-input-keyboard
emerge xf86-input-mouse

Xorg.conf.new

Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "/usr/share/fonts/misc/"
	FontPath     "/usr/share/fonts/TTF/"
	FontPath     "/usr/share/fonts/OTF"
	FontPath     "/usr/share/fonts/Type1/"
	FontPath     "/usr/share/fonts/100dpi/"
	FontPath     "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
	Load  "dbe"
	Load  "dri"
	Load  "record"
	Load  "extmod"
	Load  "glx"
	Load  "dri2"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"            	# [<bool>]
        #Option     "SWcursor"           	# [<bool>]
        #Option     "ColorKey"           	# <i>
        #Option     "CacheLines"         	# <i>
        #Option     "Dac6Bit"            	# [<bool>]
        #Option     "DRI"                	# [<bool>]
        #Option     "NoDDC"              	# [<bool>]
        #Option     "ShowCache"          	# [<bool>]
        #Option     "XvMCSurfaces"       	# <i>
        #Option     "PageFlip"           	# [<bool>]
	Identifier  "Card0"
	Driver      "intel"
	VendorName  "Intel Corporation"
	BoardName   "Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller"
	BusID       "PCI:0:2:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection

Уже даже хз что делать, поэтому решил обратиться к коллективному разуму ЛОРа.

★★★★★

С какими use cобрано?Раньше по дефолту он собирался с «hal», при том что- А. Hal ему нафиг не нужен. B. Как зависимость hal не устанавливался сам. Гентушники срали кирпичами.Т.е. либо собирать без hal надо, либо ставить@настраивать hal.

В последней же версии (1.8) hal deprecated - новый велосипед, use udev.Ненужен так же как и hal.В /etc/portage/package.use для ксорга -hal -udev.

Да, Ctrl+Alt+Backspace надо указывать явно.Типа

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
        Option      "XkbRules" "xorg"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "us,ru(winkeys)"    
        Option      "XkbOptions" "grp:caps_toggle,led:scrool,compose:rctrl,terminate:ctrl_alt_bksp"
EndSection

anonymous
()
Ответ на: комментарий от anonymous

Hal ему нафиг не нужен.

нужен чтоб не писать вручную весчи типа:

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "evdev"
    Option         "Device" "/dev/input/by-path/platform-i8042-serio-0-event-kbd"
EndSection

deathmagnetic
()
Ответ на: комментарий от deathmagnetic

>прям аки врач-вредитель какой-то

Lol, почему? Я не призываю их из системы выкидывать, лишь для ксорга.

Что там у вас за evdev не в курсе, у меня на ноуте его нет, мышка подключается, всё работает и без халов-удевов.

anonymous
()
Ответ на: комментарий от edigaryev

cat /etc/conf.d/xdm

# We always try and start X on a static VT. The various DMs normally default
# to using VT7. If you wish to use the xdm init script, then you should ensure
# that the VT checked is the same VT your DM wants to use. We do this check to
# ensure that you haven't accidentally configured something to run on the VT
# in your /etc/inittab file so that you don't get a dead keyboard.
CHECKVT=7

# What display manager do you use ?  [ xdm | gdm | kdm | kdm-4.3 | gpe | entrance ]
# NOTE: If this is set in /etc/rc.conf, that setting will override this one.
#
# KDE-specific note:
# - If you are using kdeprefix go with "kdm-4.Y", e.g. "kdm-4.3".
#     You can find possible versions by looking at the directories in /usr/kde/.
# - Else, if you are using KDE 3 enter "kdm-3.5"
# - Else, if you are using KDE 4 enter "kdm" without a version
DISPLAYMANAGER="xdm"

# Set whether xorg should depend on hald or not. If set to 'auto' then the init
# script tries to determine the dependency on hald automatically, by examining
# xorg.conf files on various locations. If you have built xorg without hal
# use-flag, you should set 'no' here.  If xorg has been built with hal then you
# may set 'auto' or 'yes' here.
# Possible values are: [ yes | no | auto ]
NEEDS_HALD="auto"

rc-update add hal default

делал

версия xorg-server? собран ли с use-флагом hal?

1.7.4 (вроде), которая была в портеже. По поводу юзфоага не уверен, вроде бы я не прописывал ему хал, значит собран без него (как было к хандбуке). А как пересобрать? (от гугля уже глаза болят).

Zhbert ★★★★★
() автор топика
Ответ на: комментарий от edigaryev

Xorg.0.log

 "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build -b "$(_distutils_get_build_dir)" "$@" || return "$?";
            _distutils_hook post
        };
        python_execute_function ${DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES:+-s} distutils_building "$@";
    else
        echo ${_BOLD}"$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build "$@"${_NORMAL};
        "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build "$@" || die "Building failed";
    fi
}
distutils_src_install () 
{ 
    if [[ "${EBUILD_PHASE}" != "install" ]]; then
        die "${FUNCNAME}() can be used only in src_install() phase";
    fi;
    _python_initialize_prefix_variables;
    _python_set_color_variables;
    if [[ -n "${SUPPORT_PYTHON_ABIS}" ]]; then
        if [[ -z "${DISTUTILS_DISABLE_VERSIONING_OF_PYTHON_SCRIPTS}" && "${BASH_VERSINFO[0]}" -ge 4 ]]; then
            declare -A wrapper_scripts=();
            function rename_scripts_with_versioned_shebangs () 
            { 
                if [[ -d "${ED}usr/bin" ]]; then
                    cd "${ED}usr/bin";
                    local nonversioned_file file;
                    for file in *;
                    do
                        if [[ -f "${file}" && ! "${file}" =~ [[:digit:]]+\.[[:digit:]](-jython)?+$ && "$(head -n1 "${file}")" =~ ^'#!'.*(python|jython-)[[:digit:]]+\.[[:digit:]]+ ]]; then
                            for nonversioned_file in "${DISTUTILS_NONVERSIONED_PYTHON_SCRIPTS[@]}";
                            do
                                [[ "${nonversioned_file}" == "/usr/bin/${file}" ]] && continue 2;
                            done;
                            mv "${file}" "${file}-${PYTHON_ABI}" || die "Renaming of '${file}' failed";
                            wrapper_scripts+=(["${ED}usr/bin/${file}"]=);
                        fi;
                    done;
                fi
            };
        fi;
        function distutils_installation () 
        { 
            _distutils_hook pre;
            echo ${_BOLD}"$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" $([[ -z "${DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES}" ]] && echo build -b "$(_distutils_get_build_dir)") install --root="${D}" --no-compile "$@"${_NORMAL};
            "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" $([[ -z "${DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES}" ]] && echo build -b "$(_distutils_get_build_dir)") install --root="${D}" --no-compile "$@" || return "$?";
            if [[ -z "${DISTUTILS_DISABLE_VERSIONING_OF_PYTHON_SCRIPTS}" && "${BASH_VERSINFO[0]}" -ge 4 ]]; then
                rename_scripts_with_versioned_shebangs;
            fi;
            _distutils_hook post
        };
        python_execute_function ${DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES:+-s} distutils_installation "$@";
        if [[ -z "${DISTUTILS_DISABLE_VERSIONING_OF_PYTHON_SCRIPTS}" && "${#wrapper_scripts[@]}" -ne 0 && "${BASH_VERSINFO[0]}" -ge 4 ]]; then
            python_generate_wrapper_scripts "${!wrapper_scripts[@]}";
        fi;
        unset wrapper_scripts;
    else
        python_need_rebuild;
        echo ${_BOLD}"$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" install --root="${D}" --no-compile "$@"${_NORMAL};
        "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" install --root="${D}" --no-compile "$@" || die "Installation failed";
    fi;
    if [[ -e "${ED}usr/local" ]]; then
        die "Illegal installation into /usr/local";
    fi;
    local default_docs;
    default_docs="AUTHORS Change* CHANGELOG CONTRIBUTORS KNOWN_BUGS MAINTAINERS MANIFEST* NEWS PKG-INFO README* TODO";
    local doc;
    for doc in ${default_docs};
    do
        [[ -s "${doc}" ]] && dodoc "${doc}";
    done;
    if [[ -n "${DOCS}" ]]; then
        dodoc ${DOCS} || die "dodoc failed";
    fi
}
distutils_src_prepare () 
{ 
    if ! has "${EAPI:-0}" 0 1 && [[ "${EBUILD_PHASE}" != "prepare" ]]; then
        die "${FUNCNAME}() can be used only in src_prepare() phase";
    fi;
    local ez_setup_existence="0";
    [[ -d ez_setup || -f ez_setup.py ]] && ez_setup_existence="1";
    rm -fr ez_setup*;
    if [[ "${ez_setup_existence}" == "1" ]]; then
        echo "def use_setuptools(*args, **kwargs): pass" > ez_setup.py;
    fi;
    local distribute_setup_existence="0";
    [[ -d distribute_setup || -f distribute_setup.py ]] && distribute_setup_existence="1";
    rm -fr distribute_setup*;
    if [[ "${distribute_setup_existence}" == "1" ]]; then
        echo "def use_setuptools(*args, **kwargs): pass" > distribute_setup.py;
    fi;
    if [[ -n "${DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES}" ]]; then
        python_copy_sources;
    fi
}
distutils_src_test () 
{ 
    _python_set_color_variables;
    if [[ "${DISTUTILS_SRC_TEST}" == "setup.py" ]]; then
        if [[ -n "${SUPPORT_PYTHON_ABIS}" ]]; then
            function distutils_testing () 
            { 
                _distutils_hook pre;
                echo ${_BOLD}PYTHONPATH="$(_distutils_get_PYTHONPATH)" "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" $([[ -z "${DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES}" ]] && echo build -b "$(_distutils_get_build_dir)") test "$@"${_NORMAL};
                PYTHONPATH="$(_distutils_get_PYTHONPATH)" "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" $([[ -z "${DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES}" ]] && echo build -b "$(_distutils_get_build_dir)") test "$@" || return "$?";
                _distutils_hook post
            };
            python_execute_function ${DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES:+-s} distutils_testing "$@";
        else
            echo ${_BOLD}PYTHONPATH="$(_distutils_get_PYTHONPATH)" "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" test "$@"${_NORMAL};
            PYTHONPATH="$(_distutils_get_PYTHONPATH)" "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" test "$@" || die "Testing failed";
        fi;
    else
        if [[ "${DISTUTILS_SRC_TEST}" == "nosetests" ]]; then
            _distutils_src_test_hook nosetests;
            python_execute_nosetests -P '$(_distutils_get_PYTHONPATH)' ${DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES:+-s} -- "$@";
        else
            if [[ "${DISTUTILS_SRC_TEST}" == "py.test" ]]; then
                _distutils_src_test_hook py.test;
                python_execute_py.test -P '$(_distutils_get_PYTHONPATH)' ${DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES:+-s} -- "$@";
            else
                if [[ "${DISTUTILS_SRC_TEST}" =~ ^trial(\ .*)?$ ]]; then
                    local trial_arguments;
                    if [[ "${DISTUTILS_SRC_TEST}" == "trial "* ]]; then
                        trial_arguments="${DISTUTILS_SRC_TEST#trial }";
                    else
                        trial_argu

На вид ерунда, но мб это из-за того, что он криво работает, а я ребутаю ноут зажатием повера на 4 секунды?

Zhbert ★★★★★
() автор топика
Ответ на: комментарий от Zhbert

ЩИТО?! Это не ксорг-лог,это какакя-то неведомая х-ня.

вроде бы я не прописывал ему хал, значит собран без него

Авотхренвам.Он включен по умолчанию.

USE="-hal -udev" emerge xorg-server

!!!1111

anonymous
()
Ответ на: комментарий от anonymous

>ЩИТО?! Это не ксорг-лог,это какакя-то неведомая х-ня.

Я тоже так думаю, но, тем не менее, это х-ня находится в ксорглоге.

Zhbert ★★★★★
() автор топика
Ответ на: комментарий от anonymous

>USE="-hal -udev" emerge xorg-server
ога, и пишем такую лабуду для каждого устройства
Section «InputDevice»
Identifier «Keyboard0»
Driver «evdev»
Option «Device» «/dev/input/by-path/platform-i8042-serio-0-event-kbd»
EndSection

deathmagnetic
()
Ответ на: комментарий от deathmagnetic

>и пути в xorg.conf не писали? чудеса, у меня если не прописать, либо не собрать с халом, не мышки, ни клавы

При первоначальной установке я делал лишь ксорг конфигуре.И (ВНЕЗАПНО!) всё само заработало.Да, ноут асер, видео интел (правда другой модели - впрочем тут всё равно не в видео проблема)

Про какие вы устройства говорите я не понимаю.УМВР, -hal -udev

anonymous
()
Ответ на: комментарий от Zhbert

>ребутаю ноут зажатием повера на 4 секунды?
есть лучший способ: Alt+SysRq+R, затем Alt+F1, и мы в консоли

deathmagnetic
()
Ответ на: комментарий от Zhbert

>1.7.4 (вроде)
это как понимать?
выхлоп
qlist -Iv xorg-server

megabaks ★★★★
()
Ответ на: комментарий от anonymous
localhost megabaks # equery u xorg-server
[ Legend : U - flag is set in make.conf ]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for x11-base/xorg-server-1.8.0:
U I
- - dmx : Build the Distributed Multiheaded X server
- - doc : Adds extra documentation (API, Javadoc, etc)
+ + hal : Enable Hardware Abstraction Layer (HAL) support
- - ipv6 : Adds support for IP version 6
- - kdrive : Build the kdrive X servers
- - minimal : Install a very minimal build (disables, for example, plugins, fonts, most drivers, non-critical features)
+ + nptl : Enable support for Native POSIX Threads Library, the new threading module (requires linux-2.6 or better usually)
- - static-libs : Build static libraries
- - tslib : Build with tslib support for touchscreen devices
+ + udev : Enable devices discovery via udev
+ + xorg : Build the Xorg X server (HIGHLY RECOMMENDED)

вот УМВР!!! а что там у вас хз - через что и через куда оно видит девайсы?

megabaks ★★★★
()
Ответ на: комментарий от anonymous

>При первоначальной установке я делал лишь ксорг конфигуре.И (ВНЕЗАПНО!) всё само заработало.
ну значит ТС'у следует сделать тот самый «ксорг-корфигуре» и все заработает? что ж вы молчали?)

deathmagnetic
()
Ответ на: комментарий от megabaks
[~]$ equery u xorg-server 

 * Searching for xorg-server ...
[ Legend : U - flag is set in make.conf       ]
[        : I - package is installed with flag ]
[ Colors : set, unset                         ]
 * Found these USE flags for x11-base/xorg-server-1.8.0:
 U I
 - - dmx         : Build the Distributed Multiheaded X server
 - - doc         : Adds extra documentation (API, Javadoc, etc)
 + - hal         : Enable Hardware Abstraction Layer (HAL) support
 - - ipv6        : Adds support for IP version 6
 - - kdrive      : Build the kdrive X servers
 - - minimal     : Install a very minimal build (disables, for example, plugins, fonts, most drivers, non-critical features)
 + + nptl        : Enable support for Native POSIX Threads Library, the new threading module (requires linux-2.6 or better usually)
 - - static-libs : Build static libraries
 - - tslib       : Build with tslib support for touchscreen devices
 - - udev        : Enable devices discovery via udev
 + + xorg        : Build the Xorg X server (HIGHLY RECOMMENDED)

через что и через куда оно видит девайсы?

А х.з.,через либастрал наверное ) Осознайте наконец что велосипеды, пихаемые разрабтчиками в угоду кривруким хомячкам, ненужны на самом деле.

anonymous
()
Ответ на: комментарий от deathmagnetic

ну значит ТС'у следует сделать тот самый «ксорг-корфигуре» и все заработает? что ж вы молчали?

Потому что у него собрано с hal.Надо пересобрать.

Алсо, вот мой xorg.conf, может т.с. пригодится

Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "ServerFlags"
        Option "AllowEmptyInput"   "False"
        Option "AutoAddDevices"    "False"
        Option "DontZap"           "False"
EndSection

Section "Files"
	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "built-ins"
EndSection

Section "Module"
	Load  "glx"
	Load  "extmod"
	Load  "xtrap"
	Load  "record"
	Load  "dbe"
	Load  "dri"
        Load  "dri2"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
        Option      "XkbRules" "xorg"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "us,ru(winkeys)"    
        Option      "XkbOptions" "grp:caps_toggle,led:scrool,compose:rctrl,terminate:ctrl_alt_bksp"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"            	# [<bool>]
        #Option     "SWcursor"           	# [<bool>]
        #Option     "ColorKey"           	# <i>
        #Option     "CacheLines"         	# <i>
        #Option     "Dac6Bit"            	# [<bool>]
        #Option     "DRI"                	# [<bool>]
        #Option     "NoDDC"              	# [<bool>]
        #Option     "ShowCache"          	# [<bool>]
        #Option     "XvMCSurfaces"       	# <i>
        #Option     "PageFlip"           	# [<bool>]
	Identifier  "Card0"
	Driver      "intel"
	VendorName  "Intel Corporation"
	BoardName   "Mobile 915GM/GMS/910GML Express Graphics Controller"
	BusID       "PCI:0:2:0"
        Option      "AccelMethod" "uxa"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection

Section "Extensions"
        Option "Composite" "Enable"
        Option "RENDER" "Enable"
EndSection

Section "Files"
       # Fontpath "/usr/share/fonts/artwiz-latin"
EndSection    

anonymous
()
Ответ на: комментарий от anonymous

для начала делителсь билдом либастрала. не, это все отлично, я и сам в порыве красноглазия выпиливал хал из ксорга. можно конечно захардкодить все устройства, но хотплага очевидно никакого не будет

deathmagnetic
()
Ответ на: комментарий от anonymous

> Что там у вас за evdev не в курсе, у меня на ноуте его нет, мышка подключается, всё работает и без халов-удевов.

+1. evdev создавал слишком много проблем, поэтому на десктопе я от него отказался.

question4 ★★★★★
()
Ответ на: комментарий от deathmagnetic

> #USE=hal emerge -va xorg-server

Это соберёт с hal только до следующего апгрейда. Правильнее добавить в /etc/portage/packages.use строку

x11-base/xorg-server hal

Но мне HAL только мешал.

question4 ★★★★★
()
Ответ на: комментарий от deathmagnetic

> VIDEO_CARDS=«vesa nouveau»

На хрен ему vesa и nouveau, если у него Intel 950? Скорее там надо писать VIDEO_CARDS=«intel».

И вообще этот пункт воспринимается только ебилдами версий 1.5.3 и ниже.

question4 ★★★★★
()
Ответ на: комментарий от deathmagnetic

>> USE="-hal -udev" emerge xorg-server

ога, и пишем такую лабуду для каждого устройства

Section «InputDevice»


Identifier «Keyboard0»


Driver «evdev»


Option «Device» «/dev/input/by-path/platform-i8042-serio-0-event-kbd»


EndSection



Не преувеличивай. Мне хватило:

Section «InputDevice»

Identifier «Keyboard1»
Driver «kbd»
Option «XkbModel» «pc105»
Option «XkbLayout» «us,ru»
Option «XkbOptions» «grp:alt_shift_toggle,grp_led:scroll,numpad:microsoft,compose:caps»

EndSection

Причём последние 2 строки Option необходимы, только если не стоит других переключалок раскладки.

question4 ★★★★★
()

Пардон, а у вас что-нибудь кроме сессии иксов запускается. Хотя бы банально twm «на посмотреть»? Сдается мне, что все может быть лучше, чем вы предполагаете.

Insomnium ★★★★
()
Ответ на: комментарий от Insomnium

Хотя бы банально twm «на посмотреть»?

Пишет

twm:   unable to open display ""

Zhbert ★★★★★
() автор топика
Ответ на: комментарий от question4

>На хрен ему vesa и nouveau, если у него Intel 950? Скорее там надо писать VIDEO_CARDS=«intel».
да, конечно. давал свой конфиг как пример..

И вообще этот пункт воспринимается только ебилдами версий 1.5.3 и ниже.

Спасибо, буду знать

deathmagnetic
()

Xorg с чёрным экраном и нет реакции на клаву и мышь — это нормально.

Пропиши свою тачку в /etc/hosts.

iZEN ★★★★★
()
Ответ на: комментарий от iZEN

cat /etc/hosts

# /etc/hosts: Local Host Database
#
# This file describes a number of aliases-to-address mappings for the for 
# local hosts that share this file.
#
# In the presence of the domain name service or NIS, this file may not be 
# consulted at all; see /etc/host.conf for the resolution order.
#

# IPv4 and IPv6 localhost aliases
127.0.0.1	localhost
::1		localhost

#
# Imaginary network.
#10.0.0.2               myname
#10.0.0.3               myfriend
#
# According to RFC 1918, you can use the following IP networks for private 
# nets which will never be connected to the Internet:
#
#       10.0.0.0        -   10.255.255.255
#       172.16.0.0      -   172.31.255.255
#       192.168.0.0     -   192.168.255.255
#
# In case you want to be able to connect directly to the Internet (i.e. not 
# behind a NAT, ADSL router, etc...), you need real official assigned 
# numbers.  Do not try to invent your own network numbers but instead get one 
# from your network provider (if any) or from your regional registry (ARIN, 
# APNIC, LACNIC, RIPE NCC, or AfriNIC.)
#

Прописано же вроде? Или я не понимаю чего.

Zhbert ★★★★★
() автор топика

xorg log после xinit (запутсилось, но сначала был черный экран, потом выбросило в консоль, после чего показался белый экран, постепенно запоняющийся черным)


X.Org X Server 1.7.6
Release Date: 2010-03-17
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.32-gentoo-r7 i686 
Current Operating System: Linux localhost 2.6.32-gentoo-r7 #1 SMP Sat Apr 17 22:56:39 MSD 2010 i686
Kernel command line: root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3 udev
Build Date: 19 April 2010  03:49:33PM
 
Current version of pixman: 0.17.2
	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 Apr 19 17:21:29 2010
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "Default Layout"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(**) |   |-->Device "Videocard0"
(**) |-->Input Device "Mouse0"
(**) |-->Input Device "Mouse1"
(**) |-->Input Device "Keyboard0"
(**) Option "DontVTSwitch" "yes"
(**) Option "DontZap" "yes"
(==) Not automatically adding devices
(==) Not automatically enabling devices
(**) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/Type1/,
	/usr/share/fonts/100dpi/,
	/usr/share/fonts/75dpi/,
	/usr/share/fonts/cyrillic/,
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF,
	/usr/share/fonts/Type1/,
	/usr/share/fonts/100dpi/,
	/usr/share/fonts/75dpi/
(==) ModulePath set to "/usr/lib/xorg/modules"
(II) Loader magic: 0x81e49c0
(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 7

(--) PCI:*(0:0:2:0) 8086:27a2:1025:0090 Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller rev 3, Mem @ 0xd0200000/524288, 0xc0000000/268435456, 0xd0300000/262144, I/O @ 0x00005088/8
(--) PCI: (0:0:2:1) 8086:27a6:1025:0090 Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller rev 3, Mem @ 0xd0280000/524288
(WW) Open ACPI failed (/var/run/acpid.socket) (Connection refused)
(II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
(II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
(II) "glx" will be loaded. This was enabled by default and also specified in the config file.
(II) "record" will be loaded. This was enabled by default and also specified in the config file.
(II) "dri" will be loaded. This was enabled by default and also specified in the config file.
(II) "dri2" will be loaded by default.
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="X.Org Foundation"
	compiled for 1.7.6, module version = 1.0.0
	ABI class: X.Org Server Extension, version 2.0
(==) AIGLX enabled
(II) Loading extension GLX
(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions/libdri.so
(II) Module dri: vendor="X.Org Foundation"
	compiled for 1.7.6, module version = 1.0.0
	ABI class: X.Org Server Extension, version 2.0
(II) Loading extension XFree86-DRI
(II) LoadModule: "extmod"
(II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
	compiled for 1.7.6, module version = 1.0.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 2.0
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "dbe"
(II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
	compiled for 1.7.6, module version = 1.0.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "record"
(II) Loading /usr/lib/xorg/modules/extensions/librecord.so
(II) Module record: vendor="X.Org Foundation"
	compiled for 1.7.6, module version = 1.13.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 2.0
(II) Loading extension RECORD
(II) LoadModule: "xtrap"
(WW) Warning, couldn't open module xtrap
(II) UnloadModule: "xtrap"
(EE) Failed to load module "xtrap" (module does not exist, 0)
(II) LoadModule: "dri2"
(II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
(II) Module dri2: vendor="X.Org Foundation"
	compiled for 1.7.6, module version = 1.1.0
	ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DRI2
(II) LoadModule: "intel"
(II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
(II) Module intel: vendor="X.Org Foundation"
	compiled for 1.7.6, module version = 2.9.1
	Module class: X.Org Video Driver
	ABI class: X.Org Video Driver, version 6.0
(II) LoadModule: "synaptics"
(WW) Warning, couldn't open module synaptics
(II) UnloadModule: "synaptics"
(EE) Failed to load module "synaptics" (module does not exist, 0)
(II) LoadModule: "mouse"
(II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
(II) Module mouse: vendor="X.Org Foundation"
	compiled for 1.7.6, module version = 1.5.0
	Module class: X.Org XInput Driver
	ABI class: X.Org XInput driver, version 7.0
(II) LoadModule: "kbd"
(II) Loading /usr/lib/xorg/modules/input/kbd_drv.so
(II) Module kbd: vendor="X.Org Foundation"
	compiled for 1.7.6, module version = 1.4.0
	Module class: X.Org XInput Driver
	ABI class: X.Org XInput driver, version 7.0
(II) intel: Driver for Intel Integrated Graphics Chipsets: i810,
	i810-dc100, i810e, i815, i830M, 845G, 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, Clarkdale, Arrandale
(II) Primary Device is: PCI 00@00:02:0
(II) Loading sub module "vgahw"
(II) LoadModule: "vgahw"
(II) Loading /usr/lib/xorg/modules/libvgahw.so
(II) Module vgahw: vendor="X.Org Foundation"
	compiled for 1.7.6, module version = 0.1.0
	ABI class: X.Org Video Driver, version 6.0
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Module "ramdac" already built-in
drmOpenDevice: node name is /dev/dri/card0
[drm] failed to load kernel module "i915"
(EE) intel(0): [drm] Failed to open DRM device for : No such file or directory
(EE) intel(0): Failed to become DRM master.
(**) intel(0): Depth 24, (--) framebuffer bpp 32
(==) intel(0): RGB weight 888
(==) intel(0): Default visual is TrueColor
(**) intel(0): Option "DRI" "True"
(II) intel(0): Integrated Graphics Chipset: Intel(R) 945GM
(--) intel(0): Chipset: "945GM"
(--) intel(0): Linear framebuffer at 0xC0000000
(--) intel(0): IO registers at addr 0xD0200000 size 524288
(WW) intel(0): libpciaccess reported 0 rom size, guessing 64kB
(II) intel(0): No SDVO device is found in VBT
(II) intel(0): 2 display pipes available.
(II) Loading sub module "ddc"
(II) LoadModule: "ddc"
(II) Module "ddc" already built-in
(II) Loading sub module "i2c"
(II) LoadModule: "i2c"
(II) Module "i2c" already built-in
(II) intel(0): Output VGA using monitor section Monitor0
(II) intel(0): Output LVDS has no monitor section
(II) intel(0): I2C bus "LVDSDDC_C" initialized.
(II) intel(0): Attempting to determine panel fixed mode.
(II) intel(0): I2C device "LVDSDDC_C:ddc2" registered at address 0xA0.
Zhbert ★★★★★
() автор топика
Ответ на: комментарий от Zhbert

>[drm] failed to load kernel module «i915»

(EE) intel(0): [drm] Failed to open DRM device for : No such file or directory

(EE) intel(0): Failed to become DRM master.



Как собирал ядро?

Device Drivers --->
<*> Intel 830M, 845G, 852GM, 855GM, 865G (i915 driver) --->
<*> Intel 830M/845G/852GM/855GM/865G/915G/945G support (EXPERIMENTAL)
включено?

HTaeD ★★★★
()
Ответ на: комментарий от HTaeD

>Как собирал ядро?

последний раз генкернел ал, ибо спешил

включено?


видимо, нет. Как можно перекомпилить ядро, не особо трогая то, что уже собрано? (настройки)

Zhbert ★★★★★
() автор топика
Ответ на: комментарий от Zhbert

Если опять генкернелом, то genkernel --menuconfig all
Иначе cd /usr/src/linux-%версия ядра% && make menufonfig && make && make modules_install

HTaeD ★★★★
()
Ответ на: комментарий от HTaeD

>Если опять генкернелом, то genkernel --menuconfig all

Спасибо, пойду экспериментировать.

Zhbert ★★★★★
() автор топика
Ответ на: комментарий от deathmagnetic

> Спасибо, буду знать

А, нет, это я не в тот оверлей посмотрел :/

question4 ★★★★★
()
Ответ на: комментарий от deathmagnetic

Спасибо, помогло.

Чёрного экрана не было, но мышь с клавой отвалились. Ксорг (ЕМНИМС 1.7.4) был собран с халом. Пересобрал без хала - ничего не изменилось. Прописал для клавы и мыши драйвер evdev и пути к устройствам - подцепились.

Xenesz ★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.