You are not logged in.

#1 2020-10-03 02:33:32

itZzenXX
Member
Registered: 2020-03-22
Posts: 20
Website

Hello, I need help with i3 and virt-manager

Hello! Today I have switched from kde-plasma to i3-gaps, once I opened up my whonix vm, I realized I cant hear any audio from any vm I have. I have tried as much fixes possible, but when I went over to kde-plasma, I can hear audio from my vms perfectly fine. Can anyone help me? Thanks.

Offline

#2 2020-10-03 10:04:11

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,365

Re: Hello, I need help with i3 and virt-manager

How did you "switch"? If from SDDM to .xinitrc make sure you've read the blue notes in https://wiki.archlinux.org/index.php/Xinit#xinitrc so that your session works properly.

In doubt post your .xinitrc and

loginctl session-status
systemctl --user status pulseaudio

in [ code ] [ /code ] tags without the spaces

Last edited by V1del (2020-10-03 10:04:28)

Offline

#3 2020-10-03 12:47:56

itZzenXX
Member
Registered: 2020-03-22
Posts: 20
Website

Re: Hello, I need help with i3 and virt-manager

here are the responces to the commands you have sent

.xinitrc:

  GNU nano 5.2                                                      .xinitrc                                                                
#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login

loginctl session-status:

2 - zen (1000)
           Since: Sat 2020-10-03 08:20:29 EDT; 22min ago
          Leader: 999 (lightdm)
            Seat: seat0; vc7
         Display: :0
         Service: lightdm; type x11; class user
         Desktop: i3
           State: active
            Unit: session-2.scope
                  ├─   999 lightdm --session-child 12 19
                  ├─  1014 i3 -a --restart /run/user/1000/i3/restart-state.1014
                  ├─  1027 picom -f
                  ├─  1090 /bin/bash
                  ├─  1097 /opt/discord/Discord
                  ├─  1100 /opt/discord/Discord --type=zygote
                  ├─  1102 /opt/discord/Discord --type=zygote
                  ├─  1123 /opt/discord/Discord --type=gpu-process --field-trial-handle=17579729417298598925,6429272377613137721,131072 --d>
                  ├─  1149 /opt/discord/Discord --type=utility --field-trial-handle=17579729417298598925,6429272377613137721,131072 --disab>
                  ├─  1194 /opt/discord/Discord --type=renderer --autoplay-policy=no-user-gesture-required --field-trial-handle=17579729417>
                  ├─  1421 /usr/bin/python /usr/bin/terminator
                  ├─  1443 /bin/bash
                  ├─  1450 /bin/bash
                  ├─  1457 /bin/bash
                  ├─  1622 bash /usr/bin/pipes.sh
                  ├─ 71531 /bin/bash
                  ├─ 71652 /usr/lib/signal-desktop/signal-desktop
                  ├─ 71660 /usr/lib/signal-desktop/signal-desktop --type=zygote
                  ├─ 71664 /usr/lib/signal-desktop/signal-desktop --type=zygote
                  ├─ 71734 /usr/lib/signal-desktop/signal-desktop --type=gpu-process --field-trial-handle=11612682550096551694,111900611554>
                  ├─ 71744 /usr/lib/signal-desktop/signal-desktop --type=utility --field-trial-handle=11612682550096551694,1119006115545087>
                  ├─ 71792 /usr/lib/signal-desktop/signal-desktop --type=renderer --field-trial-handle=11612682550096551694,111900611554508>
                  ├─ 74245 /bin/bash
                  ├─ 74411 bash /home/zen/.local/share/Steam/steam.sh
                  ├─ 74653 /home/zen/.local/share/Steam/ubuntu12_32/steam
                  ├─ 74870 /home/zen/.local/share/Steam/ubuntu12_32/steam
                  ├─ 74871 /bin/bash /home/zen/.local/share/Steam/ubuntu12_64/steamwebhelper.sh -lang=en_US -cachedir=/home/zen/.local/shar>
                  ├─ 74875 ./steamwebhelper -lang=en_US -cachedir=/home/zen/.local/share/Steam/config/htmlcache -steampid=74653 -buildid=15>
                  ├─ 74923 /home/zen/.local/share/Steam/ubuntu12_64/steamwebhelper --type=zygote --no-sandbox --log-file=/home/zen/.local/s>
                  ├─ 74936 /home/zen/.local/share/Steam/ubuntu12_64/steamwebhelper --type=gpu-process --field-trial-handle=1030330871065609>
                  ├─ 74974 /home/zen/.local/share/Steam/ubuntu12_64/steamwebhelper --type=utility --field-trial-handle=10303308710656093750>
                  ├─ 75431 /home/zen/.local/share/Steam/ubuntu12_64/steamwebhelper --type=renderer --no-sandbox --log-file=/home/zen/.local>
                  ├─ 75553 /home/zen/.local/share/Steam/ubuntu12_64/steamwebhelper --type=renderer --no-sandbox --log-file=/home/zen/.local>
                  ├─ 75565 /home/zen/.local/share/Steam/ubuntu12_64/steamwebhelper --type=renderer --no-sandbox --log-file=/home/zen/.local>
                  ├─ 79203 i3bar --bar_id=bar-0 --socket=/run/user/1000/i3/ipc-socket.1014
                  ├─ 79209 i3blocks -c /home/zen/.i3/i3blocks.conf
                  ├─ 80438 kdeinit5: Running...
                  ├─ 80439 /usr/lib/kf5/klauncher --fd=8
                  ├─ 80807 /usr/lib/firefox/firefox -no-remote -P SOCIALMEDIA
                  ├─ 80912 /usr/lib/firefox/firefox -contentproc -childID 1 -isForBrowser -prefsLen 1 -prefMapSize 227989 -parentBuildID 20>
                  ├─ 80990 /usr/lib/firefox/firefox -contentproc -childID 2 -isForBrowser -prefsLen 6620 -prefMapSize 227989 -parentBuildID>
                  ├─ 81206 /usr/lib/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 7550 -prefMapSize 227989 -parentBuildID>
                  ├─ 81423 /usr/lib/firefox/firefox -contentproc -childID 4 -isForBrowser -prefsLen 7550 -prefMapSize 227989 -parentBuildID>
                  ├─ 83577 /usr/lib/firefox/firefox -contentproc -childID 5 -isForBrowser -prefsLen 7668 -prefMapSize 227989 -parentBuildID>
                  ├─ 91442 /usr/lib/firefox/firefox -contentproc -childID 6 -isForBrowser -prefsLen 7668 -prefMapSize 227989 -parentBuildID>
lines 1-54

systemctl --user status pulseaudio:

● pulseaudio.service - Sound Service
     Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; disabled; vendor preset: enabled)
     Active: active (running) since Sat 2020-10-03 08:21:09 EDT; 23min ago
TriggeredBy: ● pulseaudio.socket
   Main PID: 1224 (pulseaudio)
     CGroup: /user.slice/user-1000.slice/user@1000.service/pulseaudio.service
             ├─1224 /usr/bin/pulseaudio --daemonize=no
             └─1325 /usr/lib/pulse/gsettings-helper

Oct 03 08:21:08 arch systemd[1006]: Starting Sound Service...
Oct 03 08:21:09 arch systemd[1006]: Started Sound Service.

Offline

#4 2020-10-03 13:12:33

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,365

Re: Hello, I need help with i3 and virt-manager

That all looks normal from that aspect, with the VM open what do you get for

sudo fuser -v /dev/snd/*
pacmd list-sinks
pacmd list-sink-inputs

? any VM log/terminal output that suggests it might use an incorrect device or so?

Offline

#5 2020-10-03 13:18:30

itZzenXX
Member
Registered: 2020-03-22
Posts: 20
Website

Re: Hello, I need help with i3 and virt-manager

here are those commands listed out

sudo fuser -v /dev/snd/*:

                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  zen        1224 F.... pulseaudio
/dev/snd/controlC1:  zen        1224 F.... pulseaudio
/dev/snd/controlC2:  zen        1224 F.... pulseaudio
/dev/snd/pcmC2D0p:   zen        1224 F...m pulseaudio

pacmd list-sinks:

2 sink(s) available.
  * index: 0
	name: <alsa_output.usb-Cosair_Corsair_VOID_ELITE_USB_Gaming_Headset_00000000-00.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: RUNNING
	suspend cause: (none)
	priority: 9049
	volume: front-left: 39243 /  60% / -13.36 dB,   front-right: 39243 /  60% / -13.36 dB
	        balance 0.00
	base volume: 35466 /  54% / -16.00 dB
	volume steps: 65537
	muted: no
	current latency: 23.03 ms
	max request: 2 KiB
	max rewind: 2 KiB
	monitor source: 0
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 1
	linked by: 1
	configured latency: 16.00 ms; range is 16.00 .. 2000.00 ms
	card: 0 <alsa_card.usb-Cosair_Corsair_VOID_ELITE_USB_Gaming_Headset_00000000-00>
	module: 6
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "USB Audio"
		alsa.id = "USB Audio"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "2"
		alsa.card_name = "Corsair VOID ELITE USB Gaming H"
		alsa.long_card_name = "Cosair Corsair VOID ELITE USB Gaming H at usb-0000:02:00.0-1, full speed"
		alsa.driver_name = "snd_usb_audio"
		device.bus_path = "pci-0000:02:00.0-usb-0:1:1.0"
		sysfs.path = "/devices/pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-1/1-1:1.0/sound/card2"
		udev.id = "usb-Cosair_Corsair_VOID_ELITE_USB_Gaming_Headset_00000000-00"
		device.bus = "usb"
		device.vendor.id = "1b1c"
		device.vendor.name = "Corsair"
		device.product.id = "0a52"
		device.product.name = "Corsair VOID ELITE USB Gaming Headset"
		device.serial = "Cosair_Corsair_VOID_ELITE_USB_Gaming_Headset_00000000"
		device.form_factor = "headset"
		device.string = "front:2"
		device.buffering.buffer_size = "352800"
		device.buffering.fragment_size = "176400"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Corsair VOID ELITE USB Gaming Headset Analog Stereo"
		alsa.mixer_name = "USB Mixer"
		alsa.components = "USB1b1c:0a52"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-headset-usb"
		device.intended_roles = "phone"
	ports:
		analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-headphones>
    index: 1
	name: <alsa_output.pci-0000_0e_00.4.iec958-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL DECIBEL_VOLUME LATENCY 
	state: SUSPENDED
	suspend cause: IDLE
	priority: 9038
	volume: front-left: 117960 / 180% / 15.32 dB,   front-right: 117960 / 180% / 15.32 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 0.00 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 2
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	fixed latency: 100.14 ms
	card: 3 <alsa_card.pci-0000_0e_00.4>
	module: 9
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC1220 Digital"
		alsa.id = "ALC1220 Digital"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "1"
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xfc600000 irq 92"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:0e:00.4"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:0e:00.4/sound/card1"
		device.bus = "pci"
		device.vendor.id = "1022"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
		device.product.id = "1487"
		device.product.name = "Starship/Matisse HD Audio Controller"
		device.string = "iec958:1"
		device.buffering.buffer_size = "17664"
		device.buffering.fragment_size = "2944"
		device.access_mode = "mmap"
		device.profile.name = "iec958-stereo"
		device.profile.description = "Digital Stereo (IEC958)"
		device.description = "Starship/Matisse HD Audio Controller Digital Stereo (IEC958)"
		alsa.mixer_name = "Realtek ALC1220"
		alsa.components = "HDA:10ec1168,10438723,00100101"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
			properties:
				
	active port: <iec958-stereo-output>

pacmd list-sink-inputs:

1 sink input(s) available.
    index: 2
	driver: <protocol-native.c>
	flags: DONT_MOVE START_CORKED FIX_RATE 
	state: RUNNING
	sink: 0 <alsa_output.usb-Cosair_Corsair_VOID_ELITE_USB_Gaming_Headset_00000000-00.analog-stereo>
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	muted: yes
	current latency: 55.49 ms
	requested latency: 11.61 ms
	sample spec: float32le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	resample method: copy
	module: 11
	client: 18 <java>
	properties:
		media.role = hex:
		phonon.streamid = hex:
		media.name = "Playback Stream"
		application.name = "java"
		native-protocol.peer = "UNIX socket client"
		native-protocol.version = "33"
		application.process.id = "212700"
		application.process.user = "zen"
		application.process.host = "arch"
		application.process.binary = "java"
		application.language = "en_US.UTF-8"
		window.x11.display = ":0"
		application.process.machine_id = "1803c7ac26624b87af3cfbf4f7bb8ae3"
		application.process.session_id = "2"
		module-stream-restore.id = "sink-input-by-application-name:java"

Offline

#6 2020-10-03 19:27:28

itZzenXX
Member
Registered: 2020-03-22
Posts: 20
Website

Re: Hello, I need help with i3 and virt-manager

I fixed it! So I reinstalled KDE Plasma and apparently that fixed everything!

Offline

#7 2020-10-03 20:51:56

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,645
Website

Re: Hello, I need help with i3 and virt-manager

Please remember to mark your thread as solved by editing the first post and amending the topic title. Please also remove the redundant request from help, and omit that in future topic titles.

https://wiki.archlinux.org/index.php/Co … ow_to_post


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB