Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

How can I export my X Display with audio.

For example, in tty1 if I put, "startx xmoto -- :1 &", I can play xmoto ok, but have no sound. If I put "xinit -- :1 &"and then put "xmoto &", again I can play xmoto ok, but have no sound.

The strange thing is the sound continues in tty1...if I go back to tty1 (ctrl+alt+f1) I can hear the game, but in tty8 (ctrl+alt+f8) didnt have sound.

So, probably I need to know how to export the X Display and the sound to tty8, for example.

share|improve this question
I can't completely anwser your question, but I can start you on your way. X doesn't handle the sound, if you're using Natty its pulseaudio. – thomas michael wallace May 28 '11 at 10:36
up vote 6 down vote accepted

///OLD: Left just in case! This worked for me

edit /etc/group

sudo nano /etc/group

Next, search for audio, you shoud find somethink like this:


Add a coma and your username afther pulse

audio:x:29:pulse,username //whatever your username actually is

change username with the one you wish to log in!!!

Save and restart ubuntu, it should work. If I switch between sessions(Cn+Alt+F7), I loose sound in the one I started, just to let you all know. I suppose it is a bug.


EDIT: According to Reinis(see comment below) it is not recommended to edit the file manually. It's better to :

sudo adduser _username_ audio

Change username with your actual username. Restart :)

share|improve this answer
Really thanks, worked to me too. Interesting, similar problems can solved by this. – GarouDan Aug 29 '11 at 12:20
You shouldn't edit that file manually. The better way would be to use command: "sudo adduser username audio" I can't say the reason for this but I guess security and/or data consistency. I would upvote You would kindly fix the solution :) – Reinis Dec 31 '12 at 10:35
No need to reboot, just log out, and log in again. – Hi-Angel Mar 13 '15 at 16:55

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.