You are not logged in.

#1 2020-01-12 05:48:06

callmejoe
Member
Registered: 2019-03-06
Posts: 71

[solved] startx only works as root

I have arch installed without a DE.  I have xorg-server and xorg-xinit packages installed and im set up to auto login. 

startx seems to fail unless i use sudo startx.  I've made sure the .Xauthority file is owned by me and not root.  I've also tried deleting it and rebooting but didn't solve my issue.

The Xorg.0.log shows this error at the end

AddScreen/ScreenInit failed for driver 0

I've looked at the FAQs on https://www.x.org/wiki/FAQErrorMessages/

refers to this, but i dont see an xorg.conf file in /etc/X11 and I don't have an old graphics card

I keep getting the message: "AddScreen/ScreenInit failed for driver 0"

You get an error message like:

(EE) R128(0): (Ron = 12288) + (Rloop = 17) >= (Roff = 12012)
Fatal server error:
AddScreen/ScreenInit failed for driver 0

This kind of problem typically occurs when you're using a big monitor with an old graphics card. You can solve it by deleting some of the highest resolutions of the deepest colour mode in the Screen section of your xorg.conf, or even the whole last Display subsection.

here is my Xorg.o.log file http://dpaste.com//2B7CZZA

Last edited by callmejoe (2020-01-13 00:13:12)

Offline

#2 2020-01-12 06:15:44

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [solved] startx only works as root

Don't run X as root.

Paste the output of `ls -la /home/callmejo` and your .xinitrc.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2020-01-12 09:53:38

seth
Member
Registered: 2012-09-03
Posts: 49,951

Offline

#4 2020-01-12 17:58:54

callmejoe
Member
Registered: 2019-03-06
Posts: 71

Re: [solved] startx only works as root

jasonwryan wrote:

Don't run X as root.

Paste the output of `ls -la /home/callmejo` and your .xinitrc.

here is the output of ls on my home dir
http://dpaste.com//2EAQW93

i am not using a .xinitrc file in my home directory since i just want use system default xinitrc  at /etc/X11/xinit/xinitrc

Offline

#5 2020-01-12 18:08:45

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: [solved] startx only works as root

Offline

#6 2020-01-12 22:22:08

callmejoe
Member
Registered: 2019-03-06
Posts: 71

Re: [solved] startx only works as root

1. enabling early KMS did not work for me
2. systemctl daemon-reload.  this worked, but doesn't survive reboot

i noticed after exiting from Xserver there was a message that i didn't have xclock installed.  I installed it and startx works for me now as a non-root user.  Then I decided to see what would happen if I commented out the xclock line in /etc/X11/xinit/xinitrc file.  startx bombs again.  i have to uncomment and reboot, then startx works again.

Offline

#7 2020-01-12 22:26:50

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [solved] startx only works as root

Do you auto-login/startx? What if you replace xclock w/ "sleep 2" (don't add an ampersand!)

Offline

#8 2020-01-13 00:12:56

callmejoe
Member
Registered: 2019-03-06
Posts: 71

Re: [solved] startx only works as root

seth wrote:

Do you auto-login/startx? What if you replace xclock w/ "sleep 2" (don't add an ampersand!)

i do auto-login and type startx manually.

i actually removed the xclock line altogether and startx worked without issue.  i even added xclock back and commneted it out and startx works fine.

so at this point i am not sure what i really did to get startx to work (or not work) hmm

oh well.  i'm happy its working again and will mark as solved.

Offline

Board footer

Powered by FluxBB