Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

xorg: startx fails

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
wynnmc
Tux's lil' helper
Tux's lil' helper
Posts: 90
Joined: Sun Dec 01, 2019 5:26 pm

xorg: startx fails

  • Quote

Post by wynnmc » Mon May 19, 2025 2:15 pm

I have installed xorg according to the Xorg/Guide and it failed to start. I have tried to capture the output of startx but it didn't work, I have copied the (only) error message in it by hand:

Code: Select all

(EE) parse_vt_settings: cannot open /dev/tty0 (permission denied)
. here is the Xorg.0.log:

Code: Select all

[ 16857.849] 
X.Org X Server 1.21.1.16
X Protocol Version 11, Revision 0
[ 16857.852] Current Operating System: Linux x1 6.12.25-gentoo-dist #1 SMP PREEMPT_DYNAMIC Fri Apr 25 13:29:24 -00 2025 x86_64
[ 16857.852] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.12.25-gentoo-dist root=UUID=73fcab76-6c0d-41ef-bafb-388541e2fe3c ro
[ 16857.854]  
[ 16857.854] Current version of pixman: 0.44.2
[ 16857.856]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[ 16857.856] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 16857.857] (==) Log file: "/home/cossont/.local/share/xorg/Xorg.0.log", Time: Mon May 19 13:34:43 2025
[ 16857.858] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 16857.858] (==) No Layout section.  Using the first Screen section.
[ 16857.858] (==) No screen section available. Using defaults.
[ 16857.858] (**) |-->Screen "Default Screen Section" (0)
[ 16857.858] (**) |   |-->Monitor "<default monitor>"
[ 16857.858] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[ 16857.858] (**) Allowing byte-swapped clients
[ 16857.858] (==) Automatically adding devices
[ 16857.858] (==) Automatically enabling devices
[ 16857.858] (==) Automatically adding GPU devices
[ 16857.858] (==) Automatically binding GPU devices
[ 16857.858] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 16857.858] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[ 16857.858]    Entry deleted from font path.
[ 16857.858] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[ 16857.858]    Entry deleted from font path.
[ 16857.858] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[ 16857.858]    Entry deleted from font path.
[ 16857.858] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi".
[ 16857.858]    Entry deleted from font path.
[ 16857.858]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi").
[ 16857.858] (==) FontPath set to:
        /usr/share/fonts/misc,
        /usr/share/fonts/75dpi
[ 16857.858] (==) ModulePath set to "/usr/lib64/xorg/modules"
[ 16857.858] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 16857.858] (II) Module ABI versions:
[ 16857.858]    X.Org ANSI C Emulation: 0.4
[ 16857.858]    X.Org Video Driver: 25.2
[ 16857.858]    X.Org XInput driver : 24.4
[ 16857.858]    X.Org Server Extension : 10.0
[ 16857.858] (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)
[ 16857.859] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 16857.859] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0
[ 16857.865] (--) PCI:*(0@0:2:0) 8086:3ea0:17aa:2279 rev 2, Mem @ 0xd7000000/16777216, 0xb0000000/268435456, I/O @ 0x00003000/64, BIOS @ 0x????????/131072
[ 16857.865] (II) LoadModule: "glx"
[ 16857.865] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[ 16857.866] (II) Module glx: vendor="X.Org Foundation"
[ 16857.866]    compiled for 1.21.1.16, module version = 1.0.0
[ 16857.866]    ABI class: X.Org Server Extension, version 10.0
[ 16857.866] (==) Matched intel as autoconfigured driver 0
[ 16857.866] (==) Matched modesetting as autoconfigured driver 1
[ 16857.866] (==) Matched fbdev as autoconfigured driver 2
[ 16857.866] (==) Matched vesa as autoconfigured driver 3
[ 16857.866] (==) Assigned the driver to the xf86ConfigLayout
[ 16857.866] (II) LoadModule: "intel"
[ 16857.866] (WW) Warning, couldn't open module intel
[ 16857.866] (EE) Failed to load module "intel" (module does not exist, 0)
[ 16857.866] (II) LoadModule: "modesetting"
[ 16857.866] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[ 16857.866] (II) Module modesetting: vendor="X.Org Foundation"
[ 16857.866]    compiled for 1.21.1.16, module version = 1.21.1
[ 16857.866]    Module class: X.Org Video Driver
[ 16857.866]    ABI class: X.Org Video Driver, version 25.2
[ 16857.866] (II) LoadModule: "fbdev"
[ 16857.866] (II) Loading /usr/lib64/xorg/modules/drivers/fbdev_drv.so
[ 16857.866] (II) Module fbdev: vendor="X.Org Foundation"
[ 16857.866]    compiled for 1.21.1.16, module version = 0.5.1
[ 16857.866]    Module class: X.Org Video Driver
[ 16857.866]    ABI class: X.Org Video Driver, version 25.2
[ 16857.866] (II) LoadModule: "vesa"
[ 16857.866] (II) Loading /usr/lib64/xorg/modules/drivers/vesa_drv.so
[ 16857.866] (II) Module vesa: vendor="X.Org Foundation"
[ 16857.866]    compiled for 1.21.1.16, module version = 2.6.0
[ 16857.866]    Module class: X.Org Video Driver
[ 16857.866]    ABI class: X.Org Video Driver, version 25.2
[ 16857.866] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 16857.866] (II) FBDEV: driver for framebuffer: fbdev
[ 16857.866] (II) VESA: driver for VESA chipsets: vesa
[ 16857.866] (EE) 
Fatal server error:
[ 16857.868] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
[ 16857.868] (EE) 
[ 16857.869] (EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
[ 16857.870] (EE) Please also check the log file at "/home/cossont/.local/share/xorg/Xorg.0.log" for additional information.
[ 16857.871] (EE) 
[ 16857.871] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
[ 16857.871] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
[ 16857.871] (EE) Server terminated with error (1). Closing log file.
It says that it can't open the module "intel" -- in VIDEO_CARDS I have set both intel and i915 and from "lspci -k", the module in use is i915.

I hope someone will see what is wrong.

wynnmc
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56094
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Mon May 19, 2025 3:54 pm

wynnmc,

Code: Select all

[ 16857.868] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied) 
You need one of systemd, elogind or to build xorg-server with USE=suid.
USE=suid is considered a bad thing and must not be set system wide.

You may well have elogind installed already. Is it started?
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
wynnmc
Tux's lil' helper
Tux's lil' helper
Posts: 90
Joined: Sun Dec 01, 2019 5:26 pm

  • Quote

Post by wynnmc » Mon May 19, 2025 4:53 pm

That's it! Thank you, Neddy ... don't go away, I'm going to install Xcfe4 now ...

Thanks a lot, wynnmc
Top
Banana
Administrator
Administrator
User avatar
Posts: 2394
Joined: Fri May 21, 2004 12:02 pm
Location: Germany
Contact:
Contact Banana
Website

  • Quote

Post by Banana » Mon May 19, 2025 5:27 pm

If you have choosen to use openrc instad of systemd, have a look here:

https://wiki.gentoo.org/wiki/Elogind
https://wiki.gentoo.org/wiki/Xfce
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Top
wynnmc
Tux's lil' helper
Tux's lil' helper
Posts: 90
Joined: Sun Dec 01, 2019 5:26 pm

  • Quote

Post by wynnmc » Mon May 19, 2025 6:21 pm

Thank you, Banana, I'm installing Xfce from the instructions on the page you mention.
I've now looked at the elogind page and I see that there are some things to do when xfce is installed. Somehow, on this machine, elogind just seems to work -- I remember the changeover some time ago but I don't remember having to make any configuration changes .. perhaps I've just forgotten.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic