LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Need help getting sound to work while in XDMCP session/ Display 1 (http://www.linuxquestions.org/questions/ubuntu-63/need-help-getting-sound-to-work-while-in-xdmcp-session-display-1-a-780740/)

damgar 01-07-2010 10:52 PM

Need help getting sound to work while in XDMCP session/ Display 1
 
Hi all, I'm hoping someone can get me going in the right direction.

I am running jaunty (9.04) and I use amarok to play audio files. I have a second box in another room that runs slackware. I frequently have two X sessions running on the Ubuntu box:

1. Is a local Ubuntu X session.

2. The second X session is remote to my Slack box. I get there by opening a tty with CTRL+ALT+F2 and running
PHP Code:

:-query SLACKHOSTNAME 

which brings me to the kde login screen of the Slackbox and I go from there. I can then toggle between the two X sessions like any other virtual termial: CTRL+ALT+F7 or CTRL+ALT+F9 (the x session started in tty9 usually maps to tty9 while tty2 remains logging the x session).

What I want to have happen is for amarok to keep playing from the local X session while I am in the remote session. More to the point, I want the sound to keep coming from the speakers since amarok DOES keep playing, I just can't hear it. I can hear amarok when I'm in tty1-6 (consoles), but when I go to the X session the speakers go silent after a few stutters.

I'm really not sure where to start on this. Googling XDMCP and sound basically returns results saying XDMCP doesn't send the sound, which I understand and don't have an interest in doing.

Is there maybe another way to get the same resulting remote X session that will keep me in tty1-6, or a way force the sound to persist regardless of display?

paulsm4 01-07-2010 11:00 PM

Hi -

I think what you're really asking is that you want to figure out a way to divorce Amarok from your desktop session, so it doesn't inadvertently get silenced when you <Ctl-Alt-Fn> to a different session.

You might want to investigate something along these lines

Quote:

http://ubuntuforums.org/showthread.php?t=271649

ssh -XC name/IP amarokapp
'Hope that helps .. PSM

damgar 01-07-2010 11:41 PM

I was able to successfully listen to 3 songs while in a remote X session and then sound stopped. This has happened before. Earlier I lost sound the second I switched sessions, which is what is happening now. I know this can be done, and since it seems to WANT to work this way sometimes it can't be a big change it doesn't seem.

The link posted seems to concern controlling amarok remotely when I'm interested in it just persisting locally regardless of session, as you seem to understand.

damgar 01-08-2010 12:45 AM

Rereading this thread, I saw two things:
1. My last post struck me as rude, which it wasn't intended to be and I apologzize if it was read that way. Thank you, PSM for the reply, it got me thinking.

2. The answer seems to be in the question itself
Quote:

Is there maybe another way to get the same resulting remote X session that will keep me in tty1-6......
the answer to that is yes.
PHP Code:

-help
vtXX           
use the specified VT number

By changing the command I use to start the XDMCP session
PHP Code:

X vt2 :-query SLACKHOST 

I am able to keep the remote X session on tty2 rather than it mapping over to tty9+. An hour of Mark Knopfler seems to confirm that this is working.

Thanks


All times are GMT -5. The time now is 11:44 PM.