You are not logged in.

#1 2022-12-08 09:18:20

Mattwamster58
Member
Registered: 2022-08-13
Posts: 5

[SOLVED] dolphin-emu audio only works when NOT run as root.

Hi, I've been trying to get dolphin working and can't get audio to work. I happened to notice that if I launched without root, audio worked perfectly. Otherwise, dolphin doesn't even show up in the plasma sound mixer panel applications tab. Any tips to troubleshoot this?

Last edited by Mattwamster58 (2022-12-18 10:53:56)

Offline

#2 2022-12-08 09:29:37

d.ALT
Member
Registered: 2019-05-10
Posts: 920

Re: [SOLVED] dolphin-emu audio only works when NOT run as root.

You shouldn't run programs with root privileges. What are your concerns about?


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#3 2022-12-09 07:56:24

Mattwamster58
Member
Registered: 2022-08-13
Posts: 5

Re: [SOLVED] dolphin-emu audio only works when NOT run as root.

As far as I'm aware and IME, dolphin requires it in order to take over bluetooth in order to connect to wiimotes.

Offline

#4 2022-12-09 08:18:13

d.ALT
Member
Registered: 2019-05-10
Posts: 920

Re: [SOLVED] dolphin-emu audio only works when NOT run as root.

Mattwamster58 wrote:

dolphin requires it in order to take over bluetooth in order to connect to wiimotes.

? Please provide the source of this information... Seems strange to me hmm


Anyway, I have zero knowledge regarding Wii Remote... What if you follow WIKI's guidelines here and here?
Ask if you have any doubts.

Last edited by d.ALT (2022-12-09 08:20:32)


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#5 2022-12-09 09:49:41

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,616

Re: [SOLVED] dolphin-emu audio only works when NOT run as root.

I aslo don't see why you'd need to run it as root, it would in any case make a standard request against bluez which will work from any user. Did you enable/start the bluetooth.service already?

Offline

#6 2022-12-10 06:20:32

Lithium Sulfate
Member
Registered: 2020-07-01
Posts: 16

Re: [SOLVED] dolphin-emu audio only works when NOT run as root.

Mattwamster58 wrote:

As far as I'm aware and IME, dolphin requires it in order to take over bluetooth in order to connect to wiimotes.

No, you can (and should) use an udev rule instead. See the Dolphin wiki for instructions (use e.g. lsusb to obtain the vendor/product IDs from your bluetooth adapter).

Also, I think that the bluetooth service should *not* be running so that it doesn't interfere with Dolphin's access to the adapter but I'm not 100% certain on that.

Offline

#7 2022-12-10 12:01:34

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,616

Re: [SOLVED] dolphin-emu audio only works when NOT run as root.

But that appears like quite the hardcore option with many limitations and little benefits? If you want plain normal BT access you can totally use the normal bluez and bluetooth.

Offline

#8 2022-12-12 08:53:49

Lithium Sulfate
Member
Registered: 2020-07-01
Posts: 16

Re: [SOLVED] dolphin-emu audio only works when NOT run as root.

As far as I understand, dolphin needs to hand raw control of the bluetooth hardware to the emulated software (similar to how you would passthrough a piece of hardware to a VM) since the communication protocol used by the Wii differs from standard bluetooth. I don't think you could bring bluez into this.

Offline

#9 2022-12-12 10:18:17

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,616

Re: [SOLVED] dolphin-emu audio only works when NOT run as root.

As far as I'm reading it you'd only need that if your BT stack doesn't support the wiimote itself which should not be an issue with modern bluez, but I'll test that at home I'm fairly certain I didn't need to go the passthrough route but I didn't set dolphin up yet on the new PC

Last edited by V1del (2022-12-12 10:20:29)

Offline

#10 2022-12-18 10:53:30

Mattwamster58
Member
Registered: 2022-08-13
Posts: 5

Re: [SOLVED] dolphin-emu audio only works when NOT run as root.

Thanks Lithium Sulfate, I used a udev rule and now able to run dolphin without root and with audio.  Non-passthrough would be ideal but I need the "more accurately communicate fine motions." so that was the solution here. I wish I had dug deeper, I think the dolphin-emu[-git] packages install dolphin in way that made me think root was required for this sort of thing.

Offline

Board footer

Powered by FluxBB