How to select Primary Graphic Card ?? No screen found after driver installed
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
How to select Primary Graphic Card ?? No screen found after driver installed
Hi All Experts,
I'm new to linux and im currently using RHEL 6.7 with a GPU passthrough on a VMWare vSphere. RHEL able to detect both onboard and PCI Nvidia card with lspci
Nvidia Driver installed with nouveau driver disabled and able to run nvidia-smi command
[root@RHEL6 ~]# nvidia-smi
Thu Dec 31 02:19:05 2015
+------------------------------------------------------+
| NVIDIA-SMI 352.63 Driver Version: 352.63 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Quadro K6000 Off | 0000:0B:00.0 Off | Off |
| 0% 40C P0 35W / 225W | 24MiB / 12287MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
However the xorg.conf not able to startx and keep complain with error (ee) no screen found. Below is the xorg.conf file for reference. After some checking i see RHEL still select the onboard graphic as primary from the /var/log/Xorg.0.log
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 352.63 (buildmeister@swio-display-x64-rhel04-11) Sat Nov 7 22:00:19 PST 2015
If you are passing through your GPU, there is normally a pci-stub driver line on your kernel options preventing the Nvidia driver from using the gpu. I note that the driver seems to correctly report 0 cards available. Presumably you installed the driver first, then set up passthrough? Please post your kernel mode line from grub or systemd boot or whichever boot manager you are using.
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux 6 (2.6.32-573.el6.x86_64)
root (hd0,0)
kernel /tboot.gz logging=vga,serial,memory
module /vmlinuz-2.6.32-573.el6.x86_64 ro root=/dev/mapper/vg_rhel6-lv_root intel_iommu=on amd_iommu=on nomodeset rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 rd_LVM_LV=vg_rhel6/lv_swap crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_LVM_LV=vg_rhel6/lv_root rd_NO_DM rhgb quiet nouveau.modeset=0 rdblacklist=nouveau
module /initramfs-2.6.32-573.el6.x86_64.img
/etc/grub.conf (END)
Also i able to see the device are added in /var/log/message
Jan 1 01:46:21 RHEL6 kernel: vgaarb: device added: PCI:0000:00:0f.0,decodes=io+mem,owns=io+mem,locks=none
Jan 1 01:46:21 RHEL6 kernel: vgaarb: device added: PCI:0000:0b:00.0,decodes=io+mem,owns=none,locks=none
Ah, I misunderstood. Your question is about your guest not your host, right? Unfortunately I know nothing about VMsphere. I do note that most modern X setups don't use an xorg.conf anymore. Have you tried running Xorg --configure ?
Yes i do use X -configure but still fail to startx, i tried to use the vesa instead of nvidia in xorg.conf it able to startx but just wont able to utilize the nvidia card. Not sure whats wrong
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.