How to disable touchpad on Lenovo Ideapad Z580 in Linux

The Lenovo Ideapad Z580 touchpad is a pain in the butt when it comes to typing. As you type, you see the mouse pointer on the screen go places uncontrolled. One good solution is to use an external mouse and to disable the touchpad. To disable the touchpad, press Fn + F6 key combination.