|
From: ludovic p. <pl...@nn...> - 2005-08-16 17:04:27
|
Le Mardi 16 Ao=FBt 2005 13:22, Hugo Vanwoerkom a =E9crit : > --- ludovic pollet <pl...@nn...> wrote: > > Le Mardi 16 Ao=FBt 2005 08:05, vous avez =E9crit : > > > On Otrdiena, 9. Augusts 2005 03:04, ludovic pollet > > > > wrote: > > > > Hello, > > > > > > > > I adressed the sound card issue with multiple X > > > > display. > > > > > > It is a little filesystem for fuse > > > > (http://fuse.sourceforge.net/). > > > > > > Basically, it provides a symlink which depends > > > > on the DISPLAY environment > > > > > > variable. > > > > > > > > When a process will open /dev/dsp, the symlink > > > > will resolve depending on > > > > > > the DISPLAY variable of the process. From there, > > > > it is easy to make > > > > > > process on first display open the first dsp, and > > > > so on... > > > > > > This should works for any program using OSS > > > > (this covers most unfriendly > > > > > > ones, like Mozilla plugin, OpenOffice or vmware, > > > > ...), or ALSA in > > > > > > emulation mode (for native mode, alsalib is our > > > > friend :-). > > > > > > Source and binary are available at > > > > http://www.nnx.com/~pludov/sessiond/ > > > > > > It should work out of the box for Fedora core 3, > > > > (with fuse installed)... > > > > > > Any feedback is welcome ! > > > > > > Hm. How easy is /dev/ttyXX redirect? > > > After /dev/tty redirect to new/fake driver all X > > > > switch-tty patches goes > > > > > away. So i have in my mind unpatched linux and X. > > > > > > Aivils > > > > I don't really understand why tty redirection is > > interesting ! > > But it should be just the same : Replace the > > existing /dev/ttyXX > > to /var/session/currents/current/ttyXX and then, > > create the per display link > > in /var/session/:0 or /var/session/:1 > > > > Then link in /var/session/:X will be used regarding > > the DISPLAY variable. > > What happens to using sound in the vc's? E.g. I hit > Alt+Ctl+F1 and in vc1/0 issue: play mplayer.wav? > > Hugo > Ah ! So I was totally wrong about /dev/ttyXX. It is just a matter of setting t= he=20 right value for DISPLAY env when login in console. --=20 printk("CPU[%d]: Sending penguins to jail...",smp_processor_id()); linux-2.4.8/arch/sparc64/kernel/smp.c |