enable ODROID-DAC sound device on root logged in

Moderators: mdrjr, odroid

enable ODROID-DAC sound device on root logged in

Unread postby migma » Tue Oct 10, 2017 11:34 pm

I bought a 12S 2Watt Stereo Boom Bonnet Kit and installed into ODROID C2. all worked on regular user logged in. But I use root logged in the ODROID-DAC sound device is disable. Is anyone knows how to enable ODROID-DAC sound devic on Ubuntu 16.04 with ODROID C2 ? Thanks!
migma
 
Posts: 5
Joined: Wed Sep 17, 2014 2:57 am
languages_spoken: english
ODROIDs: ODROID-U3, ODROID-C1+, ODROID-C2, Cubie Truck,

Re: enable ODROID-DAC sound device on root logged in

Unread postby mad_ady » Tue Oct 10, 2017 11:46 pm

It probably uses pulseaudio and the pulseaudio daemon is started when you login as a regular user.
I've switched to a systemd pulseaudio daemon. There are instructions on how to do it if you search for the mycroft howto.
User avatar
mad_ady
 
Posts: 2603
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2

Re: enable ODROID-DAC sound device on root logged in

Unread postby migma » Wed Oct 11, 2017 1:04 am

Thanks, Let me try.
migma
 
Posts: 5
Joined: Wed Sep 17, 2014 2:57 am
languages_spoken: english
ODROIDs: ODROID-U3, ODROID-C1+, ODROID-C2, Cubie Truck,

Re: enable ODROID-DAC sound device on root logged in

Unread postby migma » Wed Oct 11, 2017 1:33 am

Hi mad_ady ,

Can you give me the instruction link?
Thanks a lot,
migma
 
Posts: 5
Joined: Wed Sep 17, 2014 2:57 am
languages_spoken: english
ODROIDs: ODROID-U3, ODROID-C1+, ODROID-C2, Cubie Truck,

Re: enable ODROID-DAC sound device on root logged in

Unread postby odroid » Wed Oct 11, 2017 9:46 am

Did you search forum with "mycroft"?

viewtopic.php?f=52&t=27661
User avatar
odroid
Site Admin
 
Posts: 24662
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: enable ODROID-DAC sound device on root logged in

Unread postby migma » Fri Oct 13, 2017 2:00 am

Yes, I did. It is too complicated. regular user log in is work fine. only use root user login has problem. I think it will have simple way to do it, just change some sound audio configuration file.
Now I used C1+ board and Root user logged in. It is working now.
Thank you very much for yours help
migma
 
Posts: 5
Joined: Wed Sep 17, 2014 2:57 am
languages_spoken: english
ODROIDs: ODROID-U3, ODROID-C1+, ODROID-C2, Cubie Truck,

Re: enable ODROID-DAC sound device on root logged in

Unread postby mad_ady » Fri Oct 13, 2017 2:39 am

The thing is - security best-practices recommend that you only login as a regular user and use sudo to run superuser processes. This is why pulseaudio (and other programs) refuses to start as root user.
User avatar
mad_ady
 
Posts: 2603
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2


Return to Ubuntu

Who is online

Users browsing this forum: No registered users and 6 guests