LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 12-29-2015, 08:35 PM   #1
vwong
LQ Newbie
 
Registered: Dec 2015
Posts: 7

Rep: Reputation: Disabled
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

[root@RHEL6 ~]# lspci | grep VGA
00:0f.0 VGA compatible controller: VMware SVGA II Adapter
0b:00.0 VGA compatible controller: NVIDIA Corporation GK110GL [Quadro K6000] (rev a1)

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

[ 360.129] (--) PCI:*(0:0:15:0) 15ad:0405:15ad:0405 rev 0, Mem @ 0xe8000000/134217728, 0xfe000000/8388608, I/O @ 0x00001070/16, BIOS @ 0x????????/32768
[ 360.129] (--) PCI: (0:11:0:0) 10de:103a:103c:1036 rev 161, Mem @ 0xfc000000/16777216, 0xd0000000/268435456, 0xe4000000/33554432, I/O @ 0x00005000/128, BIOS @ 0x????????/65536

=========================================================================

# 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

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/input/mice"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
# generated from data in "/etc/sysconfig/keyboard"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbLayout" "us"
Option "XkbModel" "pc105"
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

Anyone have any idea?

Thanks
 
Old 12-30-2015, 03:53 PM   #2
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
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.
 
Old 12-31-2015, 12:50 AM   #3
vwong
LQ Newbie
 
Registered: Dec 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi mostlyharmless,

Thanks for your kind help.

Hereby is the grub kernel mode line


#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
 
Old 01-01-2016, 07:18 PM   #4
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
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 ?
 
Old 01-02-2016, 09:18 PM   #5
vwong
LQ Newbie
 
Registered: Dec 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] New graphic card installed: the sound is now gone. how to solve? floppy_stuttgart Linux - Newbie 11 03-15-2015 02:27 AM
detect the Graphic card installed CSharpguy Linux - Desktop 1 11-21-2010 05:48 AM
[SOLVED] Select graphic card driver ethereal1m Slackware 15 04-02-2010 11:16 AM
I have 2 graphic card installed. How do I tell GNOME which one to use? iqbala Slackware 1 03-03-2004 01:46 PM
Problem with X and my screen or graphic card kleenstud Debian 7 08-10-2003 05:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration