You are not logged in.

#1 2020-07-29 18:49:42

BlackMastermind
Member
Registered: 2017-01-17
Posts: 45

mouse extremely slow since systemd-245.7-1 upgrade

I have a very weird issue here. When I booted my computer today, my mouse, a Logitech G502 Hero, was extremely unresponsive when moving the cursor. Like it took two or three full swipes across my mousepad to get the cursor across the desktop, where it normally just takes the flick of my wrist.

The first thing I checked was the dpi setting, using piper, because this is a mouse that stores profiles in hardware, but I don't think that's relevant in this case. In any case, the dpi setting looked okay, the mouse still had my usual default of 600dpi and was responsive to changing the dpi via the dedicated buttons for it.

Next thing I did was compile a list of which packages had changed between yesterday's and today's boot. Among things there had been an update to plasma desktop last night. I'm using plasma desktop (though I have never touched the mouse sensitivity settings in plasma), so that was the first candidate to check. I rolled all plasma/kde related packages back, restored my ~/.config/ directory from yesterday's backup and rebooted, but it had no effect.

To rule out profile corruption, I created a new user with a clean profile, but the mouse stayed slow.

To rule out plasma desktop at all, I started X with just a very basic window manager using

startx /usr/bin/mwm

The mouse stayed slow.

So I went over the list of updated packages again. Rolling them back one by one, and rebooting each time... It had no effect, until I got to these 4 packages:

lib32-systemd-245.7-1
systemd-245.7-1
systemd-libs-245.7-1
systemd-sysvcompat-245.7-1

I rolled them back to version 245.6 with:

cd /var/cache/pacman
pacman -U systemd-libs-245.6-8-x86_64.pkg.tar.zst systemd-245.6-8-x86_64.pkg.tar.zst lib32-systemd-245.6-1-x86_64.pkg.tar.zst systemd-sysvcompat-245.6-8-x86_64.pkg.tar.zst

After a reboot, the mouse acted normal again. When I update them using pacman -Syu, the problem reappears.

Any idea why systemd would have any effect on my mouse sensitivity?!

Offline

#2 2020-07-29 19:26:55

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,409

Re: mouse extremely slow since systemd-245.7-1 upgrade

Systemd comes with hwdb files for the udev userspace daemon, maybe something changed here, check/compare /usr/lib/udev/hwdb.d/70-mouse.hwdb between the two versions.

You are likely seeing the fallout from: https://github.com/systemd/systemd/comm … db84425969

Last edited by V1del (2020-07-29 19:30:33)

Offline

#3 2020-07-29 19:46:57

BlackMastermind
Member
Registered: 2017-01-17
Posts: 45

Re: mouse extremely slow since systemd-245.7-1 upgrade

V1del wrote:

Systemd comes with hwdb files for the udev userspace daemon, maybe something changed here, check/compare /usr/lib/udev/hwdb.d/70-mouse.hwdb between the two versions.

You are likely seeing the fallout from: https://github.com/systemd/systemd/comm … db84425969

Ah, yeah that seems to be the likely culprit.

So how would I best work around this? It appears to set DPI and frequency values based on the default settings of the G502, but I changed mine because the mouse was too sensitive out of the box. I guess I should reset the profile on the mouse to the defaults and work from there?

Offline

#4 2020-07-29 20:44:03

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,409

Re: mouse extremely slow since systemd-245.7-1 upgrade

Maybe but if you've intentionally changed that I assume those values being incorrect for you regardless, maybe remove the relevant line, and potentially opening a bug report as I find it weird that it tries to force this/this commit was made when the DPI can actually be queried and set with piper. As far as I understand the purpose of this DB is to enforce DPI for devices that cannot be logically queried via any means.

Offline

#5 2020-07-29 22:05:00

BlackMastermind
Member
Registered: 2017-01-17
Posts: 45

Re: mouse extremely slow since systemd-245.7-1 upgrade

V1del wrote:

Maybe but if you've intentionally changed that I assume those values being incorrect for you regardless, maybe remove the relevant line, and potentially opening a bug report as I find it weird that it tries to force this/this commit was made when the DPI can actually be queried and set with piper. As far as I understand the purpose of this DB is to enforce DPI for devices that cannot be logically queried via any means.

Well those default values were "incorrect" because the system probably assumed a standard ~400 DPI office mouse due to lack of knowledge about my G502. So I had to compensate by lowering the actual DPI on my mouse.

Anyway, I used piper to reset the stock values on one of my mouse profiles (1200, 2400, 3200, 6400). This makes the pointer a tad bit too sluggish @1200dpi and a tad bit too fast @ 2400 dpi. Goldilocks zone seems to be @1600dpi now, so that's what I set as my default now.

The only problem now is that the mouse speed in all my games is too fast. AFAIK games generally use raw input data and don't take DPI into account, so I will have to lower sensitivity manually.

V1del wrote:

I find it weird that it tries to force this/this commit was made when the DPI can actually be queried and set with piper

This I find weird too, but my understanding of hwdb is limited and I notice they're hardcoding the DPI for almost all other Logitech devices too... so they're must be a reason for it.

Offline

#6 2020-07-29 23:11:12

thingfish57
Member
Registered: 2019-08-15
Posts: 6

Re: mouse extremely slow since systemd-245.7-1 upgrade

I noticed this as well, and also have a G502 mouse.  Was able to get satisfactory performance again by using gnome-tweaks to set the mouse acceleration profile to Flat.  Mainly I'm glad it's not just me seeing this; I thought I was losing it.

Offline

#7 2020-08-02 00:41:55

walmartshopper
Member
Registered: 2010-03-31
Posts: 37

Re: mouse extremely slow since systemd-245.7-1 upgrade

I had the same issue with a G502 Hero SE.  I commented out the  G502 related lines in  /usr/lib/udev/hwdb.d/70-mouse.hwdb and that changed it back to how it was before.

Offline

#8 2020-08-03 10:18:34

BlackMastermind
Member
Registered: 2017-01-17
Posts: 45

Re: mouse extremely slow since systemd-245.7-1 upgrade

thingfish57 wrote:

Mainly I'm glad it's not just me seeing this; I thought I was losing it.

You were being gaslighted by systemd tongue

walmartshopper wrote:

I had the same issue with a G502 Hero SE.  I commented out the  G502 related lines in  /usr/lib/udev/hwdb.d/70-mouse.hwdb and that changed it back to how it was before.

That's one strategy you could use, but that change will be overwritten with every systemd upgrade. In the long term it's probably better to just roll with it, and raise the dpi of your mouse so that it feels appropriately responsive again.

Offline

#9 2020-08-04 20:40:19

walmartshopper
Member
Registered: 2010-03-31
Posts: 37

Re: mouse extremely slow since systemd-245.7-1 upgrade

BlackMastermind wrote:

That's one strategy you could use, but that change will be overwritten with every systemd upgrade. In the long term it's probably better to just roll with it, and raise the dpi of your mouse so that it feels appropriately responsive again.

Thanks, forgot that an update could overwrite my changes. But I didn't want to change the DPI on the mouse since I use it for FPS games and with other computers.  According to hwdb docs, files in /etc/udev/hwdb.d override files in /usr/lib/udev/hwdb.d, so to make the change permanent I created a new file called /etc/udev/hwdb.d/70-mouse.hwdb which contains the following lines:

# Logitech G502 Proteus Spectrum
mouse:usb:v046dpc332:name:Logitech Gaming Mouse G502:
# Logitech G502 HERO SE
mouse:usb:v046dpc08b:name:Logitech G502 HERO SE:
# Logitech G502 Hero
mouse:usb:v046dpc08b:name:Logitech G502 HERO Gaming Mouse:
 MOUSE_DPI=1300@1000

I tried various  values for MOUSE_DPI, and to me 1300@1000 feels the same as what it used to be.  After creating this file, I had to run "systemd-hwdb update" and then "udevadm trigger" to apply the change.

Last edited by walmartshopper (2020-08-05 02:23:24)

Offline

Board footer

Powered by FluxBB