Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running Linux Mint 14 and can play sound when I start my x session through mdm. however, when I start my X session using startx in user space, I am unable to get any sound play.

What could be wrong? how do I go about playing sound in an X session when running X in userspace? Is this even possible?

share|improve this question
i have a very similar question. i want to be able to xinit and get sound: unix.stackexchange.com/questions/64259/… – ixtmixilix Feb 23 '13 at 23:40
After your session started, are you able to play any sound with your user? like when you use some mediaplayers? If not, maybe you need to add your user to the according group that is allowed to play audio. In most distributions its called sound or audio or something like that. Check /etc/group to find the according group – mauro.stettler Feb 24 '13 at 10:07
@mauro.stettler : Thanks. That was the solution. I added the audio group (I am using Mint 14)by executing sudo usermod -G audio myloginname, logged out logged back in and could play sounds :-). Would you like to post this as an answer? – Lord Loh. Feb 24 '13 at 17:16
cool. ok, i'll post the answer – mauro.stettler Feb 25 '13 at 1:13
@LordLoh. You didn't need -a? On my system that would add you to the audio group and remove you from all other groups – Michael Mrozek Feb 25 '13 at 3:59
up vote 3 down vote accepted

you need to add your user to the according group. most distributions have some group called sound or audio. so you have to add your user to that group and then relogin.

sudo usermod -a -G audio myloginname
share|improve this answer

Your Answer


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.