You are not logged in.

#1 2015-06-25 19:17:03

reedts
Member
Registered: 2015-06-25
Posts: 10

Logitech G15 keyboard stuttering after update to systemd 221

Hello!

As you know there was an update from systemd 219 to 221 (installed on 23rd june on my PC) which also included

libsystemd (219-6 -> 221-1)
systemd (219-6 -> 221-1)
systemd-sysvcompat (219-6 -> 221-1)
lib32-systemd (219-1 -> 221-1)
libgudev (230-1)

and a few other packages on my system that now depends on the new

libgudev

Obviously this combination of packages somehow affects the behaviour of my USB-keyboard (Logitech G15):
When I do no input for about 3 seconds, the next 1 - 3 keystrokes are completely ignored and nothing happens except a strange, short flickering
of the LEDs in my G15.

So I first uninstalled the

g15daemon

with its dependency (as I rarely use the G15's LCD on my Linux system anyway) but that did not change anything.

I then downgraded every package that was upgraded together with the systemd-packages. Downgrading the packages mentioned above solved the problem for now but also forced me
to downgrade the packages with dependency to

libgudev

as well.

I just wanted to ask you if you might know a workaround or even better a solution!

Thank you for any help!

Offline

#2 2015-06-25 23:13:06

Buddlespit
Member
From: Chesapeake, Va.
Registered: 2014-02-07
Posts: 507

Re: Logitech G15 keyboard stuttering after update to systemd 221

a search for "g15 systemd" brings up this:
https://bbs.archlinux.org/search.php?se … =537061990

Last edited by Buddlespit (2015-06-25 23:16:28)


An old man, trying to stay sane

Offline

#3 2015-06-26 09:10:35

reedts
Member
Registered: 2015-06-25
Posts: 10

Re: Logitech G15 keyboard stuttering after update to systemd 221

the link you posted just brings me to a page with "no results found" but I was looking for "g15 systemd" in the Newbie Corner (where I haven't been searching before for this issue because I was sure it would appear under Package Upgrade Issues) and found this link:
https://bbs.archlinux.org/viewtopic.php?id=198999
I'm quite sure that you meant this.
Removing

/usr/lib/udev/rules.d//42-usb-hid-pm.rules

does the trick for now. Let's hope it will be fixed upstream.

Thank you a lot for your hint; haven't found that at first.

Offline

#4 2015-06-26 09:48:00

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,572
Website

Re: Logitech G15 keyboard stuttering after update to systemd 221

Not an upgrade issue, moving to kernel and hardware.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2015-06-27 03:12:11

Malvineous
Member
From: Brisbane, Australia
Registered: 2011-02-03
Posts: 195
Website

Re: Logitech G15 keyboard stuttering after update to systemd 221

Just came here to report the same problem.  I have narrowed the issue down to systemd-220.  systemd-219 works perfectly, systemd-220 causes lost keystrokes.

Here is how I downgraded to systemd-219 (only) to confirm this is where the problem lies:

pacman -Syu
pacman -Rdd libgudev
pacman -U systemd-219-6-x86_64.pkg.tar.xz

The problem is related to USB power saving mode.  It seems that the keyboard gets put to sleep, and while pressing a key does wake it up again, it loses that key and any subsequent ones for 250ms or so, effectively meaning your first 1-3 keystrokes are lost when you start typing again, after having stopped typing for two seconds or more.

I have manged to get my system to work again by manually disabling USB powersave mode across the board (usbcore module option) and per device (by altering power/control for the device in question) but I have been unable to come up with a working sysfs rule as the systemd rules seem to override anything I put in, even if I number my rules file as 99 so it runs last.

I also independently came to the conclusion that the problem was in /usr/lib/udev/rules.d/42-usb-hid-pm.rules (as this is the only file that changes "power/control" which is the sysfs file that can be manually altered to get the keyboard working again), and indeed this file does change between systemd-219 and systemd-220, where it looks like the rule was actually broken and they fixed it:

--- 42-usb-hid-pm.rules.219	2015-06-27 12:59:33.460711749 +1000
+++ 42-usb-hid-pm.rules.220	2015-06-27 12:59:51.776809556 +1000
@@ -28,9 +28,9 @@
 
 # USB HID devices that are internal to the machine should also be safe to autosuspend
 
-ACTION=="add", SUBSYSTEM=="usb", SUBSYSTEMS=="usb", ATTRS{removable}=="removable", GOTO="usb_hid_pm_end"
-ACTION=="add", SUBSYSTEM=="usb", SUBSYSTEMS=="usb", ATTRS{removable}=="unknown", GOTO="usb_hid_pm_end"
+ACTION=="add", SUBSYSTEM=="usb", SUBSYSTEMS=="usb", ATTR{../removable}=="removable", GOTO="usb_hid_pm_end"
+ACTION=="add", SUBSYSTEM=="usb", SUBSYSTEMS=="usb", ATTR{../removable}=="unknown", GOTO="usb_hid_pm_end"
 
-ACTION=="add", SUBSYSTEM=="usb", ATTR{bInterfaceClass}=="03", ATTRS{removable}=="fixed", TEST=="../power/control", ATTR{../power/control}="auto"
+ACTION=="add", SUBSYSTEM=="usb", ATTR{bInterfaceClass}=="03", ATTR{../removable}=="fixed", TEST=="../power/control", ATTR{../power/control}="auto"
 
 LABEL="usb_hid_pm_end"

What I don't understand is the "power/control" option they are setting to "auto" is already set to auto by the kernel.  systemd-219 appears to leave it unchanged (due to the broken rule) but it seems systemd-220 is explicitly setting it to "auto" again which seems to change the device's behaviour, despite the value being set to the same value it is already.

Offline

#6 2015-06-27 03:23:35

Malvineous
Member
From: Brisbane, Australia
Registered: 2011-02-03
Posts: 195
Website

Re: Logitech G15 keyboard stuttering after update to systemd 221

Just found the commit in question that introduces this problem: https://github.com/systemd/systemd/comm … 920a751fb1

EDIT: And the issue discussion where the issue has been resolved: https://github.com/systemd/systemd/issues/340

Looks like systemd-222 should be working again.

Last edited by Malvineous (2015-06-27 04:13:01)

Offline

#7 2015-06-29 06:29:21

Volle
Member
From: Stuttgart, Germany
Registered: 2013-12-05
Posts: 48

Re: Logitech G15 keyboard stuttering after update to systemd 221

i was wondering what happend to my g15 for a few days now and i'm happy i found this thread :>
*waiting for systemd-222

Offline

Board footer

Powered by FluxBB