Mate 24.10: how to enable sound notification when unmounting device?

Dear all,

I’m a new Ubuntu user and have Ubuntu Mate 24.10. I noticed that when I mount or unmount a device (e.g. a USB flash drive), there is no sound. I have a useful icon in my panel for removing safely USB drives but when I click on it, there is no notification nor sound which would tell me “you can remove the drive NOW”.

My earlier system Linux Mint had that kind of sound, I found that very useful, and in Windows, there was both a visual notification and a sound telling you that the device is ready to be removed. But under Ubuntu Mate, I just wait for five or ten seconds and then remove the drive hoping that nothing goes wrong. I would like to have a such a sound (or at least a visual notification) when unmounting a drive. Is that possible with Ubuntu Mate 24.10 ? I didn’t find anything in the settings that are available in the main menu…

Any help is appreciated.

Kind regards from Munich, Germany :slight_smile:

P.S: I have already asked that question on discourse.ubuntu.com and was advised to ask it here since no-one could really help me over there.

2 Likes

Hi, @12points and welcome to the Ubuntu MATE Community!

I use 24.04.1 but it should still be the same - so, when you mount an external HDD or USB you should see them appearing on desktop like a folder (and in your list of active folders respectively as a separate folder when you open up a window).

When you want to dismount them simply right click the USB folder and select ether "Stop" option or "Unmount" option to safely remove the drive and you'll be good to go. Hope it helps :smiley:

1 Like

I have never heard a sound for un-mounting but a pop up should appear telling you it is safe to remove the drive or that it is busy and not to remove it. Notice in the upper right hand corner. If you are not getting a notification check System>Preferences>Popup notifications.

2 Likes

I don't have any experience with this "Sound Theme" myself, but you may wish to have a look at the Enchanted-Complete-System-Sounds 1.3.5 .

3 Likes

Mmm... the only settings I can find in Mate's desktop main menu are simply called "notifications" ("Benachrichtigungen" in my German version) and I can only set the theme and the position of the notifications but not much more. The option "Enable Do Not Disturb" is constantly turned off (I guess ticking the box would mean disabling notifications in general).
(screenshot) (I'm not able to include the image directly here in the post, it gives me an error message)

Do you have the GUI version of dconf installed? If not install it. Then check the settings for notifications.

2 Likes

I have checked the settings for notifications in dconf:

I don't see anything suspicious there. "sound-enabled" is turned on, "do not disturb" is turned off.

Thanks for the recommendation @ericmarceau - I will try it out. As far as I can see, the current theme set in my sound settings is the default called "Yaru".

1 Like

I finally had the time to test a different sound theme, i.e. “Enchanted” as recommended by @ericmarceau. This was the opportunity to dive into the /usr/share/sounds directory and its sub-directories which include the sound themes.

The default sound theme on my Mate is “Yaru” (/usr/share/sounds/Yaru). In the directory, I can find many sound files for different types of notifications.

Among them is also a “device-added.oga” and a “device-removed.oga” file. I can manually play these sounds files by clicking on them and listen to how they actually would sound if the sound notification would work.
There are other sound files which I recognised when playing them manually because these are actually sound notifications that work, for example the “dialog-question.oga”, which is played by the system when a dialog window opens that asks me something like “Are you really sure?” (e.g. before emptying the trash), or the “bell.oga” file, which is played when after starting to enter my password on the lock screen I hit the backspace key more times than necessary/reasonable.

In contrast, other sound files are never played when the corresponding action is carried out, e.g. when emptying the trash finally (after confirming), the “trash-empty” file is never played by the system. Similarly, I never hear the “power-plug” or power-unplug” when plugging or unplugging the power cable. And, last but not least, I never can hear the “device-removed” when unmounting a USB drive or when physically removing it.

This seems to be independent of the sound theme used. I tried the “Enchanted” theme, and also another pre-installed theme called freedesktop. All it does is switching to a different directory inside usr/share/sounds where the corresponding sound theme has its sound files located, and so changing the nature of the sounds which are played (like the “dialog-question” which always works), and in case of “Enchanted”, which has many more sound files, it additionally plays sounds for basically everything you do (clicking somewhere, maximizing a window, changing between windows, selecting an option, toggle… very annoying, haha!) EXCEPT for a few actions… like the mentioned emptying the trash, unplugging the power cable and removing a device, where also “Enchanted” stays silent even if has sound files for these cases.

I noticed that Yaru comes with “oga”-files whereas “Enchanted” has ogg-files but this doesn’t seem to have any influence. I renamed some Yaru-files to “ogg” and Enchanted-files to “oga” but this didn’t change anything to the respective behaviour.

So my guess is that somewhere out there in the deep ocean is a general Mate setting that says “never play any sound when the user removes a device but always play a sound when this dumb user hits backspace too often”

If I have time over the next few days, I will also try to dive a little deeper into the world of visual notifications and try to figure out more about why I don't get these for removing a drive safely.

1 Like

As for the missing visual notification telling me it is safe to remove a drive, it seems that I'm not the first person experiencing the problem: there's a long thread from 2018. It should be resolved now in theory. I also tried Ejecter (installing fails) and my-udev-notify which were recommended back then but my-udev-notify then only notifies me when the drive already was physically removed, not about whether it is safe to do so.

I’m sorry for talking to myself here. I think I have just found out why the visual notification never pops up. It’s because I used the “disk mounter” applet on the panel instead of right-clicking the desktop icon of the mounted device (see also my very first message in this topic).

I found it handy to have an applet right on the panel for unmounting devices because otherwise I always have to minimise all the windows first. I just thought the “disk mounter” applet was simply a shortcut and doing the exact same thing as when I right-click on the desktop icon and choose to unmount. Apparently, these are two different things. When right-clicking on the desktop icon, I actually get the visual notification telling me it is safe to remove the drive! (I still don’t get any sound notification but my expectations have lowered over the past few days)

I’m sorry if I have bothered other users with this endless story. I wasn’t aware of the fact that the applet was something different. It looked so well integrated into the system that I thought it was doing the exact same thing.

4 Likes