Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1:
- [CODE]root@kali:~# lspci | egrep 'VGA|3D'
- 00:02.0 VGA compatible controller: Intel Corporation Haswell Integrated Graphics Controller (rev 06)
- 01:00.0 3D controller: NVIDIA Corporation Device 1392 (rev a2)[/CODE]
- 2:
- [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
- root@kali:~# modprobe nvidia -vv
- libkmod: INFO ../libkmod/libkmod.c:319 kmod_unref: context 0x7ffd6a32c250 released[/CODE]
- 3: Same as #2
- [CODE]root@kali:~# modprobe nvidia-uvm -vv
- libkmod: INFO ../libkmod/libkmod.c:319 kmod_unref: context 0x7fead265b250 released[/CODE]
- 4:Ran it for a few seconds then CTRL+C
- [CODE]root@kali:~# optirun glxspheres64
- Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
- Visual ID of window: 0x21
- Context is Direct
- OpenGL Renderer: GeForce GTX 860M/PCIe/SSE2
- 350.488844 frames/sec - 391.145550 Mpixels/sec
- 372.357957 frames/sec - 415.551480 Mpixels/sec
- 372.678351 frames/sec - 415.909039 Mpixels/sec
- 373.432201 frames/sec - 416.750337 Mpixels/sec
- 364.641471 frames/sec - 406.939881 Mpixels/sec
- 364.485053 frames/sec - 406.765319 Mpixels/sec
- 369.643162 frames/sec - 412.521769 Mpixels/sec
- 370.186062 frames/sec - 413.127645 Mpixels/sec
- 367.897901 frames/sec - 410.574058 Mpixels/sec
- 372.988795 frames/sec - 416.255495 Mpixels/sec
- 371.210549 frames/sec - 414.270973 Mpixels/sec
- 356.491671 frames/sec - 397.844704 Mpixels/sec
- 366.770020 frames/sec - 409.315343 Mpixels/sec
- 369.899771 frames/sec - 412.808144 Mpixels/sec
- 372.395366 frames/sec - 415.593228 Mpixels/sec
- 368.972509 frames/sec - 411.773320 Mpixels/sec
- 368.786824 frames/sec - 411.566096 Mpixels/sec
- 365.078154 frames/sec - 407.427220 Mpixels/sec
- 365.626075 frames/sec - 408.038700 Mpixels/sec
- 367.831445 frames/sec - 410.499892 Mpixels/sec
- 367.708458 frames/sec - 410.362639 Mpixels/sec
- 370.843371 frames/sec - 413.861202 Mpixels/sec
- 370.694734 frames/sec - 413.695323 Mpixels/sec
- 369.048753 frames/sec - 411.858408 Mpixels/sec
- 370.615936 frames/sec - 413.607384 Mpixels/sec
- 374.025101 frames/sec - 417.412013 Mpixels/sec
- 383.854624 frames/sec - 428.381760 Mpixels/sec
- 374.094404 frames/sec - 417.489354 Mpixels/sec
- 372.156885 frames/sec - 415.327083 Mpixels/sec
- 372.288706 frames/sec - 415.474195 Mpixels/sec
- ^C[ 7345.079165] [WARN]Received Interrupt signal.[/CODE]
- 5: This is where I got confused because there was a bunch of "Warnings," I assume errors?
- [CODE]root@kali:~# dmesg | tail -n 100
- [ 6315.094795] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
- [ 6315.094898] ieee80211 phy3: Selected rate control algorithm 'rtl_rc'
- [ 6315.095166] usb 1-1: firmware: direct-loading firmware rtlwifi/rtl8192cufw_TMSC.bin
- [ 6319.235196] usb 1-1: USB disconnect, device number 7
- [ 6321.034930] usb 1-1: new high-speed USB device number 8 using xhci_hcd
- [ 6321.164229] usb 1-1: New USB device found, idVendor=0bda, idProduct=817f
- [ 6321.164231] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
- [ 6321.164233] usb 1-1: Product: ALFA AWUS036NHR
- [ 6321.164235] usb 1-1: SerialNumber: 00e04c000001
- [ 6321.164675] rtl8192cu: Chip version 0x10
- [ 6321.193326] rtl8192cu: MAC address: 00:c0:ca:6d:ef:21
- [ 6321.193328] rtl8192cu: Board Type 1
- [ 6321.193404] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
- [ 6321.193430] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
- [ 6321.193533] ieee80211 phy4: Selected rate control algorithm 'rtl_rc'
- [ 6321.193801] usb 1-1: firmware: direct-loading firmware rtlwifi/rtl8192cufw_TMSC.bin
- [ 6334.940582] usb 1-1: USB disconnect, device number 8
- [ 6336.115496] usb 1-1: new high-speed USB device number 9 using xhci_hcd
- [ 6336.244809] usb 1-1: New USB device found, idVendor=0bda, idProduct=817f
- [ 6336.244812] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
- [ 6336.244813] usb 1-1: Product: ALFA AWUS036NHR
- [ 6336.244815] usb 1-1: SerialNumber: 00e04c000001
- [ 6336.245261] rtl8192cu: Chip version 0x10
- [ 6336.273907] rtl8192cu: MAC address: 00:c0:ca:6d:ef:21
- [ 6336.273909] rtl8192cu: Board Type 1
- [ 6336.273985] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
- [ 6336.274012] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
- [ 6336.274116] ieee80211 phy5: Selected rate control algorithm 'rtl_rc'
- [ 6336.274393] usb 1-1: firmware: direct-loading firmware rtlwifi/rtl8192cufw_TMSC.bin
- [ 6358.340437] usb 1-1: USB disconnect, device number 9
- [ 6372.135063] usb 1-2: new high-speed USB device number 10 using xhci_hcd
- [ 6372.264384] usb 1-2: New USB device found, idVendor=0bda, idProduct=817f
- [ 6372.264387] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
- [ 6372.264389] usb 1-2: Product: ALFA AWUS036NHR
- [ 6372.264391] usb 1-2: SerialNumber: 00e04c000001
- [ 6372.264859] rtl8192cu: Chip version 0x10
- [ 6372.293506] rtl8192cu: MAC address: 00:c0:ca:6d:ef:21
- [ 6372.293508] rtl8192cu: Board Type 1
- [ 6372.293584] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
- [ 6372.293611] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
- [ 6372.293715] ieee80211 phy6: Selected rate control algorithm 'rtl_rc'
- [ 6372.293993] usb 1-2: firmware: direct-loading firmware rtlwifi/rtl8192cufw_TMSC.bin
- [ 6388.250195] rtl8192cu: MAC auto ON okay!
- [ 6388.260728] rtl8192cu: Tx queue select: 0x05
- [ 6388.864752] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
- [ 6396.471504] usb 1-2: USB disconnect, device number 10
- [ 6399.669311] usb 1-1: new high-speed USB device number 11 using xhci_hcd
- [ 6399.798627] usb 1-1: New USB device found, idVendor=0bda, idProduct=817f
- [ 6399.798630] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
- [ 6399.798632] usb 1-1: Product: ALFA AWUS036NHR
- [ 6399.798633] usb 1-1: SerialNumber: 00e04c000001
- [ 6399.799077] rtl8192cu: Chip version 0x10
- [ 6399.827789] rtl8192cu: MAC address: 00:c0:ca:6d:ef:21
- [ 6399.827791] rtl8192cu: Board Type 1
- [ 6399.827866] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
- [ 6399.827893] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
- [ 6399.827999] ieee80211 phy7: Selected rate control algorithm 'rtl_rc'
- [ 6399.828268] usb 1-1: firmware: direct-loading firmware rtlwifi/rtl8192cufw_TMSC.bin
- [ 6412.777138] rtl8192cu: MAC auto ON okay!
- [ 6412.787713] rtl8192cu: Tx queue select: 0x05
- [ 6413.394166] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
- [ 6458.530914] device mon0 entered promiscuous mode
- [ 6541.925576] usb 1-2: new full-speed USB device number 12 using xhci_hcd
- [ 6542.055727] usb 1-2: New USB device found, idVendor=046d, idProduct=c52e
- [ 6542.055729] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
- [ 6542.055731] usb 1-2: Product: USB Receiver
- [ 6542.055733] usb 1-2: Manufacturer: Logitech
- [ 6542.384020] hidraw: raw HID events driver (C) Jiri Kosina
- [ 6542.389351] usbcore: registered new interface driver usbhid
- [ 6542.389353] usbhid: USB HID core driver
- [ 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
- [ 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
- [ 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
- [ 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
- [ 7261.202650] vgaarb: this pci device is not a vga device
- [ 7261.203513] nvidia 0000:01:00.0: irq 40 for MSI/MSI-X
- [ 7261.206118] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
- [ 7261.206181] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
- [ 7261.206218] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
- [ 7261.206254] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
- [ 7261.206288] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
- [ 7261.206323] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
- [ 7261.206377] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
- [ 7261.206412] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
- [ 7261.210027] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
- [ 7261.493239] vgaarb: this pci device is not a vga device
- [ 7286.462275] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
- [ 7291.439763] vgaarb: this pci device is not a vga device
- [ 7291.440029] nvidia 0000:01:00.0: irq 40 for MSI/MSI-X
- [ 7291.442063] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
- [ 7291.442106] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
- [ 7291.442128] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
- [ 7291.442148] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
- [ 7291.442168] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
- [ 7291.442188] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
- [ 7291.442219] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
- [ 7291.442240] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
- [ 7291.444327] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)
- [ 7291.604540] vgaarb: this pci device is not a vga device
- [ 7353.271551] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140926/nsarguments-95)[/CODE]
- 6:
- [CODE]root@kali:~# echo $PATH
- /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/VirtualGL/bin:/usr/local/cuda-6.5/bin[/CODE]
- 7:
- [CODE]root@kali:~# cat /etc/bumblebee/bumblebee.conf
- # Configuration file for Bumblebee. Values should **not** be put between quotes
- ## Server options. Any change made in this section will need a server restart
- # to take effect.
- [bumblebeed]
- # The secondary Xorg server DISPLAY number
- VirtualDisplay=:8
- # Should the unused Xorg server be kept running? Set this to true if waiting
- # for X to be ready is too long and don't need power management at all.
- KeepUnusedXServer=false
- # The name of the Bumbleblee server group name (GID name)
- ServerGroup=bumblebee
- # Card power state at exit. Set to false if the card shoud be ON when Bumblebee
- # server exits.
- TurnCardOffAtExit=false
- # The default behavior of '-f' option on optirun. If set to "true", '-f' will
- # be ignored.
- NoEcoModeOverride=false
- # The Driver used by Bumblebee server. If this value is not set (or empty),
- # auto-detection is performed. The available drivers are nvidia and nouveau
- # (See also the driver-specific sections below)
- Driver=nvidia
- # Directory with a dummy config file to pass as a -configdir to secondary X
- XorgConfDir=/etc/bumblebee/xorg.conf.d
- ## Client options. Will take effect on the next optirun executed.
- [optirun]
- # Acceleration/ rendering bridge, possible values are auto, virtualgl and
- # primus.
- Bridge=auto
- # The method used for VirtualGL to transport frames between X servers.
- # Possible values are proxy, jpeg, rgb, xv and yuv.
- VGLTransport=proxy
- # List of paths which are searched for the primus libGL.so.1 when using
- # the primus bridge
- PrimusLibraryPath=/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
- # Should the program run under optirun even if Bumblebee server or nvidia card
- # is not available?
- AllowFallbackToIGC=false
- # Driver-specific settings are grouped under [driver-NAME]. The sections are
- # parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
- # detection resolves to NAME).
- # PMMethod: method to use for saving power by disabling the nvidia card, valid
- # values are: auto - automatically detect which PM method to use
- # bbswitch - new in BB 3, recommended if available
- # switcheroo - vga_switcheroo method, use at your own risk
- # none - disable PM completely
- # https://github.com/Bumblebee-Project/Bumblebee/wiki/Comparison-of-PM-methods
- ## Section with nvidia driver specific options, only parsed if Driver=nvidia
- [driver-nvidia]
- # Module name to load, defaults to Driver if empty or unset
- KernelDriver=nvidia
- PMMethod=auto
- # colon-separated path to the nvidia libraries
- LibraryPath=/usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia
- # comma-separated path of the directory containing nvidia_drv.so and the
- # default Xorg modules path
- XorgModulePath=/usr/lib/nvidia,/usr/lib/xorg/modules
- XorgConfFile=/etc/bumblebee/xorg.conf.nvidia
- ## Section with nouveau driver specific options, only parsed if Driver=nouveau
- [driver-nouveau]
- KernelDriver=nouveau
- PMMethod=auto
- XorgConfFile=/etc/bumblebee/xorg.conf.nouveau
- 8:
- root@kali:~# cat /etc/bumblebee/xorg.conf.nvidia
- Section "ServerLayout"
- Identifier "Layout0"
- Option "AutoAddDevices" "false"
- Option "AutoAddGPU" "false"
- EndSection
- Section "Device"
- Identifier "DiscreteNvidia"
- Driver "nvidia"
- VendorName "NVIDIA Corporation"
- BusID "PCI:01:00:0"
- # If the X server does not automatically detect your VGA device,
- # you can manually set it here.
- # To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
- # as you see in the commented example.
- # This Setting may be needed in some platforms with more than one
- # nvidia card, which may confuse the proprietary driver (e.g.,
- # trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
- # BusID "PCI:01:00:0"
- # Setting ProbeAllGpus to false prevents the new proprietary driver
- # instance spawned to try to control the integrated graphics card,
- # which is already being managed outside bumblebee.
- # This option doesn't hurt and it is required on platforms running
- # more than one nvidia graphics card with the proprietary driver.
- # (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
- # If this option is not set, the new Xorg may blacken the screen and
- # render it unusable (unless you have some way to run killall Xorg).
- Option "ProbeAllGpus" "false"
- Option "NoLogo" "true"
- Option "UseEDID" "false"
- Option "UseDisplayDevice" "none"
- EndSection[/CODE]
- 9:
- [CODE]root@kali:~# service bumblebeed restart
- [ ok ] Restarting bumblebeed: bumblebeed.[/CODE]
- 10:
- [CODE]root@kali:~# modinfo nvidia
- filename: /lib/modules/3.18.0-kali3-amd64/kernel/drivers/video/nvidia.ko
- alias: char-major-195-*
- version: 346.47
- supported: external
- license: NVIDIA
- alias: pci:v000010DEd00000E00sv*sd*bc04sc80i00*
- alias: pci:v000010DEd00000AA3sv*sd*bc0Bsc40i00*
- alias: pci:v000010DEd*sv*sd*bc03sc02i00*
- alias: pci:v000010DEd*sv*sd*bc03sc00i00*
- depends: drm,i2c-core
- vermagic: 3.18.0-kali3-amd64 SMP mod_unload modversions
- parm: NVreg_Mobile:int
- parm: NVreg_ResmanDebugLevel:int
- parm: NVreg_RmLogonRC:int
- parm: NVreg_ModifyDeviceFiles:int
- parm: NVreg_DeviceFileUID:int
- parm: NVreg_DeviceFileGID:int
- parm: NVreg_DeviceFileMode:int
- parm: NVreg_RemapLimit:int
- parm: NVreg_UpdateMemoryTypes:int
- parm: NVreg_InitializeSystemMemoryAllocations:int
- parm: NVreg_UsePageAttributeTable:int
- parm: NVreg_MapRegistersEarly:int
- parm: NVreg_RegisterForACPIEvents:int
- parm: NVreg_CheckPCIConfigSpace:int
- parm: NVreg_EnablePCIeGen3:int
- parm: NVreg_EnableMSI:int
- parm: NVreg_MemoryPoolSize:int
- parm: NVreg_RegistryDwords:charp
- parm: NVreg_RmMsg:charp
- parm: NVreg_AssignGpus:charp[/CODE]
- 11:
- [CODE]root@kali:~# find 2> /dev/null / -name nvidia*.ko
- /lib/modules/3.18.0-kali3-amd64/kernel/drivers/video/nvidia.ko
- /lib/modules/3.18.0-kali3-amd64/kernel/drivers/video/nvidia-uvm.ko[/CODE]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement