<div dir="ltr"><div><div><div><div><div><div>Hello,<br><br></div>I have a machine with an intel (HDA 4000, in CPU) GPU and a nvidia GPU GTX675MX.<br><br></div>Default installation runs under intel GPU. I am trying to setup the system to use the nvidia (it detects intel by default).<br>
<br></div>I got it running for X, with modeset=0 for the i915 driver (otherwise I only got a black screen with cursor in the top left corner) and following the instructions in Debian Wiki.<br><br></div>To compile driver I also needed to add the following patch in /usr/src/modules/nvidia-kernel/debian/patches:<br>
------------------------------------------------------------------------------------------------------<br><br>--- a/nv-linux.h<br>+++ b/nv-linux.h<br>@@ -957,7 +957,11 @@ static inline int nv_execute_on_all_cpus<br> #endif<br>
 <br> #if !defined(NV_VMWARE)<br>+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0)<br>+#define NV_NUM_PHYSPAGES                get_num_physpages()<br>+#else<br> #define NV_NUM_PHYSPAGES                num_physpages<br>
+#endif<br> #define NV_GET_CURRENT_PROCESS()        current->tgid<br> #define NV_IN_ATOMIC()                  in_atomic()<br> #define NV_LOCAL_BH_DISABLE()           local_bh_disable()<br><br>---------------------------------------------------------------------------------------------------------<br>
</div>and add a reference to it in /usr/src/modules/nvidia-kernel/debian/patches/series<br></div>(in fact I did not know it if was this way, but I tried and worked)<br><div><br><br><br></div><div>What happens now is that logging out from X to get the lightdm again, or my try to switch to text console is not successful (blank -bright- screen).<br>
</div><div><div><br clear="all"><div><div><div><div><div><br>-- <br>--<br>Salutacions...Josep<br>--
</div></div></div></div></div></div></div></div>