Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Replacing synaptics with libinput
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
BrummieJim
l33t
l33t


Joined: 22 Jul 2005
Posts: 642

PostPosted: Thu Jul 14, 2016 7:29 pm    Post subject: Replacing synaptics with libinput Reply with quote

Hi,
I'm having lots of problems with random clicking when typing. I saw thiis on an Arch site and they recommend moving to libinput.
https://wiki.archlinux.org/index.php/Touchpad_Synaptics#Disable_touchpad_while_typing

Is this as simple as changing make.conf INPUT_DEVICES synaptics option to libinput? Has anyone done this and noticed an improvement?

Thanks,
James
_________________
Intel 2.2 Core 2 Duo, 4Gb Ram, 320GB Sata Drive and Nvidia card.
Back to top
View user's profile Send private message
fpemud
Apprentice
Apprentice


Joined: 15 Feb 2012
Posts: 264

PostPosted: Fri Jul 15, 2016 8:58 am    Post subject: Reply with quote

i'm interested in this too.
unfortunately this arch wiki page doesnot say any detail on this
Back to top
View user's profile Send private message
xaviermiller
Administrator
Administrator


Joined: 23 Jul 2004
Posts: 7898
Location: ~Brussels - Belgique

PostPosted: Fri Jul 15, 2016 9:12 am    Post subject: Reply with quote

Hi!,

You can also start syndaemon, which can disable your touchpad while you are typing.
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
BrummieJim
l33t
l33t


Joined: 22 Jul 2005
Posts: 642

PostPosted: Mon Jul 18, 2016 7:25 pm    Post subject: Reply with quote

That's the approach I took, I wrote a script with the syndaemon command in it, and had kde execute it. Not entirely successful, so I'd like to start down the libinput route if anyone has any ideas?

Thanks
James
_________________
Intel 2.2 Core 2 Duo, 4Gb Ram, 320GB Sata Drive and Nvidia card.
Back to top
View user's profile Send private message
gruftie
Apprentice
Apprentice


Joined: 24 Sep 2002
Posts: 182

PostPosted: Sat Jul 30, 2016 8:57 am    Post subject: Reply with quote

I want to switch to libinput too, so I removed the "synaptics" USE flag and added "libinput" instead.
Also I set INPUT_DEVICES="libinput" in make.conf. But somehow this leads to:

Code:
emerge -pv xorg-drivers

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] x11-base/xorg-drivers-1.18-r1::gentoo  INPUT_DEVICES="-acecad -aiptek -elographics -evdev* -fpit -hyperpen -joystick -keyboard (-libinput) -mouse -mutouch -penmount -synaptics* -tslib -vmmouse -void -wacom*" VIDEO_CARDS="nvidia -amdgpu -apm -ast -chips -cirrus -dummy -epson -fbdev -fglrx (-freedreno) (-geode) -glint -i128 (-i740) -intel -mach64 -mga -neomagic -nouveau -nv (-omap) (-omapfb) -qxl -r128 -radeon -radeonsi -rendition -s3 -s3virge -savage -siliconmotion -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx (-tegra) -tga -trident -tseng -vesa -via -virtualbox -vmware (-voodoo)" 0 KiB


I don't know what disables "libinput" here, any hints?

emerge --info:

Code:
Portage 2.3.0 (python 2.7.12-final-0, default/linux/amd64/13.0/desktop/gnome, gcc-5.4.0, glibc-2.23-r2, 4.6.4-gentoo x86_64)
=================================================================
System uname: Linux-4.6.4-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_M_640_@_2.80GHz-with-gentoo-2.2
KiB Swap:   10234900 total,  10234900 free
Timestamp of repository gentoo: Sat, 30 Jul 2016 08:30:01 +0000
sh bash 4.3_p46
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash:          4.3_p46::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0-r1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.6.1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2-r1::gentoo
sys-apps/openrc:          0.21.2::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.10.3-r2::gentoo, 1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

steam-overlay
    location: /usr/local/portage/layman/steam-overlay
    masters: gentoo
    priority: 0

ikelos
    location: /usr/local/portage/layman/ikelos
    masters: gentoo
    priority: 1

mozilla
    location: /usr/local/portage/layman/mozilla
    masters: gentoo
    priority: 2

overlay
    location: /usr/local/overlay
    masters: gentoo
    priority: 3

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 4

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -O2"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://gentoo.inode.at/source/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gentoo.inode.at/ http://mirror.uni-c.dk/pub/gentoo/ http://85.25.128.62"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="64bit X a52 aac aacs aalib acl acpi alsa amd64 analyzers apache2 apng artworkextra aspell audacious authdaemond autoipd automount avahi avi bash-completion bcmath berkdb bluetooth bluray bmsc bonjour branding bzip2 cairo cdda cdr cgi cli clutter colord context cpudetection cpumining cracklib crypt ctype cups curl dba dbus dconf deprecated device-mapper dga discouraged dlloader dlz dri dri3 dts dvb dvd dvdr dvdread egl emboss emerald enca encode evdev evo examples exif fam fasttrack fbcon ffmpeg fftw filter firefox flac flash fontconfig fpm freerdp freetype ftp g3dvl gb gconf gd gdbm gif gimp glamor gles2 glitz gmp gnome gnome-keyring gnome-online-accounts gnutella gnutls goom gphoto2 gpm graphicsmagick gstreamer gtk gtk3 gtkhtml gtkstyle guile guionly i18n iconv icu id3tag imlib inotify input_uvc introspection ipv6 ithreads java jpeg jpeg2k kms lame lcms lensfun libburn libffi libinput libmpeg2 libnotify libsecret libv4l2 libwww lightning mad matroska mdnsresponder-compat milter minizip mjpeg mmx mmxext mng modemmanager modules motif mozilla mozpango mozsvg mp3 mp4 mp4live mpeg mpeg2 mpeg4 mplayer msn multilib mysql mysqli nautilus ncurses network networking networkmanager nls nptl nptlonly nsplugin nss nvidia nxclient office ogg oggvorbis ogm old-output opencl opendoc openexr opengl openmp output_http pam pango pcre pcre16 pdf pdflib pdo perl pidgin pipelight player playlist png policykit posix ppds program_options pulseaudio pwdb python qt-static quicktime quvi raw rdesktop rdynamic readline regex replytolist resolvconf samba samba4 sane savedconfig sdl seccomp sendto sensord session simplexml slang slp smbclient smime smp snmp soap sound spamassassin spell sse sse2 ssh ssl staging startup-notification svg systemd tcpd tetex theora thread threads thumbnail tiff tokenizer tools totem truetype udev udisks unicode unsupported upcall upnp upnp-av upower usb utf8 utils uvm vaapi vala vcd vdpau vmware-tools vmware_guest_linux vmware_guest_winPre2k vmware_guest_windows vorbis webdav wifi winbind www wxwidgets x264 xattr xcb xine xinerama xml xml2 xmlreader xmlrpc xmlwriter xmms xmp xpm xscreensaver xsl xslt xulrunner xv xvid zenmap zeroconf zip zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel usb-audio" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias access_compat unixd authn_core authz_core socache_shmcb cgi" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" KERNEL="linux" L10N="de" LCD_DEVICES="lcd2usb" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" LIRC_DEVICES="userspace" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-0" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Back to top
View user's profile Send private message
irafiral
n00b
n00b


Joined: 31 Jan 2005
Posts: 29
Location: Germany

PostPosted: Sat Jul 30, 2016 2:42 pm    Post subject: Reply with quote

add
x11-base/xorg-drivers -input_devices_libinput
to
/etc/portage/profile/package.use.mask
Back to top
View user's profile Send private message
gruftie
Apprentice
Apprentice


Joined: 24 Sep 2002
Posts: 182

PostPosted: Sat Jul 30, 2016 3:16 pm    Post subject: Reply with quote

@irafiral,

thanks, that did it :)
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2410
Location: イタリアのロディで

PostPosted: Tue Aug 30, 2016 5:13 pm    Post subject: Reply with quote

Works it better than synaptics?
Better than syndaemon?

Many thanks for your answer.
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5592

PostPosted: Wed Aug 31, 2016 1:22 pm    Post subject: Reply with quote

libinput seems to handle pointer movement much better than synaptics - the pointer doesn't jump around at all when doing a multi-finger tap.

The downside is it doesn't recognize the TapButton{1..3} options, and it doesn't have multi-finger (middle/right click) drag support.

I wouldn't recommend it for touchpads until they fix those bugs, for other input it works fine.
Back to top
View user's profile Send private message
Rayan
n00b
n00b


Joined: 01 Jul 2012
Posts: 5

PostPosted: Wed Dec 28, 2016 8:59 pm    Post subject: Reply with quote

Ant P. wrote:
libinput seems to handle pointer movement much better than synaptics - the pointer doesn't jump around at all when doing a multi-finger tap.

The downside is it doesn't recognize the TapButton{1..3} options, and it doesn't have multi-finger (middle/right click) drag support.

I wouldn't recommend it for touchpads until they fix those bugs, for other input it works fine.


As in =x11-drivers/xf86-input-libinput-0.19.0 and =dev-libs/libinput-1.4.2 (current amd64 stable), tap buttons 1, 2 and 3 work perfectly fine for me.
Two fingers tap is right click, three fingers tap is middle click and tap drag is also working.
Back to top
View user's profile Send private message
haarp
Guru
Guru


Joined: 31 Oct 2007
Posts: 516

PostPosted: Wed Dec 28, 2016 9:04 pm    Post subject: Reply with quote

Libinput mostly works well for me, much better than synaptics at least. This is on a Thinkpad W530.

Tapping did have a noticeable delay, so I changed #define DEFAULT_TAP_MOVE_THRESHOLD TP_MM_TO_DPI_NORMALIZED(3) to 1.

Three-finger tapping works, but isn't very reliable.

There exist gestures for it - https://github.com/bulletmark/libinput-gestures - But I couldn't get it to recognize any of them. I'm unsure why. Evidently my touchpad supports three fingers, but not for swishing motions? Anyone have success with that?
Back to top
View user's profile Send private message
Rayan
n00b
n00b


Joined: 01 Jul 2012
Posts: 5

PostPosted: Wed Dec 28, 2016 9:17 pm    Post subject: Reply with quote

Quote:
There exist gestures for it - https://github.com/bulletmark/libinput-gestures - But I couldn't get it to recognize any of them. I'm unsure why. Evidently my touchpad supports three fingers, but not for swishing motions? Anyone have success with that?

Yes this is what I'm using at the moment.
I could recognise gestures. I'm debugging them using "libinput-gestures -v" and they play nicely. The problem I had with KDE (plasma5) was that "_internal ws_*" didn't seem to be recognised. So I had to cheat with.xdotool.

I've just started documenting it. Feel free to contribute:
https://wiki.gentoo.org/wiki/Libinput
Back to top
View user's profile Send private message
Maffblaster
Developer
Developer


Joined: 01 May 2007
Posts: 64
Location: Spokane, Washington, USA

PostPosted: Tue Jan 10, 2017 10:43 pm    Post subject: Reply with quote

Nice work, Rayan. I have taken the liberty to improve the formatting for the article. Glad you created it; feel free to create more articles like this in the future. They are very helpful for newcomers to Gentoo.

https://wiki.gentoo.org/wiki/Libinput
_________________
Lets make Gentoo better together.
Wiki: https://wiki.gentoo.org/wiki/User:Maffblaster
Blog: http://dev.gentoo.org/~maffblaster/
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Wed Jan 11, 2017 7:44 am    Post subject: Reply with quote

@all

as a newb I'd like to thank developers, and upstream, for making this work with systemd-udev ... linux rocks!

best ... khay
Back to top
View user's profile Send private message
Rayan
n00b
n00b


Joined: 01 Jul 2012
Posts: 5

PostPosted: Wed Jan 11, 2017 9:24 am    Post subject: Reply with quote

Maffblaster wrote:
Nice work, Rayan. I have taken the liberty to improve the formatting for the article. Glad you created it; feel free to create more articles like this in the future. They are very helpful for newcomers to Gentoo.

https://wiki.gentoo.org/wiki/Libinput


Thank you so much for such nice updates! I have to say, it's hard to keep up with all the wiki formatting guidelines, it can be discouraging at first.
Back to top
View user's profile Send private message
saboya
Guru
Guru


Joined: 28 Nov 2006
Posts: 434
Location: Brazil

PostPosted: Wed Jan 11, 2017 10:27 am    Post subject: Reply with quote

Transitioning was really simple for me. I recommend using the latest libinput version in the tree, even if's unstable. There are big improvements each new version.
Back to top
View user's profile Send private message
Apollo_Futurae
n00b
n00b


Joined: 17 May 2005
Posts: 18
Location: Amsterdam, Netherlands

PostPosted: Wed Feb 22, 2017 11:45 am    Post subject: Reply with quote

After the switch to libinput, my multiseat setup regressed to exhibit an old problem, where some keyboard presses have unwanted behaviour. In particular, sometimes my Ctrl-C will kill the other seat's X server :( .

I guess this is because libinput doesn't recognise the GrabDevice option, which I set in xorg.conf.d for evdev. I've looked at the libinput man page, but couldn't find anything relevant. What could be the libinput equivalent of this setting?
Back to top
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1635
Location: United Kingdom

PostPosted: Wed Feb 22, 2017 1:29 pm    Post subject: Reply with quote

I don't use libinput myself, but noted this comment about it by asturm in another thread:

https://forums.gentoo.org/viewtopic-p-8033362.html#8033362

asturm wrote:
Plasma users have always set their keyboard layout in systemsettings, even though the default is to just take the system default.

If you recently switched to libinput, setting the layout in xorg.conf does not work anymore and you have to take to systemsettings.

_________________
Clevo W230SS: amd64 OpenRC elogind nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 OpenRC elogind xf86-video-ati. Dual boot Win 7 Pro 64-bit.
KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum