<p>After a lot of research and tries and fails, i found the solution in here, and it works great 
<a href="https://askubuntu.com/questions/758972/does-ubuntu-16-04-support-hybrid-grafics-cards-bumblebee">https://askubuntu.com/questions/758972/does-ubuntu-16-04-support-hybrid-grafics-cards-bumblebee</a></p>

CC BY-SA 3.0
2016-07-05T08:22:58.227Z
Whilst this may theoretically answer the question, [it would be preferable](//meta.stackoverflow.com/q/8259) to include the essential parts of the answer here, and provide the link for reference.
q9f
CC BY-SA 3.0
2016-05-10T21:09:39.657Z
2016-05-10T21:09:39.657Z
user3781458
<p>Mining on a cpu at all is a bad idea, it can and will wear the cpu down, and is ridiculously slow compared to a gpu. Also mining with an Nvidia card isn't the smartest thing either as they are much slower than AMD cards. Regardless you will make next to no money mining with this kind of hardware given that there are thousands of people with ASIC miners that pump out 2TH/s +. My advice would be save up some money and purchase a high-end ASIC miner and refrain from mining with your current computer.</p>

CC BY-SA 3.0
2016-05-10T23:23:59.370Z
i am not mining bitcoins, i am minning monero (XMR) and at the moment, there are no  cryptonote ASIC miners
user3781458
CC BY-SA 3.0
2016-05-10T21:11:24.457Z
2016-05-10T21:11:24.457Z
Dylan Ireland
<p>Just purchase a second computer specifically for Monero mining, and don't even run the GUI (Unity).  If your mining efforts aren't profitable enough to warrant a dedicated computer, then you probably shouldn't be mining.</p>

CC BY-SA 3.0
2016-05-10T13:30:52.123Z
i'm just starting today, so no profits yet, just wanted to test the waters and see how things are
user3781458
CC BY-SA 3.0
2016-05-10T13:22:32.813Z
2016-05-10T13:22:32.813Z
Jestin
<p>You could add a second video card and mine with one and use the second for productivity.</p>

CC BY-SA 3.0
2016-05-10T20:04:14.603Z
i use a laptop, and i can't really afford a second gpu right now, but i already have intel haswell, which run unity fine before i install nvidia driver, however, once i install nvidia drivers, either everything use nvidia, or everythin use intel, i can't find a way to separate them as planned(intel for unity, nvidia for the rest)
user3781458
CC BY-SA 3.0
2016-05-10T17:17:54.037Z
2016-05-10T17:17:54.037Z
Mark S.
<p>I won't answer your question <em>How can I use one GPU for computing and the other for interactive use?</em>, because I think this is a general question and is more in the focus of <a href="https://www.superuser.com" rel="nofollow noreferrer">SU</a> and/or <a href="https://askubuntu.com">ask ubuntu</a>, but address your primary problem description in the title: <em>GPU mining slows down my ubuntu</em>:</p>

<p>So, to improve your interactive use when you mine with <code>ccminer</code> on your primary GPU (which also applies if you only have one installed) take a look at the <code>--bfactor</code> parameter. From the help:</p>

<pre><code>  --bfactor=[0-12]  Run Cryptonight core kernel in smaller pieces,
                    From 0 (ui freeze) to 12 (smooth), win default is 11
                    This is a per-device setting like the launch config.
</code></pre>

<p>Just try out different settings, I usually use something between 6 and 11, depending if I work in a terminal or with GUI programs.</p>

CC BY-SA 3.0
2017-12-23T08:45:04.763Z
2017-12-23T08:45:04.763Z
mpy
<p>I'm trying to mine using my CPU and GPU. When the CPU is set to use all its cores, I have no problems, but when I use my GPU, my desktop gets way too slow because unity uses it too I think, so I need to find a way to be able to use my GPU for mining while using Intel graphics for unity and the rest, can anyone help? I have a <code>Nvidia GTX 850M</code> and Ubuntu 16.04, and I don't know where to begin.</p>

CC BY-SA 3.0
2016-05-10T13:02:30.330Z
Quick clarification for newcomers thinking they can mine bitcoin on CPU or GPU: you can't. This question is not about Bitcoin.
Jannes
CC BY-SA 3.0
2016-05-10T13:07:57.673Z
actually, i'm not mining bitcoin, i'm just trying out mining monero
user3781458
<miner-configuration><ubuntu><gpu><cpu><monero>
GPU mining slows down my ubuntu
user3781458
# GPU mining slows down my ubuntu

(Asked by: username_0 on 2016-05-10)

I'm trying to mine using my CPU and GPU. When the CPU is set to use all its cores, I have no problems, but when I use my GPU, my desktop gets way too slow because unity uses it too I think, so I need to find a way to be able to use my GPU for mining while using Intel graphics for unity and the rest, can anyone help? I have a `Nvidia GTX 850M` and Ubuntu 16.04, and I don't know where to begin.

**Tags:** miner-configuration, ubuntu, gpu, cpu, monero

> **Comments:**
> **username_1**: Quick clarification for newcomers thinking they can mine bitcoin on CPU or GPU: you can't. This question is not about Bitcoin.  
> **username_0**: actually, i'm not mining bitcoin, i'm just trying out mining monero  

---

## 5 answers

### Answer by username_0 on 2016-05-10. Score: -1 | Accepted answer

After a lot of research and tries and fails, i found the solution in here, and it works great
<https://askubuntu.com/questions/758972/does-ubuntu-16-04-support-hybrid-grafics-cards-bumblebee>

> **Comments:**
> **username_2**: Whilst this may theoretically answer the question, [it would be preferable](//meta.stackoverflow.com/q/8259) to include the essential parts of the answer here, and provide the link for reference.  

---

### Answer by username_3 on 2016-05-10. Score: 3

Mining on a cpu at all is a bad idea, it can and will wear the cpu down, and is ridiculously slow compared to a gpu. Also mining with an Nvidia card isn't the smartest thing either as they are much slower than AMD cards. Regardless you will make next to no money mining with this kind of hardware given that there are thousands of people with ASIC miners that pump out 2TH/s +. My advice would be save up some money and purchase a high-end ASIC miner and refrain from mining with your current computer.

> **Comments:**
> **username_0**: i am not mining bitcoins, i am minning monero (XMR) and at the moment, there are no  cryptonote ASIC miners  

---

### Answer by username_4 on 2016-05-10. Score: 2

Just purchase a second computer specifically for Monero mining, and don't even run the GUI (Unity). If your mining efforts aren't profitable enough to warrant a dedicated computer, then you probably shouldn't be mining.

> **Comments:**
> **username_0**: i'm just starting today, so no profits yet, just wanted to test the waters and see how things are  

---

### Answer by username_5 on 2016-05-10. Score: 0

You could add a second video card and mine with one and use the second for productivity.

> **Comments:**
> **username_0**: i use a laptop, and i can't really afford a second gpu right now, but i already have intel haswell, which run unity fine before i install nvidia driver, however, once i install nvidia drivers, either everything use nvidia, or everythin use intel, i can't find a way to separate them as planned(intel for unity, nvidia for the rest)  

---

### Answer by username_6 on 2017-12-23. Score: 0

I won't answer your question How can I use one GPU for computing and the other for interactive use?, because I think this is a general question and is more in the focus of SU and/or ask ubuntu, but address your primary problem description in the title: GPU mining slows down my ubuntu:
So, to improve your interactive use when you mine with ccminer on your primary GPU (which also applies if you only have one installed) take a look at the --bfactor parameter. From the help:
  --bfactor=[0-12]  Run Cryptonight core kernel in smaller pieces,
                    From 0 (ui freeze) to 12 (smooth), win default is 11
                    This is a per-device setting like the launch config.

Just try out different settings, I usually use something between 6 and 11, depending if I work in a terminal or with GUI programs.


---

