Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i am unable to toggle off the intel gpu in the uefi/bios but no matter what i do the system keeps trying to use the intel gpu instead of the nvidia one.
anyone have experience with these:
Code:
[schneidz@xbmc ~]$ uname -a -m -p
Linux xbmc 4.17.14-202.fc28.x86_64 #1 SMP Wed Aug 15 12:29:25 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[schneidz@xbmc ~]$ dmesg | grep "command line"
[ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.17.14-202.fc28.x86_64 root=UUID=7957bfa9-dee8-4ffe-bb71-a27c7b274f28 ro rhgb quiet nouveau.modeset=0 rd.driver.blacklist=nouveau video=vesa:off LANG=en_US.UTF-8 modprobe.blacklist=nouveau nvidia-drm.modeset=1
[schneidz@xbmc ~]$ lspci -vnn | grep '\''[030[02]\]'
00:02.0 VGA compatible controller [0300]: Intel Corporation Skylake GT2 [HD Graphics 520] [8086:1916] (rev 07) (prog-if 00 [VGA controller])
02:00.0 3D controller [0302]: NVIDIA Corporation GM108M [GeForce 930M] [10de:1346] (rev a2)
[schneidz@xbmc ~]$ lsmod | grep nvidia
nvidia 14061568 15
ipmi_msghandler 57344 2 ipmi_devintf,nvidia
[schneidz@xbmc ~]$ which randr
/usr/bin/which: no randr in (/usr/share/Modules/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/schneidz/.local/bin:/home/schneidz/bin)
[schneidz@xbmc ~]$ xrandr --output <output> --set "PRIME Synchronization" 1
bash: output: No such file or directory
[schneidz@xbmc ~]$ nvidia-settings
ERROR: Unable to find display on any available system
[schneidz@xbmc ~]$ nvidia-settings -v
nvidia-settings: version 396.45 (mockbuild@buildvm-01.online.rpmfusion.net)
Fri Jul 20 12:11:21 CEST 2018
The NVIDIA X Server Settings tool.
This program is used to configure the NVIDIA Linux graphics driver.
For more detail, please see the nvidia-settings(1) man page.
[schneidz@xbmc ~]$ glxinfo | grep "renderer string"
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 520 (Skylake GT2)
I don't have Optimus hardware, but AFAIU the nvidia driver is invoked with the 'optirun' command. The general syntax is: optirun [options] application [application-parameters]. For example
Code:
optirun glxgears -info
and $USER needs to be a member of the 'bumblebee' group...
thanx, supposedly bumblebee is old hat but i gave it a swing anyways:
Code:
[schneidz@xbmc ~]$ groups
schneidz wheel bumblebee
[schneidz@xbmc ~]$ optirun glxgears -info
[ 1071.762181] [ERROR]Cannot access secondary GPU, secondary X is not active.
[ 1071.762259] [ERROR]Aborting because fallback start is disabled.
[schneidz@xbmc ~]$ primusrun glxgears
primus: fatal: Bumblebee daemon reported: econdary X is not active.
I'm out of my depth on this, but reading through the guide I linked to...perhaps check the status of the following
Code:
systemctl status bumblebeed
*should be enabled
Code:
systemctl status nvidia-fallback
*should be disabled
Note the guide I linked to also discusses some diagnostic info regarding some errors. Did you read that guide completely? This might be relevant perhaps...
Quote:
[ERROR]Cannot access secondary GPU: No devices detected
In some instances, running optirun will return:
[ERROR]Cannot access secondary GPU - error: [XORG] (EE) No devices detected.
[ERROR]Aborting because fallback start is disabled.
In this case, you will need to move the file /etc/X11/xorg.conf.d/20-intel.conf to somewhere else, restart the bumblebeed daemon and it should work. If you do need to change some features for the Intel module, a workaround is to merge /etc/X11/xorg.conf.d/20-intel.conf to /etc/X11/xorg.conf.
It might be also necessary to comment the driver line in /etc/X11/xorg.conf.d/10-monitor.conf.
You might also need to define the NVIDIA card somewhere (e.g. file /etc/bumblebee/xorg.conf.nvidia), using the correct BusID according to lspci output:
Note that the format of lspci output is in hexadecimal format, while in xorg it is in decimal. So if the output of lspci is, for example, 0a:00.0 the BusID should be PCI:10:0:0.
thanks again, even after disabling nvidia fallback, it magically comes back o for the next reboot:
Code:
[schneidz@xbmc ~]$ sudo systemctl disable nvidia-fallback
[schneidz@xbmc ~]$ sudo shutdown -r now
...
[schneidz@xbmc ~]$ systemctl status nvidia-fallback
● nvidia-fallback.service - Fallback to nouveau as nvidia did not load
Loaded: loaded (/usr/lib/systemd/system/nvidia-fallback.service; disabled; vendor preset: disabled)
Active: active (exited) since Mon 2018-08-20 12:03:18 EDT; 3min 22s ago
Process: 948 ExecStartPost=/bin/plymouth message --text=NVIDIA kernel module missing. Falling back to >
Process: 924 ExecStart=/sbin/modprobe nouveau (code=exited, status=0/SUCCESS)
Main PID: 924 (code=exited, status=0/SUCCESS)
Aug 20 12:03:12 xbmc systemd[1]: Starting Fallback to nouveau as nvidia did not load...
Aug 20 12:03:18 xbmc systemd[1]: Started Fallback to nouveau as nvidia did not load.
lines 1-9/9 (END)
[schneidz@xbmc ~]$ systemctl status bumblebeed
● bumblebeed.service - Bumblebee C Daemon
Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2018-08-20 12:02:31 EDT; 7min ago
Main PID: 692 (bumblebeed)
Tasks: 1 (limit: 4915)
Memory: 1.6M
CGroup: /system.slice/bumblebeed.service
└─692 /usr/sbin/bumblebeed
Aug 20 12:02:31 xbmc systemd[1]: Started Bumblebee C Daemon.
Aug 20 12:03:07 xbmc bumblebeed[692]: [ 62.464114] [INFO]/usr/sbin/bumblebeed 3.2.1 started
so i got a solution so i'll mark this as solved eventhough my nvidia graphics adapter has slower fps in the game i am playing than my intel adapter:
Code:
[schneidz@xbmc ~]$ lsmod | egrep "nv|nou|915"
tun 49152 1
nouveau 2023424 0
ttm 126976 1 nouveau
i915 2052096 24
i2c_algo_bit 16384 2 i915,nouveau
mxm_wmi 16384 1 nouveau
drm_kms_helper 196608 2 i915,nouveau
drm 458752 25 drm_kms_helper,i915,ttm,nouveau
video 45056 3 asus_wmi,i915,nouveau
wmi 32768 4 asus_wmi,wmi_bmof,mxm_wmi,nouveau
[schneidz@xbmc ~]$ glxspheres64
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x1d1
Context is Direct
OpenGL Renderer: Mesa DRI Intel(R) HD Graphics 520 (Skylake GT2)
60.462362 frames/sec - 67.475995 Mpixels/sec
60.035922 frames/sec - 67.000089 Mpixels/sec
59.983189 frames/sec - 66.941239 Mpixels/sec
^C
[schneidz@xbmc ~]$ sudo rmmod nouveau
[schneidz@xbmc ~]$ sudo insmod /lib/modules/4.17.14-202.fc28.x86_64/extra/nvidia/nvidia.ko
[schneidz@xbmc ~]$ sudo insmod /lib/modules/4.17.14-202.fc28.x86_64/extra/nvidia/nvidia-modeset.ko
[schneidz@xbmc ~]$ sudo insmod /lib/modules/4.17.14-202.fc28.x86_64/extra/nvidia/nvidia-drm.ko
[schneidz@xbmc ~]$ sudo insmod /lib/modules/4.17.14-202.fc28.x86_64/extra/nvidia/nvidia-uvm.ko
but the game i am running has low fps and tearing.
also it seems buggy that i can only log into gnome when i log in (lxde, cinnamon, openbox, kodi, ...).
and just now the screen flashes ad brings me back to gdm when i try to log into gnome. i have to now use 'gnome on xorg'.
Were you using Gnome (Wayland) before? If so, I don't think such a solution would work anyway. The nvidia driver isn't Wayland ready yet, let alone Optimus support.
Further reading about Fedora 28 and Gnome 3.28 leads me to understand that Mutter (Wayland compositor for Gnome) now has EGL streams support for those wanting to use the proprietary NVIDIA driver. I'm not sure if it is possible to switch video cards with PRIME though
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.