| Message ID | 20250915104705.937780-16-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757933294; bh=LWmCQvZ019ECfs1JFCkDnPnDz0ugCErvblOhEUeDCJI=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=UtMT262sactXDT8Rnbce9g7xmOW+oMpMfKvyUDgWrCxqe8sjYUZRo9hHxAyZMhh6H I6hHamniL+/micSVO6oidHGYP1ahtUVsvnhBIDq2EpSXRk7SMFcCNVV6AWE0y4sQ94 Cc6NbHCZWEZO4omAVjUufmabcz5vAiL4P359oYjdPn3RWAedCdlmGIxMoCAE3HLU5G i9BwgW44o180rqWcL7Bbe5wGnNC+u/rxQDCo+m7wCcgPgboANP285xLQ8XVajAtOps MQyuZJFzurjJOUngGXDLHkI8iW0EtAZOzdDvEE8BK7UKGLXSq/dbeOt6tYEneR+pbC WQ1jhGt3uGswQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 33B4367BAF for <u-boot-concept@u-boot.org>; Mon, 15 Sep 2025 04:48:14 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id ne6BVoFQH_tX for <u-boot-concept@u-boot.org>; Mon, 15 Sep 2025 04:48:14 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757933294; bh=LWmCQvZ019ECfs1JFCkDnPnDz0ugCErvblOhEUeDCJI=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=UtMT262sactXDT8Rnbce9g7xmOW+oMpMfKvyUDgWrCxqe8sjYUZRo9hHxAyZMhh6H I6hHamniL+/micSVO6oidHGYP1ahtUVsvnhBIDq2EpSXRk7SMFcCNVV6AWE0y4sQ94 Cc6NbHCZWEZO4omAVjUufmabcz5vAiL4P359oYjdPn3RWAedCdlmGIxMoCAE3HLU5G i9BwgW44o180rqWcL7Bbe5wGnNC+u/rxQDCo+m7wCcgPgboANP285xLQ8XVajAtOps MQyuZJFzurjJOUngGXDLHkI8iW0EtAZOzdDvEE8BK7UKGLXSq/dbeOt6tYEneR+pbC WQ1jhGt3uGswQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 1C3F967B44 for <u-boot-concept@u-boot.org>; Mon, 15 Sep 2025 04:48:14 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757933292; bh=MLNhkVSi3tyduv4ECWce/5yenNTrkvKCNllnTdtk7L4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GF8fx8fSHaGGsjPrrwewi637EWx1WMEBb1vDVUbS5MqIlVQORV+0v17GFUXrkx5Dq mg6+IPxbv7M3VVoecqxp8NXUQ1Sau1HUaMO2f2vb2oAhgfGZXlDzLqns0AtsDmlDyv WaRNuKjQbfc4DKbsJOCtK0Cx7y7Jh+LNMEh5CNpGCXzmkpqMFbhq7kx7A3sceJWJcV fr+vdAtDe83JD8D/cjPHSebUifb4DnBOy/OM/vCu9PKj2GI8VVCS3kkW6PyUZeWmAu Jvf8DmdRb9CJhPeQWJcjcw9C3luHoYA59dHVjt3TyRoFe4AEndVtguaUVH5+prNO+8 l1xrfvYPHuWKw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id B6D5B67BAC; Mon, 15 Sep 2025 04:48:12 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id qJlwYus1EEAo; Mon, 15 Sep 2025 04:48:12 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757933290; bh=58+DpoG4PjDiwc+EGF5mmrO1T+A9cZdBASddUQpy/zI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LoflDJBTtzCRiuqCa1kOaf4vxqzr92KoXVlEvcv60mVpl7Uet72JVF9IiKNtakIjd B3bSSyhDmcgqQdzbHZdDhZJyhkflyKt3zHOZKcIgr5QeEaO6c41zoDYyXKs4tI/aN7 sNAAjgyKvlrLrtm7eMSywnpwvf2vFWnP69B4wXHSB1ML9Akoi6it64hhsqWcOwDH5J cBUrXUxKNjmHOMaUhqTDjv2z4BTGbURenmfwYXXtDz8lXhjUClLYjfVz2US9DYSNbs uCxLh3YDp6cWHduj2yDWAB/hjL6QRC4vxdrawWaxO6mprHvHHciZAvR+n77KpFr/EJ J3ErtIZGolArA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 618C967BB0; Mon, 15 Sep 2025 04:48:10 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Mon, 15 Sep 2025 04:46:58 -0600 Message-ID: <20250915104705.937780-16-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250915104705.937780-1-sjg@u-boot.org> References: <20250915104705.937780-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 45Y37RDQKDXKUUGWX3KZNBQYIWJXPPWX X-Message-ID-Hash: 45Y37RDQKDXKUUGWX3KZNBQYIWJXPPWX X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 17/17] qemu: Enable the mouse List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/45Y37RDQKDXKUUGWX3KZNBQYIWJXPPWX/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
mouse: Provide some support for using a mouse
|
|
Commit Message
Simon Glass
Sept. 15, 2025, 10:46 a.m. UTC
From: Simon Glass <sjg@chromium.org> Enable the mouse when running on QEMU, for ARM and x86. This requires 'usb start' on x86. For ARM, the mouse does not work, perhaps related to the fact that the display does not work either. Signed-off-by: Simon Glass <sjg@chromium.org> --- drivers/input/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Comments
Am 15. September 2025 12:46:58 MESZ schrieb Simon Glass <sjg@u-boot.org>: >From: Simon Glass <sjg@chromium.org> > >Enable the mouse when running on QEMU, for ARM and x86. > >This requires 'usb start' on x86. For ARM, the mouse does not work, >perhaps related to the fact that the display does not work either. > >Signed-off-by: Simon Glass <sjg@chromium.org> Libvirt typically uses virtio-tablet as input device. The spice terminal does not work with a mouse emulation. At least under Wayland. Best regards Heinrich >--- > > drivers/input/Kconfig | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/drivers/input/Kconfig b/drivers/input/Kconfig >index 4bc94de0a0a..7b34902dd7c 100644 >--- a/drivers/input/Kconfig >+++ b/drivers/input/Kconfig >@@ -104,7 +104,7 @@ config TWL4030_INPUT > config MOUSE > bool "Support for mice and other pointing devices" > depends on INPUT >- default y if SANDBOX || EFI_APP >+ default y if SANDBOX || EFI_APP || MACH_QEMU > help > This allows U-Boot to access mouse input, typically needed for > graphics boot menus and the like. The driver can provide mouse >@@ -113,6 +113,7 @@ config MOUSE > > config USB_MOUSE > bool "USB mouse support" >+ default y if MACH_QEMU > help > This enables using a USB mouse to control a feature in U-Boot, > typically a boot menu. The driver uses the USB boot interface of
Hi Heinrich, On Mon, 15 Sept 2025 at 05:30, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote: > > Am 15. September 2025 12:46:58 MESZ schrieb Simon Glass <sjg@u-boot.org>: > >From: Simon Glass <sjg@chromium.org> > > > >Enable the mouse when running on QEMU, for ARM and x86. > > > >This requires 'usb start' on x86. For ARM, the mouse does not work, > >perhaps related to the fact that the display does not work either. > > > >Signed-off-by: Simon Glass <sjg@chromium.org> > > > Libvirt typically uses virtio-tablet as input device. The spice terminal does not work with a mouse emulation. At least under Wayland. OK, I sent a driver for that. To combine it with keyboard (which it seems is possible) will need some more effort. Regards, Simon > > Best regards > > Heinrich > > > >--- > > > > drivers/input/Kconfig | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > >diff --git a/drivers/input/Kconfig b/drivers/input/Kconfig > >index 4bc94de0a0a..7b34902dd7c 100644 > >--- a/drivers/input/Kconfig > >+++ b/drivers/input/Kconfig > >@@ -104,7 +104,7 @@ config TWL4030_INPUT > > config MOUSE > > bool "Support for mice and other pointing devices" > > depends on INPUT > >- default y if SANDBOX || EFI_APP > >+ default y if SANDBOX || EFI_APP || MACH_QEMU > > help > > This allows U-Boot to access mouse input, typically needed for > > graphics boot menus and the like. The driver can provide mouse > >@@ -113,6 +113,7 @@ config MOUSE > > > > config USB_MOUSE > > bool "USB mouse support" > >+ default y if MACH_QEMU > > help > > This enables using a USB mouse to control a feature in U-Boot, > > typically a boot menu. The driver uses the USB boot interface of >
diff --git a/drivers/input/Kconfig b/drivers/input/Kconfig index 4bc94de0a0a..7b34902dd7c 100644 --- a/drivers/input/Kconfig +++ b/drivers/input/Kconfig @@ -104,7 +104,7 @@ config TWL4030_INPUT config MOUSE bool "Support for mice and other pointing devices" depends on INPUT - default y if SANDBOX || EFI_APP + default y if SANDBOX || EFI_APP || MACH_QEMU help This allows U-Boot to access mouse input, typically needed for graphics boot menus and the like. The driver can provide mouse @@ -113,6 +113,7 @@ config MOUSE config USB_MOUSE bool "USB mouse support" + default y if MACH_QEMU help This enables using a USB mouse to control a feature in U-Boot, typically a boot menu. The driver uses the USB boot interface of