Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
26 user(s) are online (19 user(s) are browsing Forums)

Members: 1
Guests: 25

white, more...

Support us!

Headlines

 
  Register To Post  

« 1 ... 5 6 7 (8)
Re: QEMU GPU-PCIe AmigaONE
Just can't stay away
Just can't stay away


See User information
@Balaton
@All

I have the backup so I can make a mistake and start over.
But the suggestion doesn't work at least for me.
Ubuntu 25.04 but like Arch they use ( pipewire )
It's not a problem I do the best I can.

sudo apt install pulseaudio pulseaudio-module-bluetooth gstreamer1.0-pulseaudio
systemctl --user stop pipewire.socket pipewire-pulse.socket
systemctl --user disable pipewire.socket pipewire-pulse.socket
systemctl --user mask pipewire.socket pipewire-pulse.socket
systemctl --user enable pulseaudio.service pulseaudio.socket
systemctl --user start pulseaudio.service pulseaudio.socket

Ok after reboot

sudo -s
pulseaudio -D ( doesn't work )
instead:
pulseaudio --system
it works but there's something wrong I think you need to configure something with pulseaudio.

with SUDO vlc does not start at all not that you can't hear the audio it doesn't start at all

link:
https://it.linuxadictos.com/soluzione- ... -e-pulseaudio-main-c.html

even following this,
However it doesn't work anyway.

I think it would be ideal to create a small tutorial on this audio problem.
Or something that solves this thing.

VFio seems solved
I use Ubuntu 25.04 I also used Arch the problem is always the same.

I have a clean configuration also because I only use it to emulate AmigaOS.
So I don't install strange things.

The question is can't this thing be solved all together.
or whoever did it should explain it to others.

The guide by @falke34 works and is fine.

But I think he hasn't encountered audio problems otherwise he would have written it in the tutorial he wrote.

Apart from this all the steps done with any distribution I have used lead to the same problem with SUDO the audio is not heard.

Someone who explains to everyone the steps to not use SUDO which in the end is the audio that does not work not the real GPU.

Thanks.

note:
One doubt could be the use of two GPUs 4060rtx and R9 280x at the same time.

But from what I read there are other people who use two GPUs on PCIe not integrated.

link pipewire and qemu It can be useful ?

https://archive.fosdem.org/2024/events ... BackendInQEMU_Dl33abI.pdf


but the basic problem remains how to pass the GPU without using SUDO ?


Edited by white on 2025/5/12 0:21:04
Edited by white on 2025/5/12 0:46:41
What do you see when you close your eyes ?
I see light, lots of light
I see you, dad
And I see mommy too
And I see me and we are together
And we play forever.
Go to top
Re: QEMU GPU-PCIe AmigaONE
Quite a regular
Quite a regular


See User information
@white
Quote:
sudo apt install pulseaudio pulseaudio-module-bluetooth gstreamer1.0-pulseaudio
systemctl --user stop pipewire.socket pipewire-pulse.socket
systemctl --user disable pipewire.socket pipewire-pulse.socket
systemctl --user mask pipewire.socket pipewire-pulse.socket

Stop here and do not start pulseaudio (or stop it if it's running) then add -audio alsa,id=audio0,out.try-poll=off option to QEMU command and see if that works.

Quote:
I think it would be ideal to create a small tutorial on this audio problem.
Or something that solves this thing.

Yes do that if you find a solution. We can't write a tutorial on a problem we've never encountered.

Quote:
The guide by @falke34 works and is fine.

But I think he hasn't encountered audio problems otherwise he would have written it in the tutorial he wrote.

Exactly and others who did this either did not have this problem or gave up before even trying sound.

Quote:
One doubt could be the use of two GPUs 4060rtx and R9 280x at the same time.

But from what I read there are other people who use two GPUs on PCIe not integrated.

This should not be a problem as GPUs don't influence sound. If it works on the host under normal user and only not under root then it's a problem connecting to the sound server not with hardware. The picture on slide 3 in the presentation you linked shows the setup (just ignore everything within QEMU box where you would have AmigaOS instead of Linux) the QEMU app connects to the sound server on the machine or directly to alsa if using that option. But if the sound server overrides alsa you can't use it and depending on how it accepts connections root may not have the info to connect to it. You could try just uninstalling all pipewire and pulseaudio and just use plain alsa which should work under any user.

Quote:
but the basic problem remains how to pass the GPU without using SUDO ?

I have answered that already and there are guides you can look up (that's where I also found out from) but it's hard to explain if you're missing details.

Go to top
Re: QEMU GPU-PCIe AmigaONE
Just can't stay away
Just can't stay away


See User information
which audio chipset was used for testing

Thanks

on my motherboard i have a :
Realtek S1200A

I also report this article written by @dorindabassey

one of the people who worked on qemu 8.1 with the pipewire audio

https://medium.com/@dorindabassey/pipe ... ckend-in-qemu-be014359475

audio/pwaudio.c: Add Pipewire audio backend for QEMU .

https://gitlab.com/qemu-project/qemu/- ... a0e62d3ecca09837fc23ba4b3


note:
I think maybe a way to go is virt-manager to overcome the GPU obstacle without SUDO
and creating the code for Virt-Manager should not be difficult.

Also because even if I solve the audio
I can not access the GPU.


Edited by white on 2025/5/12 14:02:50
What do you see when you close your eyes ?
I see light, lots of light
I see you, dad
And I see mommy too
And I see me and we are together
And we play forever.
Go to top
Re: QEMU GPU-PCIe AmigaONE
Quite a regular
Quite a regular


See User information
@white
It does not matter, your problem is not related to host hardware, QEMU or AmigaOS, only your host Linux setup.

Go to top
Re: QEMU GPU-PCIe AmigaONE
Just can't stay away
Just can't stay away


See User information
@Balaton

mine is only a constructive speech I absolutely do not intend to make criticisms.

What do you see when you close your eyes ?
I see light, lots of light
I see you, dad
And I see mommy too
And I see me and we are together
And we play forever.
Go to top
Re: QEMU GPU-PCIe AmigaONE
Just can't stay away
Just can't stay away


See User information
@Balaton

this should not be necessary with Ubuntu 25.04 since the iso I download is the same as the one others use.

I follow your advice and I do it willingly.

But I do not do anything special to complicate things
Standard qemu installation compiled to the latest version and everything else without wrong steps is working including the GPU.

Now I did:
systemctl --user stop pipewire.socket pipewire-pulse.socket
systemctl --user disable pipewire.socket pipewire-pulse.socket
systemctl --user mask pipewire.socket pipewire-pulse.socket

sudo apt-get install alsa-base alsa-utils alsamixergui

alsactl init

result:

Found hardware: "HDA-Intel" "Nvidia GPU a7 HDMI/DP" "HDA:10de00a7,19da1726,00100100" "0x19da" "0x1726"
Hardware is initialized using a generic method
Found hardware: "HDA-Intel" "Realtek ALCS1200A" "HDA:10ec0b00,10438797,00100001" "0x1043" "0x8797"
Hardware is initialized using a generic method

step 2:

sudo qemu-system-ppc -M amigaone -m 2048 -bios /home/white/Scaricati/Radeon/u-boot-amigaone.bin -serial stdio -vga none -device vfio-pci,host=06:00.0,bus=pci.0,x-vga=on,multifunction=on -device vfio-pci,host=06:00.1,bus=pci.0 -device bochs-display,romfile="" -cdrom /home/white/Scaricati/Radeon/AmigaONE-CD-RADEON/AmigaOneInstallCD-53.54.iso -audio alsa,id=audio0,out.try-poll=off

result:
alsa: Could not initialize DAC
alsa: Failed to open `default':
alsa: Reason: L'host non è attivo
alsa: Could not initialize DAC
alsa: Failed to open `default':
alsa: Reason: L'host non è attivo
audio: Could not create a backend for voice `via-ac97.out'

without SUDO:

qemu-system-ppc -M amigaone -m 2048 -bios /home/white/Scaricati/Radeon/u-boot-amigaone.bin -serial stdio -vga none -device vfio-pci,host=06:00.0,bus=pci.0,x-vga=on,multifunction=on -device vfio-pci,host=06:00.1,bus=pci.0 -device bochs-display,romfile="" -cdrom /home/white/Scaricati/Radeon/AmigaONE-CD-RADEON/AmigaOneInstallCD-53.54.iso -audio alsa,id=audio0,out.try-poll=off
qemu-system-ppc: -device vfio-pci,host=06:00.0,bus=pci.0,x-vga=on,multifunction=on: vfio 0000:06:00.0:

Could not open '/dev/vfio/15': Permission denied

sudo gedit /etc/modprobe.d/alsa-base.conf

Result my config alsa-base.conf :

# autoloader aliases
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7

# Cause optional modules to be loaded above generic modules
install snd /sbin/modprobe --ignore-install snd $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-ioctl32 ; /sbin/modprobe --quiet --use-blacklist snd-seq ; }
#
# Workaround at bug #499695 (reverted in Ubuntu see LP #319505)
install snd-pcm /sbin/modprobe --ignore-install snd-pcm $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-pcm-oss ; : ; }
install snd-mixer /sbin/modprobe --ignore-install snd-mixer $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-mixer-oss ; : ; }
install snd-seq /sbin/modprobe --ignore-install snd-seq $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; /sbin/modprobe --quiet --use-blacklist snd-seq-oss ; : ; }
#
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; : ; }
# Cause optional modules to be loaded above sound card driver modules
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-emu10k1-synth ; }
install snd-via82xx /sbin/modprobe --ignore-install snd-via82xx $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq ; }

# Load saa7134-alsa instead of saa7134 (which gets dragged in by it anyway)
install saa7134 /sbin/modprobe --ignore-install saa7134 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist saa7134-alsa ; : ; }
# Prevent abnormal drivers from grabbing index 0
options bt87x index=-2
options cx88_alsa index=-2
options saa7134-alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
options snd-usb-audio index=-2
options snd-usb-caiaq index=-2
options snd-usb-ua101 index=-2
options snd-usb-us122l index=-2
options snd-usb-usx2y index=-2
# Ubuntu #62691, enable MPU for snd-cmipci
options snd-cmipci mpu_port=0x330 fm_port=0x388
# Keep snd-pcsp from being loaded as first soundcard
options snd-pcsp index=-2
# Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=-2

-----------------------------
Is there anything I can change to make it work in:

/etc/modprobe.d/alsa-base.conf

Thanks.

@Balaton

from what I read the values ​​​​should be 0 instead of 2
this should also apply to USB-AUDIO devices if I wanted to disable the integrated Audio Chipset from the BIOS

But I await your further advice.


Edited by white on 2025/5/12 16:50:10
What do you see when you close your eyes ?
I see light, lots of light
I see you, dad
And I see mommy too
And I see me and we are together
And we play forever.
Go to top
Re: QEMU GPU-PCIe AmigaONE
Just can't stay away
Just can't stay away


See User information
@Balaton

Rebooting the system
Now the audio is completely gone there is no active device on Ubuntu 25.04
In the BIOS the audio chipset is still active.
Maybe I'm on the right track if I configure

/etc/modprobe.d/alsa-base.conf

or it's all completely wrong.

What do you see when you close your eyes ?
I see light, lots of light
I see you, dad
And I see mommy too
And I see me and we are together
And we play forever.
Go to top

  Register To Post
« 1 ... 5 6 7 (8)

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project