Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gkrellm and sound scope (using alsa)
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
beuselinck
n00b
n00b


Joined: 09 Oct 2004
Posts: 19
Location: Ghent, Belgium

PostPosted: Wed Oct 13, 2004 4:07 pm    Post subject: gkrellm and sound scope (using alsa) Reply with quote

Hello

Has anybody been able to get the sound scope in gkrellm working (with ALSA)
This is what i've emerged:
Code:

*  app-admin/gkrellm
      Latest version available: 2.1.28-r1
      Latest version installed: 2.1.28-r1
      Size of downloaded files: 618 kB
      Homepage:    http://www.gkrellm.net/
      Description: Single process stack of various system monitors
      License:     GPL-2

*  x11-plugins/gkrellmss
      Latest version available: 2.4
      Latest version installed: 2.4
      Size of downloaded files: 30 kB
      Homepage:    http://gkrellm.net/gkrellmss/gkrellmss.html
      Description: A plugin for GKrellM2 that has a VU meter and a sound chart
      License:     GPL-2


I've got ALSA compiled in my kernel
my .config file contains
Code:

# Sound
#
CONFIG_SOUND=y

#
# Advanced Linux Sound Architecture
#
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_HWDEP=y
CONFIG_SND_RAWMIDI=y
CONFIG_SND_SEQUENCER=y
# CONFIG_SND_SEQ_DUMMY is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_SEQUENCER_OSS=y
# CONFIG_SND_VERBOSE_PRINTK is not set



I'm using kernel:
Code:

bart@shiva bart $ uname -r
2.6.8-gentoo-r3


Googling proved I'm not the only one having this problem:
http://lists.freshrpms.net/pipermail/freshrpms-list/2004-June/009683.html

Anybody any ideas?

Thanks heaps!
Back to top
View user's profile Send private message
genterminl
Guru
Guru


Joined: 12 Feb 2005
Posts: 523
Location: Connecticut, USA

PostPosted: Tue Jul 19, 2005 12:16 am    Post subject: Reply with quote

The answer seems to have been posted to that same freshrpms thread. Apparently forwarded from the author of gkrellm-ss:
---------------
It turned out it was a simple case of ALSA capture somehow getting turned
off with an ALSA upgrade. So maybe check your ALSA mixer Capture settings.
Just run:

$ amixer get Capture
and
$ amixer get Mix

The last two lines of output indicate if Capture is on or off.
If either of these are off, try setting them on with:

$ amixer set Capture cap
$ amixer set Mix cap
----------------
I don't seem to have those controls - but I played with alsamixer and turned on capture for several channels where it was off.
Back to top
View user's profile Send private message
GorlowMV
n00b
n00b


Joined: 06 Jan 2007
Posts: 8
Location: Минеральные Воды

PostPosted: Fri Jan 26, 2007 7:19 pm    Post subject: Reply with quote

does not working...

Code:
sheridan@amd ~ $ uname -a
Linux amd 2.6.18-gentoo-r6.Sheridan.amd64x2 #3 SMP PREEMPT Thu Jan 25 23:23:41 MSK 2007 x86_64 AMD Athl on(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD GNU/Linux

Code:
sheridan@amd ~ $ emerge gkrellm gkrellmss -pv
Calculating dependencies... done!
[ebuild   R   ] app-admin/gkrellm-2.2.10  USE="X lm_sensors nls ssl -gnutls" 0 kB
[ebuild   R   ] x11-plugins/gkrellmss-2.4  USE="nls" 0 kB

Code:
sheridan@amd ~ $ amixer set Capture cap
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 15
  Front Left: Capture 9 [60%] [on]
  Front Right: Capture 9 [60%] [on]
sheridan@amd ~ $ amixer set Mix cap
Simple mixer control 'Mix',0
  Capabilities: cswitch cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Front Left - Front Right
  Front Left: Capture [on]
  Front Right: Capture [on]

restart gkrellm, enable plugin and screenshot: http://sheridan.stavcom.ru/data/filez/images/screenshots/erors/gkrellm/gkrellmss_00.png
Back to top
View user's profile Send private message
genterminl
Guru
Guru


Joined: 12 Feb 2005
Posts: 523
Location: Connecticut, USA

PostPosted: Fri Jan 26, 2007 11:55 pm    Post subject: Reply with quote

This is a different problem, but I get it also. Just wait a few seconds and click on the sound meter panel in gkrellm. Sometimes you get the same popup again, but usually it just starts working. I have not been able to figure out what causes it.
Back to top
View user's profile Send private message
GorlowMV
n00b
n00b


Joined: 06 Jan 2007
Posts: 8
Location: Минеральные Воды

PostPosted: Sat Jan 27, 2007 3:01 pm    Post subject: Reply with quote

I try it... Not working...
Back to top
View user's profile Send private message
genterminl
Guru
Guru


Joined: 12 Feb 2005
Posts: 523
Location: Connecticut, USA

PostPosted: Sat Jan 27, 2007 3:27 pm    Post subject: Reply with quote

What, exactly, is not working? What is it doing and what do you expect it to do?

Does sound work in general? Can you play a CD or an mp3 file?
If you click on the SoundScope panel in gkrellm, what happens?
If you hold your mouse over the panel, do two buttons appear in the corner? What happens if you click on them?
Back to top
View user's profile Send private message
GorlowMV
n00b
n00b


Joined: 06 Jan 2007
Posts: 8
Location: Минеральные Воды

PostPosted: Sat Jan 27, 2007 10:27 pm    Post subject: Reply with quote

yes, i can play everything, but gkrellmss doesn't work
if i enable plugin into gkrellm config - http://sheridan.stavcom.ru/data/filez/images/screenshots/erors/gkrellm/gkrellmss_00.png
if i click onto ss panel - http://sheridan.stavcom.ru/data/filez/images/screenshots/erors/gkrellm/gkrellmss_00.png
if i select sound source ALSA - http://sheridan.stavcom.ru/data/filez/images/screenshots/erors/gkrellm/gkrellmss_00.png
where i can see "alsa lib console error message"?
ESS disabled in kernel
Back to top
View user's profile Send private message
genterminl
Guru
Guru


Joined: 12 Feb 2005
Posts: 523
Location: Connecticut, USA

PostPosted: Wed Feb 21, 2007 12:25 am    Post subject: Reply with quote

I don't have a solution yet, but I think I'm getting closer. The console is the terminal from which you started X. What this means is that the error message is in the stderr output from X. If you do a normal startx, this should just be on the first virtual console. Unfortunately, by the time you exit X, it will probably have scrolled far off the screen. I have startx aliased to "startx 1>xxlog 2>xxerr" so I can do "grep -i alsa xxerr" and I get

ALSA lib control.c:910:(snd_ctl_open_noupdate) Invalid CTL /dev/sound/mixer
gkrellm-volume amixer: Control info /dev/sound/mixer error: No such file or directory

Unfortunately, this doesn't seem useful, since /dev/sound/mixer exists, and I have access to it.

Also - the above directions for amixer don't seem right for me - I don't have either a Mix or a Capture device. If you just type "amixer" and look through the output, several of the controls will have "Capture" and [on] or [off]. See if you can use "amixer set control cap on" picking the appropriate control name from the output of amixer. [Sorry - I see you do have Capture and Mix controls, both apparently with capture on. Hopefully you can find the console error and it will be more help than mine.]
Back to top
View user's profile Send private message
HazeC5
Apprentice
Apprentice


Joined: 16 May 2007
Posts: 227
Location: Devant l'écran

PostPosted: Sun Feb 01, 2009 5:22 pm    Post subject: Reply with quote

Hi
I'd install gkrelmss 10 minutes ago, and I've exactly the same error, than your screenshot, with alsa.

My Use for alsa-lib are:
Code:
ALSA_PCM_PLUGINS="dmix multi share plug route asym softvol extplug ioplug rate copy dshare empty hooks"

With "meter" and "linear" ALSA_PCM_PLUGINS USES are enabled , then gkrellmss don't compile.This 2 USES must be disabled.

With esound it work but no with alsa.

I wanted to try it, but it was okay, I can get through.

Bye :wink:
_________________
<--Pentium Quad-Core Q8400 -- Ram 6Go -- AsusTek P5QL-VM-- Intel G 43/45 HD --Son 5.1 Logitech -->
<-Enlightenment 17-svn Kernel CK-sources-3.7.10->
Back to top
View user's profile Send private message
genterminl
Guru
Guru


Joined: 12 Feb 2005
Posts: 523
Location: Connecticut, USA

PostPosted: Mon Mar 28, 2022 10:44 pm    Post subject: [SOLVED] gkrellm and sound scope (using alsa) Reply with quote

Having been annoyed by this error on and off for over ten years, I finally dug into the gkrellmss code, and managed to add enough debugging output to track down the cause. The pop-up error says 'Can't open ALSA monitoring. Look for an "ALSA lib" console error message.' although I never managed to find any such error. That message is due to a call to snd_pcm_open returning -2 (No such file or directory) which didn't make much sense, until more debug output showed it was trying to open plughw:0,0, and on my PC, card 0 is currently disabled. I'm guessing that over the years, as my PC and audio devices changed, when I only had one audio output card configured in Alsa, gkrellmss worked, but if I had more than one card defined, and the first card was disabled, it failed.

Solution: with gkrellm NOT running, look in ~/.gkrellm2/user-config for a line beginning "sound ALSA device" and change the plughw:0,0 to the appropriate device. You can find that by printing /proc/asound/cards. Right now, I have not found any way to configure this from within gkrellm itself, but will discuss on their mailing list.
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