Re: Sound volume user specific?
Michal R. Hoffmann wrote: Hi, Is it possible to control sound volume on each user account independently? So when user A logs in and changes the sound volume (with gnome alsa mixer) to max it won't affect user's B settings. It is desktop debian (sid) machine, ALSA, Gnome. It should be possible to write a script that saves the mixer settings at logout and restores them at login. It happens automatically at shutdown and startup, so look in /etc/init.d/alsa-utils for the relevant sections and modify them for your use. HTH, Raj Kiran -- If you can't explain it simply, you don't understand it well enough. -- Albert Einstein -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Sound volume user specific?
On 08/30/2008 02:25 PM, Michal R. Hoffmann wrote: Hi, Is it possible to control sound volume on each user account independently? So when user A logs in and changes the sound volume (with gnome alsa mixer) to max it won't affect user's B settings. It is desktop debian (sid) machine, ALSA, Gnome. Alsactl supports a -f option that will let you say what file you want to store (or retrieve) the volume settings. That file can be in the user's home directory. Read man alsactl -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Sound volume user specific?
On Sat, Aug 30, 2008 at 08:25:05PM +0100, Michal R. Hoffmann wrote: Hi, Is it possible to control sound volume on each user account independently? So when user A logs in and changes the sound volume (with gnome alsa mixer) to max it won't affect user's B settings. It is desktop debian (sid) machine, ALSA, Gnome. For two users running concurrently? When switching users with switch user in GDM? Or two sessions that never intersect? -- Tzafrir Cohen | [EMAIL PROTECTED] | VIM is http://tzafrir.org.il || a Mutt's [EMAIL PROTECTED] || best ICQ# 16849754 || friend -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Sound volume user specific?
On Sun,31.Aug.08, 17:37:22, Raj Kiran Grandhi wrote: Michal R. Hoffmann wrote: Hi, Is it possible to control sound volume on each user account independently? So when user A logs in and changes the sound volume (with gnome alsa mixer) to max it won't affect user's B settings. It is desktop debian (sid) machine, ALSA, Gnome. It should be possible to write a script that saves the mixer settings at logout and restores them at login. It happens automatically at shutdown and startup, so look in /etc/init.d/alsa-utils for the relevant sections and modify them for your use. AFAIK that script uses alsactl {store|restore} which works only for root. Use amixer instead. Regards, Andrei -- If you can't explain it simply, you don't understand it well enough. (Albert Einstein) signature.asc Description: Digital signature
Re: Sound volume user specific?
On 31/08/08 17:39, Tzafrir Cohen wrote: On Sat, Aug 30, 2008 at 08:25:05PM +0100, Michal R. Hoffmann wrote: Hi, Is it possible to control sound volume on each user account independently? So when user A logs in and changes the sound volume (with gnome alsa mixer) to max it won't affect user's B settings. It is desktop debian (sid) machine, ALSA, Gnome. For two users running concurrently? When switching users with switch user in GDM? Or two sessions that never intersect? Preferably (if it's possible) when switching users with GDM; if not, login/logout should be sufficient. The desktop is used locally by myself and my family. Thanks to few other responses I know I can use alsactl; I tried as a mere user (not a root) and it allows me to store / restore the settings; ie /usr/sbin/alsactl -f /home/userA/.alsa-config store /usr/sbin/alsactl -f /home/userA/.alsa-config restore Now, what are the ideal places to put these commands in? So it would store on switch user/logout and restore on login? I'm afraid that if I just modify the gdm configuration files (like gdm.conf) they will be overridden soon with some gdm update (quite possible in sid). On the other hand I'd prefer to get it working globally (not to add a script on each user's account). -- Kind regards, Michal R. Hoffmann -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Sound volume user specific?
On 08/31/2008 01:00 PM, Michal R. Hoffmann wrote: [...] Thanks to few other responses I know I can use alsactl; I tried as a mere user (not a root) and it allows me to store / restore the settings; ie /usr/sbin/alsactl -f /home/userA/.alsa-config store /usr/sbin/alsactl -f /home/userA/.alsa-config restore Now, what are the ideal places to put these commands in? So it would store on switch user/logout and restore on login? I'm afraid that if I just modify the gdm configuration files (like gdm.conf) they will be overridden soon with some gdm update (quite possible in sid). On the other hand I'd prefer to get it working globally (not to add a script on each user's account). If you're using IceWm or KDE, you can put the appropriate commands into ~/.icewm/startup or ~/.kde/Autostart/. Gnome has a sessions system that might let you specify a startup script; for scripts that quickly configure something then exit, this is tricky, but you can try going into Settings- Sessions (from memory). The dialog may or may not allow you to add your script to the session. Other options are ~/.bash_profile and ~/.bashrc; however, the commands would then execute at either each login or each new subshell creation event. It's possible to write the code so that the script that sets the volume only executes once per login or session or day. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Sound volume user specific?
Hi, Is it possible to control sound volume on each user account independently? So when user A logs in and changes the sound volume (with gnome alsa mixer) to max it won't affect user's B settings. It is desktop debian (sid) machine, ALSA, Gnome. -- Kind regards, Michal R. Hoffmann -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]