[R2B2] Unable to choose sound source (mic)

140 views
Skip to first unread message

Индарил Шприц

unread,
Oct 11, 2013, 8:53:14 AM10/11/13
to qubes...@googlegroups.com
I attached USB cam (Logitech C920) and trying to setup sound in AppVM.

In Dom0 there is kmix, and Phonon - KDE Control Module.
This Phonon doesn't save my choice in "Audio Hardware Setup" panel.
When I close it with "ok" button, next time it chooses wrond input source...

I don't know what is the exact reason, but sound recording doesn't work in AppVM.

I don't see sound neither in "sound" application, nor in Skype "Echo test"

How to setup this?


Индарил Шприц

unread,
Oct 11, 2013, 9:25:38 AM10/11/13
to qubes...@googlegroups.com
> kmix, and Phonon

also i tried pavucontrol in Dom0 from command line, it doesn't help either.

And I want video too, not just audio. But the command in Qubes Manager says only about audio...

Axon

unread,
Oct 11, 2013, 9:26:19 AM10/11/13
to Индарил Шприц, qubes...@googlegroups.com
I have the same problem with Phonon in dom0. Changes on the Audio
Hardware Setup tab are never saved.

Here's what I've found works:

1. Click the "Audio Hardware Setup" tab.
2. Under "Device Configuartion," select the correct microphone next to
"Sound Device."
3. Click "Apply." (Do not click "OK." Do not close the window. Leave it
open.)
4. If your AppVM was already running, you may have to restart it.
5. Before opening any programs in your AppVM, use the Qubes VM Manager
to attach your microphone to the AppVM.
6. Start Skype (or whichever program you want to use), and it should
work. If it doesn't, try changing the recording device in Skype's settings.

I can confirm that this works with a regular (non-USB) microphone. (YMMV
with a USB microhpone.)

signature.asc

Axon

unread,
Oct 11, 2013, 9:40:11 AM10/11/13
to Индарил Шприц, qubes...@googlegroups.com
For video, you'll have to give the AppVM control of the USB controller
to which the webcam is connected.

signature.asc

Franz

unread,
Oct 11, 2013, 9:22:49 PM10/11/13
to Axon, Индарил Шприц, qubes...@googlegroups.com
For me this is not enough, before running skype, I have to use this command in AppVM terminal

sudo chmod 666 /dev/video0*
Video works perfectly

Also regarding pavucontrol in dom0 (which is the same as System Tools/Volume Control in the GUI), input devices allows to setup the microphone. Default is "internal microphone" which does not work with the internal microphone of Lenovo x230. It should be set to "microphone". It seems strange but it works.
Audio works great

I would like to launch skype with a .sh file from dom0 but I am not able to find the command to attach the microphone to the AppVM. Is there such a command?
Best
Franz


Marek Marczykowski-Górecki

unread,
Oct 11, 2013, 9:51:51 PM10/11/13
to Franz, Axon, Индарил Шприц, qubes...@googlegroups.com
This is doable with dbus-send. Don't remember details, but sth like this:
dbus-send --session --dest=org.QubesOS.Audio.<vmname> --type=method_call
/org/qubesos/audio/<vmname> org.freedesktop.DBus.Property.Set
string:org.QubesOS.Audio string:RecAllowed variant:boolean:true

--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

signature.asc

Индарил Шприц

unread,
Oct 12, 2013, 12:47:36 AM10/12/13
to qubes...@googlegroups.com, Индарил Шприц, ax...@openmailbox.org
I tried to do this. The camera is visible with lsusb in AppVM.
But looks like AppVM have no drivers. Because there still is only one input source - "Unix VCHAN sink"

пятница, 11 октября 2013 г., 16:40:11 UTC+3 пользователь Axon написал:

Franz

unread,
Oct 12, 2013, 6:44:18 AM10/12/13
to Индарил Шприц, qubes...@googlegroups.com, Axon
On Sat, Oct 12, 2013 at 2:47 AM, Индарил Шприц <indaril...@gmail.com> wrote:
I tried to do this. The camera is visible with lsusb in AppVM.
But looks like AppVM have no drivers. Because there still is only one input source - "Unix VCHAN sink"
Pls do not top-post

пятница, 11 октября 2013 г., 16:40:11 UTC+3 пользователь Axon написал:
On 10/11/13 06:25, Индарил Шприц wrote:
>> kmix, and Phonon
>
> also i tried pavucontrol in Dom0 from command line, it doesn't help either.
>
> And I want video too, not just audio. But the command in Qubes Manager says
> only about audio...
>

For video, you'll have to give the AppVM control of the USB controller
to which the webcam is connected.

--
You received this message because you are subscribed to the Google Groups "qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users...@googlegroups.com.
To post to this group, send email to qubes...@googlegroups.com.
Visit this group at http://groups.google.com/group/qubes-users.
For more options, visit https://groups.google.com/groups/opt_out.

peter.p...@gmail.com

unread,
Mar 8, 2017, 7:21:52 AM3/8/17
to qubes-users, 169...@gmail.com, ax...@openmailbox.org, indaril...@gmail.com
Dear Marek,

I tried that, but it did not work. Can you check for a typo or so?

Thanks,
Peter.

Rusty Bird

unread,
Mar 8, 2017, 9:09:10 AM3/8/17
to peter.p...@gmail.com, qubes-users, 169...@gmail.com, ax...@openmailbox.org, indaril...@gmail.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

peter.p...@gmail.com:
> On Saturday, October 12, 2013 at 3:51:51 AM UTC+2, Marek Marczykowski-Górecki wrote:
> > On 12.10.2013 03:22, Franz wrote:
> > > I would like to launch skype with a .sh file from dom0 but I am not able to
> > > find the command to attach the microphone to the AppVM. Is there such a
> > > command?
> >
> > This is doable with dbus-send. Don't remember details, but sth like this:
> > dbus-send --session --dest=org.QubesOS.Audio.<vmname> --type=method_call
> > /org/qubesos/audio/<vmname> org.freedesktop.DBus.Property.Set
> > string:org.QubesOS.Audio string:RecAllowed variant:boolean:true
>
> I tried that, but it did not work. Can you check for a typo or so?

The object path is "/org/qubesos/audio", not "/org/qubesos/audio/<vmname>".

https://github.com/rustybird/qubes-stuff/blob/master/dom0/bin/qvm-microphone

Rusty
-----BEGIN PGP SIGNATURE-----

iQJ8BAEBCgBmBQJYwA64XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4NEI1OUJDRkM2MkIxMjlGRTFCMDZEMDQ0
NjlENzhGNDdBQUYyQURGAAoJEEadePR6ryrf5iMP/3379CaVlv/kgdiHYulTP1eV
tNZaXPHdPCfTn/6XAx43KvDRAJ/QWzAHnhnV6ZfHYWRjWZo9/olwGdUrq9615E0f
sQkde1JJCCgY+pgS3CpUGsBFz0tahpxXdAOZdA/zXtoDXGe7yCKK17qLepHMwgMS
CDN/MpboRd2PfGdv12p3+7f8vVCm+52VGbLc7VyVpyLkYFnKNzK4ubehwgfRRThn
e0SHHTNO7rZFJmrmhGLgPZiA9vJWFl/ztj06/hGhEz0CawGtKKcz9vhghg50tuV3
pIcRHyBon8WKW6r3+wZLc9dP+TvWLGJlGxfQZ6IgZdyC2jw4LfaBtXyp6xS5q5XA
g4gQ4FT4DWtQrSVdLTjbNUj1gdCRAddiZvzNsImssq4RH16oSVgSVwm3SGSIrtR0
/oXpMObhamX3i+jlE8KRyv3KYAMK6OPH6NSgSIKMFZ42mvIaG7ex0j+t3ApcE+x1
fTqNB/ndR3M/8lSVxgXKujRtFk+qztr+VkID2S+ci2ripKgP6ms3OqcL8mZqIfHs
ru4po2Aeahe1xMBRN5g8pfTD0MLcRqsEtnCzZ80FmvOu5E7Sc29woxYb/yWETNSC
+iOqOcWrH94rpp1LKZHTcrt2BJUpIDODdDIHxgxYsPbiu6+jj/GMWxHP2J1Zna6l
LRD2f4i2JmK338Eh7vmx
=O/3Y
-----END PGP SIGNATURE-----

peter.p...@gmail.com

unread,
Mar 8, 2017, 9:22:35 AM3/8/17
to qubes-users, peter.p...@gmail.com, 169...@gmail.com, ax...@openmailbox.org, indaril...@gmail.com
On Wednesday, March 8, 2017 at 3:09:10 PM UTC+1, Rusty Bird wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> peter.p...@gmail.com:
> > On Saturday, October 12, 2013 at 3:51:51 AM UTC+2, Marek Marczykowski-Górecki wrote:
> > > On 12.10.2013 03:22, Franz wrote:
> > > > I would like to launch skype with a .sh file from dom0 but I am not able to
> > > > find the command to attach the microphone to the AppVM. Is there such a
> > > > command?
> > >
> > > This is doable with dbus-send. Don't remember details, but sth like this:
> > > dbus-send --session --dest=org.QubesOS.Audio.<vmname> --type=method_call
> > > /org/qubesos/audio/<vmname> org.freedesktop.DBus.Property.Set
> > > string:org.QubesOS.Audio string:RecAllowed variant:boolean:true
> >
> > I tried that, but it did not work. Can you check for a typo or so?
>
> The object path is "/org/qubesos/audio", not "/org/qubesos/audio/<vmname>".
>
> https://github.com/rustybird/qubes-stuff/blob/master/dom0/bin/qvm-microphone
>
> Rusty

Yessss! Your link helped.
Another problem was the "Property" vs "Properties" typo in the original post.

Now it works. Thank you!
Peter.

Reply all
Reply to author
Forward
0 new messages