You are not logged in.
So far I have been pretty successful with setting up my XPS 15 9550. It wasn't until I tried to run a certain game (Crusader Kings 2) that I realized something is off.
I am just a bit confused on what to do here. There is a lot of forums with similar problems. I try to read only the arch forums, but I have found myself in other forums as well. Either way, this is a shaky area for me. I would love to solve what is going on here and find out how to set up a proper config if that is what is needed.
So I will go through what I tried:
This is before running primusrun and after:
arch-xps :: ~ » cat /proc/acpi/bbswitch
0000:01:00.0 OFF
arch-xps :: ~ » optirun --status
Bumblebee status: Ready (3.2.1). X inactive. Discrete video card is off.
arch-xps :: ~ » optirun --status
Bumblebee status: Ready (3.2.1). X is PID 5929, 1 applications using bumblebeed.
arch-xps :: ~ » cat /proc/acpi/bbswitch
0000:01:00.0 ON
Seems good to me.
Runs at proper resolution, no AA and looks kinda bad because of that.
$ ck2
Runs at what looks like a corner of 640x480 resolution with GREAT looking AA. Problem is, nothing is clickable and it mostly off screen.
$ primusrun ck2
Lets override with nvidia-settings
##EDIT###
$ primusrun nvidia-settings
You do not appear to be using the NVIDIA X driver. Pleasee edit your X configuration file (just run 'nvidia-xconfig' as root), and restart the xserver
Also in the terminal I get:
$ nvidia-settings
ERROR: nvidia-settings could not find the registry key file. This file should have been installed along with this driver at
/usr/share/nvidia/nvidia-application-profiles-key-documentation. The application profiles will continue to work, but
values cannot be prepopulated or validated, and will not be listed in the help text. Please see the README for possible
values and descriptions.
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
So I did this:
arch-xps :: ~ » cat /etc/X11/xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 370.28 (buildmeister@swio-display-x64-rhel04-17) Thu Sep 1 20:22:52 PDT 2016
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"arch-xps :: ~ » cat /etc/X11/xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 370.28 (buildmeister@swio-display-x64-rhel04-17) Thu Sep 1 20:22:52 PDT 2016
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
Lets restart the x server.... I now cannot start the xserver. And I have to rename or delete the xorg.conf file. Here is the contents of the xorg.0.log
[ 167.648]
X.Org X Server 1.18.4
Release Date: 2016-07-19
[ 167.652] X Protocol Version 11, Revision 0
[ 167.655] Build Operating System: Linux 4.5.4-1-ARCH x86_64
[ 167.657] Current Operating System: Linux arch-xps 4.7.4-1-ARCH #1 SMP PREEMPT Thu Sep 15 15:24:29 CEST 2016 x86_64
[ 167.657] Kernel command line: initrd=\initramfs-linux.img root=/dev/nvme0n1p3 rw intel_idle.max_cstate=1
[ 167.661] Build Date: 19 July 2016 05:54:24PM
[ 167.664]
[ 167.666] Current version of pixman: 0.34.0
[ 167.670] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 167.670] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 167.677] (==) Log file: "/home/codeamend/.local/share/xorg/Xorg.0.log", Time: Thu Sep 22 23:41:00 2016
[ 167.678] (==) Using config file: "/etc/X11/xorg.conf"
[ 167.680] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 167.681] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 167.681] (==) ServerLayout "Layout0"
[ 167.681] (**) |-->Screen "Screen0" (0)
[ 167.681] (**) | |-->Monitor "Monitor0"
[ 167.681] (**) | |-->Device "Device0"
[ 167.681] (**) |-->Input Device "Keyboard0"
[ 167.681] (**) |-->Input Device "Mouse0"
[ 167.681] (==) Automatically adding devices
[ 167.681] (==) Automatically enabling devices
[ 167.681] (==) Automatically adding GPU devices
[ 167.681] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 167.681] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[ 167.681] Entry deleted from font path.
[ 167.681] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[ 167.681] Entry deleted from font path.
[ 167.681] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[ 167.681] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[ 167.681] Entry deleted from font path.
[ 167.681] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[ 167.681] (==) FontPath set to:
/usr/share/fonts/misc/,
/usr/share/fonts/TTF/,
/usr/share/fonts/OTF/
[ 167.681] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 167.681] (**) Extension "Composite" is disabled
[ 167.681] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[ 167.681] (WW) Disabling Keyboard0
[ 167.681] (WW) Disabling Mouse0
[ 167.681] (II) Loader magic: 0x821d40
[ 167.681] (II) Module ABI versions:
[ 167.681] X.Org ANSI C Emulation: 0.4
[ 167.681] X.Org Video Driver: 20.0
[ 167.681] X.Org XInput driver : 22.1
[ 167.681] X.Org Server Extension : 9.0
[ 167.682] (++) using VT number 1
[ 167.682] (--) controlling tty is VT number 1, auto-enabling KeepTty
[ 167.682] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[ 167.683] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 167.683] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 8 paused 0
[ 167.684] (--) PCI:*(0:0:2:0) 8086:191b:1028:06e4 rev 6, Mem @ 0xdb000000/16777216, 0x70000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[ 167.684] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 167.684] (II) LoadModule: "glx"
[ 167.685] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 167.685] (II) Module glx: vendor="X.Org Foundation"
[ 167.685] compiled for 1.18.4, module version = 1.0.0
[ 167.685] ABI class: X.Org Server Extension, version 9.0
[ 167.685] (==) AIGLX enabled
[ 167.685] (II) LoadModule: "nvidia"
[ 167.685] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 167.685] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 167.685] compiled for 4.0.2, module version = 1.0.0
[ 167.685] Module class: X.Org Video Driver
[ 167.685] (II) NVIDIA dlloader X Driver 370.28 Thu Sep 1 18:51:40 PDT 2016
[ 167.685] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 167.685] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[ 167.685] (EE) No devices detected.
[ 167.685] (EE)
Fatal server error:
[ 167.685] (EE) no screens found(EE)
[ 167.685] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 167.685] (EE) Please also check the log file at "/home/codeamend/.local/share/xorg/Xorg.0.log" for additional information.
[ 167.685] (EE)
Last edited by AcousticBruce (2016-09-26 17:30:39)
Offline
you would have to primusrun the nvidia settings as well to access them from a optimus environment. You should first check if the game itself allows you to configure a proper resolution though. Never run nvidia-xconfig on an optimus setting. If you want to dedicate all of your display to the nvidia card as opposed to the energy saving intel card and on-demand addition of the nvidia card via primusrun, read https://wiki.archlinux.org/index.php/NV … ing_nvidia if you want to keep using bumblebee because of the aformentioned benefits, look into https://wiki.archlinux.org/index.php/Bumblebee for pointers into its configuration.
Online
you would have to primusrun the nvidia settings as well to access them from a optimus environment. .... Never run nvidia-xconfig on an optimus setting.
Wouldnt running primusrun nvidia-settings be in a optimus environment? If I run glxgears in the background bbswitch will already be "ON", is this what you mean?
The second part of what you said seemed contradicting. What do you mean??
Running primusrun nvidia-settings still gives me the same issues.
Also, the first link to the NVIDIA configuration is only if you want the NVIDIA card on all the time??
The bumblebee wiki is something I have been through many times. It seems right now bumblebee is working fine (as my tests above show).
The bumblebee wiki: configuration talks about 3 areas of config:
4.1 Optimizing speed
4.2 Power management
4.3 Multiple monitors
None of these seem to interest me or or help me with NVIDIA settings.
Btw.. the game does have a config and I changed the resolution to 1920x1080 which runs fine in non-optimus environment.
Last edited by AcousticBruce (2016-09-23 15:59:20)
Offline
?
Offline
I really do not know what to do. And yes, I have done searches. This is just too big of a area to tinker around and mess things up. I really would appreaciate some guidance.
Offline
You can't run the nVidia card without running primusrun. That's how you'd run the nvidia-settings, just like V1del was saying. you seem to have two options:
1) Condigure your machine to ALWAYS use the nVidia card as mentioned in the Optimus Wiki.
2) Configure Bumblebee to work, as linked to in the Bumblebee Wiki.
Also, You should really never need the nVdia-create xorg.conf file. Just don't use it.
Matt
"It is very difficult to educate the educated."
Offline
You can't run the nVidia card without running primusrun. That's how you'd run the nvidia-settings, just like V1del was saying. you seem to have two options:
1) Condigure your machine to ALWAYS use the nVidia card as mentioned in the Optimus Wiki.
2) Configure Bumblebee to work, as linked to in the Bumblebee Wiki.Also, You should really never need the nVdia-create xorg.conf file. Just don't use it.
Thanks for the input.
I actually ran nvidia-settings with primus run and I have edited my post accordingly.
1) If I do not have to do this, I would rather not.
2) Have I not show in my post that bumblebee apears to be working?
Offline
If it is only ck2 exhibiting the problem it might also be a quirk of ck2. Try with optirun (with the virtualgl bridge, although this has apparently been broken in one of the newer drivers) one of them should technically work for nvidia settings, however I don't know what you expect to be able to find there. You don't have a normally accessible X screen where you can just set the resolution and that's that. IMO your best bet would be that it is an issue with ck2 and check their boards/steam community if someone has found some kind of fix. You might also want to post some terminal output of ck2 maybe there are some pointers on what it does that could be addressed.
Online