I was attempting to explore my video card settings yesterday and ran nvidia-xconfig from termal, which didn’t actually launch any configurations. It did however mess up my Xorg settings so now I can’t boot into KDE. When I try running startx, I get:
xinit failed. /usr/bin/Xorg is not setuid, maybe that's the reason?
I’m assuming this is because running the nvidia-xconfig command replaced the intel driver with the nvidia driver in the xserver settings. I just need to know how to switch it back. Here is my Xorg.0.log:
927.337] Current version of pixman: 0.32.6
927.337] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
927.337] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
927.337] (==) Log file: "/home/xxxx/.local/share/xorg/Xorg.0.log", Time: Mon Dec 14 10:49:37 2015
927.337] (==) Using config file: "/etc/X11/xorg.conf"
927.337] (==) Using config directory: "/etc/X11/xorg.conf.d"
927.337] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
927.338] (==) ServerLayout "Layout0"
927.338] (**) |-->Screen "Screen0" (0)
927.338] (**) | |-->Monitor "Monitor0"
927.338] (**) | |-->Device "Device0"
927.338] (**) |-->Input Device "Keyboard0"
927.338] (**) |-->Input Device "Mouse0"
927.338] (==) Automatically adding devices
927.338] (==) Automatically enabling devices
927.338] (==) Automatically adding GPU devices
927.338] (WW) The directory "/usr/share/fonts/misc/sgi" does not exist.
927.338] Entry deleted from font path.
927.339] (==) FontPath set to:
/usr/share/fonts/misc:unscaled,
/usr/share/fonts/Type1/,
/usr/share/fonts/100dpi:unscaled,
/usr/share/fonts/75dpi:unscaled,
/usr/share/fonts/ghostscript/,
/usr/share/fonts/cyrillic:unscaled,
/usr/share/fonts/truetype/,
built-ins
927.339] (==) ModulePath set to "/usr/lib64/xorg/modules"
927.339] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
927.339] (WW) Disabling Keyboard0
927.339] (WW) Disabling Mouse0
927.339] (II) Loader magic: 0x80dd00
927.339] (II) Module ABI versions:
927.339] X.Org ANSI C Emulation: 0.4
927.339] X.Org Video Driver: 19.0
927.339] X.Org XInput driver : 21.0
927.339] X.Org Server Extension : 9.0
927.340] (++) using VT number 1
927.340] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
927.340] (II) xfree86: Adding drm device (/dev/dri/card0)
927.343] (--) PCI:*(0:0:2:0) 8086:0116:1028:04b6 rev 9, Mem @ 0xf1400000/4194304, 0xe0000000/268435456, I/O @ 0x00004000/64
927.343] (II) LoadModule: "glx"
927.343] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
927.345] (II) Module glx: vendor="X.Org Foundation"
927.345] compiled for 1.17.2, module version = 1.0.0
927.345] ABI class: X.Org Server Extension, version 9.0
927.345] (==) AIGLX enabled
927.345] (II) LoadModule: "nvidia"
927.345] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
927.345] (II) Module nvidia: vendor="NVIDIA Corporation"
927.345] compiled for 4.0.2, module version = 1.0.0
927.345] Module class: X.Org Video Driver
927.346] (II) NVIDIA dlloader X Driver 352.63 Sat Nov 7 20:29:25 PST 2015
927.346] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
927.346] (EE)
Fatal server error:
927.346] (EE) xf86OpenConsole: VT_ACTIVATE failed: Operation not permitted
927.346] (EE)
927.346] (EE)
startx doesn’t work as user because of missing privileges.
Run it as root, or make /usr/bin/Xorg suid root.
But that’s a security risk.
Delete the file /etc/X11/xorg.conf .
Oh, and if you have a hybrid intel+nvidia system (“Optimus”), you should not install the standard nvidia driver, it doesn’t support this and breaks the intel driver.
ERROR: libnvidia-gtk3.so.352.63: cannot open shared object file: No such file or directory
libnvidia-gtk3.so: cannot open shared object file: No such file or directory
libnvidia-gtk2.so.352.63: cannot open shared object file: No such file or directory
libnvidia-gtk2.so: cannot open shared object file: No such file or directory