You are not logged in.

#1 2014-08-10 03:12:12

xedchou
Member
Registered: 2014-02-27
Posts: 23

[Solved] Xinit failed with the newest xorg-server(but startx works)

Hey guys, I upgraded my xorg-server to 1.16 servral days ago, you know, with the rootless support using systemd-logind.service. Then I experienced with servral problems.

1. I can't use xinit to start my DWM ever again, nevertheless, startx works, I checked its scripts roughly, it seems startx do nothing but "xinit client clientargs". Here is my Xorg.0.log

[  1361.528] (==) AIGLX enabled
[  1361.528] (==) Matched intel as autoconfigured driver 0
[  1361.528] (==) Matched intel as autoconfigured driver 1
[  1361.528] (==) Matched modesetting as autoconfigured driver 2
[  1361.528] (==) Matched fbdev as autoconfigured driver 3
[  1361.528] (==) Matched vesa as autoconfigured driver 4
[  1361.528] (==) Assigned the driver to the xf86ConfigLayout
[  1361.528] (II) LoadModule: "intel"
[  1361.528] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[  1361.528] (II) Module intel: vendor="X.Org Foundation"
[  1361.528]    compiled for 1.16.0, module version = 2.99.914
[  1361.528]    Module class: X.Org Video Driver
[  1361.528]    ABI class: X.Org Video Driver, version 18.0
[  1361.528] (II) LoadModule: "modesetting"
[  1361.528] (WW) Warning, couldn't open module modesetting
[  1361.528] (II) UnloadModule: "modesetting"
[  1361.528] (II) Unloading modesetting
[  1361.528] (EE) Failed to load module "modesetting" (module does not exist, 0)
[  1361.528] (II) LoadModule: "fbdev"
[  1361.528] (WW) Warning, couldn't open module fbdev
[  1361.528] (II) UnloadModule: "fbdev"
[  1361.528] (II) Unloading fbdev
[  1361.528] (EE) Failed to load module "fbdev" (module does not exist, 0)
[  1361.528] (II) LoadModule: "vesa"
[  1361.528] (WW) Warning, couldn't open module vesa
[  1361.528] (II) UnloadModule: "vesa"
[  1361.528] (II) Unloading vesa
[  1361.528] (EE) Failed to load module "vesa" (module does not exist, 0)
[  1361.528] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
        i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
        915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
        Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
        GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[  1361.529] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[  1361.529] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[  1361.529] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
[  1361.529] (EE) 
Fatal server error:
[  1361.529] (EE) xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)
[  1361.529] (EE) 
[  1361.529] (EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
[  1361.529] (EE) Please also check the log file at "/home/developer/.local/share/xorg/Xorg.0.log" for additional information.

Since /dev/tty0 is always there, I dont know why or if there is anything to do with systemd-logind. In addition, xinit with root is totally dead, I got a blank screen every time and pkill X won't work.

2. The switch function(Ctrl+Alt+Fx) is really painful, like back to UMS times, but i915 module is loaded as early as possible(early start). And every time I switched, the xbakclight value changed to maximum.

Any guys experienced same problem or have any suggestion?
Please help

Last edited by xedchou (2014-08-11 01:23:23)

Offline

#2 2014-08-10 09:19:04

xedchou
Member
Registered: 2014-02-27
Posts: 23

Re: [Solved] Xinit failed with the newest xorg-server(but startx works)

anyway, guys what is really about rootless support? I used to start X from tty1 ~ tty6 with xinit, and it doesn't requires root permission, as I use startx now.

In additon, Anyone notice the /usr/bin/X* files, we have Xorg (with rwsr-sr-s permission) and Xorg.bin( regular rwxr-xr-x). I guess Xorg.bin is the one to use since it is much bigger.
I modifed the permission for normal user this morning and when I start xinit, I got blank screen...

Anyone knows what exactly blank screen means?

Offline

#3 2014-08-10 10:39:09

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Xinit failed with the newest xorg-server(but startx works)

X used to run as root, even if you started it as a user, check the output of ps or htop if you don't believe me.
Have you tried using the wrapper to start X the old was, so it's run as root?

$ file /usr/bin/Xorg
/usr/bin/Xorg: POSIX shell script, ASCII text executable
$ cat /usr/bin/Xorg
#!/bin/sh
#
# Execute Xorg.wrap if it exists otherwise execute Xorg.bin directly.
# This allows distros to put the suid wrapper in a separate package.

basedir=/usr/bin
if [ -x "$basedir"/Xorg.wrap ]; then
        exec "$basedir"/Xorg.wrap "$@"
else
        exec "$basedir"/Xorg.bin "$@"
fi

What exactly is the problem, you say that startx works - doesn't it mean you can start X, dwm etc.?

Offline

#4 2014-08-10 11:47:58

xedchou
Member
Registered: 2014-02-27
Posts: 23

Re: [Solved] Xinit failed with the newest xorg-server(but startx works)

karol wrote:

X used to run as root, even if you started it as a user, check the output of ps or htop if you don't believe me.
Have you tried using the wrapper to start X the old was, so it's run as root?

$ file /usr/bin/Xorg
/usr/bin/Xorg: POSIX shell script, ASCII text executable
$ cat /usr/bin/Xorg
#!/bin/sh
#
# Execute Xorg.wrap if it exists otherwise execute Xorg.bin directly.
# This allows distros to put the suid wrapper in a separate package.

basedir=/usr/bin
if [ -x "$basedir"/Xorg.wrap ]; then
        exec "$basedir"/Xorg.wrap "$@"
else
        exec "$basedir"/Xorg.bin "$@"
fi

What exactly is the problem, you say that startx works - doesn't it mean you can start X, dwm etc.?

Yeah, it sounds confusing, startx did work but sinlge xinit didn't. I haven't view startx script very carefully, so I  really dont know the difference...

The most important problem is actually the painful experience when I switch between tty and X(just like old UMS days).

Offline

#5 2014-08-10 12:16:10

xedchou
Member
Registered: 2014-02-27
Posts: 23

Re: [Solved] Xinit failed with the newest xorg-server(but startx works)

Finally, I use

 xinit -- /etc/X11/xinit/xserverrc

to replace navie xinit command and it worked.

Offline

#6 2014-08-10 13:33:46

xedchou
Member
Registered: 2014-02-27
Posts: 23

Re: [Solved] Xinit failed with the newest xorg-server(but startx works)

How to mark this thread as solved?

Offline

#7 2014-08-10 13:47:58

o_caino
Member
Registered: 2013-06-06
Posts: 167

Re: [Solved] Xinit failed with the newest xorg-server(but startx works)

Edit the first post.

Offline

#8 2014-08-11 01:23:47

xedchou
Member
Registered: 2014-02-27
Posts: 23

Re: [Solved] Xinit failed with the newest xorg-server(but startx works)

-

Last edited by xedchou (2014-08-11 11:10:58)

Offline

Board footer

Powered by FluxBB