From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from a7-10.smtp-out.eu-west-1.amazonses.com (a7-10.smtp-out.eu-west-1.amazonses.com [54.240.7.10]) by mx.groups.io with SMTP id smtpd.web11.4392.1675847167138206091 for ; Wed, 08 Feb 2023 01:06:07 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@ipxe.org header.s=cphpx6z2rfcgehlykjjh3gknqe3hsoe2 header.b=ORgz5MMn; spf=pass (domain: eu-west-1.amazonses.com, ip: 54.240.7.10, mailfrom: 0102018630466504-2ff97024-e158-48ea-9ea5-cc1e11d20bcc-000000@eu-west-1.amazonses.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=cphpx6z2rfcgehlykjjh3gknqe3hsoe2; d=ipxe.org; t=1675847165; h=Message-ID:Date:MIME-Version:Subject:To:References:From:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=3+1m17U8wEYabZam8pTF3fGqxhxaqUMEww9IdIpO7F0=; b=ORgz5MMnEYeB9Lf1aBnevzbusobdw7XG9Ka/RWMk1OTF9TXqPcW9FqU3mrdaHVyz fjqmYg+vFOLuMpUKI7QFGOTxBPk5c7wkCjtsMgxaRENHJzbYxvc9sneEZaFIkfLY12u u27OZQNmHtRclMxRLb9h8b4Ix7Sk2Su2B9mq7l+pg+XwcGO/5UNXaZLs8zHW4IQC2im rfgsWXtFEmeqkavnhPLMB4lSVW4OKLzFW0kl6jKLEEzL0zf6QYw7YZp/uZHAqgr5XSd v9CXCyYyJ31ER8/X0+XnW5eaWCNjiR51WZzDnBuAmqz3MuOpSZUpQtRqlOShD99cJeM RFwsCsVeoQ== DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ihchhvubuqgjsxyuhssfvqohv7z3u4hn; d=amazonses.com; t=1675847165; h=Message-ID:Date:MIME-Version:Subject:To:References:From:In-Reply-To:Content-Type:Content-Transfer-Encoding:Feedback-ID; bh=3+1m17U8wEYabZam8pTF3fGqxhxaqUMEww9IdIpO7F0=; b=XGYz+FIdHGWgYN1ptFt71bj6WGPB2RTZvU/V8y16qPP8Ym/2w3dG5wrK3pkTtAxG 9NvcBx/6U/sivdWziGWtqrmhMK4h0ns49g0yMrFitKnjFH7xXTunf2A2I7sphhd4/et TYGN62HsN0H16otjC52r6GBA4jgAwGgY6tgLbR1I= Message-ID: <0102018630466504-2ff97024-e158-48ea-9ea5-cc1e11d20bcc-000000@eu-west-1.amazonses.com> Date: Wed, 8 Feb 2023 09:06:05 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [edk2-devel] Graphic Output on qemu To: devel@edk2.groups.io, alibanejad1376@gmail.com, "Paul, Bill" References: <6558368.1D856uYhSO@core> From: "Michael Brown" In-Reply-To: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on blyat.fensystems.co.uk Feedback-ID: 1.eu-west-1.fspj4M/5bzJ9NLRzJP0PaxRwxrpZqiDQJ1IF94CF2TA=:AmazonSES X-SES-Outgoing: 2023.02.08-54.240.7.10 Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 08/02/2023 08:03, Alireza Banejad wrote: > Below is how I use the HandleProtocol function: > >   Status = gBS->HandleProtocol ( >                   gST->ConsoleOutHandle, >                   &gEfiGraphicsOutputProtocolGuid, >                   (VOID **)&GraphicsOutput >                   ); You are querying only the ConsoleOutHandle, which is not necessarily where the GOP will be installed. Use LocateProtocol() to find the protocol instance instead: Status = gBS->LocateProtocol(&gEfiGraphicsOutputProtocolGuid, NULL, (VOID **)&GraphicsOutput); HTH, Michael