LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   problems with flashplugin in Slackware x86_64 (https://www.linuxquestions.org/questions/slackware-14/problems-with-flashplugin-in-slackware-x86_64-a-794665/)

slackcracker 04-15-2010 01:30 PM

after my sound was broken again i did this:

remove all other files beginning with sound in /etc/modprobe.d/
only keep sound.conf

edit sound.conf so it looks like this

root@slack64:~# more /etc/modprobe.d/sound.conf
alias sound-slot-0 snd-hda-intel

options snd-hda-intel index=0 id=default

reboot and all is fine hopefully :)

TwinReverb 04-17-2010 05:45 AM

ok, so tonight none of this helped. i guess i didn't check the website google sent me to when i searched for "64bit flash for linux". somehow i accidentally downloaded the 32bit version.

If your flash plugin doesn't show on about:plugins, and nothing seems to work, run:

"file ~/.mozilla/plugins/libflashplayer.so"

If it returns "32bit executable", etc, you got the wrong version if you're on Slackware64 (and visa versa).

PEBKAC

damgar 04-17-2010 07:17 PM

Flash for 64 bit linux is trash. To get decent flash on 64 bit Slack, I installed the multilib files and then installed 32 bit browsers (Firefox and google chrome from slackbuilds--the 32 bit chrome now comes with it's own flash plugin).

Nothing else that I tried really worked.

slackcracker 04-19-2010 02:58 PM

Quote:

Originally Posted by damgar (Post 3938918)
Flash for 64 bit linux is trash. ...
Nothing else that I tried really worked.

Ok, that is an solution. I don't know really (maybe 80%) why my sound was broken the last weeks so often, but as long as i use slackware64 i had no problems with flash 64bit. I only use multilib for some programs, where no 64bit is available.


1. check your bios features for sound, try auto

2. check your hardware, to see if the kernel see them, for my intel-hd-onboard-sound ALC888 (ASRock 939N68PV-GLAN) it looks like this

root@slack64:~# lspci
00:07.0 Audio device: nVidia Corporation MCP67 High Definition Audio (rev a1)

root@slack64:~# dmesg | grep hd
hda_codec: ALC888: BIOS auto-probing.

root@slack64:~# dmesg | grep HD
HDA Intel 0000:00:07.0: PCI INT A -> Link[LAZA] -> GSI 21 (level, low) -> IRQ 21
HDA Intel 0000:00:07.0: irq 31 for MSI/MSI-X
HDA Intel 0000:00:07.0: setting latency timer to 64

3. check your sounddevices, if you use only alsa (recommended) like me

root@slack64:~# ls -al /dev/dsp
crw-rw---- 1 root audio 14, 3 2010-04-19 19:52 /dev/dsp

root@slack64:~# ls -al /dev/snd/*
crw-rw---- 1 root audio 116, 7 2010-04-19 21:51 /dev/snd/controlC0
crw-rw---- 1 root audio 116, 6 2010-04-19 21:51 /dev/snd/hwC0D0
crw-rw---- 1 root audio 116, 5 2010-04-19 21:51 /dev/snd/pcmC0D0c
crw-rw---- 1 root audio 116, 4 2010-04-19 21:12 /dev/snd/pcmC0D0p
crw-rw---- 1 root audio 116, 3 2010-04-19 21:51 /dev/snd/pcmC0D2c
crw-rw---- 1 root audio 116, 8 2010-04-19 19:52 /dev/snd/seq
crw-rw---- 1 root audio 116, 2 2010-04-19 21:51 /dev/snd/timer

/dev/snd/by-path:
total 0
drwxr-xr-x 2 root root 60 2010-04-19 21:51 ./
drwxr-xr-x 3 root root 200 2010-04-19 19:52 ../
lrwxrwxrwx 1 root root 12 2010-04-19 21:51 pci-0000:00:07.0 -> ../controlC0


4. try playing, to check your sound, and sounddevices by playing

root@slack64:~# mpg123 Test.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.11.0; written and copyright by Michael Hipp and others
free software (LGPL/GPL) without any warranty but with best wishes

Playing MPEG stream 1 of 1: Test.mp3 ...
Title: Artist: Test
Comment: Album: Test
Year: 2010 Genre: Unknown
MPEG 1.0 layer III, VBR, 44100 Hz stereo
^C
[0:04] Decoding of Test.mp3 finished.

root@slack64:~# aplay Front_Center.wav
Playing WAVE 'Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono

mplayer and amarok works in most cases, but mpg123 shows me often when sound was broken

5. If no sound try using the programm alsaconf, an choose your soundcard

root@slack64:~# alsaconf

6. But i figured out that sometimes not all or wrong modules was loaded from the kernel. So check the modules loaded by the kernel, here my modules

root@slack64:~# lsmod | grep snd
snd_seq_dummy 1487 0
snd_seq_oss 29991 0
snd_seq_midi_event 5620 1 snd_seq_oss
snd_seq 52679 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 5459 3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss 39975 0
snd_mixer_oss 16022 1 snd_pcm_oss
snd_hda_codec_realtek 257222 1
snd_hda_intel 21704 5
snd_hda_codec 65095 2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 6456 1 snd_hda_codec
snd_pcm 72035 4 snd_pcm_oss,snd_hda_intel,snd_hda_codec
snd_timer 19512 3 snd_seq,snd_pcm
snd 57492 19 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_codec_realtek,snd_hda_intel,snd _hda_codec,snd_hwdep,snd_pcm,snd_timer
soundcore 5839 1 snd
snd_page_alloc 7145 2 snd_hda_intel,snd_pcm

7. and yes, check your flash version if it is 64bit
root@slack64:~# file /usr/lib64/mozilla/plugins/libflashplayer.so
/usr/lib64/mozilla/plugins/libflashplayer.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped

8. i also tried to remove alsound.state, alsaconf generate a new one
root@slack64:~# rm /etc/asound.state

9. my last solution was to remove all sound modules an rerun alsaconf, after this sound was also ok, because alsaconf load the right modules for you, try this

hopefully this helps :)

slackcracker 05-12-2010 05:17 PM

Quote:

Originally Posted by slackcracker (Post 3936745)
after my sound was broken again i did this:

My Sound was broken again. :-( after a little Update.

I tried to play root@slack64:~# mpg123 Test.mp3 but an Error occured:
[oss.c:182] error: Can't open default sound device!

First i go to http://www.slackware.com/faq/do_faq.php?faq=distro#4
and reading Q: How do I get my sound card to work?

1. looking my configuration with: cat /proc/asound/oss/sndstat
2. changed my /etc/modprobe.d/sound.conf and disabled OSS

root@slack64:~# cat /etc/modprobe.d/sound.conf
#ALSA
alias snd-card-0 snd-hda-intel
#OSS
#alias sound-slot-0 snd-hda-intel

3. after reboot my Audio devices changed, before change my USB Audio (my Webcam) was 0: see bottom
Audio devices:
0: ALC888 Analog (DUPLEX)
1: USB Audio

4. now my alsamixer points to my soundcard!
before it points to my USB Audio (my Webcam) which hasn't volume control, maybe that was the conflict

5. now i have sound again in Flash-Plugin, hope this help

root@slack64:~# cat /proc/asound/oss/sndstat
Sound Driver:3.8.1a-980706 (ALSA v1.0.21 emulation code)
Kernel: Linux slack64 2.6.33.3 #2 SMP Fri Apr 30 23:50:51 CDT 2010 x86_64
Config options: 0

Installed drivers:
Type 10: ALSA emulation

Card config:
HDA NVidia at 0xfbf78000 irq 22
USB Device 0x46d:0x805 at usb-0000:00:04.1-1, high speed

Audio devices:
0: ALC888 Analog (DUPLEX)
1: USB Audio

Synth devices: NOT ENABLED IN CONFIG

Midi devices: NOT ENABLED IN CONFIG

Timers:
31: system timer

Mixers:
0: Realtek ALC888
1: USB Mixer

Edit:
After a Reboot Sound was broken again :-(

slackcracker 05-14-2010 04:24 PM

First Solution Flash Plugin No Sound
 
Quote:

Originally Posted by Alien Bob (Post 3894951)
Please check if this is your problem:

After probing and testing much with Alsa /etc/modprobe.d/sound.conf nothing helps, but i found a first solution for me. :-) Flash-Plugin and Alsa are not the Problem! The Audio Device Order is my problem. How can i fix this better?

My Logitech Usb-Webcam C300 block the first sound-device /dev/dsp, because it is loaded first by the module snd_usb_audio,
then my onboard sound card Realtek ALC888 hda-intel is loaded by the module snd_hda_intel as second device

then it looks like this:
root@slack64:~# cat /proc/asound/oss/sndstat
...
Audio devices:
0: USB Audio
1: ALC888 Analog (DUPLEX)
...

mpg123 can't play on /dev/dsp

----------------------------------------------------------------------------------------------
here my Solution:
1. blacklist snd_usb_audio in /etc/modprobe.d/blacklist.conf (prevent to load the module first)
2. modprobe snd_usb_audio & in /etc/rc.d/rc.local (load the module later)
----------------------------------------------------------------------------------------------

So my sound card is the first audio device and Flash-Plugin works! :-)

then it looks like this:
oot@slack64:~# cat /proc/asound/oss/sndstat
Sound Driver:3.8.1a-980706 (ALSA v1.0.21 emulation code)
Kernel: Linux slack64 2.6.33.3 #2 SMP Fri Apr 30 23:50:51 CDT 2010 x86_64
Config options: 0

Installed drivers:
Type 10: ALSA emulation

Card config:
HDA NVidia at 0xfbf78000 irq 22
USB Device 0x46d:0x805 at usb-0000:00:04.1-1, high speed

Audio devices:
0: ALC888 Analog (DUPLEX)
1: USB Audio

Synth devices: NOT ENABLED IN CONFIG

Midi devices: NOT ENABLED IN CONFIG

Timers:
31: system timer

Mixers:
0: Realtek ALC888
1: USB Mixer

mpg123 can play now on /dev/dsp

An interesting wiki is here: http://wiki.ubuntuusers.de/Soundkarten_installieren/HDA

budman85 07-09-2010 09:15 PM

SB Live working again
 
Thanks for the blacklist idea.

Sound was working fine, then one reboot and the HDMI sound onboard soundcard took precedence over the other modules.

A quick way to remove snd modules without rebooting:

lsmod|awk '/snd/{print "modprobe -r "$1}'|sh

Run it a few times, it will unload modules as they no longer have any deps. I use XFCE, so I needed to remove the Mixer app from the panel to free the binding for the Intel sound driver. Then I ran the above again and it removed the remaining modules.

Then I updated /etc/modprobe.d/blacklist.conf
added:
blacklist snd_hda_codec_atihdmi
blacklist snd_hda_intel

Then I reran alsaconf - Bingo!
I readded the mixer to the panel and it now picked up SB Live mixer.

mpg321 now worked fine and sound was all back.

cat /proc/asound/oss/sndstat

Sound Driver:3.8.1a-980706 (ALSA v1.0.21 emulation code)
Kernel: Linux mars 2.6.33.4-smp #2 SMP Wed May 12 22:47:36 CDT 2010 i686
Config options: 0
Installed drivers:
Type 10: ALSA emulation
Card config:
SB Live! 5.1 (rev.7, serial:0x80641102) at 0xe800, irq 20

Thanks for the tip.

Rich


All times are GMT -5. The time now is 07:45 PM.