V
V
Vladislav2015-04-25 09:46:27
linux
Vladislav, 2015-04-25 09:46:27

Lubuntu wakes up on mouse movements. What to do?

Put Lubuntu 15.04
Now, when you close the lid, the computer goes to sleep. But as soon as you move the mouse, he wakes up and does not fall back asleep.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nazar Mokrinsky, 2015-04-27
@Hateman31

How difficult it is to be independent. Turn based real time strategy:
1) https ://duckduckgo.com/?q=ubuntu+do+not+wake+up+on
... ) https://askubuntu.com/questions/252743/mouse-movem... - the third link to askubuntu.com is quite interesting, we read there and find information about /proc/acpi/wakeup
3) https://duckduckgo.com /?q=%2Fproc%2Facpi%2Fwakeup the first link looks interesting, there is an approximate solution, you need to check if it works
After finding a typo:
1) https://duckduckgo.com/?q=ubuntu+do+not+wake+up +on...
2) The sixth link again leads to an interesting page on askubuntu.com with solutions
3) Again /proc/acpi/wakeup
As a result, I would change /proc/acpi/wakeup at startup based on the output of lsusb (identify the USB device and its USB port) along with lspci (define device port id for /proc/acpi/wakeup), but options with /usb/devices/*/power/wakeup seem more correct, need to try.
And already when you have tried all this, then write what worked and what did not, we will tell you.
PS The fact that the computer needs to be woken up when the mouse moves is logical for me, but it's a pity that they didn't make it into the settings, yes.

E
Eddy_Em, 2015-04-25
@Eddy_Em

1. Run xinput --list | grep -i mouseand see how the mouse is called.
2. On the event of closing the lid, turn off the mouse using xinput --disable
Here's how you can test:
(if there are several mice, then you will need to do it for id in $(...); do xinput --disable ${id}; done).
Accordingly, we do the opening of the lid xinput --enable ...
. Scripts for lid events are located in the /etc/acpi/ directory. Here you can read about acpi scripts. Like this:

ID=$(xinput --list | grep -i mouse | sed 's/.*id=\(*\).*/\1/')
case $(awk '{print $2}' /proc/acpi/button/lid/LID0/state) in
    closed) sudo -u $(ps -o ruser= -C xinit) xinit --disable ${ID} ;;
    open)   sudo -u $(ps -o ruser= -C xinit) xinit --enable ${ID} ;;
esac

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question