You are not logged in.
1. I log into tty and I used to start X with an alias
$ type s
s is aliased to `startx &> ~/.xlog 2>~/.xxx'
but I can't do that anymore: https://bugs.archlinux.org/task/41257
Fatal server error:
(EE) xf86OpenConsole: Cannot open virtual console 2 (Permission denied)
I can type 'startx &> ~/.xlog 2>~/.xxx' but I'm lazy. How can I get the old behavior back?
2. I think X uses significantly more RAM now. Is there any special way to find out how much RAM is it using? ps_mem doesn't always agree with htop in this regard.
Offline
What if you use a script?
Offline
1. I log into tty and I used to start X with an alias
$ type s s is aliased to `startx &> ~/.xlog 2>~/.xxx'
Why do you redirect stderr twice? Are you using this alias in zsh? Because this is not even valid in bash, i.e. in bash it's equivalent to
startx > ~/.xlog 2> ~/.xxx
It seems to be some shell quirk. Try using a function?
This silver ladybug at line 28...
Offline
I followed https://wiki.archlinux.org/index.php/Start_X_at_Login but it didn't seem to work, so I just added '2>~/.xxx'.
I'm using bash.
Neither function nor a script seem to work. I get the same error and X doesn't start.
Is it possible that I mis-configured something?
Offline
xorg-server 1.16.0 caused LXDM to break on my own end. I had to downgrade to xorg-server 1.15.2. You might want to do so if your issue persists.
Last edited by iceTwy (2014-07-20 08:49:44)
Offline
I don't think X is broken, it just refuses to start unless I type 'startx' - I can't use an alias, a function or a script.
I'm using dwm and it still works with xorg-server 1.16.
Offline
xorg-server 1.16.0 caused LXDM to break on my own end. I had to downgrade to xorg-server 1.15.2. You might want to do so if your issue persists.
In what way does it break? I just tried out lxdm to start my Gnome session and everything worked fine.
Offline
I also am in the same problem since upgrading to Xorg-server 1.16, I can not get into Gnome but if lxde, I'm working with lxdm.
the truth can not find a way out.
Offline
Have you tried downgrading?
Offline
Many problems, I run out to the mouse cursor, you have to downgrade xf86-input-evdev, xf86-intel-viedo, and so many others the problem is serious, I hope that archlinux solve the problem quickly, or someone solved soon
Offline
You're using [testing] repo, so you should know that things might break from time to time.
Offline
That's right, that's the price, but very rarely happens, so you have to wait to solve the problem.
While I will continue with lxde, although I like most Gnome.
Offline
Confirmed. I start x from ~/.zsh/.zprofile with this:
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
exec startx -- vt1 &>/dev/null
logout
...
Running startx from another TTY works fine.
Bug report: https://bugs.archlinux.org/task/41257
Fix for me:
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
startx -- vt1; exit
logout
...
Offline
jasonwryan, can you reproduce karol's description? It still baffles me why an alias or function or script wouldn't work. What's in an alias?
Say, can you guys try different combinations of stdout/stderr redirection, each in the forms of hand typed command line and alias, for example?
karol, maybe `strace` will give some clue why the alias failed?
This silver ladybug at line 28...
Offline
I don't think it has anything to do with an alias or script: it is the (attempted) redirection. It throws this error:
Fatal server error:
[ 1505.243] (EE) xf86OpenConsole: VT_ACTIVATE failed: Operation not permitted
Offline
I don't think it has anything to do with an alias or script: it is the (attempted) redirection. It throws this error:
Fatal server error: [ 1505.243] (EE) xf86OpenConsole: VT_ACTIVATE failed: Operation not permitted
Sounds sane, so let's turn to karol...
I can type 'startx &> ~/.xlog 2>~/.xxx' but I'm lazy.
karol, tell me, did you ever type that, complete with the redirections? Or like you said, "but you're lazy"? In which case, ARE YOU KIDDING ME?!
This silver ladybug at line 28...
Offline
I meant I was too lazy to do it every time I wanted to start X.
I typed it in and got the same error as with the alias.
Edit: I can't seem to start X on another VT in any way, not even with just 'startx':
X.Org X Server 1.16.0
Release Date: 2014-07-16
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.15.1-1-ARCH i686
Current Operating System: Linux black 3.15.6-1-ck #1 SMP PREEMPT Fri Jul 18 17:51:16 EDT 2014 i686
Kernel command line: BOOT_IMAGE=../vmlinuz-linux-ck root=/dev/sda3 rw noapic elevator=bfq fbcon=scrollback:512k quiet zswap.enabled=1 zswap.compressor=lz4 zswap.max_pool_percent=50 i915.semaphores=1 initrd=../initramfs-linux-ck.img
Build Date: 18 July 2014 07:14:09PM
Current version of pixman: 0.32.6
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/karol/.local/share/xorg/Xorg.1.log", Time: Mon Jul 21 12:15:41 2014
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE)
Fatal server error:
(EE) xf86OpenConsole: Cannot open virtual console 2 (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/karol/.local/share/xorg/Xorg.1.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
Last edited by karol (2014-07-21 10:17:52)
Offline
Thanks for clearing that up for me
This silver ladybug at line 28...
Offline
Thanks for clearing that up for me
I'm not sure if it's sarcasm or not.
What should I check once I kill the X I'm in now? Starting it up, opening firefox etc. takes some time, so I might just do it all at once.
Offline
I can't start a second X. If I start one server on VT2, I can't start it on VT1 and vice-versa. Anyone else having this problem?
I don't know how can I redirect the output to a log, since redirecting makes to X fail and not stat. It also messes up the console, so I have to type 'exit' blindly and re-login.
$ ls -l /var/log/Xorg.0.log
-rw-r--r-- 1 root users 21095 Jul 19 02:55 /var/log/Xorg.0.log
I'll see in a moment if it's related to linux-ck, which I've installed recently.
Edit:
Nope. Doesn't work under stock kernel either.
I've installed xorg-server on 18th, seems it was logging fine, the last xorg log is from the next day. I did reboot a few times after I've installed xorg-server 1.16 on 18th and 19th.
Any then xorg-server stopped writing logs to /var/log.
Last edited by karol (2014-07-21 15:30:37)
Offline
Xorg 1.16 will log to ~/.local/share/xorg/Xorg.#.log when started as non root. Source.
Offline
Thanks for the link.
$ head -n2 /var/log/Xorg.0.log
[ 190.838]
X.Org X Server 1.16.0
I don't start X as root, I log in to VT as my user.
Offline
Thanks for the link.
$ head -n2 /var/log/Xorg.0.log [ 190.838] X.Org X Server 1.16.0
I don't start X as root, I log in to VT as my user.
Xorg will now automatically run as regular user when 1) you use the open source drivers and 2) use startx for launching. When you use a login manager it will run as as root even when you use the open source drivers, since there is support missing in the login managers to start it as regular user yet.
Offline
No login manager here. Some xorg-server 1.16 logs were saved in /var/log/ , some in ~/.local/share/xorg/ .
Offline
I'm on xorg 1.16 + intel 2.99.912-4 and llpp is slow as molasses, while mupdf is fast.
Not sure if this needs a separate thread, I'm just throwing this her for now.
Offline