invisible mp3 playing.. how to detect what playing it and how to stop it.
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
invisible mp3 playing.. how to detect what playing it and how to stop it.
I tried out KTimer package; using "new audio alarm" feature.
The "sound file" that i simply chosen was a loud noisy long mp3 , unfortunately..
It keeps playing the mp3 ... i can't do anything, there is no button to stop it..
I know By the time someone replied me, this mp3 should have stopped..
But how to detect which thing playing the mp3 and how to stop invisible mp3 player from playing ?
This reminds me of some old fart farmer from my past whom got crafty in dealing with a fuel thief. He booby trapped his 500 gallon fuel tank, forgot about his booby trap and blew himself to smitherines.
My advice...
Wipe the hard drive and start over before you fall into the trap you set.
But how to detect which thing playing the mp3 and how to stop invisible mp3 player from playing ?
One way is ps -ef | grep mp3, hoping that the filename is displayed as part of the command's parameters. Or use sudo lsof | grep mp3 and find the correct mp3 file.
However, the process could have read the mp3 file, then closed it and play the sound from memory. This would require finding processes that either access sound hardware or communicate with the sound infrastructure, such as Pulseaudio or Jack, of your computer.
Last edited by berndbausch; 02-11-2021 at 07:59 AM.
One way is ps -ef | grep mp3, hoping that the filename is displayed as part of the command's parameters. Or use sudo lsof | grep mp3 and find the correct mp3 file.
However, the process could have read the mp3 file, then closed it and play the sound from memory. This would require finding processes that either access sound hardware or communicate with the sound infrastructure, such as Pulseaudio or Jack, of your computer.
Your method works.. i can locate the thread that play the mp3.
Is there any command that we can execute to list out the process that access sound server / service to play sound ? like what you said above ?
Your method works.. i can locate the thread that play the mp3.
Wonderful!
Quote:
Is there any command that we can execute to list out the process that access sound server / service to play sound ? like what you said above ?
Thanks
This is beyond my knowledge. I am sure that there are methods or tools, but I would have to spend a lot of time researching the theory of operation of the common audio frameworks, then ways of accessing their information.
For pulse 'pactl list sink-inputs' will list all programs playing sounds at the moment. In KDE this information is also available in audio volume in system tray on applications tab and you can mute misbehaving programs there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.