Yuan Yijun (bbbush) wrote,
Yuan Yijun
bbbush

gsynaptics

装了 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">
<device>
<match key="info.capabilities" contains="input.touchpad">
<match key="info.product" contains="Synaptics TouchPad">
<merge key="input.x11_options.SHMConfig" type="string">true</merge>
</match>
</match>
</device>
</deviceinfo>

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

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

  • 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…

  • Yoga

    Yesterday JY learned a lot about Yoga poses. I keep saying that as "yogurt", no idea why. - Child's pose. Surprisingly hard for me! - Triangle -…

  • 坏人

    Jimmy had an obsession about bad guys. He wanted to be a bad guy in his star of the week report. He even wanted to live with bad guys. Then he asked…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments