View previous topic :: View next topic |
Author |
Message |
EddyC n00b
Joined: 14 Dec 2011 Posts: 10
|
Posted: Fri Dec 14, 2012 1:02 am Post subject: Problem with alsasound after Kernel 3.7.0 upgrade |
|
|
alsasound on boot is displaying this message:
alsactl: set_control:1464: Cannot write control '3:3:0:Playback Channel Map:0' : File descriptor in bad state
workaround to fix sound after login:
alsamixer, hit F6, choose soundcard, raise the volume for Speakers
or
alsactl init
I have tried to change /etc/init.d/alsasound to bypass this error, It is successful till the login page (I hear login sound)
After I login, the volume is really quiet and I barely hear a small noise when running music for example.
I am supposed each time I login to do any of the above workarounds.
Any idea about the problem?
EDIT
Debug log for /etc/init.d/alsasound -d restart
+ alsactl -I -f /var/lib/alsa/asound.state restore 0
alsactl: set_control:1464: Cannot write control '3:3:0:Playback Channel Map:0' : File descriptor in bad state
Last edited by EddyC on Mon Dec 17, 2012 11:34 am; edited 1 time in total |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6645 Location: The soundosphere
|
|
Back to top |
|
|
EddyC n00b
Joined: 14 Dec 2011 Posts: 10
|
Posted: Fri Dec 14, 2012 5:42 pm Post subject: |
|
|
Portage 2.1.11.37 (default/linux/amd64/10.0/desktop/gnome, gcc-4.6.3, glibc-2.16.0, 3.7.0-gentoo x86_64)
=================================================================
System uname: Linux-3.7.0-gentoo-x86_64-Intel-R-_Core-TM-_i3_CPU_M_330_@_2.13GHz-with-gentoo-2.2
Timestamp of tree: Fri, 14 Dec 2012 15:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash: 4.2_p39
dev-java/java-config: 2.1.12-r1
dev-lang/python: 2.7.3-r2, 3.2.3-r1
dev-util/cmake: 2.8.10.2
dev-util/pkgconfig: 0.27.1
sys-apps/baselayout: 2.2
sys-apps/openrc: 0.11.8
sys-apps/sandbox: 2.6
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.6, 1.12.5
sys-devel/binutils: 2.23.1
sys-devel/gcc: 4.6.3
sys-devel/gcc-config: 1.8
sys-devel/libtool: 2.4.2
sys-devel/make: 3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc: 2.16.0
Repositories: gentoo Armageddon maggu2810-overlay sunrise x-sabayon
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=2"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/Armageddon /var/lib/layman/maggu2810-overlay /var/lib/layman/sunrise /var/lib/layman/sabayon"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aiglx alsa amd64 aoss asf berkdb bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups cxx dans dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gif glitz gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk hal iconv java jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses new-login nls nptl nsplugin ogg opengl openmp pam pango pcre pdf png policykit ppds pppd pulseaudio qt3support readline samba sdl session socialweb spell sqlite sse sse2 ssl startup-notification svg symlink tcpd threads tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xcomposite xinerama xml xorg xscreensaver xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ar" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6645 Location: The soundosphere
|
|
Back to top |
|
|
EddyC n00b
Joined: 14 Dec 2011 Posts: 10
|
Posted: Sat Dec 15, 2012 4:59 pm Post subject: |
|
|
Yes, definitely after upgrade to 3.7.0
I was on 3.6.10 with no audio problem |
|
Back to top |
|
|
agent_jdh Veteran
Joined: 08 Aug 2002 Posts: 1783 Location: Scotland
|
Posted: Sat Dec 15, 2012 8:57 pm Post subject: |
|
|
I'm seeing the "file descriptor in bad state" message at boot as well with 3.7.0 (Intel HDA), using KDE here and once the audio control centre has identified the new devices, and deleted the old, it doesn't appear to have any adverse effect on volumes - save and restore works OK across boots. I haven't tested if the HDMI output through my NVidia card works though, maybe that's what the errors are related to. _________________ Jingle Jangle Jewellery |
|
Back to top |
|
|
Fran Guru
Joined: 29 Feb 2004 Posts: 530 Location: Coruña (Spain)
|
Posted: Sun Dec 16, 2012 4:39 pm Post subject: |
|
|
I get
Code: | $ sudo /etc/init.d/alsasound restart
* Storing ALSA Mixer Levels ... [ ok ]
* Restoring Mixer Levels ...
alsactl: set_control:1464: Cannot write control '3:3:0:Playback Channel Map:0' : File descriptor in bad state
alsactl: set_control:1464: Cannot write control '3:7:0:Playback Channel Map:0' : File descriptor in bad state
alsactl: set_control:1464: Cannot write control '3:8:0:Playback Channel Map:0' : File descriptor in bad state
alsactl: set_control:1464: Cannot write control '3:9:0:Playback Channel Map:0' : File descriptor in bad state
|
but sound works without problems.
FYI, alsamixer detects three cards: HDA ATI SB, HDA NVidia and VF0610 Live! Cam Socialize HD. |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6645 Location: The soundosphere
|
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Sun Dec 16, 2012 11:23 pm Post subject: |
|
|
Hi, I'm using XFCE and I upgraded too. I have the same error but my sound is working too.
Last edited by d2_racing on Tue Dec 18, 2012 1:22 pm; edited 1 time in total |
|
Back to top |
|
|
Fran Guru
Joined: 29 Feb 2004 Posts: 530 Location: Coruña (Spain)
|
Posted: Mon Dec 17, 2012 9:18 am Post subject: |
|
|
audiodef wrote: | EddyC, since you are using the gnome profile, am I correct to assume you are using Gnome? Can you temporarily install some other WM or DE (such as XFCE, LXDM or Fluxbox) and see if you have the same problem? |
I'm using i3, no pulseaudio. |
|
Back to top |
|
|
pappy_mcfae Watchman
Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Mon Dec 17, 2012 10:02 am Post subject: |
|
|
It appears as if this is just another bug showing up in 3.7.0. At first blush, 3.7.0 seems to have some pretty intense bugs.
I have one machine that just won't run with it. This is a headless server that somehow forgot that it has reiserfs. I had to rustle up a monitor and power cord and backpedal it to 3.6.8, which of course, booted quite normally.
On this machine, it won't load the wireless driver (ndiswrapper), and I get a general feeling of instability from this batch of source. I'd recommend writing bug reports on all the separate audio issues. You can start with Gentoo's Bugzilla, but you will most likely also have to post a bug report at the kernel-dot-org Bugzilla as well. If the ndiswrapper bug hasn't been fixed yet, I'll probably end my day sending that one along. It's been a while since I posted a bug report. Woohoo! More emails!
Cheers,
Pappy _________________ This space left intentionally blank, except for these ASCII symbols. |
|
Back to top |
|
|
frostschutz Advocate
Joined: 22 Feb 2005 Posts: 2977 Location: Germany
|
Posted: Mon Dec 17, 2012 10:35 am Post subject: |
|
|
Not sure if this is related, but for my sound card (creative xfi) I had to reset / save mixer levels after switching to 3.7.0. It would print a similar message to the OP's (didn't write it down though) and cause noise. So something about the asound.state file changed.
See if it still happens when you delete/rename /etc/asound.state /var/lib/alsa/asound.state and (after a reboot) you recreate them using /etc/init.d/alsasound save and alsactl store |
|
Back to top |
|
|
EddyC n00b
Joined: 14 Dec 2011 Posts: 10
|
Posted: Mon Dec 17, 2012 10:42 am Post subject: |
|
|
audiodef wrote: | EddyC, since you are using the gnome profile, am I correct to assume you are using Gnome? Can you temporarily install some other WM or DE (such as XFCE, LXDM or Fluxbox) and see if you have the same problem? |
I confirm issue reproducible with XFCE |
|
Back to top |
|
|
EddyC n00b
Joined: 14 Dec 2011 Posts: 10
|
Posted: Mon Dec 17, 2012 10:43 am Post subject: |
|
|
frostschutz wrote: | Not sure if this is related, but for my sound card (creative xfi) I had to reset / save mixer levels after switching to 3.7.0. It would print a similar message to the OP's (didn't write it down though) and cause noise. So something about the asound.state file changed.
See if it still happens when you delete/rename /etc/asound.state /var/lib/alsa/asound.state and (after a reboot) you recreate them using /etc/init.d/alsasound save and alsactl store |
I confirm issue is still there after removing asound.state |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6645 Location: The soundosphere
|
|
Back to top |
|
|
EddyC n00b
Joined: 14 Dec 2011 Posts: 10
|
Posted: Mon Dec 17, 2012 2:26 pm Post subject: |
|
|
audiodef wrote: | EddyC, see pappy_mcfae's post above. It is likely this is a kernel bug, and you could either file a bug report or downgrade to a kernel that does not have this issue. |
Already done that! Thanks for your short notification. |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6645 Location: The soundosphere
|
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6645 Location: The soundosphere
|
|
Back to top |
|
|
puchuu n00b
Joined: 15 Aug 2012 Posts: 5
|
Posted: Mon Dec 17, 2012 7:06 pm Post subject: |
|
|
same problem. I cant see perfect values of "period_size" and "buffer_size" in /proc/asound/card2/pcm0p/sub0/hw_params. it is just "closed" =( |
|
Back to top |
|
|
pappy_mcfae Watchman
Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Mon Dec 17, 2012 9:10 pm Post subject: |
|
|
audiodef,
There are times when I wonder what's happening at kernel-dot-com. There was a period of time before KMS became stable that I had to stick with an older kernel source that didn't demand it. That period was about nine months long. What a drag.
I say again folks, send bug reports. Even better, perhaps post the bug report here so others can see if it fits their situation as well. That way, they can keep an eye on coming changes.
Cheers,
Pappy _________________ This space left intentionally blank, except for these ASCII symbols. |
|
Back to top |
|
|
alonbl n00b
Joined: 30 Jun 2005 Posts: 57
|
Posted: Tue Dec 18, 2012 7:18 am Post subject: |
|
|
After resume from ram I get:
Code: |
Dec 18 09:09:56 localhost kernel: hda-intel: Unstable LPIB (61856 >= 8192); disabling LPIB delay counting
|
|
|
Back to top |
|
|
Joseph K. Guru
Joined: 07 Jun 2006 Posts: 436 Location: Sydney, Australia
|
Posted: Wed Dec 19, 2012 12:31 am Post subject: |
|
|
I have an Intel HDA and had sound problems at first when upgrading to 3.7, which I fixed by deleting asound.state and rebooting.
If you want to narrow it down further, it's probably not even necessary to reboot: just restart the alsasound script. Good luck. |
|
Back to top |
|
|
frostschutz Advocate
Joined: 22 Feb 2005 Posts: 2977 Location: Germany
|
Posted: Wed Dec 19, 2012 10:07 am Post subject: |
|
|
Joseph K. wrote: | I have an Intel HDA and had sound problems at first when upgrading to 3.7, which I fixed by deleting asound.state and rebooting. |
That's what I did but apparently there are two different problems since it didn't work for other people.
Or it could be the save alsasound on shutdown setting, I have that disabled, so after deleting the asound.state, the init script does not write it back before the reboot for me. |
|
Back to top |
|
|
Joseph K. Guru
Joined: 07 Jun 2006 Posts: 436 Location: Sydney, Australia
|
Posted: Thu Dec 20, 2012 7:26 am Post subject: |
|
|
And having said that, I am still having problems with ALSA and some other weird stuff happening, so I am going to go with 3.6 until the major quirks in 3.7 are resolved. |
|
Back to top |
|
|
GFCCAE6xF Apprentice
Joined: 06 Aug 2012 Posts: 295
|
Posted: Thu Dec 20, 2012 8:14 am Post subject: |
|
|
Nothing new to add but I have the same issue with 3.7.1 -
Code: |
# /etc/init.d/alsasound restart
alsasound | * WARNING: you are stopping a boot service
alsasound | * Storing ALSA Mixer Levels ... [ ok ]
alsasound | * Restoring Mixer Levels ...
alsasound |alsactl: set_control:1464: Cannot write control '3:3:0:Playback Channel Map:0' : File descriptor in bad state
alsasound |alsactl: set_control:1464: Cannot write control '3:7:0:Playback Channel Map:0' : File descriptor in bad state
alsasound |alsactl: set_control:1464: Cannot write control '3:8:0:Playback Channel Map:0' : File descriptor in bad state
alsasound |alsactl: set_control:1464: Cannot write control '3:9:0:Playback Channel Map:0' : File descriptor in bad state [ ok ]
|
I'm assuming it was the same with 3.7.0 - I use Intel HDA also, but have not lost any sound (hence why I only noticed this crop up last night when I saw OpenRC throw the messages out for me). |
|
Back to top |
|
|
|