Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
alsa and new laptops with complicated hardware
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
disperato
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2004
Posts: 116

PostPosted: Tue Mar 04, 2014 7:50 pm    Post subject: alsa and new laptops with complicated hardware Reply with quote

hi guys,

here is my problem with alsa and a clevo p150sm (or sager np8265). Obviously alsa cannot work properly (I am a nostalgic of OSS).

Code:
# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: MID [HDA Intel MID], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: MID [HDA Intel MID], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: MID [HDA Intel MID], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


Code:
aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=MID,DEV=0
    HDA Intel MID, HDMI 0
    HDMI Audio Output
hdmi:CARD=MID,DEV=1
    HDA Intel MID, HDMI 1
    HDMI Audio Output
hdmi:CARD=MID,DEV=2
    HDA Intel MID, HDMI 2
    HDMI Audio Output
default:CARD=PCH
    HDA Intel PCH, ALC892 Analog
    Default Audio Device
sysdefault:CARD=PCH
    HDA Intel PCH, ALC892 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    Front speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Digital
    IEC958 (S/PDIF) Digital Audio Output


Tried to play an ogg file of mine (my.ogg, that works on other laptops):
alsaplayer -o alsa -d hw:1,1 my.ogg
alsaplayer -o alsa -d hw:1,0 my.ogg
alsaplayer -o alsa -d hw:0,7 my.ogg
alsaplayer -o alsa -d hw:0,8 my.ogg
alsaplayer -o alsa -d hw:0,3 my.ogg

result, everytime: no sound, the message "no stream" in the player, following messages in terminal:
CBSetcurrent: 1
CBSetcurrent: 1
(had to terminate with ^C)

Running alsamixer always consider as default card a useless "0 HDA Intel MID" instead of "1 HDA Intel PCH"
With F6 I can choose the "1 HDA Intel PCH" and see the controls (and adjust them), but no sound at all.

What I found at the official wiki doesn't help (http://wiki.gentoo.org/wiki/ALSA )

May anyone give me hints on how to experiment to found a working config?
_________________
The free men's path is always obstructed by mediocrity.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 5256

PostPosted: Wed Mar 05, 2014 3:43 am    Post subject: Reply with quote

Have you done this?

https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture#Set_the_default_sound_card
_________________
Gentoo Studio: http://gentoostudio.org
Facebook: http://www.facebook.com/gentoostudio
G+: https://plus.google.com/113947758237122861689/posts
Pappy's Kernel Seeds: http://kernel-seeds.org
Back to top
View user's profile Send private message
disperato
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2004
Posts: 116

PostPosted: Fri Mar 07, 2014 2:38 pm    Post subject: Reply with quote

Thank you for your reply. That guide is utterly frustrating because almost nothing found there worked in my case, nor is working right now. Nonetheless my specific problem is now solved beacuse I get sound, and of high quality indeed, either by speakers or by headphones (with the jack sensors working, of course).
What i did:
got rid of anything related to alsa, included settings (I didn't have .asoundrc, though), i.e.
Code:
emerge --unmerge alsalib alsa-tools alsa-utils alsa-firmware
(maybe others, can't remember);
unmerged gstreamer and related, too (I use gstreamer with xfce4);
reboot;
emerged them again and reboot;
checked the /etc/group for users in the audio group (already ok);
checked presence of /dev/snd/* files and permissions (already ok);
VERY IMPORTANT: wrote .asoundrc for every user:

Code:
#.asoundrc
defaults.pcm.!card 1
defaults.pcm.!device 0


can't remember if did a reboot or restarted alsasound

Things work now 8)
gstreamer, worked smoothly in xfce4. At the first launch of the volume plugin in the xfce4 panel had to choose the right alsa mixer (that in my case is Intel PCH vs Intel MID).
alsactl stores and restores settings between sessions, as usual (alsactl store / alsactl restore in scripts *.start *.stop in /etc/local.d/)

When invoked, alsamixer goes on showing the HDMI (MID) as the first card (card 0), and the actual device that I use as the second card (card 1). Plus the commands I listed as not working in my post still give no sound. BTW alsamixer lets me to select the appropriate card (every session, not a kept setting), and adjust volumes (these are kept, if not changed by programs, gstreamer, and so on).

I wonder if that .asoundrc might be set globally like we used to do (not so linear nowadays) with /etc/X11/xorg.conf vs /home/user/.xorg.conf
This last is more of an academic exercise, though.

Edited this post a bit, to make it clearer (I'm not a native English speaker) - 2014.04.23
_________________
The free men's path is always obstructed by mediocrity.


Last edited by disperato on Wed Apr 23, 2014 8:54 am; edited 1 time in total
Back to top
View user's profile Send private message
SuperV
n00b
n00b


Joined: 08 Nov 2002
Posts: 44
Location: Arizona

PostPosted: Wed Apr 09, 2014 9:19 pm    Post subject: Reply with quote

For anyone that also runs across this thread, this ^^^ works. tear everything out and force alsa to stop using the silly HDMI output

For reference, this on a thinkpad t440p
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 5256

PostPosted: Thu Apr 10, 2014 6:53 pm    Post subject: Reply with quote

The reboots should be unnecessary. I think unmerging a package with an init script causes the script to stop; you can always make sure by stopping the script before unmerging. You can also do

Code:

etc-update
source /etc/profile


after unmerging packages.

Glad you got it working.
_________________
Gentoo Studio: http://gentoostudio.org
Facebook: http://www.facebook.com/gentoostudio
G+: https://plus.google.com/113947758237122861689/posts
Pappy's Kernel Seeds: http://kernel-seeds.org
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
Page 1 of 1

 
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