Wireless mouse freezes frequently for a second on laptop, when on battery

hardwarelaptopmousexorg

I have Samsung NP360E5A-A07PL laptop with ELAN Smart-Pad (ETPS/2 Elantech Touchpad, according to gpointing-device-settings), and a Logitech M195 wireless mouse (with an USB receiver). On Linux (LUbuntu 12.04 LTS) the wireless mouse stops working from time to time (quite frequently, perhaps every few minutes) for maybe one second.

Disabling touchpad (via gpointing-device-setting) didn't help. Switching to wired USB mouse didn't help either, and it even made situation worse; with wired mouse to make it start working again after freeze I had to re-plug the USB, while with wireless mouse I only have to move it.

The very same hardware setup works without any problems on MS Windows 7 (dual-boot).


Below there is result of running xinput:

jnareb@llaptok:~$ xinput 
⎡ Virtual core pointer                    id=2     [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer          id=4     [slave  pointer  (2)]
⎜   ↳ Logitech USB Receiver               id=10    [slave  pointer  (2)]
⎜   ↳ Logitech USB Receiver               id=11    [slave  pointer  (2)]
⎜   ↳ ETPS/2 Elantech Touchpad            id=13    [slave  pointer  (2)]
⎣ Virtual core keyboard                   id=3     [master keyboard (2)]
    ↳ Virtual core XTEST keyboard         id=5     [slave  keyboard (3)]
    ↳ Power Button                        id=6     [slave  keyboard (3)]
    ↳ Video Bus                           id=7     [slave  keyboard (3)]
    ↳ Power Button                        id=8     [slave  keyboard (3)]
    ↳ WebCam SC-0311139N                  id=9     [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard        id=12    [slave  keyboard (3)]

It looks like the problem occur only after resuming from sleep, and beside mouse freezing I get intermittent short beeps, like on keyboard error, for no discernible reason. It might be that it denotes event that causes mouse freezing.

I don't know where to start looking…

Best Answer

For me, it was that I enabled laptop mode, and the mouse would get turned off every few seconds of not using it!

# set laptop mode to 0 in this file:
/etc/laptop-mode/laptop-mode.conf 

sudo service laptop-mode reload
Related Question