XFCE, Xorg 1.17.1 and Fatal server error: xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)
Jamenson Ferreira Espindula de Almeida Melo
jafesp at gmail.com
Fri Jun 19 12:03:31 CEST 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Jaboatão dos Guararapes, Pernambuco, Brazil, 19 june 2015.
Subject: XFCE, Xorg 1.17.1 and Fatal server error: xf86OpenConsole:
Cannot open /dev/tty0 (No such file or directory)
Hi, everybody.
I just instaled XFCE according to instructions in a Linux From Scrach
(LFS) box. I run "startxfce4" script, as a normal user, and I got this
error:
Fatal server error: xf86OpenConsole: Cannot open /dev/tty0 (No such file
or directory)
Searching the Internet, I found a thread explaining some of interest:
- ---------- start of text citation ----------
When attempting to open the console device during initialization, X
first tries to open /dev/tty0 in write-only mode, and if that fails it
attempts to open /dev/vc/0. If both attempts fail, the error message
below is logged. The message is incorrect because the errno is that
resulting from the failure to open /dev/vc/0.
xf86OpenConsole: Cannot open /dev/tty0 ({strerror(errno)})
On a machine in which /dev/tty0 does exist but /dev/vc/0 does not, such
as my machine, the log misleadingly says:
Fatal server error: [ 3167.976] xf86OpenConsole: Cannot open
/dev/tty0 (No such file or directory)
This patch fixes the log to report the correct errno for each device.
The result is this log snippet:
[ 3755.177] (WW) xf86OpenConsole: Failed to open /dev/tty0 for
writing (Permission denied)
[ 3755.177] (WW) xf86OpenConsole: Failed
to open /dev/vc/0 for writing (No such file or directory)
[ 3755.177] Fatal server error: [ 3755.177] xf86OpenConsole: Failed to
open console device
Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
---
hw/xfree86/os-support/linux/lnx_init.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/hw/xfree86/os-support/linux/lnx_init.c \
b/hw/xfree86/os-support/linux/lnx_init.c
index 2176985..b1ad1a8 100644
- --- a/hw/xfree86/os-support/linux/lnx_init.c
+++ b/hw/xfree86/os-support/linux/lnx_init.c
@@ -96,13 +96,13 @@ \
xf86OpenConsole(void)
while (tty0[i] != NULL) {
if ((fd = open(tty0[i],O_WRONLY,0)) >= 0)
break;
+ xf86Msg(X_WARNING, "xf86OpenConsole: Failed \
to open %s for"
+ "writing (%s)\n", tty0[i], strerror(errno));
i++;
}
if (fd < 0)
- - FatalError(
- - "xf86OpenConsole: Cannot open /dev/tty0 (%s)\n",
- - strerror(errno));
+ FatalError("xf86OpenConsole: Failed to open \
console device\n");
if (xf86Info.ShareVTs)
{
- --
1.7.7.4
- ---------- end of text citation ----------
In fact, when Xorg 1.17.1 is run as "root" user, the "xf86OpenConsole:
Cannot open /dev/tty0 (No such file or directory)" error message no
longer appears, sugesting some permission problem.
Detail: script "startx" of Xorg 1.17.1 is OK. The Window Manager "twm"
is executed OK. Aparently XFCE Desktop Manager is the problem.
Question: What is the problem? How can I solve it?
XFCE Core packages compiled and installed (according to
http://www.linuxfromscratch.org/blfs/view/systemd/xfce/xfce-core.html):
libxfce4util-4.10.1
Xfconf-4.10.0
libxfce4ui-4.10.0
Exo-0.10.2
Garcon-0.3.0
gtk-xfce-engine-3.0.1
libwnck-2.30.7
libxfcegui4-4.10.0
xfce4-panel-4.10.1
xfce4-xkb-plugin-0.5.6
Thunar-1.6.4
thunar-volman-0.8.0
Tumbler-0.1.30
xfce4-appfinder-4.10.1
xfce4-power-manager-1.4.2
xfce4-settings-4.10.1
Xfdesktop-4.10.3
Xfwm4-4.10.1
xfce4-session-4.10.1
Thank you.
Jamenson Ferreira Espindula de Almeida Melo
GNU/Linux user # 166197
https://linuxcounter.net/cert/166197.png
Key fingerprint: 234D 1914 4224 7C53 BD13 6855 2AE0 25C0 08A8 6180
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.26 (GNU/Linux)
iQEcBAEBCAAGBQJVg9syAAoJECrgJcAIqGGAD2QH/3VJ66Ac6CkfcuBjGfstn6L4
5JnxHM+11EM3zHKHmKLwwkXtDLdVa40ZCQ8QWMqpGeck5aenJpOsKM4Othvt4yHH
hKIcGIJmpWfC8QjNAfqJDI8DsOk4Gt1yYUy8JRH0jXcJtIgEKWEZnEmzTPU9/Q3M
8sPyeMx/5uo42mmddV2prNKqtCHFOGHpXTcYpueNG/ZxuellFMJLCxMdo9FbIarU
5Lfa5spjIMRq0wuzTfqbqhi4Tt7ANTZ/AioH9mRIrZAR502zRI7qQtsa5co2dQBD
nqwkAWbgrsyIbbeMVurFFIrPxvNj5A+go5HiAUwDUfO22A08m18a4hNor751S8A=
=YByR
-----END PGP SIGNATURE-----
More information about the Xfce
mailing list