Created attachment 391688 [details, diff] Patch for x11-base/xorg-drivers-1.16 This requires three actions, so I hope I'm filling this correctly. The steps to get it in portage are: 1. Merge dev-libs/libinput-0.7.0 from the gnome overlay. 2. Patch x11-base/xorg-driver-1.16s. 3. Add x11-drivers/xf86-input-libinput-0.4.0 Result: $ emerge -pv x11-base/xorg-drivers These are the packages that would be merged, in order: Calculating dependencies ... done! [ebuild R ~] x11-base/xorg-drivers-1.16::Local-Overlay [1.16::gentoo] INPUT_DEVICES="libinput%* -acecad -aiptek -elographics -evdev* -fpit -hyperpen -joystick -keyboard -mouse -mutouch -penmount -synaptics -tslib -vmmouse -void -wacom" VIDEO_CARDS="radeon -apm -ast -chips -cirrus -dummy -epson -fbdev -fglrx (-freedreno) (-geode) -glint -i128 (-i740) -intel -mach64 -mga -modesetting -neomagic -nouveau -nv -nvidia (-omap) (-omapfb) -qxl -r128 -radeonsi -rendition -s3 -s3virge -savage -siliconmotion -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -v4l -vesa -via -virtualbox -vmware (-voodoo)" 0 KiB [ebuild N ~] dev-libs/libevdev-1.3 USE="-static-libs" ABI_X86="32 (64) (-x32)" 384 KiB [ebuild N ~] dev-libs/libinput-0.7.0:0/5::Local-Overlay USE="{-test}" 0 KiB [ebuild N ~] x11-drivers/xf86-input-libinput-0.4.0::Local-Overlay 0 KiB Total: 4 packages (3 new, 1 reinstall), Size of downloads: 384 KiB
Created attachment 391690 [details] x11-drivers/xf86-input-libinput-0.4.0.ebuild This ebuild is based on the x11-drivers/xf86-input-evdev ebuilds. It might be incomplete (for example Arch seem to install a xorg.conf.d file automagically).
Created attachment 391696 [details] xf86-input-libinput-0.4.0.ebuild New ebuild which automagically installs the /etc/X11/xorg.conf.d/99-libinput.conf and doesn't require sys-kernel/linux-headers anymore.
Comment on attachment 391696 [details] xf86-input-libinput-0.4.0.ebuild ># Copyright 1999-2014 Thomas "V10lator" Rohloff That's wrong. >KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86" I'm sure you didn't test on all those platforms. >IUSE="" No need to set an empty IUSE variable. >RDEPEND=">=x11-base/xorg-server-1.16 > >=dev-libs/libinput-0.7.0" >DEPEND="${RDEPEND} > >=x11-proto/inputproto-2.1.99.3" > >src_install() { > xorg-2_src_install > insinto /etc/X11/xorg.conf.d That should be /usr/share/X11/xorg.conf.d
Created attachment 391774 [details] xf86-input-libinput-0.4.0.ebuild (In reply to Jeroen Roovers from comment #3) > Comment on attachment 391696 [details] > xf86-input-libinput-0.4.0.ebuild > > ># Copyright 1999-2014 Thomas "V10lator" Rohloff > > That's wrong. Whoops, sorry. > >KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86" > > I'm sure you didn't test on all those platforms. Fixed. I didn't test on x86 so maybe somebody using a 32 bit system wants to test or sould I remove that, too? > >IUSE="" > > No need to set an empty IUSE variable. This is my first ebuild and I copied that from x11-drivers/xf86-input-evdev-1.9.2 (which has an empty IUSE, too). Sorry, fixed. > > >RDEPEND=">=x11-base/xorg-server-1.16 > > >=dev-libs/libinput-0.7.0" > >DEPEND="${RDEPEND} > > >=x11-proto/inputproto-2.1.99.3" > > > >src_install() { > > xorg-2_src_install > > insinto /etc/X11/xorg.conf.d > > That should be /usr/share/X11/xorg.conf.d Why? The Arch PKGBUILD from AUR uses /etc/X11/xorg.conf.d, for example. Anyway, fixed. Thanks for finding the flaws. If you see any more issues I'll fix that ASAP (or feel free to fix them for yourself). :)
Starting to "play" with this and wayland. May I use INPUT_DEVICES="evdev libinput" as well? With "normal" Xorg or only Wayland?
(In reply to Stefan G. Weichinger from comment #5) > Starting to "play" with this and wayland. > May I use INPUT_DEVICES="evdev libinput" as well? > With "normal" Xorg or only Wayland? Just tried it .. and have gnome running on XWayland now. Although with some artefacts in eg. thunderbird. Thanks!
(In reply to Stefan G. Weichinger from comment #5) > Starting to "play" with this and wayland. This is a driver for xorg, translating lininput to xorg input. For Wayland libinput ( http://gpo.zugaina.org/dev-libs/libinput ) and a window manager using it should be enough. Again: xf86-input-libinput is totally useless for Wayland. > May I use INPUT_DEVICES="evdev libinput" as well? Surely you're able to use INPUT_DEVICES="evdev libinput" but libinput will have a higher priority, so evdev won't be used at runtime (except you change the files at /usr/share/X11/xorg.conf.d). I guess the short-term goal for this is bringing libinput to xorg for better testing (which is what I want to do) and the long-term goal might be to remove all other xorg input drivers (xf86-input-evdev, too) to lower the maintenance burden.
(In reply to Stefan G. Weichinger from comment #6) > Just tried it .. and have gnome running on XWayland now. Wait what? This is needed for XWayland? Good to know, thanks. :)
Please note that 0.4.0 depends on dev-libs/libinput-0.7.0, which is in the tree already. x11-drivers/xf86-input-libinput-0.6.0 will depend on dev-libs/libinput-0.8.0 but I have no ebuild ready cause of build errors with dev-libs/libinput-0.8.0.
I guys, I need a *working* /etc/X11/xorg.conf.d/ config file to be able to use libinput for my touchpad, did someone actually succedeed using libinput? Thanks
+*xf86-input-libinput-0.6.0 (04 Feb 2015) + + 04 Feb 2015; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> +metadata.xml, + +xf86-input-libinput-0.6.0.ebuild: + Initial commit for bug #532566. (In reply to darkbasic from comment #10) > I guys, I need a *working* /etc/X11/xorg.conf.d/ config file to be able to > use libinput for my touchpad, did someone actually succedeed using libinput? > Thanks How about: http://cgit.freedesktop.org/xorg/driver/xf86-input-libinput/tree/conf/99-libinput.conf ?
what is the status of this? There is no libinput useflag in xorg-drivers.
(In reply to C.J. Wijtmans from comment #12) There is, but the flag is currently masked until bug 538828 is fixed.