* [gentoo-user] some keyboard lag
@ 2015-06-08 12:01 Stefan G. Weichinger
2015-06-08 12:22 ` Andrew Lowe
2015-06-08 13:05 ` [gentoo-user] " James
0 siblings, 2 replies; 11+ messages in thread
From: Stefan G. Weichinger @ 2015-06-08 12:01 UTC (permalink / raw
To: gentoo-user
"interesting" issue on my desktop machine:
when booted with gentoo the keyboard seems to fall "asleep" in a way
It happens repeatedly that the first key pressed does not get detected,
only the second.
For example at login:
login: oot
;)
if I keep typing it keeps working ... and this is *not* in Gnome alone
but on the plain console as well.
The same hardware booted with Fedora: no issues.
Does anyone have an idea about that?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] some keyboard lag
2015-06-08 12:01 [gentoo-user] some keyboard lag Stefan G. Weichinger
@ 2015-06-08 12:22 ` Andrew Lowe
2015-06-08 12:32 ` Stefan G. Weichinger
2015-06-08 13:05 ` [gentoo-user] " James
1 sibling, 1 reply; 11+ messages in thread
From: Andrew Lowe @ 2015-06-08 12:22 UTC (permalink / raw
To: gentoo-user
On 06/08/2015 08:01 PM, Stefan G. Weichinger wrote:
>
> "interesting" issue on my desktop machine:
>
> when booted with gentoo the keyboard seems to fall "asleep" in a way
>
> It happens repeatedly that the first key pressed does not get detected,
> only the second.
>
> For example at login:
>
> login: oot
>
> ;)
>
> if I keep typing it keeps working ... and this is *not* in Gnome alone
> but on the plain console as well.
>
> The same hardware booted with Fedora: no issues.
>
> Does anyone have an idea about that?
>
>
Any chance this is a Logitech K520r wireless keyboard? I have one of
these and it at times "goes to sleep" for several seconds. Logitech know
about the problem but refuse to do anything. A google search will reveal
all the gory details. If on the other hand it isn't, sorry, got nothing
to offer.
Andrew
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] some keyboard lag
2015-06-08 12:22 ` Andrew Lowe
@ 2015-06-08 12:32 ` Stefan G. Weichinger
2015-06-08 14:44 ` Daniel Frey
0 siblings, 1 reply; 11+ messages in thread
From: Stefan G. Weichinger @ 2015-06-08 12:32 UTC (permalink / raw
To: gentoo-user
Am 2015-06-08 um 14:22 schrieb Andrew Lowe:
> Any chance this is a Logitech K520r wireless keyboard? I have one of
> these and it at times "goes to sleep" for several seconds. Logitech know
> about the problem but refuse to do anything. A google search will reveal
> all the gory details. If on the other hand it isn't, sorry, got nothing
> to offer.
No, it's wired keyboard by Lenovo: SK-8815
And, by the way, kernel 4.0.5 ... I cross-checked with 4.0.1 and 4.0.4
... same issue (maybe also the same problematic setting somewhere)
thanks, S
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] some keyboard lag
2015-06-08 12:32 ` Stefan G. Weichinger
@ 2015-06-08 14:44 ` Daniel Frey
2015-06-08 17:50 ` Stefan G. Weichinger
0 siblings, 1 reply; 11+ messages in thread
From: Daniel Frey @ 2015-06-08 14:44 UTC (permalink / raw
To: gentoo-user
On 06/08/2015 05:32 AM, Stefan G. Weichinger wrote:
> Am 2015-06-08 um 14:22 schrieb Andrew Lowe:
>
>> Any chance this is a Logitech K520r wireless keyboard? I have one of
>> these and it at times "goes to sleep" for several seconds. Logitech know
>> about the problem but refuse to do anything. A google search will reveal
>> all the gory details. If on the other hand it isn't, sorry, got nothing
>> to offer.
>
> No, it's wired keyboard by Lenovo: SK-8815
>
> And, by the way, kernel 4.0.5 ... I cross-checked with 4.0.1 and 4.0.4
> ... same issue (maybe also the same problematic setting somewhere)
>
> thanks, S
>
>
I would check if USB autosuspend is set for your keyboard, and if it is,
disable it on the keyboard.
Dan
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] some keyboard lag
2015-06-08 14:44 ` Daniel Frey
@ 2015-06-08 17:50 ` Stefan G. Weichinger
2015-06-08 18:25 ` J. Roeleveld
0 siblings, 1 reply; 11+ messages in thread
From: Stefan G. Weichinger @ 2015-06-08 17:50 UTC (permalink / raw
To: gentoo-user
On 08.06.2015 16:44, Daniel Frey wrote:
> I would check if USB autosuspend is set for your keyboard, and if it is,
> disable it on the keyboard.
thanks a lot, that seems to do the trick!
Although I wonder where the difference is:
I compiled a gentoo 4.0.5 kernel based on the config from the fedora
kernel ... and they don't disable USB autosuspend via kernel option as I
do now within my gummiboot entry for gentoo.
Anyway, works for now, thanks again!
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] some keyboard lag
2015-06-08 17:50 ` Stefan G. Weichinger
@ 2015-06-08 18:25 ` J. Roeleveld
2015-06-08 18:56 ` Stefan G. Weichinger
0 siblings, 1 reply; 11+ messages in thread
From: J. Roeleveld @ 2015-06-08 18:25 UTC (permalink / raw
To: gentoo-user
On 8 June 2015 19:50:56 CEST, "Stefan G. Weichinger" <lists@xunil.at> wrote:
>On 08.06.2015 16:44, Daniel Frey wrote:
>
>> I would check if USB autosuspend is set for your keyboard, and if it
>is,
>> disable it on the keyboard.
>
>thanks a lot, that seems to do the trick!
>
>Although I wonder where the difference is:
>
>I compiled a gentoo 4.0.5 kernel based on the config from the fedora
>kernel ... and they don't disable USB autosuspend via kernel option as
>I
>do now within my gummiboot entry for gentoo.
>
>Anyway, works for now, thanks again!
There was a similar thread here before about USB and suspend. Check that for specifics if in a hurry. Not at computer now to find the earlier email.
Apart from kernel level USB suspend. There are settings in /sys/.... where you can disable USB suspend on a per-device level.
I would assume Fedora disables that for keyboards and mice (think previous thread was about mice getting forgotten) when detected as such.
--
Joost
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] some keyboard lag
2015-06-08 18:25 ` J. Roeleveld
@ 2015-06-08 18:56 ` Stefan G. Weichinger
2015-06-08 19:28 ` Daniel Frey
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Stefan G. Weichinger @ 2015-06-08 18:56 UTC (permalink / raw
To: gentoo-user
Am 2015-06-08 um 20:25 schrieb J. Roeleveld:
> There was a similar thread here before about USB and suspend. Check
> that for specifics if in a hurry. Not at computer now to find the
> earlier email.
didn't find it yet .. but no hurry at all.
> Apart from kernel level USB suspend. There are settings in /sys/....
> where you can disable USB suspend on a per-device level.
.. as mentioned in:
https://wiki.gentoo.org/wiki/USB_Power_Saving
?
> I would assume Fedora disables that for keyboards and mice (think
> previous thread was about mice getting forgotten) when detected as
> such.
I browsed their udev rules and found some rules pointing in that
direction but none specifically matching the PCI ID of my keyboard and
the wildcards ... I am not sure.
But they seem to do it specifically, yes ->
# cat /sys/module/usbcore/parameters/autosuspend
2
# my keyboard
# cat /sys/bus/usb/devices/3-1.6/power/control
on
I assume it won't hurt much if I disable USB autosuspend in general for
now? Power savings should be minimal, right? (desktop here, AC etc)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] some keyboard lag
2015-06-08 18:56 ` Stefan G. Weichinger
@ 2015-06-08 19:28 ` Daniel Frey
2015-06-13 7:50 ` Bob Wya
2015-06-16 13:46 ` J. Roeleveld
2 siblings, 0 replies; 11+ messages in thread
From: Daniel Frey @ 2015-06-08 19:28 UTC (permalink / raw
To: gentoo-user
On 06/08/2015 11:56 AM, Stefan G. Weichinger wrote:
> I browsed their udev rules and found some rules pointing in that
> direction but none specifically matching the PCI ID of my keyboard and
> the wildcards ... I am not sure.
>
> But they seem to do it specifically, yes ->
>
> # cat /sys/module/usbcore/parameters/autosuspend
> 2
>
> # my keyboard
> # cat /sys/bus/usb/devices/3-1.6/power/control
> on
>
> I assume it won't hurt much if I disable USB autosuspend in general for
> now? Power savings should be minimal, right? (desktop here, AC etc)
>
I doubt it'll hurt anything. The power savings bit are more or less all
left to userspace now, and you can toggle something in /sys more than
likely to disable it on the keyboard (as was mentioned already.) It's
probably best to write a udev rule specifically for your keyboard (and
mouse, while you're at it) if you want to go that route.
Dan
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] some keyboard lag
2015-06-08 18:56 ` Stefan G. Weichinger
2015-06-08 19:28 ` Daniel Frey
@ 2015-06-13 7:50 ` Bob Wya
2015-06-16 13:46 ` J. Roeleveld
2 siblings, 0 replies; 11+ messages in thread
From: Bob Wya @ 2015-06-13 7:50 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1342 bytes --]
On Mon, 8 Jun 2015 19:57 Stefan G. Weichinger <lists@xunil.at> wrote:
Am 2015-06-08 um 20:25 schrieb J. Roeleveld:
> There was a similar thread here before about USB and suspend. Check
> that for specifics if in a hurry. Not at computer now to find the
> earlier email.
didn't find it yet .. but no hurry at all.
> Apart from kernel level USB suspend. There are settings in /sys/....
> where you can disable USB suspend on a per-device level.
.. as mentioned in:
https://wiki.gentoo.org/wiki/USB_Power_Saving
?
> I would assume Fedora disables that for keyboards and mice (think
> previous thread was about mice getting forgotten) when detected as
> such.
I browsed their udev rules and found some rules pointing in that
direction but none specifically matching the PCI ID of my keyboard and
the wildcards ... I am not sure.
But they seem to do it specifically, yes ->
# cat /sys/module/usbcore/parameters/autosuspend
2
# my keyboard
# cat /sys/bus/usb/devices/3-1.6/power/control
on
I assume it won't hurt much if I disable USB autosuspend in general for
now? Power savings should be minimal, right? (desktop here, AC etc)
Doesn't the powertop utility have a facility to do this per-device and to
see what the current power-save settings are per-device? Surely a bit
easier to use than directly messing about with udev rules?
[-- Attachment #2: Type: text/html, Size: 1870 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] some keyboard lag
2015-06-08 18:56 ` Stefan G. Weichinger
2015-06-08 19:28 ` Daniel Frey
2015-06-13 7:50 ` Bob Wya
@ 2015-06-16 13:46 ` J. Roeleveld
2 siblings, 0 replies; 11+ messages in thread
From: J. Roeleveld @ 2015-06-16 13:46 UTC (permalink / raw
To: gentoo-user
On Monday, June 08, 2015 08:56:13 PM Stefan G. Weichinger wrote:
> Am 2015-06-08 um 20:25 schrieb J. Roeleveld:
> > There was a similar thread here before about USB and suspend. Check
> > that for specifics if in a hurry. Not at computer now to find the
> > earlier email.
>
> didn't find it yet .. but no hurry at all.
>
> > Apart from kernel level USB suspend. There are settings in /sys/....
> > where you can disable USB suspend on a per-device level.
>
> .. as mentioned in:
>
> https://wiki.gentoo.org/wiki/USB_Power_Saving
>
> ?
Yes, similar to this.
You want to find out how to identify USBHID devices and disable it for those.
On my laptop (only a USB mouse):
/sys/bus/usb/devices/1-6:1.0/driver ->
../../../../../../bus/usb/drivers/usbhid
--
Joost
^ permalink raw reply [flat|nested] 11+ messages in thread
* [gentoo-user] Re: some keyboard lag
2015-06-08 12:01 [gentoo-user] some keyboard lag Stefan G. Weichinger
2015-06-08 12:22 ` Andrew Lowe
@ 2015-06-08 13:05 ` James
1 sibling, 0 replies; 11+ messages in thread
From: James @ 2015-06-08 13:05 UTC (permalink / raw
To: gentoo-user
Stefan G. Weichinger <lists <at> xunil.at> writes:
> "interesting" issue on my desktop machine:
> when booted with gentoo the keyboard seems to fall "asleep" in a way
>
> It happens repeatedly that the first key pressed does not get detected,
> only the second.
I have always used a "double tap' on the space bar to wake machines.
> if I keep typing it keeps working ... and this is *not* in Gnome alone
> but on the plain console as well.
> The same hardware booted with Fedora: no issues.
> Does anyone have an idea about that?
I can confirm your experience. It seems to be getting worse and I run lxde
for a minimized desktop. I recently have explore ways to manually flush
the cache and memory. It helps, but sometimes I have to reboot the machine.
I am not sure what is at the root of this "deep sleep" on my gentoo machine
either. I suspect the kernel, but it's only a guess. There is lots to
tune these days, if you have time to read upon things.....
hth,
James
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2015-06-16 13:46 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-08 12:01 [gentoo-user] some keyboard lag Stefan G. Weichinger
2015-06-08 12:22 ` Andrew Lowe
2015-06-08 12:32 ` Stefan G. Weichinger
2015-06-08 14:44 ` Daniel Frey
2015-06-08 17:50 ` Stefan G. Weichinger
2015-06-08 18:25 ` J. Roeleveld
2015-06-08 18:56 ` Stefan G. Weichinger
2015-06-08 19:28 ` Daniel Frey
2015-06-13 7:50 ` Bob Wya
2015-06-16 13:46 ` J. Roeleveld
2015-06-08 13:05 ` [gentoo-user] " James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox