LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 11-14-2016, 08:15 AM   #1
cellsheet
LQ Newbie
 
Registered: Aug 2014
Posts: 16

Rep: Reputation: Disabled
Xorg - parse_vt_settings: cannot open /dev/tty0


I've completed X.org building on my LFS distro the other day - however now I cannot start x as a normal user. Starting X as root seems to work. This is my Xorg.0.log:

Code:
[   220.388] 
X.Org X Server 1.18.4
Release Date: 2016-07-19
[   220.388] X Protocol Version 11, Revision 0
[   220.388] Build Operating System: Linux 4.7.2 x86_64 
[   220.388] Current Operating System: Linux lfs 4.7.2 #4 SMP Sat Nov 12 18:14:49 EST 2016 x86_64
[   220.389] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.7.2-lfs-7.10-systemd root=/dev/sdc2 rootdelay=10 ro
[   220.389] Build Date: 12 November 2016  08:49:46PM
[   220.389]  
[   220.389] Current version of pixman: 0.34.0
[   220.389] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   220.389] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   220.389] (==) Log file: "/home/jacob/.local/share/xorg/Xorg.0.log", Time: Mon Nov 14 08:55:47 2016
[   220.400] (==) Using config file: "/etc/X11/xorg.conf"
[   220.400] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   220.441] (==) ServerLayout "Layout0"
[   220.441] (**) |-->Screen "Screen0" (0)
[   220.441] (**) |   |-->Monitor "Monitor0"
[   220.441] (**) |   |-->Device "Device0"
[   220.441] (**) |-->Input Device "Keyboard0"
[   220.441] (**) |-->Input Device "Mouse0"
[   220.441] (==) Automatically adding devices
[   220.441] (==) Automatically enabling devices
[   220.441] (==) Automatically adding GPU devices
[   220.441] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   220.481] (==) FontPath set to:
	/usr/share/fonts/X11/misc/,
	/usr/share/fonts/X11/TTF/,
	/usr/share/fonts/X11/OTF/,
	/usr/share/fonts/X11/Type1/,
	/usr/share/fonts/X11/100dpi/,
	/usr/share/fonts/X11/75dpi/
[   220.481] (==) ModulePath set to "/usr/lib/xorg/modules"
[   220.481] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[   220.481] (WW) Disabling Keyboard0
[   220.481] (WW) Disabling Mouse0
[   220.481] (II) Loader magic: 0x816ce0
[   220.481] (II) Module ABI versions:
[   220.481] 	X.Org ANSI C Emulation: 0.4
[   220.481] 	X.Org Video Driver: 20.0
[   220.481] 	X.Org XInput driver : 22.1
[   220.481] 	X.Org Server Extension : 9.0
[   220.496] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[   220.497] (II) xfree86: Adding drm device (/dev/dri/card0)
[   220.498] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 8 paused 0
[   220.500] (--) PCI:*(0:1:0:0) 10de:1b80:3842:6386 rev 161, Mem @ 0xde000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[   220.500] (II) Open ACPI successful (/var/run/acpid.socket)
[   220.500] (II) LoadModule: "glx"
[   220.502] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   220.590] (II) Module glx: vendor="X.Org Foundation"
[   220.590] 	compiled for 1.18.4, module version = 1.0.0
[   220.590] 	ABI class: X.Org Server Extension, version 9.0
[   220.590] (==) AIGLX enabled
[   220.590] (II) LoadModule: "nvidia"
[   220.591] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[   220.708] (II) Module nvidia: vendor="NVIDIA Corporation"
[   220.708] 	compiled for 4.0.2, module version = 1.0.0
[   220.708] 	Module class: X.Org Video Driver
[   220.714] (II) NVIDIA dlloader X Driver  375.10  Fri Oct 14 09:38:17 PDT 2016
[   220.714] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   220.715] (EE) 
Fatal server error:
[   220.715] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
[   220.715] (EE) 
[   220.715] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   220.715] (EE) Please also check the log file at "/home/jacob/.local/share/xorg/Xorg.0.log" for additional information.
[   220.715] (EE)
I also have /etc/X11/Xwrapper.config with the following:

Code:
allowed_users=anybody
needs_root_rights=yes
and /dev/tty0 has the following permissions:

crw--w---- 1 root tty 4, 0 Nov 14 08:52 /dev/tty0

Edit: After looking at https://bbs.archlinux.org/viewtopic.php?id=184496&p=2 the following has worked for now:
Code:
 alias startx="startx -- vt1 -keeptty > ~/.xorg.log 2>&1"
but I'm wondering if there's a proper fix for this to continue simply using startx?

Last edited by cellsheet; 11-14-2016 at 06:39 PM.
 
Old 11-15-2016, 01:59 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
probably try to set rights to crw-rw-rw-
 
Old 11-16-2016, 11:50 PM   #3
anak_bawang
Member
 
Registered: Jun 2015
Location: Bandung Indonesia
Distribution: Debian, LFS/BLFS
Posts: 138

Rep: Reputation: 23
Have the same problem.

You should re-compile xinit-1.3.4 and remove this sed :
Code:
sed -e '/$serverargs $vtarg/ s/serverargs/: #&/' \
    -i startx.cpp
Hope that also works with you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
startx fail: .serverauth.2571 + fbdev + /dev/tty0 Drone4four Slackware 23 01-18-2012 01:40 PM
Startx error: cannot open /dev/tty0 fortea Linux - General 3 09-01-2011 04:27 AM
[SOLVED] Clone standard output to /dev/tty0 truboy Linux - Newbie 2 01-10-2011 07:04 AM
xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) souhakubunn Linux - Software 1 10-04-2007 07:11 AM
/dev/tty0, /dev/tty1, /dev/tty10...and so on...which should be used for a device ??? b0nd Slackware 2 04-02-2006 08:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 12:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration