我想在Xorg服务器模块上工作,我想知道如何在运行时重新加载模块。
此外,也许有人可以给我一些关于这样做的好建议(因为我之前从未使用过Xorg服务器代码)。
ESP。 我正在运行Xorg 7.5的Ubuntu版本(如果这很重要 - 是吗?)。
我想要做的是在XInput中实现鼠标滚轮加速。
我想为这个添加一个新的选项可以在某处设置(我认为xorg.conf不再是你进行XInput配置的地方;现在它在哪里以及引入新设置的最佳方式,即MouseWheelAccel还是这样的?)。
然后当然要实现实际的加速度。 由于鼠标滚轮事件就像按钮事件一样,我想到的只是提高触发此类事件的速度。 如何实现这实际上是一个小问题。 (我实际上认为它是微不足道的。让我们看看Xorg代码是否允许它如此简单......)
I want to work on an Xorg server module and I am wondering how I can reload the module at runtime.
Also, maybe someone can give me some good tips about doing this (because I never have worked with Xorg server code before).
Esp. I am running the Ubuntu version of Xorg 7.5 (if that matters much -- does it?).
What I want to do specifically is to implement mouse wheel acceleration in XInput.
I thought about adding a new option for this which can be set somewhere (I think xorg.conf is not anymore the place where you do the XInput configuration; where is it now and what would be the best way to introduce a new setting, i.e. MouseWheelAccel or sth like this?).
And then of course to implement the actual acceleration. As mouse wheel events are just like button press events, I thought of just increasing the rate of firing such events. How to implement this is actually really the minor problem. (I am actually thinking about it as being trivial. Let's see if the Xorg code allows it to be so simple...)
最满意答案
到目前为止,我已经这样做了:
报告:
在Launchpad /(K)Ubuntu 在Ubuntu Brainstorm 在Ubuntu论坛 在KDE 在Freedesktop / Xorg通过Git查看Xorg,准备编译,并获取XServer代码 。 基本上这个:
... git clone git://anongit.freedesktop.org/git/xorg/util/macros ... sudo apt-get install xserver-xorg-dev sudo apt-get install x11proto-gl-dev x11proto-xf86dri-dev x11proto-fixes-dev x11proto-damage-dev x11proto-xcmisc-dev x11proto-bigreqs-dev x11proto-composite-dev x11proto-scrnsaver-dev x11proto-resource-dev x11proto-xinerama-dev x11proto-xf86dga-dev x11proto-record-dev x11proto-xf86vidmode-dev sudo apt-get install libxfont-dev libudev-dev git clone git://anongit.freedesktop.org/git/mesa/mesa git clone git://anongit.freedesktop.org/xorg/xserver cd xserver git checkout -b server-1.7-branch origin/server-1.7-branch -t # apply a bunch of Debian patches (apt-get source xserver-xorg-core && ls xorg-server-1.7.6/debian/patches) # esp., apply the config-libudev-backend and config-xorg-conf-d ./autogen.sh --prefix=/opt/xorg --enable-xorg --disable-dmx --disable-xvfb --disable-xnes \ --disable-xwin --disable-xprint --with-mesa-source=../mesa \ --enable-dga --enable-glx --enable-aiglx --enable-glx-tls \ --enable-dri --enable-dri2 \ --enable-config-udev --enable-registry --enable-composite --enable-record \ --enable-xv --enable-xvmc --enable-dga --enable-screensaver \ --enable-xdmcp --enable-xdm-auth-1 --enable-xfree86-utils \ --with-xkb-bin-directory=/usr/bin --with-xkb-path=/usr/share/X11/xkb --with-xkb-output=/var/lib/xkb \ --with-dri-driver-path=/usr/lib/dri \ --with-default-font-path="/usr/share/fonts/X11/misc,/usr/share/fonts/X11/cyrillic,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi,/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,built-ins" sudo chmod o+w /var/lib/xkb # just to be able to proceed as user ... # work on it sudo /opt/xorg/bin/Xorg :1 vt8 # for testing sudo cp /opt/xorg/bin/* /usr/bin # temporarily install it as main XserverSo far, I have done this:
Reports:
at Launchpad/(K)Ubuntu at Ubuntu Brainstorm at Ubuntu forums at KDE at Freedesktop/XorgCheck out Xorg via Git, prepare for compiling, and get the XServer code. Basically this:
... git clone git://anongit.freedesktop.org/git/xorg/util/macros ... sudo apt-get install xserver-xorg-dev sudo apt-get install x11proto-gl-dev x11proto-xf86dri-dev x11proto-fixes-dev x11proto-damage-dev x11proto-xcmisc-dev x11proto-bigreqs-dev x11proto-composite-dev x11proto-scrnsaver-dev x11proto-resource-dev x11proto-xinerama-dev x11proto-xf86dga-dev x11proto-record-dev x11proto-xf86vidmode-dev sudo apt-get install libxfont-dev libudev-dev git clone git://anongit.freedesktop.org/git/mesa/mesa git clone git://anongit.freedesktop.org/xorg/xserver cd xserver git checkout -b server-1.7-branch origin/server-1.7-branch -t # apply a bunch of Debian patches (apt-get source xserver-xorg-core && ls xorg-server-1.7.6/debian/patches) # esp., apply the config-libudev-backend and config-xorg-conf-d ./autogen.sh --prefix=/opt/xorg --enable-xorg --disable-dmx --disable-xvfb --disable-xnes \ --disable-xwin --disable-xprint --with-mesa-source=../mesa \ --enable-dga --enable-glx --enable-aiglx --enable-glx-tls \ --enable-dri --enable-dri2 \ --enable-config-udev --enable-registry --enable-composite --enable-record \ --enable-xv --enable-xvmc --enable-dga --enable-screensaver \ --enable-xdmcp --enable-xdm-auth-1 --enable-xfree86-utils \ --with-xkb-bin-directory=/usr/bin --with-xkb-path=/usr/share/X11/xkb --with-xkb-output=/var/lib/xkb \ --with-dri-driver-path=/usr/lib/dri \ --with-default-font-path="/usr/share/fonts/X11/misc,/usr/share/fonts/X11/cyrillic,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi,/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,built-ins" sudo chmod o+w /var/lib/xkb # just to be able to proceed as user ... # work on it sudo /opt/xorg/bin/Xorg :1 vt8 # for testing sudo cp /opt/xorg/bin/* /usr/bin # temporarily install it as main Xserver更多推荐
Xorg,XInput,implement,电脑培训,计算机培训,IT培训"/> <meta name="descrip
发布评论