How to obtain the display with using ACPI data?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
TYDQSoft
Posts: 11
Joined: Sun Mar 17, 2024 9:11 am
Libera.chat IRC: TYDQSoft

How to obtain the display with using ACPI data?

Post by TYDQSoft »

I was trying to obtain the display framebuffer with using ACPI data or UEFI GOP.
However,I was failed to do this in non-x86_64 architecture qemu virtual machine either using ACPI data or UEFI GOP,especially in riscv64 which don't have both ACPI data and UEFI GOP.
So,How do I obtain the display information and framebuffer with using ACPI data or using UEFI GOP(It is invaild when using non-x86_64 architecture)?
Octocontrabass
Member
Member
Posts: 5623
Joined: Mon Mar 25, 2013 7:01 pm

Re: How to obtain the display with using ACPI data?

Post by Octocontrabass »

Does your machine have a display? You can't get information about a display that doesn't exist.

Have you tried Devicetree? Machines that don't support ACPI usually have Devicetree instead.
TYDQSoft
Posts: 11
Joined: Sun Mar 17, 2024 9:11 am
Libera.chat IRC: TYDQSoft

Re: How to obtain the display with using ACPI data?

Post by TYDQSoft »

Octocontrabass wrote: Thu Dec 26, 2024 4:51 pm Does your machine have a display? You can't get information about a display that doesn't exist.

Have you tried Devicetree? Machines that don't support ACPI usually have Devicetree instead.
I have display which use spice display protocol and virtIOGPU in non-x64 machines.
QEMU virtual Machine doesn't support ACPI in riscv64 but I don't know how to get the device tree in QEMU virtual machine.
Octocontrabass
Member
Member
Posts: 5623
Joined: Mon Mar 25, 2013 7:01 pm

Re: How to obtain the display with using ACPI data?

Post by Octocontrabass »

It depends on how you're booting your kernel.

If you're using UEFI (via OVMF or U-Boot), you'll find the Devicetree using the system table, just like ACPI.
User avatar
zaval
Member
Member
Posts: 660
Joined: Fri Feb 17, 2017 4:01 pm
Location: Ukraine, Bachmut
Contact:

Re: How to obtain the display with using ACPI data?

Post by zaval »

What is your riscv machine firmware? uboot? It doesn't produce GOP for this configuration. No support for diplay or binding it with GOP support or both. Yes, this architecture is so "perspective" only in babblings. In reality, you face an awful "almost nothing supported" mess like what you are trying to deal with. Try looking what it hands to you over system tables. I'm not even sure there is device tree there, which by itself is a yooge hack, capable of only causing pita.
ANT - NT-like OS for x64 and arm64.
efify - UEFI for a couple of boards (mips and arm). suspended due to lost of all the target park boards (russians destroyed our town).
TYDQSoft
Posts: 11
Joined: Sun Mar 17, 2024 9:11 am
Libera.chat IRC: TYDQSoft

Re: How to obtain the display with using ACPI data?

Post by TYDQSoft »

zaval wrote: Thu Dec 26, 2024 7:31 pm What is your riscv machine firmware? uboot? It doesn't produce GOP for this configuration. No support for diplay or binding it with GOP support or both. Yes, this architecture is so "perspective" only in babblings. In reality, you face an awful "almost nothing supported" mess like what you are trying to deal with. Try looking what it hands to you over system tables. I'm not even sure there is device tree there, which by itself is a yooge hack, capable of only causing pita.
Yeah,my virtual QEMU machine firmware is UEFI.This situation should have been taken into consideration.
Octocontrabass
Member
Member
Posts: 5623
Joined: Mon Mar 25, 2013 7:01 pm

Re: How to obtain the display with using ACPI data?

Post by Octocontrabass »

TYDQSoft wrote: Fri Dec 27, 2024 1:32 amYeah,my virtual QEMU machine firmware is UEFI.
Here's the relevant section of the UEFI spec.
Post Reply