From kde-bugs-dist Mon Apr 17 12:02:50 2006 From: Koos Vriezen Date: Mon, 17 Apr 2006 12:02:50 +0000 To: kde-bugs-dist Subject: [Bug 45475] kmix should close /dev/mixer when idle Message-Id: <20060417120250.27698.qmail () ktown ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-bugs-dist&m=114527537408121 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. http://bugs.kde.org/show_bug.cgi?id=45475 ------- Additional Comments From koos.vriezen xs4all nl 2006-04-17 14:02 ------- I wonder why this isn't enabled for DBUS. If I do (on the KDE-3.5 branch) --- mixerIface.h (revision 530679) +++ mixerIface.h (working copy) @ -98,6 +98,16 @ */ virtual QString mixerName()=0; + /** + * Open/grab the mixer for further intraction + */ + virtual int open()=0; + + /** + * Close/release the mixer + */ + virtual int close()=0; + }; #endif it already works. Ie. I can do dcop kicker Mixer0 close which releases the module (atleast 'fuser /dev/snd/controlC0' shows no users anymore) and dcop kicker Mixer0 open to reopen. Of course this isn´t very user friendly, one has to write scripts, but when hit by this bug, that´s even worse. In my case when calling ´hibernate´ in the laptop daemon, kicker goes wild and writes my disk full with kmix: Mixer_ALSA::poll() , Error: poll() returns POLLNVAL lines (seems to be from my webcam microphone, but not sure). What do you think of this, is it save enough for the 3.5 branch to include?