[ 56778.575] X Protocol Version 11, Revision 0
[ 56778.576] Build Operating System: Linux 4.4.6-gentoo i686 Gentoo
[ 56778.577] Current Operating System: Linux ultralow 4.4.6-gentoo #4 SMP Fri Oct 7 20:12:08 CST 2016 i686
[ 56778.578] Kernel command line: BOOT_IMAGE=/vmlinuz-4.4.6-gentoo root=/dev/mapper/gentoo--root-gentoo--root--netbook--0 ro dolvm domdadm rootfstype=ext4
[ 56778.581] Build Date: 06 October 2016 03:27:54PM
[ 56778.582]
[ 56778.584] Current version of pixman: 0.34.0
[ 56778.587] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 56778.588] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 56778.595] (==) Log file: "/home/zhqtdhzh/.local/share/xorg/Xorg.4.log", Time: Wed Oct 19 13:12:33 2016
[ 56778.697] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 56778.700] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 56778.731] (==) No Layout section. Using the first Screen section.
[ 56778.731] (==) No screen section available. Using defaults.
[ 56778.731] (**) |-->Screen "Default Screen Section" (0)
[ 56778.731] (**) | |-->Monitor ""
[ 56778.752] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 56778.753] (**) | |-->Device "intel"
[ 56778.753] (**) | |-->GPUDevice "modesetting"
[ 56778.753] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 56778.753] (==) Automatically adding devices
[ 56778.753] (==) Automatically enabling devices
[ 56778.753] (==) Automatically adding GPU devices
[ 56778.753] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 56778.753] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[ 56778.753] Entry deleted from font path.
[ 56778.753] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[ 56778.753] Entry deleted from font path.
[ 56778.753] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[ 56778.753] Entry deleted from font path.
[ 56778.753] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[ 56778.753] Entry deleted from font path.
[ 56778.753] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[ 56778.753] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[ 56778.753] Entry deleted from font path.
[ 56778.753] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[ 56778.753] (==) FontPath set to:
/usr/share/fonts/misc/
[ 56778.753] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 56778.753] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 56778.759] (II) Loader magic: 0x829b680
[ 56778.759] (II) Module ABI versions:
[ 56778.759] X.Org ANSI C Emulation: 0.4
[ 56778.759] X.Org Video Driver: 20.0
[ 56778.759] X.Org XInput driver : 22.1
[ 56778.759] X.Org Server Extension : 9.0
[ 56778.760] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 56778.762] (--) PCI:*(0:0:2:0) 8086:22b1:1d05:101a rev 33, Mem @ 0x80000000/16777216, 0x90000000/268435456, I/O @ 0x0000f000/64
[ 56778.763] (II) LoadModule: "glx"
[ 56778.763] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 56778.773] (II) Module glx: vendor="X.Org Foundation"
[ 56778.773] compiled for 1.18.4, module version = 1.0.0
[ 56778.773] ABI class: X.Org Server Extension, version 9.0
[ 56778.773] (==) AIGLX enabled
[ 56778.773] (II) LoadModule: "intel"
[ 56778.773] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 56778.773] (II) Module intel: vendor="X.Org Foundation"
[ 56778.773] compiled for 1.18.4, module version = 2.99.917
[ 56778.773] Module class: X.Org Video Driver
[ 56778.773] ABI class: X.Org Video Driver, version 20.0
[ 56778.773] (II) LoadModule: "modesetting"
[ 56778.774] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 56778.796] (II) Module modesetting: vendor="X.Org Foundation"
[ 56778.796] compiled for 1.18.4, module version = 1.18.4
[ 56778.796] Module class: X.Org Video Driver
[ 56778.796] ABI class: X.Org Video Driver, version 20.0
[ 56778.796] (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
[ 56778.797] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[ 56778.797] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[ 56778.797] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
[ 56778.797] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 56778.797] (EE)
Fatal server error:
[ 56778.801] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
[ 56778.804] (EE)
[ 56778.806] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 56778.816] (EE) Please also check the log file at "/home/zhqtdhzh/.local/share/xorg/Xorg.4.log" for additional information.
[ 56778.819] (EE)
Last edited by zhqtdhzh on Sun Oct 23, 2016 2:36 pm; edited 1 time in total
1. Create new rule to make device files readable
Code:
# cat /lib/udev/rules.d/50-udev-default.rules | sed -n "21{s/0620/0660/;p}" > /etc/udev/rules.d/mytty.rules
# udevadm control --reload
# udevadm trigger
2. Add user into supplement group 'tty'. This is a dangerous according to my referred post.
Code:
# usermod -aG tty user
3. Logout and Login
4. Try Xorg and it reports:
Code:
xf86EnableIOPorts failed to set IOPL for I/O operation not permitted
, and found no screen in config files.
5. Read log file to find permission to operate on /dev/dri/card0 is disallowed.
6.
Code:
# usermod -aG video user
to have an additional supplement group for me.
7. Logout and login
8. Try Xorg. There is no more (EE) message, and I have an 'X desktop'. Hooray.
9. But my touchpad is not working. Try search Internet to find this link:
https://wiki.gentoo.org/wiki/Non_root_Xorg
. Gentoo's wiki is so gr~r~eat. Why not have been found it earlier?
10. Find my laptop dead. Not only a unworking touchpad, there also are blalcked-out screen and keyboard due to energe-saving..(by apmd or acpid?)
11. While waiting for one or two days for completing the updating task to make sure my laptop power off safely, noobs having a Xorg server compiled without suid flag, like me, are warned here:
Just refer to the wiki page, "Non root Xorg". It's at
https://wiki.gentoo.org/wiki/Non_root_Xorg
.
Let's look at the more secure alternative method which arranges user NOT in input or tty group.
When I had conditions like:
====================
/dev/event0 root input
/dev/event10 root input
/dev/mice root input
/dev/mouse0 root input
/usr/bin/Xorg -rwxr-s-r-x root input
/dev/tty[1-4] crw--w----root tty
/dev/tty5 crw------- user tty # user had logged on this tty
/dev/tty6 crw--w---- root tty
user groups: user, video
==================
".. parse_vt_settings: .. /dev/tty0 ..permission .."
solution: add user into wheel group (or maybe root group
).
----found by my fingers.
I don't know where wheel's power comes from in detail, but it works.
Better add this fact into wiki.gentoo.org/wiki/non_root_Xorg by someone of you gentoos.
regards.
===================
Well been shamefully provided a totally wrong recommend, I'm here to reclaim that: non_root_Xorg page is all right. Never bother to wheel group for permission thingies. Specifying a wrong (unlogged on) virtual terminal simly leads to tty reading operation to fail. If any user logged on via tty5, then append "vt5" onto server's options of xinit/startx in command line...(after the "--").
A) follow some weird wiki page to try to get the DEFAULT setup fixed, with mixed degrees of success, from what I've read around
B) open your throat and taste X as root, either by suid, wheel or, just be brave, by directly logging in as root (why not? same nonsense)
Before openly declaring what I think about this (you might already have an intuition
), I'd truly like to know what the hell is going on here or if there's something basic that I have missed during these last years.
ETA: startx could even be modified to add the user to the proper groups, and then remove them at the end of the session.
This isn't rocket science.
As the top of the startx file says
Code:
# This is just a sample implementation of a slightly less primitive
# interface than xinit. It looks for user .xinitrc and .xserverrc
# files, then system xinitrc and xserverrc files, else lets xinit choose
# its default. The system xinitrc should probably do things like check
# for .Xresources files and merge them in, start up a window manager,
# and pop a clock and several xterms.