From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A25D4C433DB for ; Mon, 21 Dec 2020 12:41:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5A025224D3 for ; Mon, 21 Dec 2020 12:41:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726026AbgLUMkw (ORCPT ); Mon, 21 Dec 2020 07:40:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725807AbgLUMkw (ORCPT ); Mon, 21 Dec 2020 07:40:52 -0500 Received: from gofer.mess.org (gofer.mess.org [IPv6:2a02:8011:d000:212::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D885C0613D6 for ; Mon, 21 Dec 2020 04:40:11 -0800 (PST) Received: by gofer.mess.org (Postfix, from userid 1000) id 3CEF5C638A; Mon, 21 Dec 2020 12:40:09 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mess.org; s=2020; t=1608554409; bh=DDMO1CPqYNQPalknJKs1UpjmlJAHsh8Yt0nCfzgP1b0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kMI2IU8D6U+PT7DApy7t1ybqhgqR+TSkN0XZ3HblVfg+SP9n8Mpz/E+S2r7W0b7St 8IuZXz/TQmhbeLsN3jGJemzS4qNDg6pgDLhn6oGkSBbdVocs9d72l3L5UhlTWOSUcn itRsqALhpHWy7XA+lpD8tXruXDRfceFtia9rX8eYjmfrOZuSwurbnvstI7jbwMwMHd ShjJuIOFh2wWpjJlEyxRl+biWOdR68OmKB3yIDeY13T5uI4rm0jmwQxt2pi+yC6fa1 1oo7ytbRX4VaF0D+l1KJsWDKS+d/Cybgu+pHTAXOa8KVDxrSPpFsYB1/I3IKBzr7yk MXXDYQU17xn5g== Date: Mon, 21 Dec 2020 12:40:09 +0000 From: Sean Young To: Jesus Cc: "linux-media@vger.kernel.org" Subject: Re: Help with harmony remote Message-ID: <20201221124009.GA29869@gofer.mess.org> References: <20201218100710.GA29317@gofer.mess.org> <20201219092703.GA14414@gofer.mess.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Hi, First of all, your email is unreadable. It is very to see what I wrote and what you wrote. Please fix this. On Sun, Dec 20, 2020 at 07:24:28PM +0000, Jesus wrote: > Hi > > ________________________________ > De: Sean Young > Enviado: sábado, 19 de diciembre de 2020 9:27 > Para: Jesus > Cc: linux-media@vger.kernel.org > Asunto: Re: Help with harmony remote > > Hi, > > On Sat, Dec 19, 2020 at 01:56:50AM +0000, Jesus wrote: > > It's a Universal Harmony 350 > > > > This one: > > https://support.myharmony.com/en-us/350 > > https://assets.logitech.com/assets/54199/gallery-1.png > > > > It's programable, the remote selected for the mouse is named Media Center PC SE i believe is the mce, and for the other functions of the pc part I use a remote named Intel Media Player I believe is mce too but diferent set of keys selectable > > I've managed to make work every button I use in the intel media player remote, for the Media Center PC SE, I only use the mouse part thats what I have tested, the mouse movement works, the left and right click are the ones not working > > That's interesting, I did not know there was any other device that generates > this IR. > > > Some recording of the ir using "ir-ctl -r" would be useful too. > > > > this is the output for the left click: > > > > +2800 -200 +300 -300 +300 -250 +300 -300 +600 -600 +300 -400 +200 -350 +300 -200 +350 -300 +300 -300 +600 -300 +300 -600 +300 -250 +400 -200 +400 -200 +400 -250 +350 -300 +300 -400 +200 -300 +300 -300 +300 -300 +300 -300 +300 -300 +300 -300 +350 -250 +350 -300 +600 -250 +350 -350 +250 -300 +300 -600 +350 -250 +350 -75800 +2800 -200 +350 -200 +400 -250 +350 -300 +650 -600 +300 -300 +300 -300 +300 -250 +300 -300 +300 -300 +600 -250 +400 -600 +350 -200 +350 -250 +350 -250 +350 -250 +350 -250 +400 -200 +350 -250 +350 -250 +350 -250 +350 -300 +300 -300 +300 -250 +350 -300 +300 -300 +600 -250 +350 -200 +400 -250 +350 -600 +300 -250 +400 -75800 +2800 -200 +350 -200 +400 -250 +300 -250 +700 -550 +350 -200 +350 -250 +350 -250 +350 -250 +300 -350 +550 -250 +400 -600 +300 -300 +250 -300 +300 -300 +300 -350 +300 -250 +400 -250 +350 -250 +350 -400 +200 -350 +300 -300 +300 -300 +300 -250 +350 -200 +400 -250 +650 -200 +400 -250 +350 -250 +350 -600 +300 -300 +300 # timeout 101600 > > Actually, that is the right IR for a left mouse button. > > > > 688888.335099: lirc protocol(mcir2-mse): scancode = 0x3c > > > 688888.335117: event type EV_MSC(0x04): scancode = 0x3c > > > 688888.335117: event type EV_SYN(0x00). > > > 688888.475123: lirc protocol(mcir2-mse): scancode = 0x3c > > > 688888.475142: event type EV_MSC(0x04): scancode = 0x3c > > > 688888.475142: event type EV_SYN(0x00). > > This is also the right scancode. > > I think something else is going on. Please can you do the following: > > echo 'file ir-mce_kbd-decoder.c +p' > /sys/kernel/debug/dynamic_debug/control > > Now press the left mouse button and see what there is in dmesg. > > I hope it says something like: > > rc rc0: mouse: x = 0, y = 0, btns = L > > This is what found in dmesg: > > > [754581.285199] rc rc0: started at state 4 (600us space) > [754581.285202] rc rc0: started at state 3 (267us space) > [754581.285208] rc rc0: started at state 4 (300us pulse) > [754581.285211] rc rc0: started at state 3 (0us pulse) > [754581.285221] rc rc0: started at state 3 (300us space) > [754581.285225] rc rc0: started at state 4 (350us pulse) > [754581.285229] rc rc0: started at state 5 (17us pulse) > [754581.390933] rc rc0: started at state 5 (101600us space) > [754581.390938] rc rc0: mouse data 0x00003c > [754581.390941] rc rc0: mouse: x = 0, y = 0, btns = L I'm guessing you wrote this last thing, it all has the same quotation level. So the mouse press is decoded; the issue is in the delivery. > Please can you test the following patch. > > I applied the patch and this is the output, it didn't worked: > > 292.578486: lirc protocol(mcir2-mse): scancode = 0x3c > 274.264540: event type EV_KEY(0x01) key_down: BTN_MOUSE(0x0110) > 274.264540: event type EV_MSC(0x04): scancode = 0x3c > 274.264540: event type EV_SYN(0x00). > 292.676628: lirc protocol(mcir2-mse): scancode = 0x3c > 292.676647: event type EV_MSC(0x04): scancode = 0x3c > 292.676647: event type EV_SYN(0x00). > 292.816663: lirc protocol(mcir2-mse): scancode = 0x3c > 292.816687: event type EV_MSC(0x04): scancode = 0x3c > 292.816687: event type EV_SYN(0x00). > 293.080537: event type EV_KEY(0x01) key_down: BTN_MOUSE(0x0110) > 293.080537: event type EV_SYN(0x00). > 293.208540: event type EV_KEY(0x01) key_down: BTN_MOUSE(0x0110) > 293.208540: event type EV_SYN(0x00). > 293.336535: event type EV_KEY(0x01) key_down: BTN_MOUSE(0x0110) > 293.336535: event type EV_SYN(0x00). > 293.464540: event type EV_KEY(0x01) key_down: BTN_MOUSE(0x0110) > 293.464540: event type EV_SYN(0x00). This shows that the button press has been decoded, and sent to the input layer. Possibly it is being ignored by libinput. > It didn't change, I'm quite sure I applied the patch correctly, is there a way to know at runtime? You can check uname -r, it should the exact commit if you commited the patch. So how are you loading the mce_keyboard.toml? It should be loaded by putting an entry in /etc/rc_maps.cfg Thanks Sean