Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have ALSA on Ubuntu 11.04 version. When I play aplay through my normal user, I am able to get the output. When I do this with the root user, the command hangs: below stuff happens

root@myuser:~# aplay -l
**** List of PLAYBACK Hardware Devices ****

(hangs)

Also if I export the $HOME to /home/myuser/ then it works. So whats wrong for running the aplay command with a root.

share|improve this question
add comment

migrated from stackoverflow.com Sep 22 '11 at 4:07

This question came from our site for professional and enthusiast programmers.

1 Answer

Works for me. If you want to figure out what is wrong - debug it. Why don't you start with strace and see at what point it hangs up?

Aside from that, why on earth do you need to run it with root privileges?

share|improve this answer
    
Whats the command to check the trace? Also the application which I have build needs to fire the aplay with root privileges... –  user563101 Sep 21 '11 at 18:46
    
Using strace - stackoverflow.com/questions/174942/how-to-use-strace –  drak0sha Sep 21 '11 at 19:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.