usb mouse and keyboard temporary freeze of laptop
- francois
- Contributor
- Posts: 6287
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
usb mouse and keyboard temporary freeze of laptop
Since edition 3.0 of porteus, I have had some temporary freeze with the mouse and the keyboard attached to my toshiba satelite z930, but not to the keypad and keyboard of the laptop.
First, I thought this could be due to the batteries and then to my usb logitech mouse and keyboard. I changed the batteries, with no improvement. Then I changed the mouse and keyboard and the problem was still there. Looking on internet with keywords temporaty mouse freeze linux, I got this frustration saving thread:
http://askubuntu.com/questions/161657/w ... tery-power
The solution was to modify some parameters in /etc/laptop-mode/conf.d/usb-autosuspend.conf. It should have been evident, this is my reasoning, that laptop tend to try to save energy. I imagine that suspending usb devices is one way to acheive that.
Checking into the /etc/laptop-mode/conf.d/usb-autosuspend.conf to modify some parameters, with the help of the lsusb output I have blacklisted my logitech usb mouse and keyboard according to the instructions so that they do not get into autosuspend mode automatically.
For now, everything seems to be functioning well.
This is a report for the record, in case someone else run in some similar type of problem.
First, I thought this could be due to the batteries and then to my usb logitech mouse and keyboard. I changed the batteries, with no improvement. Then I changed the mouse and keyboard and the problem was still there. Looking on internet with keywords temporaty mouse freeze linux, I got this frustration saving thread:
http://askubuntu.com/questions/161657/w ... tery-power
The solution was to modify some parameters in /etc/laptop-mode/conf.d/usb-autosuspend.conf. It should have been evident, this is my reasoning, that laptop tend to try to save energy. I imagine that suspending usb devices is one way to acheive that.
Checking into the /etc/laptop-mode/conf.d/usb-autosuspend.conf to modify some parameters, with the help of the lsusb output I have blacklisted my logitech usb mouse and keyboard according to the instructions so that they do not get into autosuspend mode automatically.
For now, everything seems to be functioning well.
This is a report for the record, in case someone else run in some similar type of problem.
Last edited by francois on 03 Sep 2014, 01:10, edited 2 times in total.
Prendre son temps, profiter de celui qui passe.
- fanthom
- Moderator Team
- Posts: 5588
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: mouse and keyboard temporary freeze
vary useful - thanks for posting.
Please add [Solved] to your thread title if the solution was found.
- francois
- Contributor
- Posts: 6287
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: mouse and keyboard temporary freeze
In fact, I noticed a difference with porteus arch version of stifiling for which there was no such behavior and porteus stock which would have these freeze of the mouse and keyboard. This leaded me on the right path.
Prendre son temps, profiter de celui qui passe.
- francois
- Contributor
- Posts: 6287
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: mouse and keyboard temporary freeze
1) Another option is changing the autosuspend time from two seconds to a greater amount of time for all the usb devices:
2) But better than that is to blacklist usbhid auto-suspend, usbhid means mouse, keyboard and joystick:
I propose that porteus be set to AUTOSUSPEND_USBTYPE_BLACKLIST="usbhid"[/code]
Code: Select all
# USB Auto-Suspend timeout in seconds ***SUSPENDING FOR 20 minutes***
# Number of seconds after which the USB devices should suspend
AUTOSUSPEND_TIMEOUT=1200
Code: Select all
# The list of USB driver types that should not use autosuspend. The driver
# type is given by "DRIVER=..." in a USB device's uevent file.
# Example: AUTOSUSPEND_USBID_BLACKLIST="usbhid usb-storage"
AUTOSUSPEND_USBTYPE_BLACKLIST="usbhid"
Prendre son temps, profiter de celui qui passe.
- Ed_P
- Contributor
- Posts: 7670
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.0 ISO
- Location: Western NY, USA
Re: mouse and keyboard temporary freeze
And to set the default action for Lid Closed to be Sleep. And the default action for Low Battery to be Shutdown after 5 mins. That way if the lid is closed for an extended period and the battery gets low a user's changes don't get lost unexpectedly. Obviously a user can change these values and actions if they choose to but the defaults will be safer than the current ones.francois wrote:2) But better than that is to blacklist usbhid auto-suspend, usbhid means mouse, keyboard and joystick:
Ed
- fanthom
- Moderator Team
- Posts: 5588
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: usb mouse and keyboard temporary freeze of laptop
thanks - will consider those.
Please add [Solved] to your thread title if the solution was found.
- francois
- Contributor
- Posts: 6287
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: usb mouse and keyboard temporary freeze of laptop
@fanthom:
Thanks for your wide and wise mind. With porteus we are really into produsage. Citing: Axel Bruns on GPL communities:
http://old.slax.org/forum.php?action=vi ... =produsage

Thanks for your wide and wise mind. With porteus we are really into produsage. Citing: Axel Bruns on GPL communities:
http://old.slax.org/forum.php?action=vi ... =produsage
Already a long road has been done since these days on the slax forum. In addition to their great presence, here the leaders and the maintainers give a lot of place to the will of the forum members.The concept of produsage highlights that within the communities which engage in the collaborative creation and extension of information and knowledge that we examine on this site, the role of consumer and even that of end user have long disappeared, and the distinctions between producers and users of content have faded into comparative insignificance. In many of the spaces we encounter here, users are always already necessarily also producers of the shared knowledge base, regardless of whether they are aware of this role - they have become a new, hybrid, produser."(http://snurb.info/produsage)

Prendre son temps, profiter de celui qui passe.
- fanthom
- Moderator Team
- Posts: 5588
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: usb mouse and keyboard temporary freeze of laptop
was thinking about this and decided to not do it as user may download something in the background (torrent) or stream video on a TV (i do it often myself).set the default action for Lid Closed to be Sleep.
will do for KDE4 and LxQT (if possible). brokenman decides about MATE and XFCE.default action for Low Battery to be Shutdown after 5 mins. That way if the lid is closed for an extended period and the battery gets low a user's changes don't get lost unexpectedly.
thanks
Please add [Solved] to your thread title if the solution was found.
- Ed_P
- Contributor
- Posts: 7670
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.0 ISO
- Location: Western NY, USA
Re: usb mouse and keyboard temporary freeze of laptop
But for people doing these things, with their lid closed, they could simply change the default to fit their needs.fanthom wrote:was thinking about this and decided to not do it as user may download something in the background (torrent) or stream video on a TV (i do it often myself).
Nice to see you're still thinking about these suggestions.
Ed
- fanthom
- Moderator Team
- Posts: 5588
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: usb mouse and keyboard temporary freeze of laptop
well - you could do the sameBut for people doing these things, with their lid closed, they could simply change the default to fit their needs.

started working on rc1 for next Desktop release and these were on my TODO list among others.Nice to see you're still thinking about these suggestions.
off topic: wish uClibc could release something after 2 years as i cant upgrade e2fsprogs in the initrd (needed for fsck):
http://lists.uclibc.org/pipermail/uclib ... 48561.html
of topic2: 'vga_detect' cheatcode is on the way out if i wont find reliable way of extracting PCIIDS for latest generation of AMD GPUs (R 9xx)
in short - usual Desktop edition headaches has started

(not saying that Kiosk delivers less ... cause it's contrary)
Please add [Solved] to your thread title if the solution was found.
- Ed_P
- Contributor
- Posts: 7670
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.0 ISO
- Location: Western NY, USA
Re: usb mouse and keyboard temporary freeze of laptop
True enough, if I knew I needed to, but do you want the safe default to be for newbies, both to Linux and to Porteus, or for experienced users?fanthom wrote:well - you could do the sameBut for people doing these things, with their lid closed, they could simply change the default to fit their needs.![]()
I don't envy you but am reasonably confident you will find a way.in short - usual Desktop edition headaches has started![]()
(not saying that Kiosk delivers less ... cause it's contrary)

Ed
- francois
- Contributor
- Posts: 6287
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: usb mouse and keyboard temporary freeze of laptop
I know this not on topic but as we are there with these different changes. What about setting out of the box the screen brightness a little lower. 

Prendre son temps, profiter de celui qui passe.
- fanthom
- Moderator Team
- Posts: 5588
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: usb mouse and keyboard temporary freeze of laptop
@francois
hmmm... this depends on preferences/hardware specs so i would leave it up to the users.
if you screen is too bright then you can change it in the laptop-mode-tools config or DE power settings.
@Ed_P
same thing - it's impossible to find preference which makes everybody happy. i would leave it up to the particular desktop maintainer. for DEs i maintain the lid behavior wont change.
hmmm... this depends on preferences/hardware specs so i would leave it up to the users.
if you screen is too bright then you can change it in the laptop-mode-tools config or DE power settings.
@Ed_P
same thing - it's impossible to find preference which makes everybody happy. i would leave it up to the particular desktop maintainer. for DEs i maintain the lid behavior wont change.
Please add [Solved] to your thread title if the solution was found.
- Ed_P
- Contributor
- Posts: 7670
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.0 ISO
- Location: Western NY, USA
Re: usb mouse and keyboard temporary freeze of laptop
@fanthom, where is the Lid Close option saved? I want to make a module of it and use it with Always Fresh mode. I looked in /home/guest/.qt but didn't find it. And there is no /home/guest/.razor folder.
Ed
- francois
- Contributor
- Posts: 6287
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: usb mouse and keyboard temporary freeze of laptop
@Ed:
You are hijacking my thread once more.
Have a look here:
http://forum.lxde.org/viewtopic.php?f=5&t=1435
You are hijacking my thread once more.

Have a look here:
http://forum.lxde.org/viewtopic.php?f=5&t=1435
Prendre son temps, profiter de celui qui passe.