Bug 371917

Summary: libinput device configuration does not persist across VT switches
Product: [Plasma] kwin Reporter: David Strobach <lalochcz>
Component: libinputAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal Flags: mgraesslin: Wayland+
mgraesslin: ReviewRequest+
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
URL: https://phabricator.kde.org/D3264
Latest Commit: Version Fixed In:

Description David Strobach 2016-10-31 21:53:25 UTC
Since the org.kde.KWin.InputDevice interface is exposed on D-Bus it is possible to alter the input device configuration. The configuration gets however reset back to defaults once the user switches virtual terminals.
Comment 1 Martin Flöser 2016-11-01 07:10:57 UTC
Not completely unsurprising: when switching vts we lose all input devices. On gaining vt we get the device recreated.
Comment 2 Martin Flöser 2016-11-03 10:47:06 UTC
My suggestion is that we start to store configuration when a device gets configured. When a new device is added, we check the configuration and restore the settings as in the config.

This would make the changes not only persistent when doing a VT switch, but also in general (system restarts).
Comment 3 Martin Flöser 2016-11-04 15:02:17 UTC
Implementation for the idea outlined in comment #2 at https://phabricator.kde.org/D3264
Comment 4 Martin Flöser 2016-11-23 08:10:28 UTC
Looks like I forgot to link the bug report. Fix in http://commits.kde.org/kwin/de89176cd2a9977e4e5f6bac0bbcf2da9d1e5197