From nobody Tue Jun 28 10:00:10 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 6839D87A6D6 for ; Tue, 28 Jun 2022 10:01:22 +0000 (UTC) (envelope-from vladimir@kondratyev.su) Received: from corp.infotel.ru (corp.infotel.ru [195.170.219.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4LXKqj308zz3CKR for ; Tue, 28 Jun 2022 10:01:21 +0000 (UTC) (envelope-from vladimir@kondratyev.su) Received: from corp (corp.infotel.ru [195.170.219.3]) by corp.infotel.ru (Postfix) with ESMTP id 3957A360224 for ; Tue, 28 Jun 2022 13:01:19 +0300 (MSK) X-Virus-Scanned: amavisd-new at corp.infotel.ru Received: from corp.infotel.ru ([195.170.219.3]) by corp (corp.infotel.ru [195.170.219.3]) (amavisd-new, port 10024) with ESMTP id sd-tEzpO_3B1 for ; Tue, 28 Jun 2022 13:00:42 +0300 (MSK) Received: from mail.cicgroup.ru (unknown [195.170.219.74]) by corp.infotel.ru (Postfix) with ESMTP id 901DF35F8FD for ; Tue, 28 Jun 2022 13:00:42 +0300 (MSK) Received: from mail.cicgroup.ru (localhost [127.0.0.1]) by mail.cicgroup.ru (Postfix) with ESMTP id 568B842211F for ; Tue, 28 Jun 2022 13:00:41 +0300 (MSK) Received: from mail.cicgroup.ru ([127.0.0.1]) by mail.cicgroup.ru (mail.cicgroup.ru [127.0.0.1]) (amavisd-new, port 10024) with SMTP id 4g32ybQbk35A for ; Tue, 28 Jun 2022 13:00:38 +0300 (MSK) Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail.cicgroup.ru (Postfix) with ESMTPA id D83B142211C for ; Tue, 28 Jun 2022 13:00:38 +0300 (MSK) Message-ID: <468d9dad-bd67-f6c7-8b2a-e9e4fa738f64@kondratyev.su> Date: Tue, 28 Jun 2022 13:00:10 +0300 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: RES: iichid/hms keyboard/mouse wrongly reattached to uhid/ums Content-Language: en-US To: freebsd-current@freebsd.org References: <8674be8f-b4fb-008d-9318-2184285b46a8@kondratyev.su> From: Vladimir Kondratyev In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4LXKqj308zz3CKR X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of vladimir@kondratyev.su has no SPF policy when checking 195.170.219.3) smtp.mailfrom=vladimir@kondratyev.su X-Spamd-Result: default: False [-1.35 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; NEURAL_HAM_MEDIUM(-0.35)[-0.347]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[kondratyev.su]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-current]; R_SPF_NA(0.00)[no SPF record]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8299, ipnet:195.170.192.0/19, country:RU]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 28.06.2022 09:59, Ivan Quitschal wrote: > > Hi Vladimir / All, > > Just a question in case you guys know how. > Problem is fixed , nothing about that, but after the keyboard is detached and reattached , I > always have to do another "kbdcontrol -r fast" myself for it to get back to the speed I use. > I've tried to call this command from within devd.conf alongside moused, but no success. > Any ideas ? > May be DE overrides repeat rate for you? Anyway, it is possible to change repeat rate through evdev interface. Following snippet of code illustrates a way to do that: #include #include #include #include #include #include void usage(void) { printf("usage: eviocresp /dev/input/event0\n"); } int main(int argc, char** argv) { int fd = 0; int rep[2] = {0, 0}; if (argc < 2) { usage(); exit(0); } if ((fd = open(argv[1], O_RDWR)) < 0) { perror("unable to access file, exiting"); exit(1); } /* get current auto-repeat args. */ if (ioctl(fd, EVIOCGREP, rep)) { perror("unable to set delay and repeat rate for input devices"); exit(1); } /* set auto-repeat rate as 0. */ rep[1] = 0; if (ioctl(fd, EVIOCSREP, rep)) { perror("unable to set delay and repeat rate for input devices"); exit(1); } printf("rep[0]:%d;rep[1]:%d\n", rep[0], rep[1]); close(fd); } -- WBR Vladimir Kondratyev