You are not logged in.
So I recently was trying to compile and run an openGL program for a class when I got a strange GLSL error that said:
0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, and 3.10 ES
After doing some digging for awhile, it seemed that my problem was that I have an NVIDIA Optimus enabled graphics card (Geforce 745m) and that it wasn't using my graphics card, but instead my integrated intel graphics. I am (attempting) to use the proprietary nvidia drivers and not nouveau.
So, I tried following the arch wiki on setting up optimus to use the proprietary drivers and it wasn't working. Xorg would give me errors saying that the nvidia kernel couldn't be initialized, and so I tried the other method of using bumblebee...the same problem persists...
When I run nvidia-xconfig to setup /etc/X11/xorg.conf, my computer gets stuck in the middle of booting up xorg and I end up having to hit Ctr+Alt+F2 to go to the terminal to erase the xorg.conf file again so that xorg will start up properly when I reboot.
So after looking deeper into this, I realized that there was no nvidia module being utilized at all. I am basing this hypothesis off of the fact that lsmod does not seem to have any nvidia kernel modules installed.
By the way this is all after a fresh arch linux install a few days ago and the nvidia proprietary drivers should be brand new.
This is what lsmod outputs:
Module Size Used by
ctr 16384 2
ccm 20480 1
ax25 57344 0
rtsx_usb_ms 20480 0
memstick 16384 1 rtsx_usb_ms
rtsx_usb_sdmmc 28672 0
arc4 16384 2
uvcvideo 86016 0
joydev 20480 0
mousedev 20480 0
videobuf2_vmalloc 16384 1 uvcvideo
videobuf2_memops 16384 1 videobuf2_vmalloc
videobuf2_v4l2 20480 1 uvcvideo
iwlmvm 278528 0
videobuf2_core 36864 2 uvcvideo,videobuf2_v4l2
videodev 151552 3 uvcvideo,videobuf2_core,videobuf2_v4l2
rtsx_usb 20480 2 rtsx_usb_sdmmc,rtsx_usb_ms
intel_rapl 20480 0
mac80211 675840 1 iwlmvm
media 32768 2 uvcvideo,videodev
x86_pkg_temp_thermal 16384 0
intel_powerclamp 16384 0
hid_multitouch 20480 0
coretemp 16384 0
kvm_intel 188416 0
hid_generic 16384 0
btusb 40960 0
btrtl 16384 1 btusb
btbcm 16384 1 btusb
kvm 520192 1 kvm_intel
btintel 16384 1 btusb
iwlwifi 192512 1 iwlmvm
irqbypass 16384 1 kvm
bluetooth 495616 5 btrtl,btintel,btbcm,btusb
crct10dif_pclmul 16384 0
crc32_pclmul 16384 0
crc32c_intel 24576 0
ghash_clmulni_intel 16384 0
aesni_intel 167936 2
aes_x86_64 20480 1 aesni_intel
snd_hda_codec_hdmi 49152 1
lrw 16384 1 aesni_intel
r8169 77824 0
cfg80211 512000 3 iwlmvm,iwlwifi,mac80211
asus_nb_wmi 28672 0
gf128mul 16384 1 lrw
asus_wmi 24576 1 asus_nb_wmi
i915 1200128 10
glue_helper 16384 1 aesni_intel
ablk_helper 16384 1 aesni_intel
cryptd 20480 3 ablk_helper,ghash_clmulni_intel,aesni_intel
sparse_keymap 16384 1 asus_wmi
rfkill 20480 5 asus_wmi,bluetooth,cfg80211
intel_cstate 16384 0
mxm_wmi 16384 0
iTCO_wdt 16384 0
pcspkr 16384 0
intel_rapl_perf 16384 0
evdev 24576 22
iTCO_vendor_support 16384 1 iTCO_wdt
input_leds 16384 0
snd_soc_rt5640 110592 0
mac_hid 16384 0
mii 16384 1 r8169
snd_soc_rl6231 16384 1 snd_soc_rt5640
snd_soc_core 188416 1 snd_soc_rt5640
snd_soc_sst_acpi 16384 0
psmouse 131072 0
drm_kms_helper 126976 1 i915
snd_compress 20480 1 snd_soc_core
thermal 20480 0
snd_soc_sst_match 16384 1 snd_soc_sst_acpi
drm 294912 7 i915,drm_kms_helper
snd_pcm_dmaengine 16384 1 snd_soc_core
wmi 16384 2 asus_wmi,mxm_wmi
ac97_bus 16384 1 snd_soc_core
int3406_thermal 16384 0
video 36864 3 asus_wmi,int3406_thermal,i915
battery 20480 0
intel_gtt 20480 1 i915
elan_i2c 32768 0
fjes 28672 0
8250_dw 16384 0
i2c_hid 20480 0
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
snd_hda_codec_realtek 73728 1
fb_sys_fops 16384 1 drm_kms_helper
snd_hda_codec_generic 69632 1 snd_hda_codec_realtek
int3402_thermal 16384 0
i2c_designware_platform 16384 0
snd_hda_intel 32768 4
tpm_tis 16384 0
i2c_designware_core 20480 1 i2c_designware_platform
tpm_tis_core 20480 1 tpm_tis
snd_hda_codec 106496 4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
i2c_algo_bit 16384 1 i915
spi_pxa2xx_platform 24576 0
processor_thermal_device 16384 0
snd_hda_core 65536 5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
ac 16384 0
int3400_thermal 16384 0
int340x_thermal_zone 16384 2 int3402_thermal,processor_thermal_device
button 16384 1 i915
acpi_thermal_rel 16384 1 int3400_thermal
intel_soc_dts_iosf 16384 1 processor_thermal_device
asus_wireless 16384 0
snd_hwdep 16384 1 snd_hda_codec
snd_pcm 90112 7 snd_hda_intel,snd_hda_codec,snd_pcm_dmaengine,snd_hda_core,snd_soc_rt5640,snd_hda_codec_hdmi,snd_soc_core
mei_me 36864 0
snd_timer 28672 1 snd_pcm
mei 86016 1 mei_me
snd 69632 18 snd_compress,snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek,snd_soc_core,snd_pcm
shpchp 32768 0
soundcore 16384 1 snd
i2c_i801 24576 0
tpm 36864 2 tpm_tis,tpm_tis_core
i2c_smbus 16384 1 i2c_i801
lpc_ich 24576 0
intel_pch_thermal 16384 0
sch_fq_codel 20480 6
ip_tables 24576 0
x_tables 28672 1 ip_tables
ext4 524288 2
crc16 16384 2 bluetooth,ext4
jbd2 90112 1 ext4
fscrypto 24576 1 ext4
mbcache 16384 3 ext4
sr_mod 24576 0
cdrom 53248 1 sr_mod
sd_mod 36864 4
usbhid 49152 0
hid 114688 4 i2c_hid,hid_generic,usbhid,hid_multitouch
serio_raw 16384 0
atkbd 24576 0
libps2 16384 2 atkbd,psmouse
ahci 36864 3
libahci 28672 1 ahci
libata 212992 2 ahci,libahci
xhci_pci 16384 0
xhci_hcd 172032 1 xhci_pci
scsi_mod 155648 3 sd_mod,libata,sr_mod
usbcore 208896 6 uvcvideo,usbhid,xhci_pci,rtsx_usb,btusb,xhci_hcd
usb_common 16384 1 usbcore
i8042 28672 1 asus_nb_wmi
serio 20480 9 serio_raw,atkbd,psmouse,i8042
sdhci_acpi 16384 0
sdhci 40960 1 sdhci_acpi
led_class 16384 6 iwlmvm,asus_wmi,rtsx_usb_sdmmc,sdhci,input_leds,asus_wireless
mmc_core 126976 3 rtsx_usb_sdmmc,sdhci,sdhci_acpi
and when I tried to run:
modprobe nvidia
I get:
modprobe: FATAL: Module nvidia not found in directory /lib/modules/4.9.46-1-lts
Yet when I run:
modprobe nouveau
there are no complaints and nouveau installs into the kernel and shows up on lsmod, which seems weird to me because I didn't install nouveau this time around. (I did use it for a short period of time before this install of arch, but since this is a fresh install I would think it would be removed from my system)
Also I do know that the openGL code should work on arch because the code was given to me by my professor and was setup to work on many machines including mac and the computer lab we have at school which all run on arch linux!
I am still learning a lot about arch linux so I apologize for the lack of knowledge I have about many things. I could have easily missed something or it could be a deep issue. Thanks for any help you may have!
Last edited by mooseblood (2017-09-03 13:13:09)
Offline
did you install any nvidia drivers? if so, which drivers did you install? what guide did you use to set up optimus?
Last edited by HiImTye (2017-09-03 03:34:12)
Offline
Ya I just used:
sudo pacman -S nvidia
Here is what results with a simple pacman query:
$ pacman -Qs nvidia
local/bumblebee 3.2.1-15
NVIDIA Optimus support for Linux through VirtualGL
local/lib32-nvidia-utils 384.59-1
NVIDIA drivers utilities (32-bit)
local/libvdpau 1.1.1-2
Nvidia VDPAU library
local/libxnvctrl 384.59-1
NVIDIA NV-CONTROL X extension
local/nvidia 384.59-5
NVIDIA drivers for linux
local/nvidia-settings 384.59-1
Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 384.59-1
NVIDIA drivers utilities
The guide I was using at first was here:
https://wiki.archlinux.org/index.php/NV … ing_nvidia
but then I gave up on trying to just use the proprietary drivers and tried to go with bumblebee using this guide here:
https://wiki.archlinux.org/index.php/bumblebee
but I was still having the same issues
Interestingly optirun gives me an error saying that it failed to load the nouveau module even though I don't have nouveau installed:
$ optirun glxgears
[ 309.707617] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Failed to load module "nouveau" (module does not exist, 0)
[ 309.707692] [ERROR]Aborting because fallback start is disabled.
$ pacman -Qs nouveau
local/lib32-mesa 17.1.7-1
an open-source implementation of the OpenGL specification (32-bit)
local/mesa 17.1.7-2
an open-source implementation of the OpenGL specification
Since I first posted, I did try uninstalling the nvidia driver:
sudo pacman -Rns nvidia
and then reinstalling with:
sudo pacman -S nvidia
But after rebooting, nouveau modules are now being loaded and seem to be the driver for my graphics card.
Here is what lsmod now outputs after the reboot (notice the nouveau modules spread through it now):
$ lsmod
Module Size Used by
nouveau 1519616 1
ttm 86016 1 nouveau
ctr 16384 2
ccm 20480 1
ax25 57344 0
intel_rapl 20480 0
x86_pkg_temp_thermal 16384 0
arc4 16384 2
intel_powerclamp 16384 0
coretemp 16384 0
uvcvideo 86016 0
iwlmvm 278528 0
kvm_intel 188416 0
mac80211 675840 1 iwlmvm
kvm 520192 1 kvm_intel
irqbypass 16384 1 kvm
crct10dif_pclmul 16384 0
crc32_pclmul 16384 0
iwlwifi 192512 1 iwlmvm
crc32c_intel 24576 0
r8169 77824 0
ghash_clmulni_intel 16384 0
aesni_intel 167936 2
aes_x86_64 20480 1 aesni_intel
videobuf2_vmalloc 16384 1 uvcvideo
videobuf2_memops 16384 1 videobuf2_vmalloc
videobuf2_v4l2 20480 1 uvcvideo
videobuf2_core 36864 2 uvcvideo,videobuf2_v4l2
lrw 16384 1 aesni_intel
gf128mul 16384 1 lrw
glue_helper 16384 1 aesni_intel
ablk_helper 16384 1 aesni_intel
cryptd 20480 3 ablk_helper,ghash_clmulni_intel,aesni_intel
snd_hda_codec_hdmi 49152 1
videodev 151552 3 uvcvideo,videobuf2_core,videobuf2_v4l2
intel_cstate 16384 0
rtsx_usb_ms 20480 0
memstick 16384 1 rtsx_usb_ms
rtsx_usb_sdmmc 28672 0
intel_rapl_perf 16384 0
joydev 20480 0
mii 16384 1 r8169
asus_nb_wmi 28672 0
mousedev 20480 0
iTCO_wdt 16384 0
asus_wmi 24576 1 asus_nb_wmi
iTCO_vendor_support 16384 1 iTCO_wdt
mxm_wmi 16384 1 nouveau
sparse_keymap 16384 1 asus_wmi
hid_multitouch 20480 0
btusb 40960 0
btrtl 16384 1 btusb
btbcm 16384 1 btusb
btintel 16384 1 btusb
cfg80211 512000 3 iwlmvm,iwlwifi,mac80211
media 32768 2 uvcvideo,videodev
bluetooth 495616 5 btrtl,btintel,btbcm,btusb
evdev 24576 22
rtsx_usb 20480 2 rtsx_usb_sdmmc,rtsx_usb_ms
i915 1200128 10
rfkill 20480 5 asus_wmi,bluetooth,cfg80211
psmouse 131072 0
pcspkr 16384 0
input_leds 16384 0
hid_generic 16384 0
snd_soc_rt5640 110592 0
mac_hid 16384 0
drm_kms_helper 126976 2 nouveau,i915
drm 294912 10 nouveau,i915,ttm,drm_kms_helper
thermal 20480 0
snd_soc_rl6231 16384 1 snd_soc_rt5640
intel_gtt 20480 1 i915
elan_i2c 32768 0
snd_soc_core 188416 1 snd_soc_rt5640
snd_soc_sst_acpi 16384 0
snd_hda_codec_realtek 73728 1
snd_soc_sst_match 16384 1 snd_soc_sst_acpi
int3406_thermal 16384 0
wmi 16384 3 asus_wmi,mxm_wmi,nouveau
snd_hda_codec_generic 69632 1 snd_hda_codec_realtek
battery 20480 0
video 36864 4 asus_wmi,int3406_thermal,nouveau,i915
snd_compress 20480 1 snd_soc_core
fjes 28672 0
int3402_thermal 16384 0
snd_pcm_dmaengine 16384 1 snd_soc_core
syscopyarea 16384 1 drm_kms_helper
snd_hda_intel 32768 4
ac97_bus 16384 1 snd_soc_core
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
asus_wireless 16384 0
fb_sys_fops 16384 1 drm_kms_helper
snd_hda_codec 106496 4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
i2c_algo_bit 16384 2 nouveau,i915
8250_dw 16384 0
i2c_hid 20480 0
snd_hda_core 65536 5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hwdep 16384 1 snd_hda_codec
i2c_designware_platform 16384 0
snd_pcm 90112 7 snd_hda_intel,snd_hda_codec,snd_pcm_dmaengine,snd_hda_core,snd_soc_rt5640,snd_hda_codec_hdmi,snd_soc_core
ac 16384 0
snd_timer 28672 1 snd_pcm
i2c_designware_core 20480 1 i2c_designware_platform
snd 69632 18 snd_compress,snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek,snd_soc_core,snd_pcm
spi_pxa2xx_platform 24576 0
soundcore 16384 1 snd
i2c_i801 24576 0
processor_thermal_device 16384 0
tpm_tis 16384 0
int3400_thermal 16384 0
int340x_thermal_zone 16384 2 int3402_thermal,processor_thermal_device
tpm_tis_core 20480 1 tpm_tis
intel_soc_dts_iosf 16384 1 processor_thermal_device
acpi_thermal_rel 16384 1 int3400_thermal
button 16384 2 nouveau,i915
mei_me 36864 0
tpm 36864 2 tpm_tis,tpm_tis_core
mei 86016 1 mei_me
i2c_smbus 16384 1 i2c_i801
lpc_ich 24576 0
intel_pch_thermal 16384 0
shpchp 32768 0
sch_fq_codel 20480 6
ip_tables 24576 0
x_tables 28672 1 ip_tables
ext4 524288 2
crc16 16384 2 bluetooth,ext4
jbd2 90112 1 ext4
fscrypto 24576 1 ext4
mbcache 16384 3 ext4
sr_mod 24576 0
cdrom 53248 1 sr_mod
sd_mod 36864 4
usbhid 49152 0
hid 114688 4 i2c_hid,hid_generic,usbhid,hid_multitouch
serio_raw 16384 0
atkbd 24576 0
libps2 16384 2 atkbd,psmouse
xhci_pci 16384 0
xhci_hcd 172032 1 xhci_pci
ahci 36864 3
libahci 28672 1 ahci
libata 212992 2 ahci,libahci
scsi_mod 155648 3 sd_mod,libata,sr_mod
usbcore 208896 6 uvcvideo,usbhid,xhci_pci,rtsx_usb,btusb,xhci_hcd
usb_common 16384 1 usbcore
i8042 28672 1 asus_nb_wmi
serio 20480 9 serio_raw,atkbd,psmouse,i8042
sdhci_acpi 16384 0
sdhci 40960 1 sdhci_acpi
led_class 16384 6 iwlmvm,asus_wmi,rtsx_usb_sdmmc,sdhci,input_leds,asus_wireless
mmc_core 126976 3 rtsx_usb_sdmmc,sdhci,sdhci_acpi
and here is the intel section and nvidia section from lspci -v:
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. Device 12dd
Flags: bus master, fast devsel, latency 0, IRQ 44
Memory at f7400000 (64-bit, non-prefetchable) [size=4M]
Memory at d0000000 (64-bit, prefetchable) [size=256M]
I/O ports at f000 [size=64]
[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 2
Capabilities: [a4] PCI Advanced Features
Kernel driver in use: i915
Kernel modules: i915
04:00.0 3D controller: NVIDIA Corporation GK107M [GeForce GT 745M] (rev a1)
Subsystem: ASUSTeK Computer Inc. Device 12dd
Flags: bus master, fast devsel, latency 0, IRQ 48
Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
Memory at e0000000 (64-bit, prefetchable) [size=256M]
Memory at f0000000 (64-bit, prefetchable) [size=32M]
I/O ports at d000 [size=128]
Expansion ROM at f7000000 [disabled] [size=512K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Capabilities: [b4] Vendor Specific Information: Len=14 <?>
Capabilities: [100] Virtual Channel
Capabilities: [128] Power Budgeting <?>
Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
Capabilities: [900] #19
Kernel driver in use: nouveau
Kernel modules: nouveau
Sorry I know that was a bit of an information dump. I just want to provide some hopefully useful clues because I'm losing my mind a bit haha
Offline
what kernel are you using? I don't run a bumblebee/optimus system, but your nvidia module should be present if it's installed, unless you're using a different kernel
Offline
Seeing that you have the -lts kernel installed, surely you should be installing nvidia-lts
Offline
Seeing that you have the -lts kernel installed, surely you should be installing nvidia-lts
Unfortunately this package is currently broken: FS#55305
Offline
Yes! You are right, I missed the fact that I should've installed the nvidia-lts package and not the nvidia package. Switching over to the non-lts kernel fixes all of my issues for me including my original openGL programming problem (just have to run the program with optirun since I am now using bumblebee.)
I guess I will just continue using the non-lts kernel of linux until the nvidia-lts package is fixed and then switch back over. Thanks for pointing that out @keibak
skunktrader wrote:Seeing that you have the -lts kernel installed, surely you should be installing nvidia-lts
Unfortunately this package is currently broken: FS#55305
Thanks everyone for all of the help! I will mark this thread as solved.
Offline