Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 532566 - x11-drivers/xf86-input-libinput-0.4.0 - Linux input driver based on libinput
Summary: x11-drivers/xf86-input-libinput-0.4.0 - Linux input driver based on libinput
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2014-12-14 14:02 UTC by Thomas
Modified: 2016-05-29 16:26 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for x11-base/xorg-drivers-1.16 (file_532566.txt,918 bytes, patch)
2014-12-14 14:02 UTC, Thomas
Details | Diff
x11-drivers/xf86-input-libinput-0.4.0.ebuild (xf86-input-libinput-0.4.0.ebuild,425 bytes, text/plain)
2014-12-14 14:04 UTC, Thomas
Details
xf86-input-libinput-0.4.0.ebuild (xf86-input-libinput-0.4.0.ebuild,487 bytes, text/plain)
2014-12-14 15:04 UTC, Thomas
Details
xf86-input-libinput-0.4.0.ebuild (xf86-input-libinput-0.4.0.ebuild,435 bytes, text/plain)
2014-12-15 13:55 UTC, Thomas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas 2014-12-14 14:02:42 UTC
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
Comment 1 Thomas 2014-12-14 14:04:55 UTC
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).
Comment 2 Thomas 2014-12-14 15:04:48 UTC
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 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-12-15 12:27:24 UTC
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
Comment 4 Thomas 2014-12-15 13:55:24 UTC
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). :)
Comment 5 Stefan G. Weichinger 2014-12-16 11:57:23 UTC
Starting to "play" with this and wayland.
May I use INPUT_DEVICES="evdev libinput" as well?
With "normal" Xorg or only Wayland?
Comment 6 Stefan G. Weichinger 2014-12-16 12:04:04 UTC
(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!
Comment 7 Thomas 2014-12-16 12:07:48 UTC
(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.
Comment 8 Thomas 2014-12-16 12:08:27 UTC
(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. :)
Comment 9 Thomas 2015-01-29 18:04:30 UTC
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.
Comment 10 darkbasic 2015-02-04 14:45:55 UTC
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
Comment 11 Chí-Thanh Christopher Nguyễn gentoo-dev 2015-02-04 16:52:14 UTC
+*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 ?
Comment 12 C. Wijtmans 2016-05-29 14:02:12 UTC
what is the status of this? There is no libinput useflag in xorg-drivers.
Comment 13 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-05-29 16:26:39 UTC
(In reply to C.J. Wijtmans from comment #12)
There is, but the flag is currently masked until bug 538828 is fixed.