Solution for Ubuntu 18.04 Login Loop or Desktop Freeze after Nvidia Driver Installation

After the installation of ubuntu 18.04, I get trapped in a login loop. Then I found a solution online:

sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia 

Voila! I logged in, and I found that the keyboard and mouse is unusable after logging in.

This is the solution to solve this:

sudo apt install xserver-xorg-input-all
#!trpst#trp-gettext data-trpgettextoriginal=798#!trpen#发布于#!trpst#/trp-gettext#!trpen# #!trpst#trp-gettext data-trpgettextoriginal=799#!trpen#分类#!trpst#/trp-gettext#!trpen# UNIX/Linux

#!trpst#trp-gettext data-trpgettextoriginal=45#!trpen#发表评论#!trpst#/trp-gettext#!trpen#

zh_CN简体中文