2

Lately I noticed that something seems to be blocking various audio controls - mixer mostly. I can't access mixer window from taskbar, my keyboard volume knob doesn't work, mute too.

But - all the generated events are there, because when the problem goes away (usually in the range of 10-30 seconds), all the events that I generated (volume up/down, mute) are applied.

Any idea on what could that be, or how to debug it?

Straced kmix startup. And it looks like it was waitinf for some information from dbus - i see it sent and received some messages to fd=3 (which is earlier connected to /tmp/dbus-something), and then it waits 21 seconds!, and then it gets new message from dbus, message looks like:

27888 15:16:43.485816 recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"l\2\1\1\302\v\0\0,\0\0\0.\0\0\0\6\1s\0\6\0\0\0:1.102\0\0\5\1u\0\t\0\0\0\10\1g\0\1s\0\0\7\1s\0\5\0\0\0:1.44\0\0\0\275\v\0\0<!DOCTYPE node PUBLIC \"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN\"\n\"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd\">\n<node>\n  <interface name=\"org.kde.KApplication\">\n    <method name=\"updateUserTimestamp\">\n      <arg name=\"time\" type=\"i\" direction=\"in\"/>\n    </method>\n    <method name=\"updateUserTimestamp\">\n    </method>\n    <method name=\"reparseConfiguration\">\n    </method>\n    <method name=\"quit\">\n    </method>\n  </interface>\n  <interface name=\"com.trolltech.Qt.QApplication\">\n    <property name=\"cursorFlashTime\" type=\"i\" access=\"readwrite\"/>\n    <property name=\"doubleClickInterval\" type=\"i\" access=\"readwrite\"/>\n    <property name=\"keyboardInputInterval\" type=\"i\" access=\"readwrite\"/>\n    <property name=\"wheelScrollLines\" type=\"i\" access=\"readwrite\"/>\n    <property name=\"globalStrut\" type=\"(ii)\" access=\"readwrite\">\n      <annotation name=\"com.trolltech.QtDBus.QtTypeName\" value=\"QSize\"/>\n    </property>\n    <property name=\"startDragTime\" type=\"i\" access=\"readwrite\"/>\n    <property name=\"startDragDistance\" type=\"i\" access=\"readwrite\"/>\n    <property name=\"quitOnLastWindowClosed\" type=\"b\" access=\"readwrite\"/>\n    <property name=\"styleSheet\" type=\"s\" access=\"readwrite\"/>\n    <property name=\"autoSipEnabled\" type=\"b\" access=\"readwrite\"/>\n  </interface>\n  <interface name=\"com.trolltech.Qt.QCoreApplication\">\n    <property name=\"applicationName\" type=\"s\" access=\"readwrite\"/>\n    <property name=\"applicationVersion\" type=\"s\" access=\"readwrite\"/>\n    <property name=\"organizationName\" type=\"s\" access=\"readwrite\"/>\n    <property name=\"organizationDomain\" type=\"s\" access=\"readwrite\"/>\n  </interface>\n  <interface name=\"org.kde.KUniqueApplication\">\n    <method name=\"newInstance\">\n      <arg type=\"i\" direction=\"out\"/>\n      <arg name=\"asn_id\" type=\"ay\" direction=\"in\"/>\n      <arg name=\"args\" type=\"ay\" direction=\"in\"/>\n    </method>\n    <method name=\"newInstance\">\n      <arg type=\"i\" direction=\"out\"/>\n      <arg name=\"asn_id\" type=\"ay\" dir", 2048}], msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 2048 <0.000008>

It contains string "introspection" - no idea what it is about, but perhaps it could be related?

I am very willing to do additional tests/straces/whatever to solve the problem, so if you have any ideas - please speak up.

  • What Linux Distro and Audio Card do you have? – Riguez Mar 24 '11 at 13:57
  • It's kubuntu maverick. as for sound card - lspci shows: `00:1b.0 Audio device: Intel Corporation 82801JI (ICH10 Family) HD Audio Controller` –  Mar 24 '11 at 16:48

2 Answers2

1

Not an answer but lets me better format my suggestions than commenting.

Get your hands on some .wav files not sure what aplay supports natively but no point in trying to get it to support something like mp3 if it doesn't already.

Try to eliminate as my conflicting processes as possible by typing this at the command prompt.

  1. sudo init 3 ...this should drop you to the command-line only you can eliminate even more by entering single user mode sudo init 1 but it might eliminate to much not sure.

  2. Log in if not already and type alsamixer if its not found try sudo apt-get install alsa-utils first. Alsamixer will allow you to manipulate the volume with your arrow keys in the interface that it launches.

  3. Hit ctrl+alt+f1 this should bring you to a fresh command prompt login again.

  4. Execute aplay /path/to/sound.wav the file should start playing.

  5. Hit ctrl+alt+f7 to get back to the alsamixer if it is a blank prompt flip through them to find which one it is ctrl+alt+f2... etc etc.

  6. Start adjusting the volume to see if there is a delay.

sudo init 5 to get back your GUI

Riguez
  • 3,744
  • 2
  • 23
  • 30
  • alsamixer works fine even in konsole/kde. i suspect the dbus, but have no idea what it could be. –  Mar 24 '11 at 17:58
  • If the audio system works fine with alsamixer. Installing the proper drivers for your keyboard should fix that issue. Now we need to figure out what is wrong with the GUI audio mixer I have not used kubuntu so I dont know the name of it but if you could right click on the mixer and click about if it exists.. you can find out what the name of it is you could try uninstalling it and its related files and reinstalling it to see if something was broken.... – Riguez Mar 24 '11 at 19:45
  • after doing a search looks like it might be kmix.. an alternative to this is kalsamixer http://kalsamix.sourceforge.net/shots.php – Riguez Mar 24 '11 at 19:48
  • screensaver is also slow to finish. kmix is just one of applications that's easy to test. as for keyboard - keyboard works just fine. and the slowdown happens also when I click on icons (like the icon for kmix), or when closing screensaver. –  Mar 25 '11 at 08:12
  • gahhhh why are you posting that now lol – Riguez Mar 25 '11 at 10:58
  • What are your computers specs... and did this start recently or has it always been like this? Did you try a different distro using a LiveCD and it was the same? You might need to tone it down if it is just your computer not being able to handle it maybe try crunchbang or if you are like me use archlinux and build it up with openbox and tweak it exactly like you like it. – Riguez Mar 25 '11 at 11:06
  • https://help.ubuntu.com/community/Installation/SystemRequirements – Riguez Mar 25 '11 at 11:10
  • you should also `sudo apt-get install htop` and run it so you can get a better idea of how your system is doing. – Riguez Mar 25 '11 at 11:11
  • I have htop. System is not loaded. It's 12GB, i7 920, with wd velociraptor drives (/ on one disk, and /home on another). have yet to see it with load over 2. –  Mar 25 '11 at 23:28
  • Did you try to run the Kubuntu/Ubuntu LiveCD to see if the issue is the same in a clean environment? – Riguez Mar 26 '11 at 00:22
  • No. Reason is very simple - I remember that after install everything worked perfectly for some time, it just got worse afterwards. And (although it's less of an issue) I don't have any installation/live cd. –  Mar 26 '11 at 17:15
  • Had to ask you didn't state your question very clear saying "lately you noticed" something kinda implies it could have been there the entire time as opposed to it "worked perfectly" and then broke. – Riguez Mar 26 '11 at 17:26
  • try running "sudo apt-get update" and then "sudo apt-get install --fix-broken" – Riguez Mar 26 '11 at 17:27
  • system is up to date, nothing broken. installation of updates happens at least twice a week. –  Mar 28 '11 at 10:33
  • try this and reboot "sudo adduser your_username audio" – Riguez Mar 29 '11 at 13:13
  • here is a guide for normal ubuntu but should work for kubuntu http://www.howtogeek.com/howto/10964/how-to-fix-sound-issues-in-ubuntu-9.10/ ... I am thinking that an update broke your audio it happens :\ – Riguez Mar 29 '11 at 13:22
  • another thing to try is kill off pulse and use just alsa... "sudo apt-get remove pulseaudio-utils pulseaudio" & "pkill kmix && sudo alsa force-reload && kmix" then under "System Settings -> Multimedia" change your settings to ALSA/Your Audio card – Riguez Mar 29 '11 at 13:29
  • I need pulse because sometimes I use two soundcards - normal built in, and second, on usb - interface for wireless headphones. As for text on howtogeek - I don't have any of the problems they mention, so it's hard to judge whether it can be related. will try anyway. as for adding user to group. will do so, but reboot will take some time. –  Mar 29 '11 at 16:10
  • tested. adding myself to audio group didn't help. –  Mar 30 '11 at 09:23
  • :\ personally don't know what to tell you short of reinstalling and monitoring your updating... because it was working and then it wasn't after what I am assuming was many updates. This tells me one of them broke it or something else you installed separately broke it. If I were you I would not have them automatically install read on them first, It could have been an update to pulse itself seeing as it is always issues at least from what I have seen. – Riguez Mar 30 '11 at 13:47
  • sure, i understand. well - i still have no idea what it could be :( reinstallation is technically possible, but i'd prefer to avoid it. –  Mar 30 '11 at 19:49
1

You can get rid of kmix entirely and use shorcuts instead:

amixer -c 0 set Master 3- unmute
amixer -c 0 set Master 3+ unmute
amixer -c 0 set PCM 3- unmute
amixer -c 0 set PCM 3+ unmute

The first two will raise/lower the Master volume, the last two will do the same for PCM channel.

I have them mapped to Win+Up, Win-Down, and Ctr+Win+Up, Ctr+Win+Down accordingly. No more mousing around.

ccpizza
  • 7,456
  • 6
  • 54
  • 56
  • Well, sure, I know. I can also bind it to keyboard shortcuts. But I'm much more interested in source of the problem, and proper fix of it, rather than workaround. –  Mar 28 '11 at 22:04