LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   audio works on restart..goes off after some time (https://www.linuxquestions.org/questions/linux-newbie-8/audio-works-on-restart-goes-off-after-some-time-685175/)

sumesh.pt 11-21-2008 08:57 AM

audio works on restart..goes off after some time
 
I have fedora 9 and using alsa sound system.
When i switch on my machine,sound works, perfectly well...but after sometime (like probably after a day), it just stops..i dont know why it happens...It will be back on track when i restart my machine. Can anybody suggest a solution or what shud i be checkin?

Thanks,
Sumesh

jstephens84 11-22-2008 06:21 PM

Just for a base line try getting a list of running process.
Code:

ps aux| awk '{print $1, " ", $2, " ", $11}' >> Startup.log
Then run the code again but change the Log Output to another file. Check for any differences in the files. That will give you at least a start. Let me know if that does not help. If it does not we will have to come up with something else.

sumesh.pt 11-22-2008 09:25 PM

Thanks stephen for the help.
This is what I did.
Code:

[sumesh@saha ~]$ ps aux| awk '{print $1, " ", $2, " ", $11}' >> Startup.log
[sumesh@saha ~]$ ps aux| awk '{print $1, " ", $2, " ", $11}' >> Startup1.log

Both Startup.log and Startup1.log are exactly the same. In case if u want to have a look at the processes, I am pasting the output from one.

Code:

USER  PID  COMMAND
root  1  /sbin/init
root  2  [kthreadd]
root  3  [migration/0]
root  4  [ksoftirqd/0]
root  5  [watchdog/0]
root  15  [events/0]
root  19  [khelper]
root  78  [kintegrityd/0]
root  83  [kblockd/0]
root  88  [kacpid]
root  89  [kacpi_notify]
root  169  [cqueue]
root  171  [ksuspend_usbd]
root  176  [khubd]
root  179  [kseriod]
root  247  [pdflush]
root  248  [pdflush]
root  249  [kswapd0]
root  296  [aio/0]
root  494  [kpsmoused]
root  557  [ata/0]
root  561  [ata_aux]
root  577  [scsi_eh_0]
root  578  [scsi_eh_1]
root  579  [scsi_eh_2]
root  580  [scsi_eh_3]
root  586  [kstriped]
root  606  [ksnapd]
root  623  [kdmflush]
root  624  [kdmflush]
root  625  [kdmflush]
root  626  [kdmflush]
root  627  [kdmflush]
root  628  [kdmflush]
root  629  [kdmflush]
root  630  [kdmflush]
root  631  [kjournald]
root  679  /sbin/udevd
root  1184  [kauditd]
root  1444  [scsi_eh_4]
root  1445  [scsi_eh_5]
root  1738  [kmpathd/0]
root  1742  [kmpath_handlerd]
root  1772  [kjournald]
root  1773  [kjournald]
root  1774  [kjournald]
root  1775  [kjournald]
root  1776  [kjournald]
root  1777  [kjournald]
root  1778  [kjournald]
root  1955  [kondemand/0]
root  2156  auditd
root  2158  /sbin/audispd
root  2176  rsyslogd
root  2188  irqbalance
rpc  2195  rpcbind
rpcuser  2214  rpc.statd
root  2244  [rpciod/0]
root  2254  rpc.idmapd
dbus  2268  dbus-daemon
root  2330  pcscd
root  2339  /usr/sbin/acpid
68  2348  hald
root  2351  /usr/sbin/console-kit-daemon
root  2414  hald-runner
root  2432  hald-addon-input:
root  2446  /usr/libexec/hald-addon-cpufreq
68  2447  hald-addon-acpi:
root  2450  hald-addon-storage:
root  2482  automount
root  2505  [iscsi_eh]
root  2532  [ib_addr]
root  2551  [ib_mcast]
root  2557  [iw_cm_wq]
root  2564  [ib_cm/0]
root  2573  [rdma_cm]
root  2582  iscsid
root  2583  iscsid
root  2607  /usr/sbin/hcid
root  2619  [btaddconn]
root  2620  [btdelconn]
root  2636  [krfcommd]
root  2685  /usr/sbin/sshd
root  2693  xinetd
root  2704  /usr/sbin/vsftpd
root  2724  sendmail:
smmsp  2732  sendmail:
root  2742  nasd
root  2750  crond
root  2759  kerneloops
root  2771  squid
squid  2774  (squid)
squid  2775  (unlinkd)
root  2782  /usr/sbin/atd
root  2791  ser2net
avahi  2800  avahi-daemon:
avahi  2801  avahi-daemon:
root  2812  libvirtd
root  2845  cupsd
root  2898  anacron
root  2946  /usr/sbin/dnsmasq
root  2950  /usr/sbin/gdm-binary
root  2951  /sbin/mingetty
root  2952  /sbin/mingetty
root  2953  /sbin/mingetty
root  2954  /sbin/mingetty
root  2955  /sbin/mingetty
root  2957  /sbin/mingetty
root  3027  /usr/libexec/gdm-simple-slave
root  3028  /usr/bin/Xorg
gdm  3048  /usr/bin/dbus-launch
root  3127  /usr/libexec/gdm-session-worker
sumesh  3193  /usr/libexec/gconfd-2
sumesh  3198  /usr/bin/gnome-keyring-daemon
sumesh  3199  gnome-session
sumesh  3208  dbus-launch
sumesh  3209  /bin/dbus-daemon
sumesh  3214  /usr/bin/ssh-agent
sumesh  3252  /usr/libexec/gnome-settings-daemon
sumesh  3255  /usr/bin/pulseaudio
sumesh  3259  /usr/libexec/pulse/gconf-helper
sumesh  3278  gnome-screensaver
sumesh  3279  metacity
sumesh  3281  gnome-panel
sumesh  3283  nautilus
sumesh  3286  bluetooth-applet
sumesh  3289  beagled
sumesh  3294  gpk-update-icon
sumesh  3300  /usr/libexec/bonobo-activation-server
sumesh  3303  /usr/libexec/gvfsd
sumesh  3316  kerneloops-applet
sumesh  3319  /usr/libexec//gvfs-fuse-daemon
sumesh  3326  nm-applet
sumesh  3328  python
sumesh  3335  /usr/libexec/wnck-applet
sumesh  3337  /usr/libexec/trashapplet
sumesh  3339  pam-panel-icon
sumesh  3340  gnome-power-manager
root  3342  /sbin/pam_timestamp_check
sumesh  3345  /usr/libexec/gvfsd-trash
root  3352  /usr/sbin/nm-system-settings
sumesh  3358  /usr/libexec/gvfsd-burn
sumesh  3363  /usr/libexec/mixer_applet2
sumesh  3367  /usr/libexec/clock-applet
sumesh  3370  /usr/libexec/notification-area-applet
sumesh  3372  mono
sumesh  3374  /usr/libexec/gdm-user-switch-applet
sumesh  3410  /bin/sh
sumesh  3427  /usr/lib64/firefox-3.0.4/firefox
sumesh  3460  /usr/libexec/notification-daemon
sumesh  3326  nm-applet
sumesh  3328  python
sumesh  3335  /usr/libexec/wnck-applet
sumesh  3337  /usr/libexec/trashapplet
sumesh  3339  pam-panel-icon
sumesh  3340  gnome-power-manager
root  3342  /sbin/pam_timestamp_check
sumesh  3345  /usr/libexec/gvfsd-trash
root  3352  /usr/sbin/nm-system-settings
sumesh  3358  /usr/libexec/gvfsd-burn
sumesh  3363  /usr/libexec/mixer_applet2
sumesh  3367  /usr/libexec/clock-applet
sumesh  3370  /usr/libexec/notification-area-applet
sumesh  3372  mono
sumesh  3374  /usr/libexec/gdm-user-switch-applet
sumesh  3410  /bin/sh
sumesh  3427  /usr/lib64/firefox-3.0.4/firefox
sumesh  3460  /usr/libexec/notification-daemon
sumesh  3478  /usr/lib/nspluginwrapper/npviewer.bin
root  3749  /bin/bash
root  3753  /bin/bash
root  3754  awk
root  3759  sleep
root  3905  [migration/1]
root  3906  [ksoftirqd/1]
root  3907  [watchdog/1]
root  3908  [ib_cm/1]
root  3909  [rpciod/1]
root  3910  [kondemand/1]
root  3911  [kmpathd/1]
root  3912  [ata/1]
root  3913  [aio/1]
root  3914  [kblockd/1]
root  3915  [kintegrityd/1]
root  3916  [events/1]
root  3917  [migration/2]
root  3918  [ksoftirqd/2]
root  3919  [watchdog/2]
root  3920  [ib_cm/2]
root  3921  [rpciod/2]
root  3922  [kondemand/2]
root  3923  [kmpathd/2]
root  3924  [ata/2]
root  3925  [aio/2]
root  3926  [kblockd/2]
root  3927  [kintegrityd/2]
root  3928  [events/2]
root  3929  [migration/3]
root  3906  [ksoftirqd/1]
root  3907  [watchdog/1]
root  3908  [ib_cm/1]
root  3909  [rpciod/1]
root  3910  [kondemand/1]
root  3911  [kmpathd/1]
root  3912  [ata/1]
root  3913  [aio/1]
root  3914  [kblockd/1]
root  3915  [kintegrityd/1]
root  3916  [events/1]
root  3917  [migration/2]
root  3918  [ksoftirqd/2]
root  3919  [watchdog/2]
root  3920  [ib_cm/2]
root  3921  [rpciod/2]
root  3922  [kondemand/2]
root  3923  [kmpathd/2]
root  3924  [ata/2]
root  3925  [aio/2]
root  3926  [kblockd/2]
root  3927  [kintegrityd/2]
root  3928  [events/2]
root  3929  [migration/3]
root  3930  [ksoftirqd/3]
root  3931  [watchdog/3]
root  3932  [ib_cm/3]
root  3933  [rpciod/3]
root  3934  [kondemand/3]
root  3935  [kmpathd/3]
root  3936  [ata/3]
root  3937  [aio/3]
root  3938  [kblockd/3]
root  3939  [kintegrityd/3]
root  3940  [events/3]
sumesh  4065  beagled-helper
sumesh  4146  gnome-terminal
sumesh  4149  gnome-pty-helper
sumesh  4150  bash
sumesh  4189  ps
sumesh  4190  awk

Could you help me now what to do..

Thanks
Sumesh

jstephens84 11-22-2008 10:49 PM

hmm.. try to check your syslog and see if any errors where logged regarding audio. Also does this just happen for a certain audio player? try restarting the pulseaudio.

sumesh.pt 11-23-2008 01:05 AM

I checked the following files...none of them made any sense...Are these the files, u suggested me to check?

Code:

[sumesh@saha ~]$ vi /usr/lib64/rsyslog/
[sumesh@saha ~]$ vi /sbin/rsyslogd
[sumesh@saha ~]$ vi /etc/sysconfig/rsyslog

This happens with all my players...there is no sound at all !!!

I tried restarting the pulseaudio...this is what happened..
Code:

[sumesh@saha ~]$ pulseaudio restart
N: main.c: Called SUID root and real-time/high-priority scheduling was requested in the configuration. However, we lack the necessary priviliges:
N: main.c: We are not in group 'pulse-rt' and PolicyKit refuse to grant us priviliges. Dropping SUID again.
N: main.c: For enabling real-time scheduling please acquire the appropriate PolicyKit priviliges, or become a member of 'pulse-rt', or increase the RLIMIT_NICE/RLIMIT_RTPRIO resource limits for this user.
E: pid.c: Daemon already running.
W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
E: socket-server.c: bind(): Address already in use
E: module.c: Failed to load  module "module-esound-protocol-unix" (argument: ""): initialization failed.
E: main.c: Module load failed.
E: main.c: Failed to initialize daemon.
E: pid.c: PID file '/tmp/pulse-sumesh/pid' not mine!


So, I changed to root..and,
Code:

[sumesh@saha ~]$ su
Password:
[root@saha sumesh]# pulseaudio restart
W: main.c: This program is not intended to be run as root (unless --system is specified).
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
^C[root@saha sumesh]#

but had to press control+c to come out...
sorry for being dumb in replyin..but i am just tryin to learn linux.
And many thanx for helpin me. What shall I do now?
Thanks
Sumesh

jstephens84 11-23-2008 01:38 AM

I will see what I can dig up. Never ran across this before.

sumesh.pt 11-23-2008 01:48 AM

Thanks. will wait..
Sumesh

norm.h 11-23-2008 09:12 AM

Quote:

Originally Posted by sumesh.pt (Post 3349912)
I have fedora 9 and using alsa sound system.
When i switch on my machine,sound works, perfectly well...but after sometime (like probably after a day), it just stops..i dont know why it happens...It will be back on track when i restart my machine. Can anybody suggest a solution or what shud i be checkin?

Thanks,
Sumesh


I have my Sound Preference Devices set to ALSA and normally all is OK.

Default Mixer Tracks gives a choice of devices: HDA Intel (Alsa Mixer), USB Device Ox46d (which is my webcam), and Realtek ALC 861 (OSS mixer), which I believe is my on-board sound chip.
When HDA Intel (Alsa Mixer) is selected, all works OK.

My Volume Control gives the same choices, where the USB Device Ox46d is selected.

Sometimes on start up, Default Mixer Tracks sees only the USB Device Ox46d,
and the Volume Contol only sees HDA Intel (Alsa Mixer), and I get no sound at all.

Restarting sometimes cures the problem, and sometimes I have to shutdown and then restsart, but there seems to be no pattern to the occurences.

I am running Fedora 9, with Linux Kernel 2.6.27.5.41

Any suggestions will be appreciated.
norm

sumesh.pt 11-25-2008 09:34 AM

Just adding, if it can be of helpful
My you tube also stopped working !!! Can it be related to audio problem

Sumesh

jstephens84 11-25-2008 11:39 AM

I would venture out and say yes. So it sounds like a module issue where it is coming unloaded or something else is going on.

sumesh.pt 11-25-2008 11:42 AM

How do i go about it? What would you suggest?

Sumesh

jstephens84 11-25-2008 12:17 PM

try removing the pulse audio daemon. then reboot and see if it goes out again.

jstephens84 11-25-2008 12:18 PM

Try this link out also. http://home.nyc.rr.com/computertaijutsu/rhsound.html

sumesh.pt 11-28-2008 09:17 AM

Quote:

Originally Posted by jstephens84 (Post 3353972)
try removing the pulse audio daemon. then reboot and see if it goes out again.

i removed it and rebooted..no sound...tried again installing pulse audio..no improvement..in otherwords, now no sound at all !!!! the rebootin techinique also doesnt work

sumesh.pt 11-28-2008 09:47 AM

Quote:

Originally Posted by jstephens84 (Post 3353974)

tried out most the things explained there...doesnt seem to hav an effect


All times are GMT -5. The time now is 08:25 PM.