Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with alsasound after Kernel 3.7.0 upgrade
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Yamakuzure
Veteran
Veteran


Joined: 21 Jun 2006
Posts: 1238
Location: Bardowick, Germany

PostPosted: Tue Jan 15, 2013 1:04 pm    Post subject: Reply with quote

pste wrote:
(...) and inspired by both of you I did the second oneliner to find the remaining packages with leftover udev rules...
Code:
#1 : for f in $(equery d udev | cut -f1); do emerge -v1 =$f; done

#2 : for f in $(equery b /usr/lib/udev/rules.d/* | cut -f1); do emerge -v1 =$f; done
What about the message left of the udev update?
Code:
 * Please re-emerge all packages on your system which install
 * rules and helpers in /usr/lib/udev. They should now be in
 * /lib/udev.
 *
 * One way to do this is to run the following command:
 * emerge -av1 $(qfile -q -S -C /usr/lib/udev)
 * Note that qfile can be found in app-portage/portage-utils
It had the list ready in about two seconds on my laptop. ;) (Note: "qfile" belongs to app-portage/portage-utils)
_________________
I *do* know that I easily aggravate people due to my condensed writing. Rule of thumb: If I wrote anything that can be understood in two different ways, and one way offends you, then I meant the other! ;)
Back to top
View user's profile Send private message
nutsi
n00b
n00b


Joined: 13 Jul 2012
Posts: 30

PostPosted: Tue Jan 15, 2013 1:48 pm    Post subject: Reply with quote

Hi,

I have a similar problem after kernel update (3.6.8 to 3.7.2).
My card sound work (i can play sound etc...), but alsamixer says : cannot open mixer : No such file or directory.

Code:
nuts~$ls /dev/mi*
/dev/mixer /dev/mixer1


and

Code:
nuts~$ls /dev/snd/control*
/dev/snd/controlC0  /dev/snd/controlC1


I run alsamixer with strace, and he tries to find /dev/snd/control[0-31], I don't have this file.
So, I delete de HDMI HD codec for snd_hda_intel in the kernel. The problem stay....

When I downgroad my kernel (return to 3.6.8), the control volume return and alsamixer works correctly.
snd_hda_intel is broken? or it's udev?
Back to top
View user's profile Send private message
pste
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2004
Posts: 90

PostPosted: Thu Jan 17, 2013 11:33 am    Post subject: Reply with quote

@Yamakuzure - sorry for not answering quicker, somehow I have stopped getting topic update notification emails (maybe I clicked the 'stop watching' link by mistake...)

Of course, the qlist instruction is quicker, the problem is when you do a substantial update I believe it is easy to miss some of the messages, and later when problems occur it is kind of difficult to recollect what have been done...

I found the oneliner really neat as a general problem solver (more explicitly geared to a specific update compared to revdep-rebuild, and simply had a desire to pay may respect by adding to it. I do realize that the equery b ... variant is totally unnecessary if there always are messages hinting of a move and the qlist trick... I take my hat off! (qlist is great, the only thing I miss in it, and in equery, is the possibility to see when, or filter out, packages that are unmasked by my own keywords file, any tips?)

Just wanted to add a curiosity, or have I misunderstood something? Today I upgraded udev again, from 197-r2 to 197-r3 and I thought I'd use the neat oneliner with udev dependencies. However, i get the following response (I added the -C option just to make sure colors weren't interfereing...)
Code:
 # emerge -pv1 $(equery -C d udev | cut -f1)
!!! 'app-admin/system-config-printer-common-1.3.11-r1' is not a valid package atom.
!!! Please check ebuild(5) for full details.

 # emerge -pv1 system-config-printer-common-1.3.11-r1
!!! 'system-config-printer-common-1.3.11-r1' is not a valid package atom.
!!! Please check ebuild(5) for full details.

 # emerge -pv1 system-config-printer-common

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] app-admin/system-config-printer-common-1.3.11-r1  USE="policykit -doc" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
 # equery l -p system-config-printer-common
 * Searching for system-config-printer-common ...
[-P-] [  ] app-admin/system-config-printer-common-1.3.9-r2:0
[IP-] [  ] app-admin/system-config-printer-common-1.3.11-r1:0
[-P-] [ ~] app-admin/system-config-printer-common-1.3.12:0
 #


Why isn't the explicit package version a valid atom? The format worked for the previous update...

And also, my above described behaviour with volume and sound control persists...

/pste
Back to top
View user's profile Send private message
renegart
Tux's lil' helper
Tux's lil' helper


Joined: 30 Oct 2012
Posts: 122

PostPosted: Thu Jan 17, 2013 2:32 pm    Post subject: Reply with quote

You need either add ~ or = to create a valid atom.

Code:
emerge -pv1 ~system-config-printer-common-1.3.11

or
Code:
emerge -pv1 =system-config-printer-common-1.3.11-r1
Back to top
View user's profile Send private message
gabrielm79
n00b
n00b


Joined: 18 Sep 2005
Posts: 47
Location: Alexandroupoli , Greece

PostPosted: Thu Jan 17, 2013 4:57 pm    Post subject: Reply with quote

Hello.

I finally found out , at least at my occasion what the problem is.
I had audio with alsa with gentoo-sources 3.7.1 till 15/01/2013 when i updated world.
I tried to downgrade udev from 197-r3 to 196-r1 but nothing changed.
Next i downgraded kernel to 3.6.11 but nothing again.
Alsamixer was showing unmuted and working.

Anyway , the problem was timidity. I believe it's matter of media-sound/pulseaudio cause with htop i was seeing a user:timidity brought by pulseaudio.I do have timidity for tuxguitar and midi sound.

Then i zapped the timidity service restarted alsasound and audio came back.

And now sound is playing with kernel 3.7.1 and udev-197-r3

I will try to downgrade pulseaudio to see if that is the problem

Best Regards,
Gabriel M
Back to top
View user's profile Send private message
pste
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2004
Posts: 90

PostPosted: Thu Jan 17, 2013 5:04 pm    Post subject: Reply with quote

@renegart - yeah of course, I discovered that I missed the entire loop over f and the emerge -pv1 =$f in my latter oneliner, thank you for guiding the stupid :oops:
/pste
Back to top
View user's profile Send private message
ryszardzonk
Apprentice
Apprentice


Joined: 18 Dec 2003
Posts: 182
Location: Rzeszów, POLAND

PostPosted: Tue Jan 22, 2013 8:59 am    Post subject: Reply with quote

part of the Kernel 3.7.4 is the following change

https://www.kernel.org/pub/linux/kernel/v3.0/ChangeLog-3.7.4
Quote:
commit 66b99611a03866692370848760b94750384f8c39
Author: Takashi Iwai <tiwai@suse.de>
Date: Tue Jan 15 14:44:41 2013 +0100

ALSA: hda/hdmi - Work around "alsactl restore" errors

commit 6f54c361329dbb67dac9de174e938992651d12d7 upstream.

When "alsactl restore" is performed on HDMI codecs, it tries to
restore the channel map value since the channel map controls are
writable. But hdmi_chmap_ctl_put() returns -EBADFD when no PCM stream
is assigned yet, and this results in an error message from alsactl.
Although the error is harmless, it's certainly ugly and can be
regarded as a regression.

As a workaround, this patch changes the return code in such a case to
be zero for making others happy. (A slight excuse is: when the chmap
is changed through the proper alsa-lib API, the PCM status is checked
there anyway, so we don't have to be too strict in the kernel side.)

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>


EDIT: Unfortunately at least in my case that didn't help as I still get

Code:
alsactl: set_control:1464: Cannot write control '3:3:0:Playback Channel Map:0' : File descriptor in bad state

_________________
Sky is not the limit...
Back to top
View user's profile Send private message
nutsi
n00b
n00b


Joined: 13 Jul 2012
Posts: 30

PostPosted: Tue Jan 22, 2013 8:02 pm    Post subject: .. Reply with quote

I think this patch (http://www.mail-archive.com/stable@vger.kernel.org/msg29114.html) will not work for us.
I haven't tested yet, but if hdmi_chmap_ctl_put must return EBADFD, this must be a problem and just bypass this error isn't a solution for us. The problem must be front.
But I can be wrong.
Back to top
View user's profile Send private message
ExecutorElassus
l33t
l33t


Joined: 11 Mar 2004
Posts: 733
Location: Stuttgart, Germany

PostPosted: Tue Jan 22, 2013 10:24 pm    Post subject: Reply with quote

I get the following error from audacious, with no further information from the console. I had sound fine with the 3.7.2 kernel, and then it disappeared when I updated today to 3.7.3.

'alsamixer' and 'alsactl store' appear to be working properly. However, I have no sound. audacious says:

Code:
snd_mixer_attach failed: No such file or directory


Any advice on what's going wrong?

Also, on a side note, 'emerge -pav1 $(qfile -q -S -C /usr/lib/udev)' returns the following:

Code:
 # emerge -pav1 $(qfile -q -S -C /usr/lib/udev)

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] media-libs/libmtp-1.1.5  USE="crypt -doc -examples -static-libs" 707 kB
[ebuild   R    ] media-gfx/sane-backends-1.0.23  USE="ipv6 threads usb -avahi -doc -gphoto2 -v4l -xinetd" SANE_BACKENDS="abaton agfafocus apple artec artec_eplus48u as6e avision bh canon canon630u canon_dr canon_pp cardscan coolscan coolscan2 coolscan3 dc210 dc240 dc25 dell1600n_net dmc epjitsu epson epson2 fujitsu genesys gt68xx hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005 hpsj5s hs2p ibm kodak kodakaio kvs1025 kvs20xx kvs40xx leo lexmark ma1509 magicolor matsushita microtek microtek2 mustek mustek_pp mustek_usb mustek_usb2 nec net niash p5 pie pixma plustek plustek_pp qcam ricoh rts8891 s9036 sceptre sharp sm3600 sm3840 snapscan sp15c st400 stv680 tamarack teco1 teco2 teco3 {test} u12 umax umax1220u umax_pp xerox_mfp -pnm" 5,218 kB
[ebuild   R    ] media-sound/alsa-utils-1.0.26-r1:0.9  USE="libsamplerate ncurses nls -doc -minimal (-selinux)" 4,879 kB
[ebuild     U  ] sys-fs/lvm2-2.02.98 [2.02.97-r1] USE="lvm1 readline static thin udev -clvm -cman (-selinux) -static-libs" 0 kB
[ebuild   R    ] sys-fs/mdadm-3.2.6  USE="static" 363 kB
[ebuild   R    ] sys-auth/consolekit-0.4.5_p20120320-r1  USE="acl pam policykit -debug -doc (-selinux) {-test}" 101 kB
[ebuild   R    ] sys-power/upower-0.9.19  USE="introspection -debug -doc -ios (-systemd)" 0 kB
[ebuild   R    ] app-admin/system-config-printer-common-1.3.12  USE="policykit -doc" 927 kB
[ebuild   R    ] net-wireless/bluez-4.101-r5  USE="alsa consolekit gstreamer readline usb -cups* -debug -pcmcia (-selinux) -test-programs" PYTHON_SINGLE_TARGET="python2_7 -python2_6" PYTHON_TARGETS="python2_7 -python2_6" 0 kB
[ebuild     U  ] sys-fs/udev-init-scripts-21 [19] 0 kB
[ebuild   R    ] net-wireless/gnome-bluetooth-3.6.1:2/11 [3.6.1:2/2] USE="introspection -debug -sendto" 0 kB
[ebuild  N     ] sys-fs/eudev-1_beta1-r2  USE="gudev hwdb modutils openrc static-libs -doc -introspection -keymap -kmod (-selinux)" 1,589 kB
[ebuild     U  ] virtual/udev-197 [196] USE="gudev hwdb static-libs -introspection -keymap (-selinux) (-acl%*)" 0 kB
[ebuild   R    ] sys-fs/udisks-1.0.4-r4  USE="nls -debug -remote-access (-selinux)" 0 kB
[ebuild     U  ] x11-misc/colord-0.1.28:0/1 [0.1.26-r1:0/1] USE="gusb introspection udev -doc -examples -extra-print-profiles% -systemd -vala" 841 kB
[uninstall     ] media-gfx/shared-color-profiles-0.1.5
[blocks b      ] media-gfx/shared-color-profiles ("media-gfx/shared-color-profiles" is blocking x11-misc/colord-0.1.28)
[blocks b      ] >=x11-misc/colord-0.1.27 (">=x11-misc/colord-0.1.27" is blocking media-gfx/shared-color-profiles-0.1.5)
[blocks B      ] sys-fs/udev ("sys-fs/udev" is blocking sys-fs/eudev-1_beta1-r2)

Total: 15 packages (4 upgrades, 1 new, 10 reinstalls, 1 uninstall), Size of downloads: 14,623 kB
Conflict: 3 blocks (1 unsatisfied)

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

virtual/udev:0

  (virtual/udev-197::gentoo, ebuild scheduled for merge) pulled in by
    >=virtual/udev-197[gudev,hwdb] required by (sys-fs/udisks-1.0.4-r4::gentoo, ebuild scheduled for merge)

  (virtual/udev-196::gentoo, installed) pulled in by
    =virtual/udev-196 required by (media-video/vlc-2.0.5::gentoo, installed)
    (and 23 more with the same problem)


Is eudev-1_beta-r2 ready for use? Can I drop old udev and switch over? Will that totally børk my system?

Cheers,

EE
PS- Here's some more foolishness: vlc returns this error:
Code:
The audio device "surround51:CARD=SB,DEV=0"could not be used: Invalid argument.


I previously had pulseaudio installed, which had the card configured for 5.1 surround. Now I've removed pulseaudio; could this be related?
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1122

PostPosted: Tue Jan 22, 2013 10:40 pm    Post subject: Reply with quote

/usr/lib/udev - is depreciated
after a short journey /lib/udev to /usr/lib/udev to again now /lib/udev
If you are running new kernels keep staying with udev and do what portage proposes to you!
_________________
fun2gen2
Back to top
View user's profile Send private message
ExecutorElassus
l33t
l33t


Joined: 11 Mar 2004
Posts: 733
Location: Stuttgart, Germany

PostPosted: Tue Jan 22, 2013 11:19 pm    Post subject: Reply with quote

hrm, running that command against '/lib/udev/' produced much less scary results.

Anyway, what about the audio issue? Is that also udev not finding something?

Cheers,

EE
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1122

PostPosted: Wed Jan 23, 2013 12:13 am    Post subject: Reply with quote

No, you must rebuild all ebuilds which produced files into /usr/lib/udev
because this dir is obsoleted
_________________
fun2gen2
Back to top
View user's profile Send private message
ExecutorElassus
l33t
l33t


Joined: 11 Mar 2004
Posts: 733
Location: Stuttgart, Germany

PostPosted: Wed Jan 23, 2013 12:15 am    Post subject: Reply with quote

EDIT: nvm, it's no longer telling me it wants to install eudev, so now it's not so scary.

However, is this what's causing sound to puke? Or am I confronting some other problem?

EDIT #2: Man, §$%/(!! udev. I re-emerged all the junk that qlist command said build against /usr/lib/udev, rebooted (is there any other way to re-start udev safely?), and now I have sound again. Srsly, tho, I hate udev so much.

Thanks for the help, though.

Cheers,

EE
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1122

PostPosted: Wed Jan 23, 2013 1:12 am    Post subject: Reply with quote

:)
Me too (hate udev): Using Debian unstable for years the only 3 times the system was unbootable it was an upgrade of:
udev
:(
_________________
fun2gen2
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum