{"id":671,"date":"2013-03-01T08:47:03","date_gmt":"2013-03-01T07:47:03","guid":{"rendered":"http:\/\/thoughtflow.dk\/?p=671"},"modified":"2013-03-01T08:47:03","modified_gmt":"2013-03-01T07:47:03","slug":"ubuntu-not-ready-for-primetime","status":"publish","type":"post","link":"https:\/\/davidlebech.com\/thoughtflow\/ubuntu-not-ready-for-primetime\/","title":{"rendered":"Ubuntu &#8212; not ready for primetime"},"content":{"rendered":"<p>I wanted to install Ubuntu on my Dell XPS 15 to try out <a href=\"http:\/\/store.steampowered.com\/browse\/linux\/\" target=\"_blank\">Steam for Linux<\/a>. This was not the enjoyable experience I had hoped for since a lot of things did not work perfectly out of the box. Below are some steps I had to take to get the system going.<\/p>\n<h3>Fixing the graphics<\/h3>\n<p>My laptop has NVIDIA optimus technology which automatically switches between Intel&#8217;s HD 4000 graphics card and the faster NVIDIA Geforce GFX 640. Apparently, optimus support on Linux <a href=\"http:\/\/www.pcworld.com\/article\/261874\/coming_soon_to_linux_nvidia_optimus_graphics_support.html\" target=\"_blank\">is not good<\/a>.<\/p>\n<p>In Ubuntu, I had no 3D support and the graphics would spontanously turn off after a restart so I was presented with only the terminal. Fortunately, there are some nice people that are maintaining a project called <a href=\"http:\/\/bumblebee-project.org\/\" target=\"_blank\">Bumblebee<\/a> which adds support for optimus in Linux. After installing this, my graphics system has been <em>fairly<\/em> stable. Just do this:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo add-apt-repository ppa:bumblebee\/stable\r\nsudo add-apt-repository ppa:ubuntu-x-swat\/x-updates\r\nsudo apt-get update\r\nsudo apt-get install bumblebee bumblebee-nvidia linux-headers-generic\r\n<\/pre>\n<p>I also recommend the primusrun package:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo apt-get install primus\r\n<\/pre>\n<p>With the above installed, it is possible to run programs specifically with the NVIDIA card like so:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\noptirun glxspheres\r\nprimusrun glxspheres\r\n<\/pre>\n<h3>Fixing the mouse<\/h3>\n<p>Yes, the mouse did not work. Well, the touchpad worked but my wireless Logitech M705 mouse did not. The problem, it turned out, was the Logitech Unifying Receiver. It is a small USB thing that is plugged in for a mouse and external keyboard and is used for many Logitech devices. After searching for many hours, somewhere on some forum, I found the following simple command-line trick:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n#!\/bin\/bash\r\nwhile :; do dmesg|grep logitech-djreceiver|tail -1|grep -q -c &quot;failed with error -32&quot; || exit; echo -n `date`&quot; Driver Reload&quot; ; rmmod hid_logitech_dj ; modprobe hid_logitech_dj ; dmesg|grep logitech-djreceiver|tail -1 ; sleep 1; done\r\n<\/pre>\n<p>You can also find it <a href=\"https:\/\/gist.github.com\/dlebech\/5062953\" title=\"Gist for fixing Logitech Unifying receiver\" target=\"_blank\">as a github gist here<\/a>.<\/p>\n<p>The script simply tries to reload the receiver with modprobe and it works. Sometimes after one loop, sometimes after ten. And it is a pain in the ass to run it at every startup.<\/p>\n<h3>Getting Steam to work<\/h3>\n<p>The real reason I wanted to try Ubuntu again was the recently released Steam for Linux client. After installing Bumblebee, Steam actually installed and ran quite well. However, it is worth taking a look at <a href=\"http:\/\/steamcommunity.com\/app\/221410\/discussions\/6\/846939854395110175\/\" target=\"_blank\">this guide<\/a> for running programs with optirun\/primusrun.<\/p>\n<h3>Conclusion<\/h3>\n<p>In the above, I left out the fact that before finding the solutions, I had to reinstall Ubuntu three times because of playing around with graphics drivers that broke the system until finally figuring out about the Bumblebee project. This is definitely something most users would not want to mess around with. Not only that but my mouse is still not working after a restart and sometimes I am still greated with the terminal login instead of a graphics login. It is quite random, actually.<\/p>\n<p>I should also note that I have had similar experiences with Ubuntu in the past. I love Linux but it just does not work like Windows or Mac. As soon as you are faced with a weird hardware problem, good luck fixing that without the command-line!<\/p>\n<p>Therefore, I have to recommend <em>not<\/em> installing Ubuntu at the current time &#8212; at least if you have dual graphics card with optimus technology or you are not willing to spend hours trying to fix things. It is a big shame because the Linux platform and Ubuntu in particular shows great promise. But it is not for everyone. It is not ready for primetime.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wanted to install Ubuntu on my Dell XPS 15 to try out Steam for Linux. This was not the enjoyable experience I had hoped for since a lot of things did not work perfectly out of the box. Below are some steps I had to take to get the system going. Fixing the graphics [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,29],"tags":[97,105,106,32,72],"class_list":["post-671","post","type-post","status-publish","format-standard","hentry","category-technology","category-tips","tag-linux","tag-nvidia","tag-optimus","tag-tip","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/davidlebech.com\/thoughtflow\/wp-json\/wp\/v2\/posts\/671","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davidlebech.com\/thoughtflow\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davidlebech.com\/thoughtflow\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davidlebech.com\/thoughtflow\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davidlebech.com\/thoughtflow\/wp-json\/wp\/v2\/comments?post=671"}],"version-history":[{"count":0,"href":"https:\/\/davidlebech.com\/thoughtflow\/wp-json\/wp\/v2\/posts\/671\/revisions"}],"wp:attachment":[{"href":"https:\/\/davidlebech.com\/thoughtflow\/wp-json\/wp\/v2\/media?parent=671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davidlebech.com\/thoughtflow\/wp-json\/wp\/v2\/categories?post=671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davidlebech.com\/thoughtflow\/wp-json\/wp\/v2\/tags?post=671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}