You are not logged in.
so I am trying to get audio to work. I looked at the wiki for it: https://wiki.archlinux.org/index.php/IBM_ThinkPad_X120e
this is what it says:
$ tail -1 /etc/modprobe.d/modprobe.conf
options snd-hda-intel index=1
error:
[hei@myhost ~]$ tail -1 /etc/modprobe.d/modprobe.conf options snd-hda-intel index=1
tail: option used in invalid context -- 1
I have pulseaudio and alsa installed. I checked the man of tail and l is not an option.Not sure what to do here.
edit: if this option is -1 then i still get an error.
hei@myhost ~]$ tail -1 /etc/modprobe.d/modprobe.conf options snd-hda-intel index=1
tail: option used in invalid context -- 1
Last edited by cirnOS (2011-08-26 21:26:05)
Offline
Type just "tail -1 /etc/modprobe.d/modprobe.conf". Do not add anything else.
Offline
Type just "tail -1 /etc/modprobe.d/modprobe.conf". Do not add anything else.
I figured that. Here is the input:
[hei@myhost ~]$ tail -1 /etc/modprobe.d/modprobe.conf
snd-hda-intel index=1
this is what i see in alsamixer ( with the exception of the hdn-intel card):
[hei@myhost ~]$ cat /proc/asound/cards
0 [Generic ]: HDA-Intel - HD-Audio Generic
HD-Audio Generic at 0xf0244000 irq 45
1 [SB ]: HDA-Intel - HDA ATI SB
HDA ATI SB at 0xf0240000 irq 16
29 [ThinkPadEC ]: ThinkPad EC - ThinkPad Console Audio Control
ThinkPad Console Audio Control at EC reg 0x30, fw unknown
I can't choose the intel option for sound. If it does help I do have pulseaudio installed so im not sure if that is conflicting. With the speakertest -c 2 I can hear my speakers output the static like noise...
edit: I just removed pulse audio. My issue now is not being able to select the default intel audio card so I can hear audio.
[hei@thegate ~]$ mpd
listen: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
output: No "audio_output" defined in config file
output: Attempt to detect audio output device
output: Attempting to detect a alsa audio device
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
alsa: Error opening default ALSA device: No such file or directory
output: Attempting to detect a oss audio device
oss: Error opening OSS device "/dev/dsp": No such file or directory
oss: Error opening OSS device "/dev/sound/dsp": No such file or directory
output: Attempting to detect a pulse audio device
Assertion 'm' failed at pulse/thread-mainloop.c:172, function pa_threaded_mainloop_lock(). Aborting.
Aborted
Last edited by cirnOS (2011-08-24 03:25:59)
Offline
Did you already see the wiki for settings the default sound device in ALSA:
Offline
Did you already see the wiki for settings the default sound device in ALSA:
i did part of this before, I just worked on it now going to reboot.
edit: now alsamixer cannot open. I did run alsaconf as root just in case.
[hei@thegate ~]$ alsamixer
cannot open mixer: No such file or directory
[hei@thegate ~]$ mpd
listen: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
daemon: cannot setgid to 45: Operation not permitted
Last edited by cirnOS (2011-08-24 04:13:54)
Offline
Is your user in the audio group?
Try 'modprobe snd-pcm-oss' to get e.g. /dev/dsp.
Post the output of
ls -1 /etc/modprobe.d/
What's the output of 'pacman -Q linux'?
Offline
Is your user in the audio group?
Try 'modprobe snd-pcm-oss' to get e.g. /dev/dsp.Post the output of
ls -1 /etc/modprobe.d/
What's the output of 'pacman -Q linux'?
[hei@thegate ~]$ modprobe snd-pcm-oss
WARNING: /etc/modprobe.d/modprobe.conf line 6: ignoring bad line starting with 'snd-hda-intel'
WARNING: Error inserting snd_page_alloc (/lib/modules/3.0-ARCH/kernel/sound/core/snd-page-alloc.ko.gz): Operation not permitted
WARNING: Error inserting snd_timer (/lib/modules/3.0-ARCH/kernel/sound/core/snd-timer.ko.gz): Operation not permitted
WARNING: Error inserting snd_pcm (/lib/modules/3.0-ARCH/kernel/sound/core/snd-pcm.ko.gz): Operation not permitted
FATAL: Error inserting snd_pcm_oss (/lib/modules/3.0-ARCH/kernel/sound/core/oss/snd-pcm-oss.ko.gz): Operation not permitted
[hei@thegate ~]$ su
Password:
[root@thegate hei]# modprobe snd-pcm-oss
WARNING: /etc/modprobe.d/modprobe.conf line 6: ignoring bad line starting with 'snd-hda-intel'
[root@thegate hei]# ls -l /etc/modprobe.d/
total 12
-rw-r--r-- 1 root root 31 Aug 23 20:37 alsa.conf
-rw-r--r-- 1 root root 114 Aug 23 21:17 modprobe.conf
-rw-r--r-- 1 root root 196 Aug 9 16:41 usb-load-ehci-first.conf
[root@thegate hei]# pacman -Q linux
linux 3.0.3-1
Offline
Please post the contents of /etc/modprobe.d/alsa.conf and /etc/modprobe.d/modprobe.conf.
Offline
Please post the contents of /etc/modprobe.d/alsa.conf and /etc/modprobe.d/modprobe.conf.
[root@thegate hei]# cat /etc/modprobe.d/alsa.conf
options snd slots=snd-intel8x0
[root@thegate hei]# cat /etc/modprobe.d/modprobe.conf
#
# /etc/modprobe.d/modprobe.conf (for v2.6 kernels)
#
#audio
snd-hda-intel index=1
#blacklist
blacklist pcspkr
edit: it appears I cannot start mpd or restart it.
[hei@thegate ~]$ su -c "rc.d start mpd"
Password:
:: Starting Music Player Daemon [FAIL]
[hei@thegate ~]$ su
Password:
[root@thegate hei]# rc.d start mpd
:: Starting Music Player Daemon [FAIL]
[root@thegate hei]# rc.d restart mpd
:: Stopping Music Player Daemon [FAIL]
:: Starting Music Player Daemon [FAIL]
[root@thegate hei]# nano /etc/rc.conf
[root@thegate hei]# rc.d stop mpd
:: Stopping Music Player Daemon [FAIL]
Last edited by cirnOS (2011-08-24 22:53:06)
Offline
The wiki tells you, haw should it look like
$ tail -1 /etc/modprobe.d/modprobe.conf
options snd-hda-intel index=1
You missed the 'options' part, please add it.
Offline
The wiki tells you, haw should it look like
$ tail -1 /etc/modprobe.d/modprobe.conf options snd-hda-intel index=1
You missed the 'options' part, please add it.
alright i did. Also my normal user was originally added to audio but i added it again just in case. let me reboot.
edit:
it appears I still get an error with mpd and alsamixer. I can hear my speaker despite me trying to blacklist it. So obviously the speakers work..
[hei@thegate ~]$ mpd
daemon: cannot setgid to 45: Operation not permitted
[hei@thegate ~]$ alsamixer
cannot open mixer: No such file or directory
edit 2: i set the index=1 to index=2 and i get sound from a youtube video now. now my only problem is mpd..
Last edited by cirnOS (2011-08-24 23:16:14)
Offline
I'm a bit lost where you are now, can you run 'alsamixer' w/o an error? If not, run 'modprobe snd-pcm-oss' as root and try again.
Offline
I'm a bit lost where you are now, can you run 'alsamixer' w/o an error? If not, run 'modprobe snd-pcm-oss' as root and try again.
Sorry about the delay,
[root@thegate hei]# modprobe snd-pcm-oss
[root@thegate hei]# mpd
listen: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
output: No "audio_output" defined in config file
output: Attempt to detect audio output device
output: Attempting to detect a alsa audio device
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4663:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM default
alsa: Error opening default ALSA device: No such file or directory
output: Attempting to detect a oss audio device
oss: Error opening OSS device "/dev/dsp": No such file or directory
oss: Error opening OSS device "/dev/sound/dsp": No such file or directory
output: Attempting to detect a pulse audio device
Assertion 'm' failed at pulse/thread-mainloop.c:172, function pa_threaded_mainloop_lock(). Aborting.
Aborted
Offline
Moderator comment:
cirnOS,
The thread topic no longer has anything to do with the thread. Since the root problem was not with tail, would you please edit your first post in the thread and change the topic to something more appropriate -- maybe something to do with the sound system?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Moderator comment:
cirnOS,
The thread topic no longer has anything to do with the thread. Since the root problem was not with tail, would you please edit your first post in the thread and change the topic to something more appropriate -- maybe something to do with the sound system?
I suppose I should make a new thread in the newbie forum since mpd isn't really hardware related I guess you could say.
Offline