LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-21-2011, 01:35 PM   #1
MCinAZ
LQ Newbie
 
Registered: Jun 2008
Location: Arizona
Distribution: Debian
Posts: 22

Rep: Reputation: 2
bluetooth process


When I run "ps aux | grep bluetooth" on my laptop, I see the following output:

root 749 0.0 0.0 0 0 ? S 00:39 0:00 [bluetooth]
root 1738 0.0 0.0 4016 2000 ? Ss 00:39 0:00 /usr/sbin/bluetoothd
henry 2867 0.0 0.2 79272 7900 ? S 00:40 0:00 bluetooth-applet

Two questions about this:

1. What do the square brackets around "bluetooth" indicate? The only clue I get from the ps manpage is an entry for which process arguments are unavailable. Is that, in fact, the context being described in the manpage?

2. What exactly is process 749? It's separate from the Bluetooth daemon, but I can't find an executable by that name. Is this a process internal to the kernel itself?

-- MC --
 
Old 02-21-2011, 02:31 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005
You are pretty much correct about number 2. As far as your first question, it is part of the bluetooth daemon. Without it, you wouldn't be able to do anything with bluetooth. Hope that helps.

Josh
 
Old 02-21-2011, 02:52 PM   #3
MCinAZ
LQ Newbie
 
Registered: Jun 2008
Location: Arizona
Distribution: Debian
Posts: 22

Original Poster
Rep: Reputation: 2
Yes, this helps some. Any idea which parameter in the kernel configuration file is associated with this process? I've tried many combinations of the various Bluetooth configuration options, but I'm evidently still missing something. If I boot my machine with the stock Debian 2.6.32 kernel, I see the process, but don't when booting my own 2.6.37 kernel.

Thanks,
-- MC --
 
Old 02-21-2011, 02:53 PM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005
Can you post the output of lsmod?
 
Old 02-21-2011, 03:07 PM   #5
MCinAZ
LQ Newbie
 
Registered: Jun 2008
Location: Arizona
Distribution: Debian
Posts: 22

Original Poster
Rep: Reputation: 2
Sure thing. Here you go:

uhci_hcd 19120 0
hidp 10178 1
hid 62000 1 hidp
aes_i586 6844 1
aes_generic 25830 1 aes_i586
acpi_cpufreq 4945 1
mperf 931 1 acpi_cpufreq
cpufreq_userspace 1480 0
cpufreq_powersave 610 0
cpufreq_conservative 7636 0
i915 327651 7
sco 6954 2
bridge 61371 0
stp 1104 1 bridge
llc 2901 2 bridge,stp
bnep 7126 2
rfcomm 28895 4
drm_kms_helper 25219 1 i915
l2cap 37056 21 hidp,bnep,rfcomm
drm 133256 3 i915,drm_kms_helper
i2c_algo_bit 4055 1 i915
uinput 6004 1
binfmt_misc 5818 1
fuse 55823 1
acpiphp 14242 0
loop 13880 0
snd_hda_codec_hdmi 19079 1
snd_hda_codec_realtek 221470 1
snd_hda_intel 18333 0
snd_hda_codec 57672 3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 4778 1 snd_hda_codec
snd_pcm_oss 32701 0
snd_mixer_oss 12781 1 snd_pcm_oss
snd_pcm 57633 3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
arc4 1022 2
ecb 1509 2
snd_seq_midi 3880 0
ath9k 73750 0
btusb 9540 4
snd_rawmidi 15079 1 snd_seq_midi
snd_seq_midi_event 4352 1 snd_seq_midi
bluetooth 44505 10 hidp,sco,bnep,rfcomm,l2cap,btusb
mac80211 153566 1 ath9k
ath9k_common 1377 1 ath9k
ath9k_hw 248684 2 ath9k,ath9k_common
uvcvideo 54506 0
ath 11166 2 ath9k,ath9k_hw
pcmcia 29957 0
snd_seq 41195 3 snd_seq_midi,snd_seq_midi_event
cfg80211 118899 3 ath9k,mac80211,ath
snd_timer 15263 2 snd_pcm,snd_seq
snd_seq_device 4149 3 snd_seq_midi,snd_rawmidi,snd_seq
snd 40894 13 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer _oss,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
yenta_socket 18874 0
rfkill 12260 4 bluetooth,cfg80211
pcmcia_rsrc 7111 1 yenta_socket
soundcore 4111 1 snd
videodev 55287 1 uvcvideo
intel_agp 8777 1 i915
intel_gtt 11451 3 i915,intel_agp
video 9601 1 i915
agpgart 21711 3 drm,intel_agp,intel_gtt
intel_ips 9437 0
i2c_i801 6914 0
snd_page_alloc 5549 2 snd_hda_intel,snd_pcm
v4l1_compat 12514 2 uvcvideo,videodev
shpchp 22003 0
pcmcia_core 9889 3 pcmcia,yenta_socket,pcmcia_rsrc
pci_hotplug 9014 2 acpiphp,shpchp
processor 20524 1 acpi_cpufreq
psmouse 44508 0
thermal_sys 11274 2 video,processor
ac 1604 0
button 3506 1 i915
output 1208 1 video
fujitsu_laptop 12124 0
evdev 7303 27
serio_raw 3328 0
pcspkr 1311 0
battery 4178 0
broadcom 5122 0
sdhci_pci 5675 0
sg 18269 0
sdhci 14663 1 sdhci_pci
mmc_core 54789 1 sdhci
ehci_hcd 33705 0
usbcore 115488 5 uhci_hcd,btusb,uvcvideo,ehci_hcd
tg3 116182 0
sr_mod 13033 0
cdrom 30786 1 sr_mod
libphy 13453 2 broadcom,tg3
 
Old 02-21-2011, 03:19 PM   #6
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005
Code:
bluetooth 44505 10 hidp,sco,bnep,rfcomm,l2cap,btusb
There you go. That is what is loaded. [bluetooth] will pretty much be the kernel module, and then PID 1738 is the bluetoothd service. Hope that helps!
 
Old 02-21-2011, 03:27 PM   #7
MCinAZ
LQ Newbie
 
Registered: Jun 2008
Location: Arizona
Distribution: Debian
Posts: 22

Original Poster
Rep: Reputation: 2
Ah, but if I run "ps aux" when my 2.6.37 kernel is booted, I don't see a bluetooth process:

# ps aux | grep bluetooth
root 1749 0.0 0.0 4064 1992 ? Ss 09:23 0:00 /usr/sbin/bluetoothd
karl 3015 0.0 0.2 79972 7724 ? S 09:32 0:00 bluetooth-applet

More importantly, input from my Bluetooth mouse is ignored when I'm running the newer kernel. I'm guessing that's related to the missing process, but that's just a guess. If I run bluetooth-properties and remove the existing mouse entry, then search for new devices, the mouse is found immediately and appears to pair correctly. But moving the mouse or pressing buttons has no effect. This is the underlying problem I'm trying to solve.

-- MC --
 
Old 02-21-2011, 03:30 PM   #8
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005
Hmm, in that case, post lsmod again but in your newer kernel. Also use code tags if you can...
 
Old 02-21-2011, 03:39 PM   #9
MCinAZ
LQ Newbie
 
Registered: Jun 2008
Location: Arizona
Distribution: Debian
Posts: 22

Original Poster
Rep: Reputation: 2
My third post was the output of lsmod from the 2.6.37 kernel. I'm not familiar with code tags, but will look into it. However, I won't be able to pursue this until later today, but will follow-up then.

Thanks for the assistance so far,

-- MC --
 
Old 02-21-2011, 03:45 PM   #10
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005
Oh ok, no problem. When you get back, post the lsmod from the other kernel then. I just want to verify if there is anything not be loaded, etc.
 
Old 02-22-2011, 12:37 AM   #11
MCinAZ
LQ Newbie
 
Registered: Jun 2008
Location: Arizona
Distribution: Debian
Posts: 22

Original Poster
Rep: Reputation: 2
Let's start with 2.6.32:

Code:
# ps aux | grep blue
root       743  0.0  0.0      0     0 ?        S    22:25   0:00 [bluetooth]
root      6401  0.0  0.0   4112  2088 ?        Ss   22:38   0:00 /usr/sbin/bluetoothd
george    7518  0.0  0.2  79944  7888 ?        S    23:00   0:00 bluetooth-applet
george    7649  0.0  0.0   1780   624 pts/2    S+   23:02   0:00 grep blue
Code:
# lsmod
Module                  Size  Used by
hidp                    8572  0 
hid                    50545  1 hidp
aes_i586                6816  1 
aes_generic            25738  1 aes_i586
parport_pc             15799  0 
ppdev                   4058  0 
lp                      5570  0 
parport                22554  3 parport_pc,ppdev,lp
sco                     5837  2 
acpi_cpufreq            4907  0 
bridge                 32851  0 
stp                      996  1 bridge
bnep                    7376  2 
cpufreq_userspace       1444  0 
rfcomm                 25063  12 
l2cap                  21677  17 hidp,bnep,rfcomm
crc16                   1027  1 l2cap
cpufreq_powersave        602  0 
cpufreq_stats           1940  0 
cpufreq_conservative     4018  0 
binfmt_misc             4875  1 
uinput                  4796  1 
fuse                   43554  1 
acpiphp                13273  0 
pci_hotplug            18065  1 acpiphp
loop                    9721  0 
snd_hda_codec_intelhdmi     9027  1 
snd_hda_codec_realtek   162851  1 
arc4                     974  2 
ecb                     1405  2 
snd_hda_intel          15263  0 
snd_hda_codec          45998  3 snd_hda_codec_intelhdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               4054  1 snd_hda_codec
snd_pcm_oss            28479  0 
snd_mixer_oss          10461  1 snd_pcm_oss
snd_pcm                47350  3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
ath9k                 238041  0 
snd_seq_midi            3480  0 
i915                  217023  2 
snd_rawmidi            12313  1 snd_seq_midi
drm_kms_helper         17183  1 i915
mac80211              121381  1 ath9k
uvcvideo               45194  0 
snd_seq_midi_event      3684  1 snd_seq_midi
pcmcia                 17442  0 
drm                   107507  3 i915,drm_kms_helper
ath                     5982  1 ath9k
snd_seq                35303  3 snd_seq_midi,snd_seq_midi_event
snd_timer              12258  2 snd_pcm,snd_seq
videodev               25445  1 uvcvideo
snd_seq_device          3673  3 snd_seq_midi,snd_rawmidi,snd_seq
btusb                   7997  2 
i2c_algo_bit            3497  1 i915
yenta_socket           16403  1 
rsrc_nonstatic          7057  1 yenta_socket
i2c_i801                6442  0 
bluetooth              36259  10 hidp,sco,bnep,rfcomm,l2cap,btusb
v4l1_compat            10250  2 uvcvideo,videodev
video                  14605  1 i915
cfg80211               86910  3 ath9k,mac80211,ath
snd                    33551  13 snd_hda_codec_intelhdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore               3450  1 snd
intel_agp              20145  1 
pcmcia_core            20406  3 pcmcia,yenta_socket,rsrc_nonstatic
tg3                    96553  0 
i2c_core               12612  5 i915,drm,videodev,i2c_algo_bit,i2c_i801
agpgart                19516  2 drm,intel_agp
fujitsu_laptop          8399  0 
snd_page_alloc          4977  2 snd_hda_intel,snd_pcm
psmouse                44409  0 
rfkill                 10196  5 bluetooth,cfg80211
pcspkr                  1207  0 
evdev                   5609  24 
ac                      1640  0 
output                  1204  1 video
serio_raw               2916  0 
battery                 3782  0 
processor              25803  1 acpi_cpufreq
button                  3598  1 i915
ext3                   93828  5 
jbd                    31965  1 ext3
mbcache                 3762  1 ext3
sg                     15932  0 
sr_mod                 10770  0 
sd_mod                 25717  7 
crc_t10dif              1012  1 sd_mod
cdrom                  26487  1 sr_mod
ahci                   26446  6 
sdhci_pci               4493  0 
sdhci                  12079  1 sdhci_pci
mmc_core               38095  1 sdhci
libata                113728  1 ahci
led_class               1757  3 ath9k,fujitsu_laptop,sdhci
scsi_mod              101073  4 sg,sr_mod,sd_mod,libata
ehci_hcd               27230  0 
thermal                 9206  0 
thermal_sys             9378  3 video,processor,thermal
usbcore                97930  4 uvcvideo,btusb,ehci_hcd
nls_base                4541  1 usbcore
And now 2.6.37:

Code:
#ps aux | grep blue
root      1449  0.0  0.0   4160  2084 ?        Ss   21:56   0:00 /usr/sbin/bluetoothd
jason     2459  0.0  0.2  79992  7724 ?        S    21:56   0:00 bluetooth-applet
jason     2709  0.0  0.0   1832   516 pts/2    S+   22:15   0:00 grep blue
Code:
# lsmod
Module                  Size  Used by
hidp                   10178  0 
hid                    62000  1 hidp
i915                  327619  7 
drm_kms_helper         25219  1 i915
drm                   133288  3 i915,drm_kms_helper
i2c_algo_bit            4055  1 i915
sco                     6954  2 
bridge                 61371  0 
stp                     1104  1 bridge
llc                     2901  2 bridge,stp
bnep                    7126  2 
rfcomm                 28895  12 
aes_i586                6844  1 
aes_generic            25830  1 aes_i586
acpi_cpufreq            4945  1 
mperf                    931  1 acpi_cpufreq
l2cap                  37056  17 hidp,bnep,rfcomm
cpufreq_userspace       1480  0 
cpufreq_powersave        610  0 
cpufreq_conservative     7636  0 
binfmt_misc             5818  1 
uinput                  6004  1 
fuse                   55823  1 
acpiphp                14242  0 
loop                   13880  0 
snd_hda_codec_hdmi     19079  1 
snd_hda_codec_realtek   221502  1 
snd_hda_intel          18333  0 
snd_hda_codec          57672  3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               4778  1 snd_hda_codec
snd_pcm_oss            32701  0 
snd_mixer_oss          12781  1 snd_pcm_oss
snd_pcm                57569  3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
arc4                    1022  2 
snd_seq_midi            3880  0 
ecb                     1509  2 
snd_rawmidi            15079  1 snd_seq_midi
ath9k                  73750  0 
snd_seq_midi_event      4352  1 snd_seq_midi
snd_seq                41195  3 snd_seq_midi,snd_seq_midi_event
mac80211              153598  1 ath9k
ath9k_common            1377  1 ath9k
snd_timer              15263  2 snd_pcm,snd_seq
snd_seq_device          4149  3 snd_seq_midi,snd_rawmidi,snd_seq
ath9k_hw              248684  2 ath9k,ath9k_common
ath                    11166  2 ath9k,ath9k_hw
btusb                   9540  2 
bluetooth              44505  10 hidp,sco,bnep,rfcomm,l2cap,btusb
snd                    40894  13 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
pcmcia                 29957  0
yenta_socket           18874  0 
uvcvideo               54506  0 
cfg80211              118867  3 ath9k,mac80211,ath
intel_agp               8777  1 i915
intel_gtt              11451  3 i915,intel_agp
rfkill                 12260  5 bluetooth,cfg80211
pcmcia_rsrc             7111  1 yenta_socket
agpgart                21711  3 drm,intel_agp,intel_gtt
soundcore               4111  1 snd
i2c_i801                6914  0 
videodev               55287  1 uvcvideo
snd_page_alloc          5549  2 snd_hda_intel,snd_pcm
pcmcia_core             9889  3 pcmcia,yenta_socket,pcmcia_rsrc
shpchp                 22003  0 
pci_hotplug             9014  2 acpiphp,shpchp
v4l1_compat            12514  2 uvcvideo,videodev
intel_ips               9437  0 
processor              20524  1 acpi_cpufreq
video                   9601  1 i915
fujitsu_laptop         12124  0 
thermal_sys            11274  2 processor,video
evdev                   7303  27 
pcspkr                  1311  0 
battery                 4178  0 
ac                      1604  0 
button                  3506  1 i915
psmouse                44508  0 
output                  1208  1 video
serio_raw               3328  0 
broadcom                5122  0 
ehci_hcd               33705  0 
tg3                   116182  0 
sg                     18269  0 
usbcore               115488  4 btusb,uvcvideo,ehci_hcd
sdhci_pci               5675  0 
sdhci                  14663  1 sdhci_pci
mmc_core               54789  1 sdhci
sr_mod                 13033  0 
cdrom                  30786  1 sr_mod
libphy                 13453  2 broadcom,tg3
Finally, here's a sorted diff listing of the modules between the two kernels:
Code:
Key:
  < 2.6.32
  > 2.6.37

< ahci
> ath9k_common
> ath9k_hw
> broadcom
< cpufreq_stats
< crc16
< crc_t10dif
< ext3
< i2c_core
< jbd
> intel_gtt
> intel_ips
< led_class
< libata
> libphy
> llc
< lp
< mbcache
< nls_base
> mperf
< parport
< parport_pc
> pcmcia_rsrc
< ppdev
< rsrc_nonstatic
< scsi_mod
< sd_mod
> shpchp
< snd_hda_codec_intelhdmi
> snd_hda_codec_hdmi
< thermal
I just noticed something potentially significant in "/sys/class/bluetooth" when 2.6.32 is running. Whereas with the 2.6.37 kernel there are only two entries in the directory, "hci0" and "hci0:<node>", where node is a number which changes each time the mouse pairs with the computer, when 2.6.32 is running I see the following:

Quote:
# ls -F /sys/class/bluetooth
hci0@ hci0:42@ l2cap rfcomm rfcomm_dlc sco
Three of the four additional entries correspond to module names. What is this telling me (and more importantly, what do I need to do to correct the situation)? Any ideas?

-- MC --
 
Old 02-22-2011, 12:51 AM   #12
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005
Try modprobing the modules and see if it helps.
 
Old 02-22-2011, 10:38 AM   #13
MCinAZ
LQ Newbie
 
Registered: Jun 2008
Location: Arizona
Distribution: Debian
Posts: 22

Original Poster
Rep: Reputation: 2
No difference after rfcomm, l2cap and sco modprobed. Those showed up in the output from lsmod before (see Post #11), so I wouldn't have expected any difference. Any other ideas?
 
Old 02-22-2011, 11:07 AM   #14
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005
What kind of mouse do you have?
 
Old 02-22-2011, 11:36 AM   #15
MCinAZ
LQ Newbie
 
Registered: Jun 2008
Location: Arizona
Distribution: Debian
Posts: 22

Original Poster
Rep: Reputation: 2
It's a Verbatim, model 96991. Works just fine when the machine is running the Debian 2.6.32 kernel, so whatever the problem is, it appears to be related to either the 2.6.37 kernel I've configured, or possibly changes to the bluetooth support within the kernel since 2.6.32. There are a number of things on my machine which don't work with pre-2.6.35 kernels, which is why I've been running my own. The mouse is the only thing I've not been able to get working with newer kernels.

-- MC --
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to kill or clean a Uninterruptible slept session leader process from process tabl golden_boy615 Linux - General 1 12-14-2010 10:47 AM
pithos - gstreamer trying to use bluetooth when no bluetooth device is installed shadowsnipes Slackware 0 10-30-2010 11:11 AM
Bluetooth Dongle and Bluetooth Mouse... Any ideas on this one? flipjarg Linux - Newbie 1 07-14-2010 07:04 AM
Bluetooth not working on FC6 with Targus USB bluetooth adapter mikevicious Linux - Software 1 12-11-2009 09:03 AM
Finding the Process ID of a Process While Initiating the Process senthilmuthiah Linux - Newbie 7 04-02-2009 10:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration