From owner-freebsd-hackers@freebsd.org Mon Feb 18 17:01:09 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BD8AC14E388A; Mon, 18 Feb 2019 17:01:09 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9FC8071D53; Mon, 18 Feb 2019 17:01:08 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.15.2/8.15.2) with ESMTPS id x1IH15uv003342 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 18 Feb 2019 09:01:05 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id x1IH155O003341; Mon, 18 Feb 2019 09:01:05 -0800 (PST) (envelope-from sgk) Date: Mon, 18 Feb 2019 09:01:05 -0800 From: Steve Kargl To: Warner Losh Cc: FreeBSD Current , "freebsd-hackers@freebsd.org" Subject: Re: What is evdev and autoloading? Message-ID: <20190218170105.GD2912@troutmask.apl.washington.edu> Reply-To: sgk@troutmask.apl.washington.edu References: <20190217180323.GA95686@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.2 (2019-01-07) X-Rspamd-Queue-Id: 9FC8071D53 X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [4.07 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; HAS_REPLYTO(0.00)[sgk@troutmask.apl.washington.edu]; TO_DN_SOME(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; RCVD_IN_DNSWL_MED(-0.20)[21.76.95.128.list.dnswl.org : 127.0.11.2]; MX_GOOD(-0.01)[cached: troutmask.apl.washington.edu]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.07)[ip: (0.14), ipnet: 128.95.0.0/16(0.20), asn: 73(0.09), country: US(-0.07)]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:73, ipnet:128.95.0.0/16, country:US]; SUBJECT_ENDS_QUESTION(1.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.83)[0.832,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[washington.edu]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.88)[0.879,0]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.59)[0.594,0]; R_SPF_NA(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Feb 2019 17:01:10 -0000 On Mon, Feb 18, 2019 at 09:35:26AM -0700, Warner Losh wrote: > On Sun, Feb 17, 2019 at 3:52 PM Steve Kargl < > sgk@troutmask.apl.washington.edu> wrote: > > > Anyone have insight into what evdev is? There appears to > > be no manual page. When I reboot a system with custom > > kernel, the system is autoloading evdev.ko, uhid.ko, and > > wmt.ko. I do not need nor what these modules loaded. > > How does one prevent this autoloading? > > > > > This thread has taken a weird turn, so I went back to the original post. > > When do these things get loaded? Is it when you start up X11? Or is it > being brought in by devmatch? If it is being brought in by x11, there's > likely an x11 config that you'll need to avoid them (but that will reduce > functionality). If it is devmatch, then you can add them to the black list > and have them not load them. > I think it is devmatch (or at least devd.conf related). I have a wireless USB logitch mouse. If I unplug the dongle from its port and reboot, evdev.ko, uhid.ko, and wmt.ko do not get loaded. When I plug in the dongle, the 3 get loaded. I can kldunload wmt and evdev, but as soon as the mouse is moved both are reloaded. ums(4) does not mention any of these devices as a requirement. wmt(4) says it only works for touchscreen. This laptop pre-dates touchscreens, so loading the module is simply wasteful. There is no evdev(4), so can't determine what it is or does. -- Steve