LINUX.ORG.RU

Xorg на Gentoo

 , , ,


0

1

Добрый день, установил Gentoo, ядро не сам собирала genkernel-ом, пытаюсь запустить X. Видеокарта ati hd5870

Фрагменты из make.conf :

VIDEO_CARDS="radeon"

USE="-systemd -ios -ipod -gtk -gnome -perl udev -kde -qt4 -3dfx -emacs alsa -a52 -ibm -nntp -motif -neon -aqua -xemacs wifi elogind -css radeon -clamav -coreaudio -cjk -ldap -iee1394  -cups -quicktime -emboss -altivec -smartcard -nls -nas"

INPUT_DEVICES="evdev libinput keyboard mouse wacom joystick"

Что ставил:

emerge x11-libs/libX11 x11-base/xorg-server x11-apps/xinit x11-libs/libXrandr x11-libs/libXinerama x11-libs/libXft x11-apps/xrdb x11-apps/mesa-progs x11-apps/xrandr  x11-misc/unclutter x11-misc/xclip x11-misc/pcmanfm x11-base/xorg-drivers x11-drivers/xf86-video-ati x11-terms/rxvt-unicode x11-apps/backlight

В /etc/X11 нет xorg.conf и директории xorg.conf.d. Я командой X -configure создал xorg.conf и закинул в /etc/X11 также создал .xinitrc где прописал что запускать. При вызове startx выбивает это:

hostname: Неизвестный узел


X.Org X Server 1.20.10
X Protocol Version 11, Revision 0
Build Operating System: Linux 5.4.80-gentoo-r1-x86_64 x86_64 Gentoo
Current Operating System: Linux Gentoo 5.4.80-gentoo-r1-x86_64 #1 SMP Thu Jan 14 02:33:54 +07 2021 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-5.4.80-gentoo-r1-x86_64 root=UUID=0ecd323e-aa00-4b49-a3cb-c7546760f5ad ro
Build Date: 15 January 2021  05:59:29AM

Current version of pixman: 0.40.0
        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: "/home/kirill/.local/share/xorg/Xorg.0.log", Time: Fri Jan 15 19:34:17 2021
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE)
Fatal server error:
(EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/home/kirill/.local/share/xorg/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

Добавлен ли юзер, от которого пускаешь startx, в группу tty?

Добавлять как-то так:

# usermod -aG tty user
EXL ★★★★★
()
Последнее исправление: EXL (всего исправлений: 1)
Ответ на: комментарий от EXL

Добавил, теперь при startx такой лог:

Fatal server error:
(EE) xf86OpenConsole: Cannot open virtual console 7 (Permission denied)
(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/home/kirill/.local/share/xorg/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

ReiB0T
() автор топика
Последнее исправление: ReiB0T (всего исправлений: 2)
kirill@Gentoo ~ $ stat /usr/bin/X
  Файл: /usr/bin/X -> Xorg
  Размер: 4             Блоков: 0          Блок В/В: 4096   символьная ссылка
Устройство: 803h/2051d  Инода: 8661314     Ссылки: 1
Доступ: (0777/lrwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
Доступ:        2021-01-15 06:01:54.396727937 +0700
Модифицирован: 2021-01-15 06:01:54.396727937 +0700
Изменён:       2021-01-15 06:02:04.560061698 +0700
Создан:        2021-01-15 06:02:04.560061698 +0700
kirill@Gentoo ~ $ stat /usr/bin/Xorg
  Файл: /usr/bin/Xorg
  Размер: 2361176       Блоков: 4616       Блок В/В: 4096   обычный файл
Устройство: 803h/2051d  Инода: 22953329    Ссылки: 1
Доступ: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Доступ:        2021-01-15 06:02:01.633394909 +0700
Модифицирован: 2021-01-15 06:02:01.643394909 +0700
Изменён:       2021-01-15 06:02:04.566728366 +0700
Создан:        2021-01-15 06:02:01.633394909 +0700

ReiB0T
() автор топика

Скачал dwm, собрал успешно. Исполняемый файл находится ~/dwm Может его надо в /usr/bin?

ReiB0T
() автор топика

emerge x11-libs/libX11 x11-base/xorg-server x11-apps/xinit x11-libs/libXrandr x11-libs/libXinerama x11-libs/libXft x11-apps/xrdb x11-apps/mesa-progs x11-apps/xrandr x11-misc/unclutter x11-misc/xclip x11-misc/pcmanfm x11-base/xorg-drivers x11-drivers/xf86-video-ati x11-terms/rxvt-unicode x11-apps/backlight

А почему не просто emerge xorg-x11?


В /etc/X11 нет xorg.conf и директории xorg.conf.d

Оно и не нужно в большинстве случаев. А ещё в твоих USE-флагах я не вижу X

XMs ★★★★★
()

/var/log/Xorg.0.log

[  1225.570]
X.Org X Server 1.20.10
X Protocol Version 11, Revision 0
[  1225.578] Build Operating System: Linux 5.4.80-gentoo-r1-x86_64 x86_64 Gentoo
[  1225.580] Current Operating System: Linux Gentoo 5.4.80-gentoo-r1-x86_64 #1 SMP Thu Jan 14 02:33:54 +07 2021 x86_64
[  1225.580] Kernel command line: BOOT_IMAGE=/vmlinuz-5.4.80-gentoo-r1-x86_64 root=UUID=0ecd323e-aa00-4b49-a3cb-c7546760f5ad ro
[  1225.584] Build Date: 15 January 2021  05:59:29AM
[  1225.586]
[  1225.588] Current version of pixman: 0.40.0
[  1225.592]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[  1225.592] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1225.601] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Jan 15 06:31:39 2021
[  1225.601] (II) Loader magic: 0x561e52dd2ce0
[  1225.601] (II) Module ABI versions:
[  1225.601]    X.Org ANSI C Emulation: 0.4
[  1225.601]    X.Org Video Driver: 24.1
[  1225.601]    X.Org XInput driver : 24.1
[  1225.601]    X.Org Server Extension : 10.0
[  1225.601] (EE) dbus-core: error connecting to system bus: org.freedesktop.DBus.Error.FileNotFound (Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory)
[  1225.601] (--) using VT number 7

[  1225.601] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[  1225.601] (II) xfree86: Adding drm device (/dev/dri/card0)
[  1225.605] (--) PCI:*(1@0:0:0) 1002:6898:1002:0b00 rev 0, Mem @ 0xd0000000/268435456, 0xfe7c0000/131072, I/O @ 0x0000b000/256, BIOS @ 0x????????/131072
[  1225.608] List of video drivers:
[  1225.610]    ati
[  1225.612]    radeon
[  1225.614]    modesetting
[  1225.614] (II) LoadModule: "ati"
[  1225.614] (II) Loading /usr/lib64/xorg/modules/drivers/ati_drv.so
[  1225.614] (II) Module ati: vendor="X.Org Foundation"
[  1225.614]    compiled for 1.20.10, module version = 19.1.0
[  1225.614]    Module class: X.Org Video Driver
[  1225.614]    ABI class: X.Org Video Driver, version 24.1
[  1225.614] (II) LoadModule: "radeon"
[  1225.614] (II) Loading /usr/lib64/xorg/modules/drivers/radeon_drv.so
[  1225.614] (II) Module radeon: vendor="X.Org Foundation"
[  1225.614]    compiled for 1.20.10, module version = 19.1.0
[  1225.614]    Module class: X.Org Video Driver
[  1225.614]    ABI class: X.Org Video Driver, version 24.1
[  1225.614] (II) LoadModule: "modesetting"
[  1225.614] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[  1225.615] (II) Module modesetting: vendor="X.Org Foundation"
[  1225.615]    compiled for 1.20.10, module version = 1.20.10
[  1225.615]    Module class: X.Org Video Driver
[  1225.615]    ABI class: X.Org Video Driver, version 24.1
[  1225.628] (II) RADEON: Driver for ATI/AMD Radeon chipsets:
перечисление видеокарт
[  1225.630] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[  1225.803] (++) Using config file: "/root/xorg.conf.new"
[  1225.806] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  1225.807] (==) ServerLayout "X.org Configured"
[  1225.807] (**) |-->Screen "Screen0" (0)
[  1225.807] (**) |   |-->Monitor "Monitor0"
[  1225.807] (**) |   |-->Device "Card0"
[  1225.807] (**) |-->Input Device "Mouse0"
[  1225.807] (**) |-->Input Device "Keyboard0"
[  1225.807] (==) Automatically adding devices
[  1225.807] (==) Automatically enabling devices
[  1225.807] (==) Automatically adding GPU devices
[  1225.807] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  1225.807] (WW) The directory "/usr/share/fonts/misc/" does not exist.
[  1225.807]    Entry deleted from font path.
[  1225.807] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[  1225.807]    Entry deleted from font path.
[  1225.807] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[  1225.807]    Entry deleted from font path.
[  1225.807] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[  1225.807]    Entry deleted from font path.
[  1225.807] (WW) The directory "/usr/share/fonts/100dpi/" does not exist.
[  1225.807]    Entry deleted from font path.
[  1225.807] (WW) The directory "/usr/share/fonts/75dpi/" does not exist.
[  1225.807]    Entry deleted from font path.
[  1225.807] (WW) The directory "/usr/share/fonts/misc/" does not exist.
[  1225.807]    Entry deleted from font path.
[  1225.807] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[  1225.807]    Entry deleted from font path.
[  1225.807] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[  1225.807]    Entry deleted from font path.
[  1225.807] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[  1225.807]    Entry deleted from font path.
[  1225.807] (WW) The directory "/usr/share/fonts/100dpi/" does not exist.
[  1225.807]    Entry deleted from font path.
[  1225.807] (WW) The directory "/usr/share/fonts/75dpi/" does not exist.
[  1225.807]    Entry deleted from font path.
[  1225.807] (**) FontPath set to:

[  1225.807] (**) ModulePath set to "/usr/lib64/xorg/modules"
[  1225.807] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[  1225.807] (WW) Disabling Mouse0
[  1225.807] (WW) Disabling Keyboard0
[  1225.810] (II) [KMS] Kernel modesetting enabled.
[  1225.813]
[  1225.823]
Xorg detected your mouse at device /dev/input/mice.
Please check your config if the mouse is still not
operational, as by default Xorg tries to autodetect
the protocol.
[  1225.829]
Your xorg.conf file is /root/xorg.conf.new

[  1225.833] To test the server, run 'X -config /root/xorg.conf.new'

[  1225.833] (EE) Server terminated with error (2). Closing log file.

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

Я понял у меня в флагах и так был elogind и -systemd. После того как добавил в автозагрузку все заработало. Всем спасибо

ReiB0T
() автор топика
Последнее исправление: ReiB0T (всего исправлений: 1)
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.