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 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
EddyC
n00b
n00b


Joined: 14 Dec 2011
Posts: 10

PostPosted: Fri Dec 14, 2012 1:02 am    Post subject: Problem with alsasound after Kernel 3.7.0 upgrade Reply with quote

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
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Fri Dec 14, 2012 4:56 pm    Post subject: Reply with quote

I'm going to check this out. I've installed 3.7.0 and need to reboot. Posting to keep this in my "view your posts" lists so I can come back to it.

EDIT:

Rebooted, have no such problem. Let's see if we can figure this out. Please post your emerge --info.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
EddyC
n00b
n00b


Joined: 14 Dec 2011
Posts: 10

PostPosted: Fri Dec 14, 2012 5:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Sat Dec 15, 2012 4:49 pm    Post subject: Reply with quote

Did you recently upgrade to gentoo-sources-3.7.0? Did this problem start after you upgraded the kernel?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
EddyC
n00b
n00b


Joined: 14 Dec 2011
Posts: 10

PostPosted: Sat Dec 15, 2012 4:59 pm    Post subject: Reply with quote

Yes, definitely after upgrade to 3.7.0

I was on 3.6.10 with no audio problem
Back to top
View user's profile Send private message
agent_jdh
Veteran
Veteran


Joined: 08 Aug 2002
Posts: 1783
Location: Scotland

PostPosted: Sat Dec 15, 2012 8:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Fran
Guru
Guru


Joined: 29 Feb 2004
Posts: 530
Location: Coruña (Spain)

PostPosted: Sun Dec 16, 2012 4:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Sun Dec 16, 2012 8:59 pm    Post subject: Reply with quote

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?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sun Dec 16, 2012 11:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
Fran
Guru
Guru


Joined: 29 Feb 2004
Posts: 530
Location: Coruña (Spain)

PostPosted: Mon Dec 17, 2012 9:18 am    Post subject: Reply with quote

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
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Mon Dec 17, 2012 10:02 am    Post subject: Reply with quote

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
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Mon Dec 17, 2012 10:35 am    Post subject: Reply with quote

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
View user's profile Send private message
EddyC
n00b
n00b


Joined: 14 Dec 2011
Posts: 10

PostPosted: Mon Dec 17, 2012 10:42 am    Post subject: Reply with quote

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
View user's profile Send private message
EddyC
n00b
n00b


Joined: 14 Dec 2011
Posts: 10

PostPosted: Mon Dec 17, 2012 10:43 am    Post subject: Reply with quote

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
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Mon Dec 17, 2012 2:25 pm    Post subject: Reply with quote

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.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
EddyC
n00b
n00b


Joined: 14 Dec 2011
Posts: 10

PostPosted: Mon Dec 17, 2012 2:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Mon Dec 17, 2012 2:34 pm    Post subject: Reply with quote

Thanks for the helpful info, Pappy! :)
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Mon Dec 17, 2012 2:35 pm    Post subject: Reply with quote

EddyC wrote:
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.


:)
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
puchuu
n00b
n00b


Joined: 15 Aug 2012
Posts: 5

PostPosted: Mon Dec 17, 2012 7:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Mon Dec 17, 2012 9:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
alonbl
n00b
n00b


Joined: 30 Jun 2005
Posts: 57

PostPosted: Tue Dec 18, 2012 7:18 am    Post subject: Reply with quote

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
View user's profile Send private message
Joseph K.
Guru
Guru


Joined: 07 Jun 2006
Posts: 436
Location: Sydney, Australia

PostPosted: Wed Dec 19, 2012 12:31 am    Post subject: Reply with quote

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
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Wed Dec 19, 2012 10:07 am    Post subject: Reply with quote

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
View user's profile Send private message
Joseph K.
Guru
Guru


Joined: 07 Jun 2006
Posts: 436
Location: Sydney, Australia

PostPosted: Thu Dec 20, 2012 7:26 am    Post subject: Reply with quote

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
View user's profile Send private message
GFCCAE6xF
Apprentice
Apprentice


Joined: 06 Aug 2012
Posts: 295

PostPosted: Thu Dec 20, 2012 8:14 am    Post subject: Reply with quote

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
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 1, 2, 3  Next
Page 1 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