Saving and restoring xinput devices properties by device ID