Yuan Yijun (bbbush) wrote,
Yuan Yijun


装了 gsynaptics,发现需要设置 InputDevice 的 SHMConfig 才可以动态改变触摸板参数。

在 xorg-x11-server.git/config/x11-input.fdi 中找到 "x11_options" 这个参数,根据文档和示例,可以用在 HAL policy 里面。这个参数只支持 string 类型,尽管 SHMConfig 明显是个 bool 类型的标识。

[yuan@mstar xorg-server-git]$ cat /etc/hal/fdi/policy/10-synaptics.fdi
<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
<match key="info.capabilities" contains="input.touchpad">
<match key="info.product" contains="Synaptics TouchPad">
<merge key="input.x11_options.SHMConfig" type="string">true</merge>

需要重新启动 haldaemon,然后重新启动 Xorg 才会生效。

定制参数后,gsynaptics 会在每次登录时, gnome session 启动时运行一次,读入参数。
Tags: fedora

  • 2020

    Last time I wrote a review was in 2018, about 2017. Or maybe I wrote something elsewhere, maybe on Twitter? It was hard to write something freely…

  • Shutdown application context

    Recent technical issue at work involves how a sprint-boot application shutdown itself. There are several types of applications we have over here,…

  • Portfolio weighted averages

    Last week I got an assignment to make a small Java library for some often used portfolio calculations. A portfolio is a collection of holdings, each…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded