FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > 64 Studio > 64 Studio User

 
 
LinkBack Thread Tools
 
Old 06-11-2008, 08:55 AM
"Peter Geirnaert"
 
Default pstree won't work the way I hope it would - hw:0 already in use after boot, with no programs running

strange ...
I disabled the system sounds
"pstree" shows me that esd is still running, but I can do "qjackctl" and get no complaints.
if I do "pstree" again, esd is still running.


for testing purposes, I re-enabled "system sounds (ESD)"
and now with the command "qjackctl", I get the error about hw:0 in use.
"killall esd & qjackctl" works, and now when I do "pstree", I don't see esd listed as running.


So to me it looks like pstree will list esd as running when it's not running, and not list it when it is running.

I checked the pstree man page and it sent me to man pgrep ...

peter@64studio:~$ pgrep esd

145

and

peter@64studio:~$ pgrep -l esd
145 flush_filesd/0

and

peter@64studio:~$ pgrep -l -v esd
1 init
2 migration/0
3 posix_cpu_timer
4 softirq-high/0
5 softirq-timer/0
6 softirq-net-tx/

7 softirq-net-rx/
8 softirq-block/0
9 softirq-tasklet
10 softirq-sched/0
11 softirq-rcu/0
12 desched/0
13 events/0
14 khelper
15 kthread
31 kblockd/0
32 kacpid
33 IRQ-9
124 kseriod
142 pdflush

143 pdflush
144 kswapd0
146 aio/0
248 IRQ-12
249 IRQ-1
647 ksuspend_usbd
650 khubd
680 IRQ-14
681 IRQ-15
682 IRQ-18
683 IRQ-19
690 ata/0
691 ata_aux
695 IRQ-20
770 IRQ-17
1017 ksnapd

1021 kmirrord
1078 kjournald
1319 udevd
1669 IRQ-8
1759 IRQ-6
1805 kpsmoused
1877 IRQ-7
1878 IRQ-21
1984 scsi_eh_0
1985 usb-storage
2969 portmap
2989 IRQ-16
3598 syslogd
3618 klogd

3754 acpid
3801 cupsd
3822 das_watchdog
3841 dbus-daemon
3849 hald
3850 hald-runner
3856 hald-addon-acpi
3859 IRQ-4
3874 hald-addon-keyb
3879 hald-addon-keyb
3882 hald-addon-keyb
3888 hald-addon-stor

3900 dhcdbd
3907 NetworkManager
3929 avahi-daemon
3930 avahi-daemon
3937 NetworkManagerD
3944 system-tools-ba
3945 dbus-daemon
4072 nmbd
4074 dhclient
4079 smbd
4101 smbd
4102 sensord
4122 sshd

4208 gdm
4214 gdm
4222 Xorg
4234 rpc.statd
4271 mdadm
4338 cron
4582 getty
4583 getty
4584 getty
4585 getty
4586 getty
4587 getty
4627 x-session-manag
4673 ssh-agent
4676 dbus-launch

4677 dbus-daemon
4679 gconfd-2
4682 gnome-keyring-d
4684 bonobo-activati
4689 gnome-settings-
4697 metacity
4710 gnome-panel
4712 nautilus
4721 gnome-volume-ma
4727 nm-applet
4745 gnome-cups-icon

4750 gnome-vfs-daemo
4751 gnome-power-man
4758 wnck-applet
4761 notification-ar
4763 clock-applet
4772 mapping-daemon
4776 firefox-bin
4792 xscreensaver
4872 gnome-terminal
4875 gnome-pty-helpe

4876 bash
6009 bash

but this didn't make me any wiser either .

On Wed, Jun 11, 2008 at 12:07 AM, Ralf Mardorf <ralf.mardorf@alice-dsl.net> wrote:



> some command to see what process is using hw:0

> to find out where the problem is.

pstree



shows which process is using another process in form of a tree scheme.

If there will be an application using OSS or ALSA etc. this is shown.

I know this myself just for some hours, before I only knew about ps aux,

but it isn't a help, because we can't know all applications, that might

have to do with OSS and ALSA or any other sound server.

Force the appearance of the problem by removing "killall esd &" and run

pstree, resp. oops, I'm wrong, I can't see ALSA with pstree. Does

someone know a way to see which application will use another application

by showing it complete?



spinymouse@64studio:~$ pstree

init─┬─NetworkManager

* * ├─NetworkManagerD

* * ├─acpid

* * ├─atd

* * ├─atieventsd

* * ├─avahi-daemon───avahi-daemon

* * ├─cron

* * ├─das_watchdog───{das_watchdog}

* * ├─2*[dbus-daemon]

* * ├─dbus-launch

* * ├─dcopserver

* * ├─desched/0

* * ├─desched/1

* * ├─dhcdbd

* * ├─dirmngr

* * ├─events/0

* * ├─events/1

* * ├─exim4

* * ├─gconfd-2

* * ├─gdm───gdm─┬─Xorg

* * │ * * * * * └─startkde─┬─kwrapper

* * │ * * * * * * * * * * *└─seahorse-agent

* * ├─6*[getty]

* * ├─gnome-keyring-d

* * ├─hald───hald-runner─┬─hald-addon-acpi

* * │ * * * * * * * * * *├─hald-addon-inpu

* * │ * * * * * * * * * *└─hald-addon-stor

* * ├─hcid

* * ├─icecast───3*[{icecast}]

* * ├─kaccess

* * ├─kded

* * ├─kdeinit─┬─ardour-2.4.1───7*[{ardour-2.4.1}]

* * │ * * * * ├─icedove───run-mozilla.sh───icedove-bin───13*[{icedove-bin}]

* * │ * * * * ├─2*[kio_file]

* * │ * * * * ├─kio_media

* * │ * * * * ├─klauncher

* * │ * * * * ├─kwin

* * │ * * * * └─qjackctl─┬─jackd───3*[{jackd}]

* * │ * * * * * * * * * *└─2*[{qjackctl}]

* * ├─kdesktop

* * ├─kgpg

* * ├─khelper

* * ├─kicker

* * ├─klogd

* * ├─knotify

* * ├─krfcommd

* * ├─ksmserver

* * ├─kthread─┬─IRQ-1

* * │ * * * * ├─IRQ-12

* * │ * * * * ├─IRQ-14

* * │ * * * * ├─IRQ-16

* * │ * * * * ├─IRQ-17

* * │ * * * * ├─IRQ-18

* * │ * * * * ├─IRQ-19

* * │ * * * * ├─IRQ-20

* * │ * * * * ├─IRQ-21

* * │ * * * * ├─IRQ-22

* * │ * * * * ├─IRQ-4

* * │ * * * * ├─IRQ-7

* * │ * * * * ├─IRQ-8

* * │ * * * * ├─IRQ-9

* * │ * * * * ├─aio/0

* * │ * * * * ├─aio/1

* * │ * * * * ├─ata/0

* * │ * * * * ├─ata/1

* * │ * * * * ├─ata_aux

* * │ * * * * ├─flush_filesd/0

* * │ * * * * ├─flush_filesd/1

* * │ * * * * ├─kacpid

* * │ * * * * ├─kblockd/0

* * │ * * * * ├─kblockd/1

* * │ * * * * ├─khpsbpkt

* * │ * * * * ├─khubd

* * │ * * * * ├─6*[kjournald]

* * │ * * * * ├─kmirrord

* * │ * * * * ├─knodemgrd_0

* * │ * * * * ├─kpsmoused

* * │ * * * * ├─kseriod

* * │ * * * * ├─ksnapd

* * │ * * * * ├─ksuspend_usbd

* * │ * * * * ├─kswapd0

* * │ * * * * ├─2*[pdflush]

* * │ * * * * ├─scsi_eh_0

* * │ * * * * ├─scsi_eh_1

* * │ * * * * ├─scsi_eh_2

* * │ * * * * ├─scsi_eh_3

* * │ * * * * ├─scsi_eh_4

* * │ * * * * ├─scsi_eh_5

* * │ * * * * └─scsi_eh_6

* * ├─migration/0

* * ├─migration/1

* * ├─nmbd

* * ├─pcscd───{pcscd}

* * ├─2*[posix_cpu_timer]

* * ├─pppd

* * ├─sensord

* * ├─smbd───2*[smbd]

* * ├─softirq-block/0

* * ├─softirq-block/1

* * ├─softirq-high/0

* * ├─softirq-high/1

* * ├─2*[softirq-net-rx/]

* * ├─2*[softirq-net-tx/]

* * ├─softirq-rcu/0

* * ├─softirq-rcu/1

* * ├─softirq-sched/0

* * ├─softirq-sched/1

* * ├─2*[softirq-tasklet]

* * ├─softirq-timer/0

* * ├─softirq-timer/1

* * ├─sshd

* * ├─start_kdeinit

* * ├─syslogd

* * ├─system-tools-ba───dbus-daemon

* * ├─udevd

* * └─yakuake───bash───pstree

spinymouse@64studio:~$ su

Password:

64studio:/home/spinymouse# pstree

init─┬─NetworkManager

* * ├─NetworkManagerD

* * ├─acpid

* * ├─atd

* * ├─atieventsd

* * ├─avahi-daemon───avahi-daemon

* * ├─cron

* * ├─das_watchdog───{das_watchdog}

* * ├─2*[dbus-daemon]

* * ├─dbus-launch

* * ├─dcopserver

* * ├─desched/0

* * ├─desched/1

* * ├─dhcdbd

* * ├─dirmngr

* * ├─events/0

* * ├─events/1

* * ├─exim4

* * ├─gconfd-2

* * ├─gdm───gdm─┬─Xorg

* * │ * * * * * └─startkde─┬─kwrapper

* * │ * * * * * * * * * * *└─seahorse-agent

* * ├─6*[getty]

* * ├─gnome-keyring-d

* * ├─hald───hald-runner─┬─hald-addon-acpi

* * │ * * * * * * * * * *├─hald-addon-inpu

* * │ * * * * * * * * * *└─hald-addon-stor

* * ├─hcid

* * ├─icecast───3*[{icecast}]

* * ├─kaccess

* * ├─kded

* * ├─kdeinit─┬─ardour-2.4.1───7*[{ardour-2.4.1}]

* * │ * * * * ├─icedove───run-mozilla.sh───icedove-bin───9*[{icedove-bin}]

* * │ * * * * ├─kio_file

* * │ * * * * ├─klauncher

* * │ * * * * ├─kwin

* * │ * * * * └─qjackctl─┬─jackd───3*[{jackd}]

* * │ * * * * * * * * * *└─2*[{qjackctl}]

* * ├─kdesktop

* * ├─kgpg

* * ├─khelper

* * ├─kicker

* * ├─klogd

* * ├─knotify

* * ├─krfcommd

* * ├─ksmserver

* * ├─kthread─┬─IRQ-1

* * │ * * * * ├─IRQ-12

* * │ * * * * ├─IRQ-14

* * │ * * * * ├─IRQ-16

* * │ * * * * ├─IRQ-17

* * │ * * * * ├─IRQ-18

* * │ * * * * ├─IRQ-19

* * │ * * * * ├─IRQ-20

* * │ * * * * ├─IRQ-21

* * │ * * * * ├─IRQ-22

* * │ * * * * ├─IRQ-4

* * │ * * * * ├─IRQ-7

* * │ * * * * ├─IRQ-8

* * │ * * * * ├─IRQ-9

* * │ * * * * ├─aio/0

* * │ * * * * ├─aio/1

* * │ * * * * ├─ata/0

* * │ * * * * ├─ata/1

* * │ * * * * ├─ata_aux

* * │ * * * * ├─flush_filesd/0

* * │ * * * * ├─flush_filesd/1

* * │ * * * * ├─kacpid

* * │ * * * * ├─kblockd/0

* * │ * * * * ├─kblockd/1

* * │ * * * * ├─khpsbpkt

* * │ * * * * ├─khubd

* * │ * * * * ├─6*[kjournald]

* * │ * * * * ├─kmirrord

* * │ * * * * ├─knodemgrd_0

* * │ * * * * ├─kpsmoused

* * │ * * * * ├─kseriod

* * │ * * * * ├─ksnapd

* * │ * * * * ├─ksuspend_usbd

* * │ * * * * ├─kswapd0

* * │ * * * * ├─2*[pdflush]

* * │ * * * * ├─scsi_eh_0

* * │ * * * * ├─scsi_eh_1

* * │ * * * * ├─scsi_eh_2

* * │ * * * * ├─scsi_eh_3

* * │ * * * * ├─scsi_eh_4

* * │ * * * * ├─scsi_eh_5

* * │ * * * * └─scsi_eh_6

* * ├─migration/0

* * ├─migration/1

* * ├─nmbd

* * ├─pcscd───{pcscd}

* * ├─2*[posix_cpu_timer]

* * ├─pppd

* * ├─sensord

* * ├─smbd───2*[smbd]

* * ├─softirq-block/0

* * ├─softirq-block/1

* * ├─softirq-high/0

* * ├─softirq-high/1

* * ├─2*[softirq-net-rx/]

* * ├─2*[softirq-net-tx/]

* * ├─softirq-rcu/0

* * ├─softirq-rcu/1

* * ├─softirq-sched/0

* * ├─softirq-sched/1

* * ├─2*[softirq-tasklet]

* * ├─softirq-timer/0

* * ├─softirq-timer/1

* * ├─sshd

* * ├─start_kdeinit

* * ├─syslogd

* * ├─system-tools-ba───dbus-daemon

* * ├─udevd

* * └─yakuake───bash───su───bash ───pstree

64studio:/home/spinymouse#



There might be something wrong, I had to reboot, because my soundcard

wasn't shown in Jack and after reboot it has been fine again. No,

everything seems to be fine, there's nothing wrong with ALSA, the

messages from Jack are fine. pstree won't work the way I hope it would.



Hmm. Sorry, I don't know a command that will help you.



_______________________________________________
64studio-users mailing list
64studio-users@64studio.com
http://lists.64studio.com/mailman/listinfo/64studio-users
 

Thread Tools




All times are GMT. The time now is 04:46 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org