Maybe you can do something similar with Yoga
Lenovo Ideapad 320
Problem: Elan Touchpad (and a cursor, of course) randomly freezes, The system (ubuntu 18.04) needs to be rebooted.
My workaround solution (with modprobe) is:
to make 2 scripts- I named them touchactive.sh
and touchactive2.sh
in /bin
( do it with sudo gedit
...or something)
touchactive.sh
(that contains this...)
#!/bin/bash
modprobe -r elan_i2c
(and...)
touchactive2.sh
#!/bin/bash
modprobe elan_i2c[/b]
then in terminal: sudo visudo
you add these lines:
vader ALL=(ALL) NOPASSWD: /bin/touchactive.sh
vader ALL=(ALL) NOPASSWD: /bin/touchactive2.sh
vader is my user name, so you change it with yours...
..and save it
open system settings -> keyboard -> "+" -> and create shortcuts with keybinding:
name "Touchpad Elan Restart" 1 with keys Super+z
command: sudo /bin/touchactive.sh
and... "Touchpad Elan Restart 2" with keys Super+x
command: sudo /bin/touchactive2.sh
Restart computer
(this is my example you can choose different option and names)
so when all freezes, you can just use keys Super+z then Super+x and your touchpad / cursor restarts without rebooting the whole system.
This is my solution and some relief (not very elegant, though...) so I can work normally until release of a next kernel ( there is some hope...).
I had the same problem and I tried several things, and finally, this is what worked for me:
First, you need to enter into recovery mode:
Enter the grub menu by rebooting and then pressing esc
if you boot using UEFI or shift
if you boot using BIOS. You may have to press the key multiple times or hold the key down.
When you see the menu, use the arrow keys to navigate and select Advanced options for Ubuntu
.
Select the line containing the latest version of the kernel but with (recovery mode)
at the end and press enter
.
After you entered recovery mode you will see the Recovery Menu. Navigate to the line containing root
Drop to root shell prompt
. Press enter
and then when you see a prompt press Enter for maintenance
press enter
again.
Run the following commands:
sudo apt-get update --fix-missing
sudo apt-get upgrade -y
sudo apt-get install -y xserver-xorg-input-all
- Finally to restart run the command
sudo reboot
.
When the login page appears, your mouse and keyboard should work normally.
Best Answer
I had the same problem with my Lenovo x61 laptop running xubuntu 11.04. After some experimentation I found that this only occurs when using xterm. Try using a different terminal like gnome-terminal or xfce4-terminal.
A good way to test for this problem is to hold down a key in the the terminal (e.g. "aaaaa" ...). After a short while it was evident that xterm was locking up where other terminals were not.
Thanks to Oil for unlocking this question so that I could post my answer for you.
Another user: I had the same problem and finally figured out the root cause. Go to System Configurations -> Universal Access -> Typing, and turn off the Bounce Keys.