Bug 371917 - libinput device configuration does not persist across VT switches
Summary: libinput device configuration does not persist across VT switches
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: libinput (show other bugs)
Version: git master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL: https://phabricator.kde.org/D3264
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-31 21:53 UTC by David Strobach
Modified: 2016-11-23 08:10 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
mgraesslin: Wayland+
mgraesslin: ReviewRequest+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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