The answer was simple: just install nvidia drivers, open the nvidia settings page
and set to use the Intel HD GPU only. Login again and you are done. Works perfectly.
Battery lasts much much longer and wayland works properly.
sudo ubuntu-drivers autoinstall
/etc/modprobe.d/nouveau.conf
blacklist nouveau
blacklist nvidia
https://imack2015.wordpress.com/2015/11/09/disabling-an-nvidia-graphics-card-with-bbswitch-on-fedora/
MX Master
apt install cmake libevdev-dev libudev-dev libconfig-dev libconfig++-dev
https://github.com/PixlOne/logiops
sudo /sbin/ldconfig -v
https://wiki.archlinux.org/index.php/Logitech_MX_Master
Thump button:
I managed to fix it, as you guys mentioned the thumb button on this model
triggers the Control + Right Alt (aka AltGr) + Tab combination in linux.
So go to Settings > Keyboard > select Navigation \ Switch system controls
Change its shortcut to some other key binding and replace the default. (I changed
to Shift + Control + Tab) Once you replaced this binding
(Control + Right-Alt (aka AltGr) + Tab) with a new one,
this combination (and the thumb button) is available to be set on another
shortcut option. Move to System \ Show the overview and set a new shortcut,
do this clicking on the MX's thumb button. No dependencies on any configuration
edit is needed, it works like a charm on Ubuntu 18.04 LTS.