Re: [gentoo-user] some keyboard lag
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
Re: [gentoo-user] some keyboard lag
On Mon, 8 Jun 2015 19:57 Stefan G. Weichinger li...@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?
Re: [gentoo-user] some keyboard lag
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)
Re: [gentoo-user] some keyboard lag
On 8 June 2015 19:50:56 CEST, Stefan G. Weichinger li...@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.
Re: [gentoo-user] some keyboard lag
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!
Re: [gentoo-user] some keyboard lag
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
Re: [gentoo-user] some keyboard lag
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
Re: [gentoo-user] some keyboard lag
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
Re: [gentoo-user] some keyboard lag
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