FS#6544 - gnome with esd-autostart kills gnome desktop
Attached to Project:
Arch Linux
Opened by Markus Lanz (geekhead) - Wednesday, 07 March 2007, 10:34 GMT
Last edited by Jan de Groot (JGC) - Saturday, 30 June 2007, 12:52 GMT
Opened by Markus Lanz (geekhead) - Wednesday, 07 March 2007, 10:34 GMT
Last edited by Jan de Groot (JGC) - Saturday, 30 June 2007, 12:52 GMT
|
Details
I enabled under the gnome settings/audio "start esd with
gnome".
It works without any problems, but after the upgrade of esd (esd 0.2.37-1 2007-02-26) my gnome desktop hangs at starting. I can move the mouse but it just stops from loading. I tried to create a new user, deleted ~/ and anything else you find in gentoo and arch forums. When I restart esd, then it continious loading and the gnome-panel will crash. I got this error on different hardware setups, with and without unstable repo and also on the 64bit version. I checked it on my Sony Vaio Laptop, fresh installation: gnome, gnome-extra, gdm - Same Error My Desktop PC after the update, after a fresh 32 bit installation and after a fresh 64 bit installation. At work on my test PC - same. Everytime I enable the esd-autostart under gnome settings / audio. I asked in the IRC room, but it seems that noone is using gnome or i am the only one which uses gnome with enabled esd-autostart *wonder* If you need more information, please tell me the location of the log files and where I should post them, coz this is my first bug-report. I hope critical is ok, coz it´s on 3 different PC with the same error and brakes other packages. Greets Markus |
- the 100% CPU bug when clients disconnect with an EOF character
- esddsp failing to close filedescriptors, causing esound to run out of filedescriptors in a while, causing hanging applications
esd-0.2.37-2 has fixes for these applied and should work out.
The problem still be there after the esd-*-2 update, today.
I even tryed to create a new account, but when I set up gnome to stard esd, it freeze.
The esddsp failing to close fd it's actually a good explaination for that bug, but since it's not fixed with the esd-*-2 update, it's the wrong one or it hasn't been correctly fixed.
I just can confirm what Giacomo Rizzo said.
Still won´t work for me and gnome continous to hang when esd autostart is enabled.
(On all my platforms...)
When i set the DPI from the X-Server (usr/share/gdm/default.conf) to 100
and enable ESD autostart, gnome hangs again! Maybe this fact has something
to do with our current bug here? (Currently don´t got an Archsystem around,
coz i need to work with my PCs and not wait until a fix...)
I get the following msg:
]# fuser /dev/snd/*
/dev/snd/controlC0: 5668
/dev/snd/pcmC0D0p: 5620m
# ps auxw|grep 5668
borje4 5668 0.0 0.5 28756 12100 ? S 09:53 0:00 /opt/gnome/libexec/mixer_applet2 --oaf-activate-iid=OAFIID:GNOME_Mi
root 5745 0.0 0.0 3932 768 pts/0 R+ 10:01 0:00 grep 5668
But I am not skilled enough to decipher the msg. I have to join Linus Torvalds in the opinion that gnome is not very user friendly as to fine tuning - hehe.
Regards,
linfan
me
Did you try Gnome 2.18 from Testing?
linfan
Seems all is well now. But will keep monitoring the situation.
Linfan
If you change the TTY after the freeze (sometimes it´s possible) and you try to do something in terminal, the whole system freezes
But I can live with that. After all linux is a server running loopback, not a workstation. Having many users on one and the same machine is prolly not what linux is all about.
Linfan
Can someone help? Do I need to test anything? This install is a FRESH install (just did it last night, 4/10).
My problem was caused by gnome-schedule applet not ESD, so ignore all my confirmation.
Sorry for confusion.
offtopic: I couldn't even imagine that one applet can prevent the whole DE from loading. Damn Gnome devs!
You can also try to add this line to .xinitrc in your home directory, if you don't run gdm, which you also can add to rc.conf:
exec dbus-launch --exit-with-session gnome-session
This is what I have concerning gnome in my /etc/rc.conf:
DAEMONS=(... fam hal alsa esd ...)
If you want gdm, add gdm also to rc.conf.
Regards,
linfan
About the dbus-launch thing: it's bad to start gnome like that, gnome-session spawns a session bus for you. Spawning dbus like this will make it ignore things like the session manager, keyring socket, etc. This will cause evolution to prompt for a password all the time, since it can't do lookups in the keyring when it's launched from keyboard hotkeys.
I'll check in another patch that fixes some issue with a do/while loop and a variable that isn't set. The bugreport upstream states that esd won't compile without it, which isn't the case here, but it could fix this problem.
If this one doesn't fix the issue, I think alsa-lib could be problematic here. I've read several ubuntu bugreports, where they fixed this issue simply by providing a different soundserver. Their bugreports were talking about invalid IOCTLs, which is located inside alsa-lib (probably dmix that plays up here? explains why I don't get it with a real soundcard)
1) Took "dbus" out of the DAEMONS=() line in /etc/rc.conf.
2) Moved the "alsa" text to AFTER "... fam, hal, ..." (but this may have made NO difference.
3) Changed "exec gnome-session" to "exec dbus-launch --exit-with-session gnome-session" in ~/.xinitrc
4) I then went to System -> Preferences -> Sound and made sure all options were "Auto" (that had that option) and Device was HDA Intel (Alsa Mixer) on the first tab. Then on the second tab I enabled ESD and System Sounds.
The system is working fine and there are no lockups!
As for it being bad to start Gnome with dbus-launch, I'm all for changing it and doing it the right way if the rest of the stuff works. But it seems that doesn't work as of now. Maybe the problem is with Alsa, I don't know. I'll try to help any way I can. Anything you want me to test?
WRONG! It doesn't work. I just logged out of one user and on to another -- lockup! Oh well.
linfan
Enabled SYSTEM SOUNDS for a user that did not have them enabled.
Logged out and back in.
Go startup sound, then system lockup.
I DO NOT have "esd" in my DAEMONS=() line. Should I for this test? I'd be glad to try out a few things if I can understand what you want me to do.
I have a DV-8000 laptop, Intel HDA soundcard (and an option for "CONEXANT..." sound device -- I;ve tried both and neither work). I can hear sound just fine when playing WAV, MP3, etc. I just don't have system sounds -- a.k.a. esd/mixer abilities any more. I haven't had them since moving to Arch about a month ago. I came from Ubuntu and DID have that ability, but Arch is a little more "cutting edge" I believe, so this may be why.
Heck, I may have things configured wrong. I haven't messed with any sound config files like "asound.state" or "esd.conf" or anything. Maybe I need to? I really don't know what to change, though.
As posted above, running /etc/rc.d/esd stop (and start) from a termina (CTRL+ALT+F1) will usually get the locked-up login to play at least the startup sound, but then it locks up again and doesn't ever come back -- always forcing me to kill X and half the time forcing me to restart the laptop.
Starting esd from daemons is not something I would recommend, I only use that feature for diskless terminals here where esd should run on the terminal machine to let my terminal server send sound to it.
[mrunion@plunkerbunkey ~]$ lsmod | grep '^snd'
snd_seq_oss 29184 0
snd_seq_midi_event 6528 1 snd_seq_oss
snd_seq 46928 4 snd_seq_oss,snd_seq_midi_event
snd_seq_device 6796 2 snd_seq_oss,snd_seq
snd_pcm_oss 39072 0
snd_mixer_oss 14464 1 snd_pcm_oss
snd_hda_intel 231960 1
snd_pcm 68740 2 snd_pcm_oss,snd_hda_intel
snd_timer 19204 2 snd_seq,snd_pcm
snd 43876 10 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_intel,snd_pcm,snd_timer
snd_page_alloc 7944 2 snd_hda_intel,snd_pcm
1) As to you Matt. You could check with alsaconf how many sound devices (cards) alsa detects and you could go for one of them and blacklist the other in /etc/rc.conf.
2) Also check your /etc/modprobe.conf that there is no reference to sound. Alsa doesn't like that.
3) as user you can also run amixer to see if all is working. If no error msgs then run
amixer set PCM 100 unmute
amiser set Master 100 unmute
4) then launch alsamixer and set your levels. Hit 'm' to unmute when you go from pillar to pillar. Exit with Esc
5) become root and run alsactl store if all went ok thus far
6) If you don't want to reboot, type as su or root: /etc/rc.d/alsa restart and /etc/rc.d/esd restart
7) becom user and log into Gnome.
Of course you also can check that your sound module is loaded. To check do lsmod to enable type modprobe snd-foo (foo is the name of your sound card).
Regards
Linfan
(NOTE! I have followed the Wiki and tried these things before. I went through them again to confirm it wasn't still an issue. It should be noted that I CAN hear sound -- XMMS plays, videos, etc. I just can't enable system sounds without a problem.)
RESULTS----------------------------------------
1) As to you Matt. You could check with alsaconf how many sound devices (cards) alsa detects and you could go for one of them and blacklist the other in /etc/rc.conf.
RESULT> hda-intel (ICH7 Family) was only sound card found. There was an option to probe legacy stuff, but I didn't use that.
2) Also check your /etc/modprobe.conf that there is no reference to sound. Alsa doesn't
like that.
RESULT> this file is empty, except for some comments about the file
3) as user you can also run amixer to see if all is working. If no error msgs then run
amixer set PCM 100 unmute
amiser set Master 100 unmute
RESULT> running amixer gives:
Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 30
Mono:
Front Left: Playback 16 [53%] [-22.50dB] [on]
Front Right: Playback 16 [53%] [-22.50dB] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 207 [81%] [-9.60dB] [on]
Front Right: Playback 207 [81%] [-9.60dB] [on]
Simple mixer control 'Mic Bypass',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 30
Front Left: Capture 26 [87%] [4.50dB] [off]
Front Right: Capture 26 [87%] [4.50dB] [off]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 14
Front Left: Capture 10 [71%] [15.00dB] [on]
Front Right: Capture 10 [71%] [15.00dB] [on]
Simple mixer control 'ExtMic',0
Capabilities: cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Capture channels: Mono
Mono: Capture [on]
running "amixer set pcm 100 unmute" gives:
amixer: Unable to find simple control 'pcm',0
running "amixer set Master 100 unmute" gives:
Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 30
Mono:
Front Left: Playback 30 [100%] [-1.50dB] [on]
Front Right: Playback 30 [100%] [-1.50dB] [on]
4) then launch alsamixer and set your levels. Hit 'm' to unmute when you go from pillar
to pillar. Exit with Esc
RESULT> All OK
5) become root and run alsactl store if all went ok thus far
RESULT> All OK
6) If you don't want to reboot, type as su or root: /etc/rc.d/alsa restart and
/etc/rc.d/esd restart 7) becom user and log into Gnome.
RESULT> All OK
Of course you also can check that your sound module is loaded. To check do lsmod to
enable type modprobe snd-foo (foo is the name of your sound card).
RESULT> Drivers loaded.
In gnome I presume that you have started the sound server and the system sounds in System:Preferences:Sound.
You could also try to play around a bit with gnome-alsamixer and see if it makes any difference.
Good luck!
linfan
Also, tried the gnome-alsamixer and it didn't help much.
Thanks for all the help, by the way!
linfan
Sigh.
[alt-os@shamash ~]$ pacman -Qv kernel26 esd
Root : /
DBPath : var/lib/pacman/
CacheDir : var/cache/pacman/pkg/
Targets : kernel26 esd
kernel26 2.6.21.1-8
esd 0.2.38-1
[alt-os@shamash ~]$
linfan
Could you please instruct how that is to be accomplished?
1) Can I get welcome sound etc. in gnome with only alsa?
2) Should I modprobe some alsa-oss or what?
Linfan
2) If I understand it right - you should just install alsa-oss and ESD will pick it up automatically. (anyway alsa drivers will be used, but via emulated OSS API)
Regards,
linfan
Linfan
1) Putting ESD in the DAEMONS=() line and going to System -> Preferences -> Sound and enabling ESD and System sounds will now allow system sounds to play without locking up the machine and needing esd constantly restarted from a terminal (Ctl + Atl + F1) to keep the machine going.
2) Flash sounds DO NOT play.
I have alsa-oss installed. If I stop esd in a temrinal, then Flash sounds will play. with esd running, flash sound is dead -- as well as Audacity.
I do not know:
1) What/where libflashsupport is, and
2) Enough to keep troubleshooting the OSS/Alsa thing with ESD running/not running. How do you get sound from Audacity with ESD running and ALSA-OSS installed. Note, I tried "aoss audacity" from a terminal and still not sound.
Oh, and THANK YOU to everyone! This is going in the right direction now!!!
Thanx,
Matt
Why was alsa disabled in esd in the first place?
Recompiling it with --enable-alsa fixes it for me.
Thanks to nesl247 on the forums for pointing this out.
The problem was introduced with esd-0.2.37, that switched by default the auto-spawn configure option to 0. Moving it back to 1, everything now seems to work.
Linfan
Linfan
Did not fix esound from reloading when switching users.