You are not logged in.

#1 2019-05-29 22:57:03

mountaineerbr
Banned
Registered: 2018-12-08
Posts: 48

[ SOLVED ] XINIT - Root account takes a long time to load Wallpaper

Hello all.

I have been with this problem for some time. Now I get the time to try and solve it.

When I use the command xinit for my normal user account ( it has a  well-configured
.xinitrc), or startxfce4 from a log-in shell, XORG and DE open fine.

When I try to issue an xinit command for my root account from a log-in shell, XORG
does open. XFCE pannel opens OK and quickly. But wallpaper and desktop icons do
_not_ show up for quite some time, maybe 2 minutes. All there is is a grey wallpaper.
Also, I cannot change the wallpaper while it is grey.

If in the meantime of desktop wallpaper loading, I try to log-out or shutdown from
the wisker menu, nothing happens. Logout only happens after wallpaper and desktop
icons get loaded.

I also tried to remove the root user folder and make an empty folder for root.
I also tried to xinit to load TWM, only to find that the problems persists even with
TWM instead of XFCE! meaning in this latter case, I cannot exit TWm until wallpaper
loads completely...

Here are XORG logs.

This one is from the root (/var/log/Xorg.0.log):
https://pastebin.com/sHfaJ939

And this one for my normal user:
https://pastebin.com/CXY9cJXB

I did a vimdiff and the only part of the logs that differs, so far have not
helped me out to find what is causing this problem.

From Root's XORG log:

Root Xorg
[   263.568] (II) modeset(0): using drv /dev/dri/card0
[   263.568] (II) modeset(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32

Which interestingly, but uselessly, differs from normal user's
at about line number 90:

User Xorg
[   169.444] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[   169.444] (II) modeset(0): using drv /dev/dri/card0
[   169.444] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   169.444] (II) modeset(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32

What I did so far after some googling:
1) Reinstalled XORG,
2) and installed acpi and acpid
3) tried to unplug bluetooth mouse,
    usb keyboard and external HDMI monitor

Neither solved the problem.

Last edited by mountaineerbr (2019-05-30 00:05:01)

Offline

#2 2019-05-29 23:00:28

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [ SOLVED ] XINIT - Root account takes a long time to load Wallpaper

Why are you trying to run X as root?

Offline

#3 2019-05-29 23:06:55

mountaineerbr
Banned
Registered: 2018-12-08
Posts: 48

Re: [ SOLVED ] XINIT - Root account takes a long time to load Wallpaper

Well, that is a good question really...

It is not absolutely necessary for root to have a graphical interface,
so should I just forget about running X as root then?

PS: I'd be very happy to mark this as solved, to know that that is not
a bug with my system and live my life happily without trying to start X
as root ever again.. lol

Last edited by mountaineerbr (2019-05-29 23:13:00)

Offline

#4 2019-05-29 23:21:39

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [ SOLVED ] XINIT - Root account takes a long time to load Wallpaper

mountaineerbr wrote:

It is not absolutely necessary for root to have a graphical interface

No it is not necessary - and it's generally considered a very bad idea.  The question was why would you even want to do it?  If you have some reason it'd be good to share it as there might be some other misunderstanding or miscommunication - but if your reasons for running X as root are "just cause" then definitely stop immediately.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#5 2019-05-30 00:04:38

mountaineerbr
Banned
Registered: 2018-12-08
Posts: 48

Re: [ SOLVED ] XINIT - Root account takes a long time to load Wallpaper

That is it, guys. Thanks!

I do not need a GUI for root at all. I use the shell.
So no good reason to run X as root...

There are many not-problems I incur, but that
is because my lack of *NIX etiquette.

Cheers!

Last edited by mountaineerbr (2019-05-30 00:08:47)

Offline

Board footer

Powered by FluxBB