You are not logged in.
Description
startx does not work, but xinit works. Can you please help me troubleshoot the issue?
startx output
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
/var/log/Xorg.0.log just after startx
https://gist.github.com/kozikow/c8bc60d … 874ab7bf13
What's the ~/.xinitrc
exec gnome-session
What's the Xorg.conf
https://gist.github.com/kozikow/c6dfeef … 7d25230202
Generated by nvidia-settings - I have 2 GPU and 3 monitor setup.
~/.Xauthority
I was suspecting it's related to corrupted ~/.Xauthority file, so I re-generated it as described in http://justaix.blogspot.com/2011/01/cre … -file.html. It didn't help.
Last edited by kozikow (2017-01-03 08:05:40)
Offline
[ 258.108] (II) Server terminated successfully (0). Closing log file.
Hmm, this usually means missing .xinitrc. Are you running startx with the same user where xinitrc is located? I hope you are not running with sudo or root...
https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...
Offline
IMHO it is related to the fucking systemd.
systemd introduce root-less X (which is good), but need, of course, overcomplicated sort of authorisation.
Google for "startx systemd" and you will get results with the same problem.
Please post clear instructions / add/modify the Arch Wiki when you find the solution.
Offline
If you want to troll, cuss, and spread FUD, do it elsewhere. This is your only warning.
As to the issue at hand, all is as as expected. If startx works, use it. If you want to use xinitrc, you need to pass some parameters to the xserver yourself. I use xinit directly, and here's the excerpt from my bash_profile (removed as irrelevant).
EDIT (as per below)
Oops, sorry. I really switched that around in my reading. It's pretty odd that startx would fail when xinit works - my only guess would be in line with ugjka's about these not being run as the same (regular) user.
Last edited by Trilby (2017-01-03 22:06:57)
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
@Trilby, apparently startx does *not* work while xinit does.
If it's because of ... rootless X11 ;-) see https://wiki.archlinux.org/index.php/xo … 28v1.16.29 and try to enforce running X11 as root.
The wiki clearly states it requires xinit - startx might be a false positive. But you also seem to be on nvidia which won't support rootless X but maybe for the most recent kernel module, so I'd say that ugjka has the stronger lead.
Offline