Ubuntu on Xiaomi MI Notebook Air

About 7 months ago I became the happy owner of Xiaomi MI Notebook Air 13.3. And as soon as I got it, I decided to install Ubuntu instead of Windows. If you want to do the same, you will need to perform some additional tuning. All the things I’ve done to make usage of my laptop more comfortable are listed above.

All following information is valid for Ubuntu 19.04.


Ubuntu has only two scaling options by default: 100% and 200%. With 100% scaling, you may find everything to tiny for comfortable work, and 200% is extremely large and suitable only for tablets or something with the same size.
Fortunately, we have an opportunity to enable frictional scaling, but as soon as this is an experimental feature, it’s usage can be unsafe.
Use the following command to enable it:

And this command to disable:

Graphics driver

Nvidia graphics driver can be downloaded using Software & Updates. After it’s loaded open: Software & Updates -> Additional Drivers -> NVIDIA Corporation. Then select “Using NVIDIA driver metapackage from nvidia-driver-430 (proprietary)” as shown on the picture above:

Suspend settings

Open “/etc/systemd/logind.conf” with your favourite text editor (e.g. you can use nano) and uncomment the following lines:

This will set handlers for Power, Suspend and Hibernate keys, specify the maximum time a system shutdown or sleep request is delayed and set lid close action to suspend.

Power saving

Set laptop mode to the most strict value. Laptop mode is used to minimize the time that the hard disk needs to be spun up, to conserve battery power on laptops. Use command:


I had troubles with the background image. Sometimes it was switching to black, white or strange colour. I have fixed this by setting background using Tweak Tool. Execute this to install it:

Then you can run it with the following command:

Now you can set the background image you like using Tweak Tool as shown in the picture above:

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store