usb mouse and keyboard temporary freeze of laptop

Non release banter
User avatar
francois
Contributor
Contributor
Posts: 4905
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

usb mouse and keyboard temporary freeze of laptop

Post#1 by francois » 07 Jul 2014, 20:06

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.
Last edited by francois on 03 Sep 2014, 01:10, edited 2 times in total.
Voltaire: Le mieux est l'ennemi du bien.

User avatar
fanthom
Site Admin
Site Admin
Posts: 4548
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: mouse and keyboard temporary freeze

Post#2 by fanthom » 07 Jul 2014, 20:33

vary useful - thanks for posting.
Please add [Solved] to your thread title if the solution was found.

User avatar
francois
Contributor
Contributor
Posts: 4905
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: mouse and keyboard temporary freeze

Post#3 by francois » 08 Jul 2014, 02:06

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.
Voltaire: Le mieux est l'ennemi du bien.

User avatar
francois
Contributor
Contributor
Posts: 4905
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: mouse and keyboard temporary freeze

Post#4 by francois » 13 Jul 2014, 11:37

1) Another option is changing the autosuspend time from two seconds to a greater amount of time for all the usb devices:

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
2) But better than that is to blacklist usbhid auto-suspend, usbhid means mouse, keyboard and joystick:

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"
I propose that porteus be set to AUTOSUSPEND_USBTYPE_BLACKLIST="usbhid"[/code]
Voltaire: Le mieux est l'ennemi du bien.

User avatar
Ed_P
Contributor
Contributor
Posts: 3069
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: mouse and keyboard temporary freeze

Post#5 by Ed_P » 13 Jul 2014, 15:05

francois wrote:2) But better than that is to blacklist usbhid auto-suspend, usbhid means mouse, keyboard and joystick:
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.
Ed

User avatar
fanthom
Site Admin
Site Admin
Posts: 4548
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: usb mouse and keyboard temporary freeze of laptop

Post#6 by fanthom » 14 Jul 2014, 19:48

thanks - will consider those.
Please add [Solved] to your thread title if the solution was found.

User avatar
francois
Contributor
Contributor
Posts: 4905
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: usb mouse and keyboard temporary freeze of laptop

Post#7 by francois » 15 Jul 2014, 03:26

@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
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)
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. :D
Voltaire: Le mieux est l'ennemi du bien.

User avatar
fanthom
Site Admin
Site Admin
Posts: 4548
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: usb mouse and keyboard temporary freeze of laptop

Post#8 by fanthom » 10 Sep 2014, 18:56

set the default action for Lid Closed to be Sleep.
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).
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.
will do for KDE4 and LxQT (if possible). brokenman decides about MATE and XFCE.

thanks
Please add [Solved] to your thread title if the solution was found.

User avatar
Ed_P
Contributor
Contributor
Posts: 3069
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: usb mouse and keyboard temporary freeze of laptop

Post#9 by Ed_P » 10 Sep 2014, 19:38

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).
But for people doing these things, with their lid closed, they could simply change the default to fit their needs.

Nice to see you're still thinking about these suggestions.
Ed

User avatar
fanthom
Site Admin
Site Admin
Posts: 4548
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: usb mouse and keyboard temporary freeze of laptop

Post#10 by fanthom » 10 Sep 2014, 19:54

But for people doing these things, with their lid closed, they could simply change the default to fit their needs.
well - you could do the same :wink:
Nice to see you're still thinking about these suggestions.
started working on rc1 for next Desktop release and these were on my TODO list among others.

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.

User avatar
Ed_P
Contributor
Contributor
Posts: 3069
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: usb mouse and keyboard temporary freeze of laptop

Post#11 by Ed_P » 10 Sep 2014, 20:28

fanthom wrote:
But for people doing these things, with their lid closed, they could simply change the default to fit their needs.
well - you could do the same :wink:
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?
in short - usual Desktop edition headaches has started :)
(not saying that Kiosk delivers less ... cause it's contrary)
I don't envy you but am reasonably confident you will find a way. :)
Ed

User avatar
francois
Contributor
Contributor
Posts: 4905
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: usb mouse and keyboard temporary freeze of laptop

Post#12 by francois » 13 Sep 2014, 21:56

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. :wink:
Voltaire: Le mieux est l'ennemi du bien.

User avatar
fanthom
Site Admin
Site Admin
Posts: 4548
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: usb mouse and keyboard temporary freeze of laptop

Post#13 by fanthom » 13 Sep 2014, 22:51

@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.
Please add [Solved] to your thread title if the solution was found.

User avatar
Ed_P
Contributor
Contributor
Posts: 3069
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: usb mouse and keyboard temporary freeze of laptop

Post#14 by Ed_P » 27 Sep 2014, 16:38

@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

User avatar
francois
Contributor
Contributor
Posts: 4905
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: usb mouse and keyboard temporary freeze of laptop

Post#15 by francois » 27 Sep 2014, 18:43

@Ed:
You are hijacking my thread once more. :wink:

Have a look here:
http://forum.lxde.org/viewtopic.php?f=5&t=1435
Voltaire: Le mieux est l'ennemi du bien.

Post Reply