LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-11-2021, 07:06 AM   #1
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Rep: Reputation: Disabled
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 ?

Thanks
 
Old 02-11-2021, 07:42 AM   #2
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
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.
 
Old 02-11-2021, 07:55 AM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by andrewysk View Post
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.
 
Old 02-11-2021, 09:09 AM   #4
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
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 ?

Thanks
 
Old 02-11-2021, 09:13 AM   #5
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by andrewysk View Post
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.
 
Old 02-11-2021, 10:39 AM   #6
lvm_
Member
 
Registered: Jul 2020
Posts: 984

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
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.

Last edited by lvm_; 02-11-2021 at 11:48 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Detect and Stop Compromised Email Accounts in Postfix deathsfriend99 Linux - Server 4 07-25-2016 10:52 AM
[SOLVED] Invisible-road problem playing Nitronic Rush with Wine on Ubuntu 12.04 lonekingc4 Linux - Games 2 04-24-2014 03:16 AM
How to detect and stop port scan from VPS node? zngr Linux - Security 7 05-29-2013 05:13 PM
invisible chrs and no newline in bash after running script with 'trap 2' and 'read' SlackerJack Linux - General 3 08-11-2008 11:03 AM
my mp3 player and thumb drive is invisible iamr00t Linux - Hardware 0 04-12-2004 02:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration