From: ludovic p. <pl...@nn...> - 2005-11-14 18:19:49
|
Hello, I wrote a small tool (session fs) to deal with issues related to sound ca= rd &=20 multi-console : http://perso.nnx.com/pludov/homepage/index-sessionfs.html With it, scripts which normally modify ownership of /dev/dsp should then=20 modify the files related to their DISPLAY (provided that they only=20 touch /dev/dsp and not /dev/dsp1, /dev/dsp2...)=20 But I never tested it for that purpose (I always have the same user on bo= th=20 DISPLAY) Basically, it replaces /dev/dsp to a symlink to a dsp depending on the DI= SPLAY=20 environement variable (/dev/dsp1, ...). The main goal is to hide it to common programs which generally use /dev/d= sp. Hope it helps ! Ludovic P Le Vendredi 11 Novembre 2005 17:29, Mark Hurenkamp a =E9crit : > Hi, > > > I've been running multi-console for a while now (sometimes ruby, someti= mes > only with xorg patches), but would like to solve one final issue. > Normally when using a single console, the first user to login gets all > kinds of > devices assigned, and thus is able to use /dev/cdrom for instance or th= e > audio > devices /dev/dsp, /dev/mixer, /dev/snd/* and /dev/sound/*. > > When multiple users being able to log in at the same time, I want this > behaviour > to change. Simply disabling the default behaviour is possible, and thus > setting > these devices to sane defaults is already possible. > (see > http://www.redhat.com/docs/manuals/linux/RHL-7-Manual/ref-guide/s1-sysa= dmin >-console-access.html ) > > However ideally, I would want the proper devices to be assigned to the > proper > user (e.g. if user john is logged onto head1, I want /dev/dsp1 and > /dev/mixer1 > assigned ownership to john, without interfering with user jane on head2= who > has assigned /dev/dsp2 and /dev/mixer2). > > Anyone have an idea how to get this done? Can I do this using the > /etc/X11/gdm/PostLogin and /etc/X11/gdm/PostSession scripts or is there > a better way? > > > Greetings, > Mark. > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download it for free - -and be entered to win a 42" plasma tv or your v= ery > own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.p= hp > _______________________________________________ > Linuxconsole-dev mailing list > Lin...@li... > https://lists.sourceforge.net/lists/listinfo/linuxconsole-dev --=20 Beware of bugs in the above code; I have only proved it correct, not trie= d it. -- Donald Knuth |