加载 /etc/profile 时出错(xinput 属性不存在)

加载 /etc/profile 时出错(xinput 属性不存在)

从 Xenial 升级到 Bionic 后,我现在登录桌面时收到错误:

Error found when loading /etc/profile
Property 300 doesn't exist, you must specify its type and format
Property 299 doesn't exist, you must specify its type and format
Property 298 doesn't exist, you must specify its type and format
Property 300 doesn't exist, you must specify its type and format
Property 299 doesn't exist, you must specify its type and format
Property 298 doesn't exist, you must specify its type and format

我认为罪魁祸首是我在配置触摸板时.profile输入的以下几行:.xinputrc

xinput set-prop 11 298 1
xinput set-prop 11 299 1, 100
xinput set-prop 11 300 20.0 50000.0

但是,如果我这样做source .profile,那就绝对没有问题了,我的 xinput 设置也正确。似乎只有当这些脚本由 /etc/profile 执行时才会发生这种情况。xinput 是否还没有在那个阶段初始化我的触摸板?我该如何防止这种情况发生?

相关内容