Ubuntu QA:
BlogBrainstormPackage status
Log in
Ubuntu QA
The Ubuntu community has contributed 22700 ideas, 138270 comments, 2629576 votes
Idea sandbox Idea sandbox
Popular ideas Popular ideas
Ideas in development Ideas in development
Implemented ideas Implemented ideas
Idea #2148: Volume control (for muting sounds) in GDM

bug This idea was marked as implemented the 14 October 11. Available starting Ubuntu 11.10 Oneiric Ocelot.
Written by mateusza the 1 Mar 08 at 12:36. Category: System. Related project: Nothing/Others. Status: Implemented
Rationale
Having login sound is nice, but sometimes we boot our laptop during the lecture or a meeting and we want it to be absolutely quiet.

There should be a volume control or just a "mute" button in GDM Login window.

810
votes
implemented
Selected solution (#1): Auto-generated solution of idea #2148
Written by mateusza the 1 Mar 08 at 12:36.
Ubuntu Brainstorm was updated in January 2009. Since the idea #2148 was submitted before this update, its rationale and solution are not separated. Please vote accordingly, and if you have the necessary rights, please separate the rationale from the solution. Thanks!
5
votes
implemented
Selected solution (#2): Make a checkbox in Sound
Written by dsterry the 20 Oct 10 at 21:49.
I propose that a single checkbox be placed in the Sound applet that would disable System -> Preferences -> Startup Applications -> GNOME Login Sound as well as uncheck System -> Administration -> Login Screen -> play login sound. The login screen applet requires root privileges to make changes so I expect this checkbox would require the same.
2
votes
implemented
Selected solution (#3): Also resolve Idea #3870
Written by ninjagecko the 12 Jul 11 at 21:11.
This idea deals specifically with logging in; the only possible sources of sound at login are the login sound.

However "booting our laptop during lecture/meeting and wanting it to be quiet" is NOT just an issue with the GDM login. It is also an issue with standby/suspend and screen-locker, and *THAT* issue is addressed in http://brainstorm.ubuntu.com/idea/3870/

Attachments
No attachments.


Duplicates


Comments
Eldmannen wrote on the 1 Mar 08 at 12:46
Then press the volume button on the laptop instead.

cheesehead (Brainstorm admin) wrote on the 1 Mar 08 at 14:35
Or buy a laptop with a volume knob.

Or boot it before the lecture.

Or simply use System -> Preferences -> Sound ahead of time.

Don't clutter my GDM login with a billion options I'll never use. I just want to log in.

mateusza wrote on the 1 Mar 08 at 15:35
Eldmannen:

This won't work because it needs to be handled by software. GNOME handles this but not GDM.


cheesehead:

1. Today most laptops have no analog volume control device, only up/down buttons.

2. I wrote "sometimes we boot our laptop during the lecture"

3. I wrote "Having login sound is nice"

Don't give me so stupid advices, just teach yourself to understand what you read.

GDM has an options menu (press F10). I don't think it's a problem to put something extra there.

jrusinek wrote on the 1 Mar 08 at 19:56
It's impossible, since most ALSA uses per-user volume settings, if I remember good.

And other question - do you REALLY need to have clutter possible in GDM?

How do you imagine this in reality? Post some mockup...

Blackdrive wrote on the 10 Mar 08 at 09:20
I think Mateusza wants the same thing I want.
I want to be able to use the volume function keys on my laptop while I'm on the login screen.

mateusza wrote on the 11 Mar 08 at 07:56
I want to have ability to mute the sound somehow, before I log in.

sf_007 wrote on the 16 Mar 08 at 02:01
that would be very useful...

K-Man wrote on the 16 Mar 08 at 03:36
Simple workaround: Just plugin an earphone or headset 8-)
It's 99cents if u don't have one. Actually you can even use just the jack (cut it off) of a broken one.

hurricanefloyd wrote on the 19 Mar 08 at 04:14
Absolutely. The Dell E1505n has volume controls on the front of machine. They are accessible when the screen lid is closed.

I often listen to music with the notebook's lid closed. My screensaver activates when I close the lid, and so the volume controls no longer work.

amiga_os wrote on the 1 Apr 08 at 13:47
Comments like this one are unnecessary and unhelpful, and don't engage properly with a very good idea. Some good points, maybe, but not put in a constructive way:

> Or buy a laptop with a volume knob.

Not being able to control the sound in GDM login is a minor thing that can be a big irritation. Suggesting a major hardware change to fix a minor bug is an irritating response.

> Or boot it before the lecture.

What if the sound was set high on last shutdown, and you forgot, or didn't know about it until you got into the lecture? Again, minor software issue forces me to change my behaviour with my machine - that's not good software.

> Or simply use System -> Preferences -> Sound ahead of time.

I already try to... but I can't be prepared for every situation we're I'm going to boot my laptop up. Again, am I designed for Ubuntu, or is Ubuntu designed for me?

> Don't clutter my GDM login with a billion options I'll never use. I just want to log in

How is a volume control clutter? There's already a settings tab - stick a volume control in there surely? You won't see it on your login screen.

Here's a suggestion to try and deal with some of the issues people have raised: how about a right click menu on the new gdm face browser (when it's finally standard), that allows you to set key login variables before you login?

That would solve this problem, and deal with some of the problems raised in the comments.

zoubidoo wrote on the 13 May 08 at 20:58
I have this problem too and would like a better solution than some of the unhelpful suggestions above.

Some laptops don't have a volume control dial but the keyboard has volume-related symbols. On the Acer laptop in front of me they are:
FN + F8 mute
FN + cursor up louder
FN + cursor down quieter

Shouldn't these keys bindings be handled in the BIOS?

Is it possible that the kernel is overriding the normal BIOS volume control?

This topic is also discussed here:
http://answers.google.com/answers/threadview?id=318864
There they specifically mention the AC'97 integrated soundcard. Perhaps it's an AC'97-specific issue?

Can anyone confirm / refute that?

everweb wrote on the 11 Jul 08 at 17:16
[Menu]System/Administation/Login Window
[Tab]Accessibility
[Section]Sounds
All of these should be turned off by default IMHO

[Menu]System/Preferences/Sound
[Tab]Sounds
These can be on by default

This shows how to turn it off but I think the point here is that it would be nice to be able to temporarily disable sounds for a particalar session from the login window before any sound is issued.

ScarySquirrel wrote on the 1 Dec 08 at 06:26
mateuseuza--
I agree with Eldmannen.
There are already several better ways to prevent this using GNOME preferences.

smorar wrote on the 12 Jan 09 at 09:15
This problem can be worked around by using the accessibility framework within GDM in combination with a command line program that can adjust the volume (apt-get install aumix). I blogged about this here, where I used this method to control mpd from within gdm.

Edit the following lines in /etc/gdm/gdm.conf:

AddGtkModules=true
GtkModulesList=/usr/lib/gtk-2.0/modules/libkeymouselistener

Next, you need to add entries for each of your multimedia keys in /etc/gdm/modules/AccessKeyMouseEvents.

The entry format is as follows:

keycode num_keypresses keypress_duration timeout command command_args

Where, the command with it's arguments is executed when the key given by keycode is depressed as many times as specified by the number of keypresses for longer than the keypress duration. Note, the command will be run as root, so be sure that it can't do anything destructive!!

For example, my configuration which uses the mpc command to control the mpd daemon is as follows:

XF86AudioLowerVolume 1 0 1000 amixer sset PCM 2-
XF86AudioRaiseVolume 1 0 1000 amixer sset PCM 2+
XF86AudioMute 1 0 1000 amixer sset PCM toggle

Then restart gdm by executing /etc/init.d/gdm restart

Voila, your multimedia keys should work in GDM!!

gazilla wrote on the 20 May 09 at 11:30
I thank smorar for the howto, and attempted to get it working. There were a few problems so I thought I'd document them here.

As at Jaunty (and perhaps before) gdm does not run as root, but as the 'gdm' user. To make this all work you must add gdm to the 'audio' group. The GUI user management tool is no help as it does not recognise the audio group. Edit /etc/group and add gdm manually. e.g.

audio:x:29:pulse,bob,carol,ted,alice,gdm

Next, the AccessKeyMouseEvents file expects the full path of the command, so change amixer to /usr/bin/amixer (or wherever it is on your system). Do 'which amixer' to find it.

Finally, changing the values for PCM did nothing for my sound. I found that I had to change 'Master'.

Now, you've read all this, and done the mods, and I'm here to tell you it won't help poor mateusza one bit. At Jaunty, the sound volume for each user is restored to the level from last log out, at the next log in. So listen to K-Man and next time you have a set of earphones die, cut off the plug and keep it in your laptop bag!

sew wrote on the 9 Jan 11 at 16:11
Similar:

Volume/mute available during screensaver lock-out

http://brainstorm.ubuntu.com/idea/3870/

Jonathan DOrleans wrote on the 18 May 11 at 18:28
Ok, two year later... some solution?
Image for your suggestion:
http://ubuntuforums.org/picture.php?albumid=2298&pictureid=7832

[IMG]http://ubuntuforums.org/picture.php?albumid=2298&pictureid=7832[/IMG]

Jonathan DOrleans wrote on the 19 May 11 at 07:18
Image with a good resolution:
http://jondorleans.deviantart.com/#/d3gor62

ninjagecko wrote on the 13 Jul 11 at 18:31
quote from my rationale of my duplicate submitted idea:

It is often the case that when a computer was hibernating, it may have been playing music or a video. Sometimes when waking, the music or video will resume playing while the memory image is slowly slowly being read. Sometimes it may take 3 minutes for the screenlocking app to display a password prompt.

This can be very embarrassing if you unsuspend in the middle of a class or meeting, and your computer does not have a hardware volume control. Sound will begin blasting out very loudly. (Even software volume controls are often locked, or the OS during the reboot process is so glitchy that software volume controls cannot be used. Occasionally there are even audio layer bugs which cause an extremely loud sound in a buffer to be played on loop over and over again, but that is unrelated to the core issue at hand.)

Thus the goal is to ensure that the computer does not make sound when rebooting. The only current alternative is to hard-reset the computer or remove the battery, losing one's unsaved work and desktop session.

ninjagecko wrote on the 13 Jul 11 at 18:35
Unfortunately my idea was incorrectly marked as a duplicate of this idea. My idea concerns Standby and Hibernation, whereas this concerns ignoring boot sounds when logging.

Vahan Harutyunyan (Brainstorm moderator) wrote on the 14 Oct 11 at 18:09
The sound indicator is now available in LightDM [Ubuntu 11.10].


Post your comment