You are not logged in.
Hello.
I decided to reinstall the following packages:
mesa-vdpau, libva-mesa-driver, mesa, nvidia-304xx-utils, nvidia-304xx, xf86-video-nouveau, mesa-demos
The reason for doing so is because I am unable to launch any OpenGL based applications and I thought reinstalling those packages would fix the issue.
$ glxinfo | grep 'version'
Xlib: extension "NV-GLX" missing on display ":0".
Xlib: extension "NV-GLX" missing on display ":0".
Xlib: extension "NV-GLX" missing on display ":0".
Xlib: extension "NV-GLX" missing on display ":0".
Xlib: extension "NV-GLX" missing on display ":0".
Xlib: extension "NV-GLX" missing on display ":0".
Xlib: extension "NV-GLX" missing on display ":0".
Xlib: extension "NV-GLX" missing on display ":0".
Xlib: extension "NV-GLX" missing on display ":0".
Xlib: extension "NV-GLX" missing on display ":0".
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 156 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 35
Current serial number in output stream: 36Unfortunately, now I am unable to launch X using the nouveau module on my primary machine (which has an AMD processor) but it works using the intel module on a different machine. I have Arch installed on a portable HDD so I am able to run it on different machines quite easily but I would like to get it working on my primary machine.
Here is my original configuration which worked on my primary machine before the re-installation.
/etc/X11/xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 375.26 (buildmeister@swio-display-x86-rhel47-01) Thu Dec 8 19:07:46 PST 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
# Edited to not use Nvidia
# 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/etc/X11/xorg.conf.d/00-keyboard.conf
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us"
EndSection/etc/X11/xorg.conf.d/10-monitor.conf
Section "Monitor"
Identifier "VGA-1"
Modeline "1280x1024" 108.00 1280 1328 1440 1688 1024 1025 1028 1066 -hsync +vsync
Option "PreferredMode" "1280x1024"
EndSection
Section "Screen"
Identifier "Screen0"
Monitor "VGA-1"
DefaultDepth 24
SubSection "Display"
Modes "1280x1024"
EndSubSection
EndSection
Section "Device"
Identifier "Device0"
Driver "nouveau"
EndSectionIn order to get it working on my secondary machine I removed /etc/X11/xorg.conf and /etc/X11/xorg.conf.d/10-monitor.conf and added the following:
/etc/X11/xorg.conf.d/20-intel.conf
Section "Device"
Identifier "Intel Graphics"
Driver "Intel"
EndSectionI have tried using /etc/X11/xorg.conf.d/20-nvidia.conf but that didn't work either
Section "Device"
Identifier "Nvidia Card"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "NoLogo" "true"
#Option "UseEDID" "false"
#Option "ConnectedMonitor" "DFP"
# ...
EndSectionThis is the error I get when I use my original configuration on my primary machine (using xorg.conf and 10-monitor.conf)
/var/log/Xorg.0.log
[ 30.600]
X.Org X Server 1.19.5
Release Date: 2017-10-12
[ 30.600] X Protocol Version 11, Revision 0
[ 30.600] Build Operating System: Linux 4.13.5-1-ARCH i686
[ 30.600] Current Operating System: Linux AUD 4.14.4-1.0-ARCH #1 SMP PREEMPT Fri Dec 8 09:16:30 CET 2017 i686
[ 30.600] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=99552886-b390-43ad-bff1-83da398ac0c5 rw quiet
[ 30.600] Build Date: 13 October 2017 05:24:14PM
[ 30.600]
[ 30.600] Current version of pixman: 0.34.0
[ 30.600] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 30.600] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 30.600] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Dec 26 08:59:16 2017
[ 30.600] (==) Using config file: "/etc/X11/xorg.conf"
[ 30.600] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 30.600] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 30.601] (==) ServerLayout "Layout0"
[ 30.601] (**) |-->Screen "Screen0" (0)
[ 30.601] (**) | |-->Monitor "VGA-1"
[ 30.601] (==) No device specified for screen "Screen0".
Using the first device section listed.
[ 30.601] (**) | |-->Device "Device0"
[ 30.601] (**) |-->Input Device "Keyboard0"
[ 30.601] (**) |-->Input Device "Mouse0"
[ 30.601] (==) Automatically adding devices
[ 30.601] (==) Automatically enabling devices
[ 30.601] (==) Automatically adding GPU devices
[ 30.601] (==) Automatically binding GPU devices
[ 30.601] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 30.601] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[ 30.601] Entry deleted from font path.
[ 30.601] (==) FontPath set to:
/usr/share/fonts/misc/,
/usr/share/fonts/TTF/,
/usr/share/fonts/OTF/,
/usr/share/fonts/100dpi/,
/usr/share/fonts/75dpi/
[ 30.601] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 30.601] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[ 30.601] (WW) Disabling Keyboard0
[ 30.601] (WW) Disabling Mouse0
[ 30.601] (II) Loader magic: 0x6e06c0
[ 30.601] (II) Module ABI versions:
[ 30.601] X.Org ANSI C Emulation: 0.4
[ 30.601] X.Org Video Driver: 23.0
[ 30.601] X.Org XInput driver : 24.1
[ 30.601] X.Org Server Extension : 10.0
[ 30.602] (++) using VT number 7
[ 30.602] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 30.602] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 30.603] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules"
[ 30.603] (**) OutputClass "nvidia" setting /dev/dri/card0 as PrimaryGPU
[ 30.604] (--) PCI:*(0:0:13:0) 10de:03d6:1043:83a4 rev 162, Mem @ 0xde000000/16777216, 0xc0000000/268435456, 0xdd000000/16777216, BIOS @ 0x????????/131072
[ 30.604] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 30.604] (II) LoadModule: "glx"
[ 30.604] (II) Loading /usr/lib/nvidia/xorg/libglx.so
[ 30.624] (II) Module glx: vendor="NVIDIA Corporation"
[ 30.624] compiled for 4.0.2, module version = 1.0.0
[ 30.624] Module class: X.Org Server Extension
[ 30.624] (II) NVIDIA GLX Module 304.137 Thu Sep 14 13:13:03 PDT 2017
[ 30.624] (II) LoadModule: "nouveau"
[ 30.625] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
[ 30.625] (II) Module nouveau: vendor="X.Org Foundation"
[ 30.625] compiled for 1.19.3, module version = 1.0.15
[ 30.625] Module class: X.Org Video Driver
[ 30.625] ABI class: X.Org Video Driver, version 23.0
[ 30.625] (II) NOUVEAU driver
[ 30.625] (II) NOUVEAU driver for NVIDIA chipset families :
[ 30.625] RIVA TNT (NV04)
[ 30.625] RIVA TNT2 (NV05)
[ 30.625] GeForce 256 (NV10)
[ 30.625] GeForce 2 (NV11, NV15)
[ 30.625] GeForce 4MX (NV17, NV18)
[ 30.625] GeForce 3 (NV20)
[ 30.625] GeForce 4Ti (NV25, NV28)
[ 30.625] GeForce FX (NV3x)
[ 30.625] GeForce 6 (NV4x)
[ 30.625] GeForce 7 (G7x)
[ 30.625] GeForce 8 (G8x)
[ 30.625] GeForce GTX 200 (NVA0)
[ 30.625] GeForce GTX 400 (NVC0)
[ 30.625] (EE) [drm] Failed to open DRM device for (null): -22
[ 30.625] (EE) [drm] Failed to open DRM device for pci:0000:00:0d.0: -22
[ 30.625] (EE) [drm] Failed to open DRM device for (null): -22
[ 30.625] (EE) [drm] Failed to open DRM device for (null): -22
[ 30.625] (EE) No devices detected.
[ 30.625] (EE)
Fatal server error:
[ 30.625] (EE) no screens found(EE)
[ 30.625] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 30.625] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 30.625] (EE)
[ 30.633] (EE) Server terminated with error (1). Closing log file.I have also tried not using any configuration files including not using xorg.conf and various other suggestions I could find while searching in the Arch forums but none of them seemed to work. My graphics card on my primary machine is extremely old so I am stuck with using the nvidia-304xx package. I also tried installing the nvidia-304xx-lts package along with its other lts dependencies like linux-lts but that didn't work either so I reverted back to the nvidia-304xx package.
Any help with be greatly appreciated.
Last edited by AdmnUnpwnd (2017-12-26 20:29:01)
Offline
[ 30.603] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules"
[ 30.603] (**) OutputClass "nvidia" setting /dev/dri/card0 as PrimaryGPUHave you blacklisted nouveau? If so, I don't know if that helps but make sure you don't have anything else related to nvidia in your xorg.conf.d
Last edited by lo1 (2017-12-26 18:56:48)
Offline
[ 30.603] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules" [ 30.603] (**) OutputClass "nvidia" setting /dev/dri/card0 as PrimaryGPUHave you blacklisted nvidia? If so, I don't know if that helps but make sure you don't have anything else related to nvidia in your xorg.conf.d
I have blacklisted nvidia.
/usr/lib/modprobe.d/nvidia.conf
blacklist nouveauI am also not using nvidia in my xorg.conf
# Edited to not use Nvidia
# Section "Device"
# Identifier "Device0"
# Driver "nvidia"
# VendorName "NVIDIA Corporation"
# EndSectionThese are the files I currently have. I am currently running it on my secondary machine so I have 20-intel.conf enabled.
$ ls /etc/X11/xorg.conf.d
00-keyboard.conf 10-monitor.conf.bak 10-radeon.conf.bak 20-intel.conf.bak 40-libinput.conf.bak 51-synaptics-quirks.conf.bak 70-synaptics.conf.bak_1
10-amdgpu.conf.bak 10-quirks.conf.bak 20-intel.conf 20-nvidia.conf.bak 40-libinput.conf.bak_1 70-synaptics.conf.bakEdit: Should I remove the blacklist? I have this in my 10-monitor.conf which worked previously on my primary machine.
Section "Device"
Identifier "Device0"
Driver "nouveau"
EndSectionLast edited by AdmnUnpwnd (2017-12-26 18:13:20)
Offline
Mmmh, check also /usr/share/X11/xorg.conf.d
Usually any configuration will always default to /etc, but maybe there's something like 10-nvidia.conf that is causing conflicts.
EDIT: I was already typing while you edited your post
you should remove it from the blacklist if you need to use nvidia instead of nouveau.
So, what you actually need? Use them both? fix OpenGL? Or just get rid of OpenGL and stick with nouveau, as long as your system boots fine?
Last edited by lo1 (2017-12-26 18:23:16)
Offline
Mmmh, check also /usr/share/X11/xorg.conf.d
Usually any configuration will always default to /etc, but maybe there's something like 10-nvidia.conf that is causing conflicts.
EDIT: I was already typing while you edited your post
you should remove it from the blacklist if you need to use nvidia instead of nouveau.
So, what you actually need? Use them both? fix OpenGL? Or just get rid of OpenGL and stick with nouveau, as long as your system boots fine?
$ ls /usr/share/X11/xorg.conf.d
10-amdgpu.conf 10-evdev.conf 10-nvidia-drm-outputclass.conf 10-quirks.conf 10-radeon.conf 40-libinput.conf 50-vmmouse.conf/usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf
Section "OutputClass"
Identifier "intel"
MatchDriver "i915"
Driver "modesetting"
EndSection
Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
Driver "nvidia"
Option "AllowEmptyInitialConfiguration"
Option "PrimaryGPU" "yes"
ModulePath "/usr/lib/nvidia/xorg"
EndSectionIdeally I would like to get OpenGL working as some programs I use require it. Worst case, even if I can't get it working, I would at least want it so my system boots fine.
Offline
https://git.archlinux.org/svntogit/pack … utils#n149
nvidia-304xx-utils overrides the standard opengl libraries such a system will not provide opengl support on any other hwardware than the 304xx supporting device.
nvidia-304xx support comes to an end at the end of 2017 http://nvidia.custhelp.com/app/answers/ … a_id/3142/ so would expect arch to drop the package next year.
On the primary system where nouveau should have been blacklisted by the /usr/lib/modprobe.d/nvidia.conf provided by nvidia-304xx
[ 30.624] (II) LoadModule: "nouveau"
[ 30.625] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
[ 30.625] (II) Module nouveau: vendor="X.Org Foundation"Which is somewhat odd as the nouveau kernel module should not be loaded so nothing should be triggering nouveau X11 driver, but you should not mix xf86-video-nouveau with the nvidia drivers anyway.
Offline
Edited my first post because I wrote "blacklist nvidia" (when I meant "blacklist nouveau", which is what you did).
Then, start from scratch, remove nouveau from the blacklist and comment out anything that's not working good and see which one makes you boot. Then, try again using nvidia and blacklist nouveau. Keep Intel out of the way for now
Offline
Edited my first post because I wrote "blacklist nvidia" (when I meant "blacklist nouveau", which is what you did).
Then, start from scratch, remove nouveau from the blacklist and comment out anything that's not working good and see which one makes you boot. Then, try again using nvidia and blacklist nouveau. Keep Intel out of the way for now
My primary machine has AMD so I can't use Intel with it. My secondary machine has Intel but no Nvidia. I had previously blacklisted nouveau because that had caused problems with X and OpenGL seemed to work fine on both machines.
I will try removing nouveau from the blacklist and reverting to configuration to what previously worked on my primary machine.
Offline
Please do not just remove the blacklist provided by nvidia-304xx remove all the nvidia-304xx packages instead so the system is not affected by the other defaults the 304xx packages provide which will conflict with trying to use nouveau / intel.
Offline
Thank you for all your help Io1. I have now successfully booted into my primary machine.
My only remaining problem is OpenGL not working resulting in the following error:
$ glxinfo | grep 'version'
Xlib: extension "NV-GLX" missing on display ":0".
Xlib: extension "NV-GLX" missing on display ":0".
Xlib: extension "NV-GLX" missing on display ":0".
Xlib: extension "NV-GLX" missing on display ":0".
Xlib: extension "NV-GLX" missing on display ":0".
Xlib: extension "NV-GLX" missing on display ":0".
Xlib: extension "NV-GLX" missing on display ":0".
Xlib: extension "NV-GLX" missing on display ":0".
Xlib: extension "NV-GLX" missing on display ":0".
Xlib: extension "NV-GLX" missing on display ":0".
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 155 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 35
Current serial number in output stream: 36Edit: Any ideas on how I can get it working?
Last edited by AdmnUnpwnd (2017-12-26 19:46:20)
Offline
My primary machine has AMD so I can't use Intel with it
Then remove anything unneded from /usr/share/X11/xorg.conf.d/ as I suggested, even if I'm really not sure what good would be.
PRE-POST EDIT: If it boots fine, ignore the above but please do not ignore what loqs said about the nvidia driver you're using and the help he's trying to provide you.
Offline
Please do not just remove the blacklist provided by nvidia-304xx remove all the nvidia-304xx packages instead so the system is not affected by the other defaults the 304xx packages provide which will conflict with trying to use nouveau / intel.
Sorry I just saw this message. I just removed the blacklist and it worked. Should I remove the packages instead? I kept them in the hopes of getting OpenGL to eventually work.
Offline
If you get rid of the 304xx packages the system should then be using either the modesetting driver or the xf86-video-nouveau driver both of which support opengl using the standard mesa package.
Offline
https://git.archlinux.org/svntogit/pack … utils#n149
nvidia-304xx-utils overrides the standard opengl libraries such a system will not provide opengl support on any other hwardware than the 304xx supporting device.
nvidia-304xx support comes to an end at the end of 2017 http://nvidia.custhelp.com/app/answers/ … a_id/3142/ so would expect arch to drop the package next year.
On the primary system where nouveau should have been blacklisted by the /usr/lib/modprobe.d/nvidia.conf provided by nvidia-304xx[ 30.624] (II) LoadModule: "nouveau" [ 30.625] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so [ 30.625] (II) Module nouveau: vendor="X.Org Foundation"Which is somewhat odd as the nouveau kernel module should not be loaded so nothing should be triggering nouveau X11 driver, but you should not mix xf86-video-nouveau with the nvidia drivers anyway.
Thank you for the information. Unfortunately, on this machine I am stuck using nvidia-304xx. Fortunately though, besides the few programs that require OpenGL, I can run everything else using just the CPU.
Offline
If you get rid of the 304xx packages the system should then be using either the modesetting driver or the xf86-video-nouveau driver both of which support opengl using the standard mesa package.
I will try removing those packages and rebooting.
Just to confirm these are the packages I am removing:
extra/libvdpau 1.1.1+3+ga21bf7a-1
Nvidia VDPAU library
extra/nvidia-304xx 304.137-11.0
NVIDIA drivers for linux, 304xx legacy branch
extra/nvidia-304xx-utils 304.137-1
NVIDIA drivers utilities and libraries, 304xx legacy branchAnd these are the packages I am keeping:
extra/glu 9.0.0-4
Mesa OpenGL Utility library
extra/libtxc_dxtn 1.0.1-6
S3 Texture Compression (S3TC) library for Mesa
extra/libva-mesa-driver 17.3.0-2.0
VA-API implementation for gallium
extra/mesa 17.3.0-2.0
an open-source implementation of the OpenGL specification
extra/mesa-demos 8.3.0-4
Mesa demos and tools incl. glxinfo + glxgears
extra/mesa-vdpau 17.3.0-2.0
Mesa VDPAU drivers
extra/xf86-video-nouveau 1.0.15-2 (xorg-drivers)
Open Source 2D acceleration driver for nVidia cardsEdit: Running
$ yaourt -Runs nvidia-304xx nvidia-304xx-utils
checking dependencies...
warning: dependency cycle detected:
warning: xorg-server will be removed after its nvidia-304xx-utils dependency
Packages (4) xf86-input-libinput-0.26.0-1 xorg-server-1.19.5-1 nvidia-304xx-304.137-11.0 nvidia-304xx-utils-304.137-1So instead I ran
$ yaourt -R nvidia-304xx nvidia-304xx-utils
checking dependencies...
Packages (2) nvidia-304xx-304.137-11.0 nvidia-304xx-utils-304.137-1
Total Removed Size: 69.12 MiB
:: Do you want to remove these packages? [Y/n]
:: Processing package changes...
(1/2) removing nvidia-304xx [########################################################] 100%
(2/2) removing nvidia-304xx-utils [########################################################] 100%
:: Running post-transaction hooks...
(1/3) Updating linux module dependencies...
(2/3) Arming ConditionNeedsUpdate...
(3/3) Updating the desktop file MIME type cache...
==> Packages no longer required by any installed package:
xorg-serverI am keeping the xorg-server package though.
Last edited by AdmnUnpwnd (2017-12-26 20:06:15)
Offline
What was the Xorg.log when you removed the 304xx packages or what was not working?
Edit:
Yes cross post keep those you could remove xf86-video-nouveau you would lose 2d acceleration of window drawing but keep 3d acceleration.
Last edited by loqs (2017-12-26 20:05:54)
Offline
What was the Xorg.log when you removed the 304xx packages or what was not working?
Edit:
Yes cross post keep those you could remove xf86-video-nouveau you would lose 2d acceleration of window drawing but keep 3d acceleration.
Sorry I am a bit confused. I removed nvidia-304xx and nvidia-304xx-utils. Is that sufficient?
Edit: I haven't rebooted yet so please let me know if I should add or remove any other packages.
Last edited by AdmnUnpwnd (2017-12-26 20:10:42)
Offline
That should be sufficient for testing yes you can decide about xf86-video-nouveau and the vdpau packages later.
Offline
That should be sufficient for testing yes you can decide about xf86-video-nouveau and the vdpau packages later.
Thank you very much. Rebooting now.
Offline
That worked. Also got OpenGL working now.
$ glxinfo | grep 'version'
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
Max core profile version: 0.0
Max compat profile version: 2.1
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 2.0
OpenGL version string: 2.1 Mesa 17.3.0
OpenGL shading language version string: 1.20
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 17.3.0
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16Thank you very much for all your help lo1 and loqs. I am marking this as solved.
Offline