Linux mouse freezes after suspend
Today I finally decided to switch from Windows to Ubuntu.
I fully install Ubuntu, but everytime my notebook goes in sleepmode and wakes up my mouse will not work anymore. When I do a reboot it works fine until I let it sleep (even if it's for 10sec).
So I tried switching to Mint, however even with Mint I had the same problem. I have been trying to fix it all day without success.
Notebook:
Asus laptop
On a similar forum post this was the fix:
sudo apt-get install --reinstall xserver-xorg-input-all
However this did not work for me.
ubuntu linux-mint mouse
add a comment |
Today I finally decided to switch from Windows to Ubuntu.
I fully install Ubuntu, but everytime my notebook goes in sleepmode and wakes up my mouse will not work anymore. When I do a reboot it works fine until I let it sleep (even if it's for 10sec).
So I tried switching to Mint, however even with Mint I had the same problem. I have been trying to fix it all day without success.
Notebook:
Asus laptop
On a similar forum post this was the fix:
sudo apt-get install --reinstall xserver-xorg-input-all
However this did not work for me.
ubuntu linux-mint mouse
add a comment |
Today I finally decided to switch from Windows to Ubuntu.
I fully install Ubuntu, but everytime my notebook goes in sleepmode and wakes up my mouse will not work anymore. When I do a reboot it works fine until I let it sleep (even if it's for 10sec).
So I tried switching to Mint, however even with Mint I had the same problem. I have been trying to fix it all day without success.
Notebook:
Asus laptop
On a similar forum post this was the fix:
sudo apt-get install --reinstall xserver-xorg-input-all
However this did not work for me.
ubuntu linux-mint mouse
Today I finally decided to switch from Windows to Ubuntu.
I fully install Ubuntu, but everytime my notebook goes in sleepmode and wakes up my mouse will not work anymore. When I do a reboot it works fine until I let it sleep (even if it's for 10sec).
So I tried switching to Mint, however even with Mint I had the same problem. I have been trying to fix it all day without success.
Notebook:
Asus laptop
On a similar forum post this was the fix:
sudo apt-get install --reinstall xserver-xorg-input-all
However this did not work for me.
ubuntu linux-mint mouse
ubuntu linux-mint mouse
edited Nov 16 '16 at 22:33
Zachary Brady
3,406932
3,406932
asked Sep 11 '16 at 19:43
jowijowi
1612
1612
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
This issue goes back at least a couple of years. It's a problem for a lot of Asus owners, but it's not entirely specific to Asus devices. Also, it's not Debian-specific — though in your case both Ubuntu and Mint have Debian roots.
It's a tricky one because it seems everyone's mileage varies with each proposed solution (and they all have slight hardware variances). There are countless threads trying to solve it.
Notable bug threads on Launchpad (depending on your Asus model):
- Elantech touchpad stops working after suspend
- FocalTech touchpad stops working after suspend
Applicable bug thread on Kernel.org:
- ETPS/2 Elantech Touchpad dies after resume from suspend
Assuming you don't want to patch your kernel, there are a couple potential runtime solutions you can try.
(Note: You can open a terminal with Ctrl+Alt+T
)
Disable/Enable the Mouse Driver:
You can remove and then re-insert your mouse driver module with the following commands:
sudo modprobe -r psmouse
sudo modprobe psmouse
Disable/Enable via Xinput:
Find your trackpad ID with the following command:
xinput --list
Once you have your device ID—I'll call it 12
for this example—try disabling and enabling the device with:
xinput --disable 12
xinput --enable 12
(Replace 12
with your trackpad's device ID)
Alternative:
As an aside, you may want to try hibernating instead of suspending. Supposedly the problems aren't as prevalent with hibernation.
Disable/Enable the Mouse Driver worked for me (sudo modprobe -r psmouse
/sudo modprobe psmouse
). Hint: I added this to my~/.gnomerc
so it is called every time I log in.
– cheneym
Apr 23 '18 at 11:41
add a comment |
I call this script mouse-reset
. It removes and then modprobe
s a list of mouse-related modules:
#!/bin/bash
modules=(psmouse hid_multitouch elan_i2c)
for mod in "${modules[@]}"; do
sudo rmmod "$mod" 2> /dev/null
sudo modprobe -v "$mod" 2> /dev/null
done
add a comment |
What I do to restart the touchpad driver is similar to what Tom Hale suggested. I created a script called touch_restart.sh:
#!/bin/bash
$sudo rmmod i2c_hid && $sudo modprobe i2c_hid
and then you can always execute it quickly with:
echo "su_pass"|sudo -S sh touch_restart.sh
Also, it seems that disabling "Disable touchpad when typing" increases the periods between each touchpad freeze (it freezes very often on my Asus laptop).
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f309247%2flinux-mouse-freezes-after-suspend%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
This issue goes back at least a couple of years. It's a problem for a lot of Asus owners, but it's not entirely specific to Asus devices. Also, it's not Debian-specific — though in your case both Ubuntu and Mint have Debian roots.
It's a tricky one because it seems everyone's mileage varies with each proposed solution (and they all have slight hardware variances). There are countless threads trying to solve it.
Notable bug threads on Launchpad (depending on your Asus model):
- Elantech touchpad stops working after suspend
- FocalTech touchpad stops working after suspend
Applicable bug thread on Kernel.org:
- ETPS/2 Elantech Touchpad dies after resume from suspend
Assuming you don't want to patch your kernel, there are a couple potential runtime solutions you can try.
(Note: You can open a terminal with Ctrl+Alt+T
)
Disable/Enable the Mouse Driver:
You can remove and then re-insert your mouse driver module with the following commands:
sudo modprobe -r psmouse
sudo modprobe psmouse
Disable/Enable via Xinput:
Find your trackpad ID with the following command:
xinput --list
Once you have your device ID—I'll call it 12
for this example—try disabling and enabling the device with:
xinput --disable 12
xinput --enable 12
(Replace 12
with your trackpad's device ID)
Alternative:
As an aside, you may want to try hibernating instead of suspending. Supposedly the problems aren't as prevalent with hibernation.
Disable/Enable the Mouse Driver worked for me (sudo modprobe -r psmouse
/sudo modprobe psmouse
). Hint: I added this to my~/.gnomerc
so it is called every time I log in.
– cheneym
Apr 23 '18 at 11:41
add a comment |
This issue goes back at least a couple of years. It's a problem for a lot of Asus owners, but it's not entirely specific to Asus devices. Also, it's not Debian-specific — though in your case both Ubuntu and Mint have Debian roots.
It's a tricky one because it seems everyone's mileage varies with each proposed solution (and they all have slight hardware variances). There are countless threads trying to solve it.
Notable bug threads on Launchpad (depending on your Asus model):
- Elantech touchpad stops working after suspend
- FocalTech touchpad stops working after suspend
Applicable bug thread on Kernel.org:
- ETPS/2 Elantech Touchpad dies after resume from suspend
Assuming you don't want to patch your kernel, there are a couple potential runtime solutions you can try.
(Note: You can open a terminal with Ctrl+Alt+T
)
Disable/Enable the Mouse Driver:
You can remove and then re-insert your mouse driver module with the following commands:
sudo modprobe -r psmouse
sudo modprobe psmouse
Disable/Enable via Xinput:
Find your trackpad ID with the following command:
xinput --list
Once you have your device ID—I'll call it 12
for this example—try disabling and enabling the device with:
xinput --disable 12
xinput --enable 12
(Replace 12
with your trackpad's device ID)
Alternative:
As an aside, you may want to try hibernating instead of suspending. Supposedly the problems aren't as prevalent with hibernation.
Disable/Enable the Mouse Driver worked for me (sudo modprobe -r psmouse
/sudo modprobe psmouse
). Hint: I added this to my~/.gnomerc
so it is called every time I log in.
– cheneym
Apr 23 '18 at 11:41
add a comment |
This issue goes back at least a couple of years. It's a problem for a lot of Asus owners, but it's not entirely specific to Asus devices. Also, it's not Debian-specific — though in your case both Ubuntu and Mint have Debian roots.
It's a tricky one because it seems everyone's mileage varies with each proposed solution (and they all have slight hardware variances). There are countless threads trying to solve it.
Notable bug threads on Launchpad (depending on your Asus model):
- Elantech touchpad stops working after suspend
- FocalTech touchpad stops working after suspend
Applicable bug thread on Kernel.org:
- ETPS/2 Elantech Touchpad dies after resume from suspend
Assuming you don't want to patch your kernel, there are a couple potential runtime solutions you can try.
(Note: You can open a terminal with Ctrl+Alt+T
)
Disable/Enable the Mouse Driver:
You can remove and then re-insert your mouse driver module with the following commands:
sudo modprobe -r psmouse
sudo modprobe psmouse
Disable/Enable via Xinput:
Find your trackpad ID with the following command:
xinput --list
Once you have your device ID—I'll call it 12
for this example—try disabling and enabling the device with:
xinput --disable 12
xinput --enable 12
(Replace 12
with your trackpad's device ID)
Alternative:
As an aside, you may want to try hibernating instead of suspending. Supposedly the problems aren't as prevalent with hibernation.
This issue goes back at least a couple of years. It's a problem for a lot of Asus owners, but it's not entirely specific to Asus devices. Also, it's not Debian-specific — though in your case both Ubuntu and Mint have Debian roots.
It's a tricky one because it seems everyone's mileage varies with each proposed solution (and they all have slight hardware variances). There are countless threads trying to solve it.
Notable bug threads on Launchpad (depending on your Asus model):
- Elantech touchpad stops working after suspend
- FocalTech touchpad stops working after suspend
Applicable bug thread on Kernel.org:
- ETPS/2 Elantech Touchpad dies after resume from suspend
Assuming you don't want to patch your kernel, there are a couple potential runtime solutions you can try.
(Note: You can open a terminal with Ctrl+Alt+T
)
Disable/Enable the Mouse Driver:
You can remove and then re-insert your mouse driver module with the following commands:
sudo modprobe -r psmouse
sudo modprobe psmouse
Disable/Enable via Xinput:
Find your trackpad ID with the following command:
xinput --list
Once you have your device ID—I'll call it 12
for this example—try disabling and enabling the device with:
xinput --disable 12
xinput --enable 12
(Replace 12
with your trackpad's device ID)
Alternative:
As an aside, you may want to try hibernating instead of suspending. Supposedly the problems aren't as prevalent with hibernation.
answered Sep 11 '16 at 23:02
codewithmichael
1214
1214
Disable/Enable the Mouse Driver worked for me (sudo modprobe -r psmouse
/sudo modprobe psmouse
). Hint: I added this to my~/.gnomerc
so it is called every time I log in.
– cheneym
Apr 23 '18 at 11:41
add a comment |
Disable/Enable the Mouse Driver worked for me (sudo modprobe -r psmouse
/sudo modprobe psmouse
). Hint: I added this to my~/.gnomerc
so it is called every time I log in.
– cheneym
Apr 23 '18 at 11:41
Disable/Enable the Mouse Driver worked for me (
sudo modprobe -r psmouse
/ sudo modprobe psmouse
). Hint: I added this to my ~/.gnomerc
so it is called every time I log in.– cheneym
Apr 23 '18 at 11:41
Disable/Enable the Mouse Driver worked for me (
sudo modprobe -r psmouse
/ sudo modprobe psmouse
). Hint: I added this to my ~/.gnomerc
so it is called every time I log in.– cheneym
Apr 23 '18 at 11:41
add a comment |
I call this script mouse-reset
. It removes and then modprobe
s a list of mouse-related modules:
#!/bin/bash
modules=(psmouse hid_multitouch elan_i2c)
for mod in "${modules[@]}"; do
sudo rmmod "$mod" 2> /dev/null
sudo modprobe -v "$mod" 2> /dev/null
done
add a comment |
I call this script mouse-reset
. It removes and then modprobe
s a list of mouse-related modules:
#!/bin/bash
modules=(psmouse hid_multitouch elan_i2c)
for mod in "${modules[@]}"; do
sudo rmmod "$mod" 2> /dev/null
sudo modprobe -v "$mod" 2> /dev/null
done
add a comment |
I call this script mouse-reset
. It removes and then modprobe
s a list of mouse-related modules:
#!/bin/bash
modules=(psmouse hid_multitouch elan_i2c)
for mod in "${modules[@]}"; do
sudo rmmod "$mod" 2> /dev/null
sudo modprobe -v "$mod" 2> /dev/null
done
I call this script mouse-reset
. It removes and then modprobe
s a list of mouse-related modules:
#!/bin/bash
modules=(psmouse hid_multitouch elan_i2c)
for mod in "${modules[@]}"; do
sudo rmmod "$mod" 2> /dev/null
sudo modprobe -v "$mod" 2> /dev/null
done
answered Sep 8 '18 at 12:17
Tom Hale
6,62533588
6,62533588
add a comment |
add a comment |
What I do to restart the touchpad driver is similar to what Tom Hale suggested. I created a script called touch_restart.sh:
#!/bin/bash
$sudo rmmod i2c_hid && $sudo modprobe i2c_hid
and then you can always execute it quickly with:
echo "su_pass"|sudo -S sh touch_restart.sh
Also, it seems that disabling "Disable touchpad when typing" increases the periods between each touchpad freeze (it freezes very often on my Asus laptop).
add a comment |
What I do to restart the touchpad driver is similar to what Tom Hale suggested. I created a script called touch_restart.sh:
#!/bin/bash
$sudo rmmod i2c_hid && $sudo modprobe i2c_hid
and then you can always execute it quickly with:
echo "su_pass"|sudo -S sh touch_restart.sh
Also, it seems that disabling "Disable touchpad when typing" increases the periods between each touchpad freeze (it freezes very often on my Asus laptop).
add a comment |
What I do to restart the touchpad driver is similar to what Tom Hale suggested. I created a script called touch_restart.sh:
#!/bin/bash
$sudo rmmod i2c_hid && $sudo modprobe i2c_hid
and then you can always execute it quickly with:
echo "su_pass"|sudo -S sh touch_restart.sh
Also, it seems that disabling "Disable touchpad when typing" increases the periods between each touchpad freeze (it freezes very often on my Asus laptop).
What I do to restart the touchpad driver is similar to what Tom Hale suggested. I created a script called touch_restart.sh:
#!/bin/bash
$sudo rmmod i2c_hid && $sudo modprobe i2c_hid
and then you can always execute it quickly with:
echo "su_pass"|sudo -S sh touch_restart.sh
Also, it seems that disabling "Disable touchpad when typing" increases the periods between each touchpad freeze (it freezes very often on my Asus laptop).
answered 3 hours ago
jane_xxx
15
15
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f309247%2flinux-mouse-freezes-after-suspend%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown