Archive for the ‘Ubuntu’ Category

Dell XPS 13 cracking sound – solution

Friday, May 16th, 2014

Few days ago I made a switch from Lenovo x200s to Dell XPS 13. I was always a ThinkPad fan. I really think these were the best laptops ever. Again, were. Unfortunately, Lenovo joined a mindless hype of copying Apple. They didn’t stop there, they went even further. They actually managed to remove function keys (F1, F2…) and, in general, they managed to destroy the best laptop keyboard ever. Just take a look at that nonsense they put on X1 Carbon. Ah well, long story short, ever since Lenovo took over ThinkPad, that brand degraded in every possible way. Too bad.

New XPS 13 is in no way better than ThinkPad. It’s even worse (TrackPoint is best invention ever), but I’ve decided to give Dell a chance since they do ship Ubuntu and cause XPS 13 really looks good! It also has decent specs and in general is a decent laptop. I can’t imagine myself doing any serious work on it, but that’s becoming a common theme on laptops – they have become movie players (too bad; they will lose that war with tablets). Funny thing is that I got myself a Lenovo workstation for that serious work :)

Anyway… Dell continues to ship XPS 13 with really nasty sound coming from these machines. With default setup, on Ubuntu welcome screen, one can hear cracking. The noise is very bad and provides very unpleasant experience. It makes me wonder if Dell actually powered on one of these machines and at least check if sound and screen come up. Upgrading to 14.04 didn’t resolve the problem. Googling revealed that the same problem exists even with Windows. Oh my, my…

After some testing I found a solution for the problem. Since I’ve noticed lots of peoole have that same problem, I’ve decided to write this blog, even though I haven’t written anything for 2 years :) Pretty much, all you have to do is enable power saving for Intel HDA:

echo “options snd_hda_intel model=dell-headset-multi,dell-headset-multi power_save=1″ | sudo tee /etc/modprobe.d/omg-dell.conf

sudo depmod

On next reboot, cracking sound will be gone.

I’ve also noticed that idle cpu and enabled keyboard backlit also produce different noise. Hopefully, solution for that one will come in an update to this post.

Ubuntu 12.04 HA infrastructure

Friday, April 27th, 2012

Ready for high availability in Ubuntu 12.04?! :)

High availability in Linux has seen lots of changes in recent years. This is a result of an effort to merge most relevant HA stacks in Linux world – RedHat Cluster Suite and Linux-HA. Work upstream did on this is tremendous and one can only congratulate on that. Unfortunately, for us following this development, that meant we had to keep track with all those changes in the code and configuration. That’s why, for 10.04, we had official packages in the distribution and backported and supported packages in ubuntu-ha-maintainers PPA. We hope that for 12.04 PPA will not be required any more :)

HA in Ubuntu is based on Pacemaker 1.1.6. One can use both GFS2 and/or OCFS2 shared filesystems on top of shared storage (DRBD or any other type of shared hardware storage).

To make deploying HA easier for users and system administrators, we’ve started a WIKI explaining most common setups. At the moment, this wiki covers only how to initially setup GFS2 and OCFS2 shared filesystems on a shared storage. In few days, we’ll add guides for DRBD, cLVM and guides for some migration scenarios – 10.04 -> 12.04; 10.04 +  PPA -> 12.04, etc.

Important: We’ve encountered couple of bugs that are in the queue for fixing. If you are using or have a desire of using cLVM, please do not use 12.04 yet. Once these fixes land into archives, we’ll send an email to ubuntu-ha mailing list and add cLVM howto to the wiki.

Ubuntu 12.04 Cloud Live

Friday, April 27th, 2012

With the release of Ubuntu 12.04, it’s time to release Cloud Live image too! Cloud Live is a live CD/USB image that allows you to get a glimpse of Ubuntu Cloud Infrastructure. Project’s web site is located at Launchpad – Procedure is very simple; download an image, burn it on CD or dd it on the USB key and boot of that device. System will boot in Unity or Unity2D and present you with at Getting Started document. Notice that we do not include full Ubuntu desktop experience – we’ve removed all components that aren’t necessary for this project, to make image as small as possible.

Once you finish with Getting Started document, you’ll be able to log into the dashboard and start instances. All of this without installing anything on your computer! For the purpose of demo, we’ve provided a small CirrOS image which you can run and log in to. Since everything is running in RAM, you will have better experience if your system has 4 or more gigabytes of memory. 2GB is enough to get system booted, but you won’t be able to do much more after that.

For a little extra, we’ve configured Ubuntu Cloud Live with support for Nova Volume. All you have to do is plug in additional disk, create a PV volume on it (pvcreate /dev/xyz), create nova-volumes VG (vgcreate nova-volumes /dev/xyz) and restart nova volume (service nova-volume restart).

Image is built with live-build and the source is available on Launchpad. Build process pulls in one package that’s also available on Launchpad. Procedure for building your own Cloud Live is very simple:

  1. Install Ubuntu 12.04, 64bit
  2. Install live-build package
  3. Create working directory – mkdir ~/cloud-live ; cd ~/cloud-live
  4. Branch bzr code – bzr branch lp:cloud-live config
  5. [OPTIONAL] Customize config/* files
  6. Build an image – sudo lb build
  7. Burn or dd resulting image – binary-hybrid.iso

Or, if you just want default, official, Ubuntu Cloud Live image, go to and grab it!

time: 00:07.37

Friday, February 26th, 2010



Pacemaker/Corosync/OpenAIS/OCFS2/GFS2 for Ubuntu 10.04

Wednesday, February 10th, 2010

Couple of days/weeks ago I’ve issued call for testing of new cluster stack for Ubuntu 10.04. At that time, most of the stack was finished, but we lacked proper support for clustered file system. Now, I’ve modified ocfs2-tools package so that it compiles with support for libdlm (provided by redhat-cluster) and pacemaker. I’ve also modified redhat-cluster package so that it builds with support for pacemaker.

As a result, there is now a new test case which needs testing – cluster with drbd for underlying device and ocfs2 as a filesystem. So, please visit -, drbd8 and OCFS2 and give it a go.

After completing this milestone, only thing left for proper cluster stack in Ubuntu 10.04 is submitting MIRs (Main Inclusion Requests) for packages that are still in universe and demoting cman (and others) to universe.

For those that would like to test their own setups and are familiar with corosync/pacemaker/drbd8/ocfs2, ubuntu-ha’s PPA is located here:

UPDATE: We now support both OCFS2 and GFS2! How to:, drbd8 and OCFS2 or GFS2

Is this for real?

Tuesday, January 12th, 2010

When I was in high school, during IT classes we worked with DOS, WordPerfect for DOS and BASIC. When my sister showed me her school textbook ‘Information technologies for gymnasium’, I was expecting tons of Windows screenshots. But, I was surprised. Look at those:

Wow! Not only there are Ubuntu screenshots and big Wilber, no… The textbook explains what is Open Source, what are proprietary operating systems. You can even find words like FreeBSD, NetBSD, EXT2, EXT3, UFS :) They equally provide space for Microsoft Windows Vista, XP and Ubuntu Linux (no MacOSX). Granted, in the office section, they explain how to work with MS Office tools, but they acknowledge existence of, quoting ‘We were attracted by Microsoft Office 2007 and’, providing links to (on each chapter about office tools) and manuals.

And that big Wilber isn’t just to fill in space – they actually have 10 pages long ‘manual’ on how to use basic GiMP tools! There’s no Photoshop section in the book. Only GiMP for bitmap editing – and it’s even provided on the DVD shipped with the book.

Gvozadnović, Ikica, Kos, Miljaš, Srnec, Sekulić-Štivčević, Zvonarek (authors of the textbook) – you really surprised me and kudos for this great textbook. If you can read Croatian, take a look at

Call for testing: Cluster components of Ubuntu 10.04

Monday, January 11th, 2010

There was a discussion, at the last UDS, about cluster stack in Ubuntu 10.04 and later. Blueprint is located here. According to that spec, I’ve created packages for cluster-glue, cluster-agents, heartbeat, corosync, openais, pacemaker, keepalived, drbd and redhat-cluster.

Some of these packages are based on stuff Martin Loschwitz did and some are merged from Debian. Most of them have serious changes in packaging, but all of them are latest upstream version (except keepalived).

Now that those are packaged, we need help with testing. So, please, help us test those components. Choose redhat-cluster or pacemaker as a cluster stack. Combine with DRBD, KVM or Xen and try to break them. In a day or two, I’ll set up a wiki page with configuration instructions for these tools, so anybody could test it. Input from upstream is also welcome.

Packages are located at ubuntu-ha PPA:

Packages are created only for 10.04, Ubuntu Lucid Lynx.

10 seconds boot is already here!

Wednesday, June 3rd, 2009

Hardware: Lenovo X200s with Mushkin Europe 2 120GB SSD instead of default Seagate 5000rpm disk. Boot to fully functional (default) Jaunty desktop from cold start (powered off) is less than 30 seconds. If BIOS, grub and kernel/initrd loading are excluded, boot time is less than 10 seconds.


Except the automatic login in gdm there were *no* other changes in Ubuntu.

UDS so far…

Wednesday, May 27th, 2009

There were lots of great sessions so far. Much more than on previous UDS and I think this approach of multiple sessions from same track is actually working quite well. There’s also a bit ‘human’ feeling cause we don’t have all the guards watching our every move, as we had at Mountain View. Bottom line, I really like it. Hopefully, there’ll be even more results after it, than it was after previous ones.

But, the best move Canonical did this time was bringing design team. It’s very important to actually be able to get into contact with people that do design for a living. That way they can see our usability problems and we can get advice how to solve them. Having design teams as part of community is major step for open source. After all, we all have the same goal.

Congratulations everyone!

Thursday, April 23rd, 2009