Advertisement
Guest User

Nvidia kali test

a guest
Mar 25th, 2015
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.97 KB | None | 0 0
  1. 1:
  2. [CODE]root@kali:~# lspci | egrep 'VGA|3D'
  3. 00:02.0 VGA compatible controller: Intel Corporation Haswell Integrated Graphics Controller (rev 06)
  4. 01:00.0 3D controller: NVIDIA Corporation Device 1392 (rev a2)[/CODE]
  5. 2:
  6. [CODE]I don't know a whole alot about code, so i was confused when i executed modprobe nvidia and it didn't pop up anything so i added the -vv
  7. root@kali:~# modprobe nvidia -vv
  8. libkmod: INFO ../libkmod/libkmod.c:319 kmod_unref: context 0x7ffd6a32c250 released[/CODE]
  9. 3: Same as #2
  10. [CODE]root@kali:~# modprobe nvidia-uvm -vv
  11. libkmod: INFO ../libkmod/libkmod.c:319 kmod_unref: context 0x7fead265b250 released[/CODE]
  12. 4:Ran it for a few seconds then CTRL+C
  13. [CODE]root@kali:~# optirun glxspheres64
  14. Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
  15. Visual ID of window: 0x21
  16. Context is Direct
  17. OpenGL Renderer: GeForce GTX 860M/PCIe/SSE2
  18. 350.488844 frames/sec - 391.145550 Mpixels/sec
  19. 372.357957 frames/sec - 415.551480 Mpixels/sec
  20. 372.678351 frames/sec - 415.909039 Mpixels/sec
  21. 373.432201 frames/sec - 416.750337 Mpixels/sec
  22. 364.641471 frames/sec - 406.939881 Mpixels/sec
  23. 364.485053 frames/sec - 406.765319 Mpixels/sec
  24. 369.643162 frames/sec - 412.521769 Mpixels/sec
  25. 370.186062 frames/sec - 413.127645 Mpixels/sec
  26. 367.897901 frames/sec - 410.574058 Mpixels/sec
  27. 372.988795 frames/sec - 416.255495 Mpixels/sec
  28. 371.210549 frames/sec - 414.270973 Mpixels/sec
  29. 356.491671 frames/sec - 397.844704 Mpixels/sec
  30. 366.770020 frames/sec - 409.315343 Mpixels/sec
  31. 369.899771 frames/sec - 412.808144 Mpixels/sec
  32. 372.395366 frames/sec - 415.593228 Mpixels/sec
  33. 368.972509 frames/sec - 411.773320 Mpixels/sec
  34. 368.786824 frames/sec - 411.566096 Mpixels/sec
  35. 365.078154 frames/sec - 407.427220 Mpixels/sec
  36. 365.626075 frames/sec - 408.038700 Mpixels/sec
  37. 367.831445 frames/sec - 410.499892 Mpixels/sec
  38. 367.708458 frames/sec - 410.362639 Mpixels/sec
  39. 370.843371 frames/sec - 413.861202 Mpixels/sec
  40. 370.694734 frames/sec - 413.695323 Mpixels/sec
  41. 369.048753 frames/sec - 411.858408 Mpixels/sec
  42. 370.615936 frames/sec - 413.607384 Mpixels/sec
  43. 374.025101 frames/sec - 417.412013 Mpixels/sec
  44. 383.854624 frames/sec - 428.381760 Mpixels/sec
  45. 374.094404 frames/sec - 417.489354 Mpixels/sec
  46. 372.156885 frames/sec - 415.327083 Mpixels/sec
  47. 372.288706 frames/sec - 415.474195 Mpixels/sec
  48. ^C[ 7345.079165] [WARN]Received Interrupt signal.[/CODE]
  49. 5: This is where I got confused because there was a bunch of "Warnings," I assume errors?
  50. [CODE]root@kali:~# dmesg | tail -n 100
  51. [ 6315.094795] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
  52. [ 6315.094898] ieee80211 phy3: Selected rate control algorithm 'rtl_rc'
  53. [ 6315.095166] usb 1-1: firmware: direct-loading firmware rtlwifi/rtl8192cufw_TMSC.bin
  54. [ 6319.235196] usb 1-1: USB disconnect, device number 7
  55. [ 6321.034930] usb 1-1: new high-speed USB device number 8 using xhci_hcd
  56. [ 6321.164229] usb 1-1: New USB device found, idVendor=0bda, idProduct=817f
  57. [ 6321.164231] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
  58. [ 6321.164233] usb 1-1: Product: ALFA AWUS036NHR
  59. [ 6321.164235] usb 1-1: SerialNumber: 00e04c000001
  60. [ 6321.164675] rtl8192cu: Chip version 0x10
  61. [ 6321.193326] rtl8192cu: MAC address: 00:c0:ca:6d:ef:21
  62. [ 6321.193328] rtl8192cu: Board Type 1
  63. [ 6321.193404] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
  64. [ 6321.193430] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
  65. [ 6321.193533] ieee80211 phy4: Selected rate control algorithm 'rtl_rc'
  66. [ 6321.193801] usb 1-1: firmware: direct-loading firmware rtlwifi/rtl8192cufw_TMSC.bin
  67. [ 6334.940582] usb 1-1: USB disconnect, device number 8
  68. [ 6336.115496] usb 1-1: new high-speed USB device number 9 using xhci_hcd
  69. [ 6336.244809] usb 1-1: New USB device found, idVendor=0bda, idProduct=817f
  70. [ 6336.244812] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
  71. [ 6336.244813] usb 1-1: Product: ALFA AWUS036NHR
  72. [ 6336.244815] usb 1-1: SerialNumber: 00e04c000001
  73. [ 6336.245261] rtl8192cu: Chip version 0x10
  74. [ 6336.273907] rtl8192cu: MAC address: 00:c0:ca:6d:ef:21
  75. [ 6336.273909] rtl8192cu: Board Type 1
  76. [ 6336.273985] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
  77. [ 6336.274012] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
  78. [ 6336.274116] ieee80211 phy5: Selected rate control algorithm 'rtl_rc'
  79. [ 6336.274393] usb 1-1: firmware: direct-loading firmware rtlwifi/rtl8192cufw_TMSC.bin
  80. [ 6358.340437] usb 1-1: USB disconnect, device number 9
  81. [ 6372.135063] usb 1-2: new high-speed USB device number 10 using xhci_hcd
  82. [ 6372.264384] usb 1-2: New USB device found, idVendor=0bda, idProduct=817f
  83. [ 6372.264387] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
  84. [ 6372.264389] usb 1-2: Product: ALFA AWUS036NHR
  85. [ 6372.264391] usb 1-2: SerialNumber: 00e04c000001
  86. [ 6372.264859] rtl8192cu: Chip version 0x10
  87. [ 6372.293506] rtl8192cu: MAC address: 00:c0:ca:6d:ef:21
  88. [ 6372.293508] rtl8192cu: Board Type 1
  89. [ 6372.293584] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
  90. [ 6372.293611] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
  91. [ 6372.293715] ieee80211 phy6: Selected rate control algorithm 'rtl_rc'
  92. [ 6372.293993] usb 1-2: firmware: direct-loading firmware rtlwifi/rtl8192cufw_TMSC.bin
  93. [ 6388.250195] rtl8192cu: MAC auto ON okay!
  94. [ 6388.260728] rtl8192cu: Tx queue select: 0x05
  95. [ 6388.864752] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
  96. [ 6396.471504] usb 1-2: USB disconnect, device number 10
  97. [ 6399.669311] usb 1-1: new high-speed USB device number 11 using xhci_hcd
  98. [ 6399.798627] usb 1-1: New USB device found, idVendor=0bda, idProduct=817f
  99. [ 6399.798630] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
  100. [ 6399.798632] usb 1-1: Product: ALFA AWUS036NHR
  101. [ 6399.798633] usb 1-1: SerialNumber: 00e04c000001
  102. [ 6399.799077] rtl8192cu: Chip version 0x10
  103. [ 6399.827789] rtl8192cu: MAC address: 00:c0:ca:6d:ef:21
  104. [ 6399.827791] rtl8192cu: Board Type 1
  105. [ 6399.827866] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
  106. [ 6399.827893] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
  107. [ 6399.827999] ieee80211 phy7: Selected rate control algorithm 'rtl_rc'
  108. [ 6399.828268] usb 1-1: firmware: direct-loading firmware rtlwifi/rtl8192cufw_TMSC.bin
  109. [ 6412.777138] rtl8192cu: MAC auto ON okay!
  110. [ 6412.787713] rtl8192cu: Tx queue select: 0x05
  111. [ 6413.394166] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
  112. [ 6458.530914] device mon0 entered promiscuous mode
  113. [ 6541.925576] usb 1-2: new full-speed USB device number 12 using xhci_hcd
  114. [ 6542.055727] usb 1-2: New USB device found, idVendor=046d, idProduct=c52e
  115. [ 6542.055729] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
  116. [ 6542.055731] usb 1-2: Product: USB Receiver
  117. [ 6542.055733] usb 1-2: Manufacturer: Logitech
  118. [ 6542.384020] hidraw: raw HID events driver (C) Jiri Kosina
  119. [ 6542.389351] usbcore: registered new interface driver usbhid
  120. [ 6542.389353] usbhid: USB HID core driver
  121. [ 6542.410992] input: Logitech USB Receiver as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/0003:046D:C52E.0001/input/input20
  122. [ 6542.411254] hid-generic 0003:046D:C52E.0001: input,hidraw0: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-0000:00:14.0-2/input0
  123. [ 6542.411446] input: Logitech USB Receiver as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1/0003:046D:C52E.0002/input/input21
  124. [ 6542.411963] hid-generic 0003:046D:C52E.0002: input,hiddev0,hidraw1: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-0000:00:14.0-2/input1
  125. [ 7261.202650] vgaarb: this pci device is not a vga device
  126. [ 7261.203513] nvidia 0000:01:00.0: irq 40 for MSI/MSI-X
  127. [ 7261.206118] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
  128. [ 7261.206181] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
  129. [ 7261.206218] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
  130. [ 7261.206254] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
  131. [ 7261.206288] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
  132. [ 7261.206323] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
  133. [ 7261.206377] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
  134. [ 7261.206412] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
  135. [ 7261.210027] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
  136. [ 7261.493239] vgaarb: this pci device is not a vga device
  137. [ 7286.462275] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
  138. [ 7291.439763] vgaarb: this pci device is not a vga device
  139. [ 7291.440029] nvidia 0000:01:00.0: irq 40 for MSI/MSI-X
  140. [ 7291.442063] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
  141. [ 7291.442106] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
  142. [ 7291.442128] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
  143. [ 7291.442148] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
  144. [ 7291.442168] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
  145. [ 7291.442188] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
  146. [ 7291.442219] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
  147. [ 7291.442240] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
  148. [ 7291.444327] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
  149. [ 7291.604540] vgaarb: this pci device is not a vga device
  150. [ 7353.271551] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)[/CODE]
  151. 6:
  152. [CODE]root@kali:~# echo $PATH
  153. /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/VirtualGL/bin:/usr/local/cuda-6.5/bin[/CODE]
  154. 7:
  155. [CODE]root@kali:~# cat /etc/bumblebee/bumblebee.conf
  156. # Configuration file for Bumblebee. Values should **not** be put between quotes
  157.  
  158. ## Server options. Any change made in this section will need a server restart
  159. # to take effect.
  160. [bumblebeed]
  161. # The secondary Xorg server DISPLAY number
  162. VirtualDisplay=:8
  163. # Should the unused Xorg server be kept running? Set this to true if waiting
  164. # for X to be ready is too long and don't need power management at all.
  165. KeepUnusedXServer=false
  166. # The name of the Bumbleblee server group name (GID name)
  167. ServerGroup=bumblebee
  168. # Card power state at exit. Set to false if the card shoud be ON when Bumblebee
  169. # server exits.
  170. TurnCardOffAtExit=false
  171. # The default behavior of '-f' option on optirun. If set to "true", '-f' will
  172. # be ignored.
  173. NoEcoModeOverride=false
  174. # The Driver used by Bumblebee server. If this value is not set (or empty),
  175. # auto-detection is performed. The available drivers are nvidia and nouveau
  176. # (See also the driver-specific sections below)
  177. Driver=nvidia
  178. # Directory with a dummy config file to pass as a -configdir to secondary X
  179. XorgConfDir=/etc/bumblebee/xorg.conf.d
  180.  
  181. ## Client options. Will take effect on the next optirun executed.
  182. [optirun]
  183. # Acceleration/ rendering bridge, possible values are auto, virtualgl and
  184. # primus.
  185. Bridge=auto
  186. # The method used for VirtualGL to transport frames between X servers.
  187. # Possible values are proxy, jpeg, rgb, xv and yuv.
  188. VGLTransport=proxy
  189. # List of paths which are searched for the primus libGL.so.1 when using
  190. # the primus bridge
  191. PrimusLibraryPath=/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
  192. # Should the program run under optirun even if Bumblebee server or nvidia card
  193. # is not available?
  194. AllowFallbackToIGC=false
  195.  
  196.  
  197. # Driver-specific settings are grouped under [driver-NAME]. The sections are
  198. # parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
  199. # detection resolves to NAME).
  200. # PMMethod: method to use for saving power by disabling the nvidia card, valid
  201. # values are: auto - automatically detect which PM method to use
  202. # bbswitch - new in BB 3, recommended if available
  203. # switcheroo - vga_switcheroo method, use at your own risk
  204. # none - disable PM completely
  205. # https://github.com/Bumblebee-Project/Bumblebee/wiki/Comparison-of-PM-methods
  206.  
  207. ## Section with nvidia driver specific options, only parsed if Driver=nvidia
  208. [driver-nvidia]
  209. # Module name to load, defaults to Driver if empty or unset
  210. KernelDriver=nvidia
  211. PMMethod=auto
  212. # colon-separated path to the nvidia libraries
  213. LibraryPath=/usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia
  214. # comma-separated path of the directory containing nvidia_drv.so and the
  215. # default Xorg modules path
  216. XorgModulePath=/usr/lib/nvidia,/usr/lib/xorg/modules
  217. XorgConfFile=/etc/bumblebee/xorg.conf.nvidia
  218.  
  219. ## Section with nouveau driver specific options, only parsed if Driver=nouveau
  220. [driver-nouveau]
  221. KernelDriver=nouveau
  222. PMMethod=auto
  223. XorgConfFile=/etc/bumblebee/xorg.conf.nouveau
  224. 8:
  225. root@kali:~# cat /etc/bumblebee/xorg.conf.nvidia
  226. Section "ServerLayout"
  227. Identifier "Layout0"
  228. Option "AutoAddDevices" "false"
  229. Option "AutoAddGPU" "false"
  230. EndSection
  231.  
  232. Section "Device"
  233. Identifier "DiscreteNvidia"
  234. Driver "nvidia"
  235. VendorName "NVIDIA Corporation"
  236. BusID "PCI:01:00:0"
  237. # If the X server does not automatically detect your VGA device,
  238. # you can manually set it here.
  239. # To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
  240. # as you see in the commented example.
  241. # This Setting may be needed in some platforms with more than one
  242. # nvidia card, which may confuse the proprietary driver (e.g.,
  243. # trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
  244. # BusID "PCI:01:00:0"
  245.  
  246. # Setting ProbeAllGpus to false prevents the new proprietary driver
  247. # instance spawned to try to control the integrated graphics card,
  248. # which is already being managed outside bumblebee.
  249. # This option doesn't hurt and it is required on platforms running
  250. # more than one nvidia graphics card with the proprietary driver.
  251. # (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
  252. # If this option is not set, the new Xorg may blacken the screen and
  253. # render it unusable (unless you have some way to run killall Xorg).
  254. Option "ProbeAllGpus" "false"
  255.  
  256. Option "NoLogo" "true"
  257. Option "UseEDID" "false"
  258. Option "UseDisplayDevice" "none"
  259. EndSection[/CODE]
  260. 9:
  261. [CODE]root@kali:~# service bumblebeed restart
  262. [ ok ] Restarting bumblebeed: bumblebeed.[/CODE]
  263. 10:
  264. [CODE]root@kali:~# modinfo nvidia
  265. filename: /lib/modules/3.18.0-kali3-amd64/kernel/drivers/video/nvidia.ko
  266. alias: char-major-195-*
  267. version: 346.47
  268. supported: external
  269. license: NVIDIA
  270. alias: pci:v000010DEd00000E00sv*sd*bc04sc80i00*
  271. alias: pci:v000010DEd00000AA3sv*sd*bc0Bsc40i00*
  272. alias: pci:v000010DEd*sv*sd*bc03sc02i00*
  273. alias: pci:v000010DEd*sv*sd*bc03sc00i00*
  274. depends: drm,i2c-core
  275. vermagic: 3.18.0-kali3-amd64 SMP mod_unload modversions
  276. parm: NVreg_Mobile:int
  277. parm: NVreg_ResmanDebugLevel:int
  278. parm: NVreg_RmLogonRC:int
  279. parm: NVreg_ModifyDeviceFiles:int
  280. parm: NVreg_DeviceFileUID:int
  281. parm: NVreg_DeviceFileGID:int
  282. parm: NVreg_DeviceFileMode:int
  283. parm: NVreg_RemapLimit:int
  284. parm: NVreg_UpdateMemoryTypes:int
  285. parm: NVreg_InitializeSystemMemoryAllocations:int
  286. parm: NVreg_UsePageAttributeTable:int
  287. parm: NVreg_MapRegistersEarly:int
  288. parm: NVreg_RegisterForACPIEvents:int
  289. parm: NVreg_CheckPCIConfigSpace:int
  290. parm: NVreg_EnablePCIeGen3:int
  291. parm: NVreg_EnableMSI:int
  292. parm: NVreg_MemoryPoolSize:int
  293. parm: NVreg_RegistryDwords:charp
  294. parm: NVreg_RmMsg:charp
  295. parm: NVreg_AssignGpus:charp[/CODE]
  296. 11:
  297. [CODE]root@kali:~# find 2> /dev/null / -name nvidia*.ko
  298. /lib/modules/3.18.0-kali3-amd64/kernel/drivers/video/nvidia.ko
  299. /lib/modules/3.18.0-kali3-amd64/kernel/drivers/video/nvidia-uvm.ko[/CODE]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement