Fedora linux forum

Форум русской поддержки ОС Fedora linux

 

#1 2008-11-19 01:33:40

rodef
New member
Зарегистрирован: 2008-11-19
Сообщений: 4

проблема bluetooth_dbus_Intel-Wireless-3945ABG/BG

Как запустить встроенный в ноутбук bluetooth?
Команда hciconfig -a  hci0 не обнаруживает. Не могу понять почему?
Команда hcid -n выводит вот эти сообщения:
Could not become the primary owner of org.bluez
Unable to get on D-Bus
а более подробно можно прочитать тут:
cat /var/log/messages
Nov 17 22:11:49 localhost hcid[2962]: Bluetooth HCI daemon
Nov 17 22:11:49 localhost hcid[2962]: Can't open config file hcid.conf
Nov 17 22:11:49 localhost hcid[2962]: Config load failed
Nov 17 22:11:49 localhost hcid[2962]: Could not become the primary owner of org.bluez
Nov 17 22:11:49 localhost hcid[2962]: Unable to get on D-Bus

Т.е конфигурационный файл hcid.conf почему то не читается.

# HCI daemon configuration file.
#

# HCId options
options {
    # Automatically initialize new devices
    autoinit yes;

    # Security Manager mode
    #   none — Security manager disabled
    #   auto — Use local PIN for incoming connections
    #   user — Always ask user for a PIN
    #
    security auto;

    # Pairing mode
    #   none  — Pairing disabled
    #   multi — Allow pairing with already paired devices
    #   once  — Pair once and deny successive attempts
    pairing multi;

    # Default PIN code for incoming connections
          passkey "12345";
         
}

# Default settings for HCI devices
device {
    # Local device name
    #   %d — device id
    #   %h — host name
    name "Gnomesist %d";

    # Local device class
    class 0x000100;

    # Default packet type
    pkt_type DH1,DM1,HV1;

    # Inquiry and Page scan
    iscan enable; pscan enable;

    # Default link mode
    #   none   - no specific policy 
    #   accept — always accept incoming connections
    #   master — become master on incoming connections,
    #            deny role switch on outgoing connections
    lm accept;

    # Default link policy
    #   none    — no specific policy
    #   rswitch — allow role switch
    #   hold    — allow hold mode
    #   sniff   - allow sniff mode
    #   park    — allow park mode
    lp rswitch,hold,sniff,park;
}
привожу так же rfcomm.conf
#
# RFCOMM configuration file.
#

rfcomm0 {
#    # Automatically bind the device at startup
    bind yes;
#
#    # Bluetooth address of the device
    device 36:42:F0:59:2B:05;
#
#    # RFCOMM channel for the connection
    channel    1;
#
#    # Description of the connection
#    comment "Example Bluetooth device";
}
Mac 36:42:F0:59:2B:05 взял от сюда.
# ifconfig -a
pan0      Link encap:Ethernet  HWaddr 36:42:F0:59:2B:05 
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
Думаю так делать нельзя, но в device надо было вводить число а hciconfig и hcitool dev молчат. Поэтому взял это число от pan cети. Хотя сейчас это не важно потому что как понял rfcomm работает после поднятия блютуфа. А подняв блютуф можно и это число узнать.   

Вот что показывает dmesg:
$ dmesg | grep -i blue
Bluetooth: Core ver 2.11
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP ver 2.9
Bluetooth: L2CAP socket layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM ver 1.8
Bluetooth: BNEP (Ethernet Emulation) ver 1.2
Bluetooth: BNEP filters: protocol multicast

$ dmesg | grep -i 3945
iwl3945: Intel(R) PRO/Wireless 3945ABG/BG Network Connection driver for Linux, 1.2.26kds
iwl3945: Copyright(c) 2003-2008 Intel Corporation
iwl3945: Detected Intel Wireless WiFi Link 3945ABG
iwl3945: Tunable channels: 13 802.11bg, 23 802.11a channels
phy0: Selected rate control algorithm 'iwl-3945-rs'


# ps ax | grep hci
4768 ?        Ss     0:00 /usr/sbin/hcid -s
9140 pts/2    R+     0:00 grep hci

# lsmod | grep -i blue
bluetooth              59044  5 bnep,rfcomm,l2cap




/lib/modules/2.6.25-14.fc9.x86_64/kernel/drivers/net/wireless/iwlwifi/iwl3945.ko

Пробовал dbus подкрутить как описано тут http://www.murga-linux.com/puppy/viewtopic.php?t=25009
И добился только то что на hcid -n в мессагах появляется вот это
Nov 17 23:08:18 localhost hcid[5505]: Bluetooth HCI daemon
Nov 17 23:08:18 localhost hcid[5505]: Starting SDP server
Nov 17 23:08:18 localhost hcid[5505]: Registered input manager path:/org/bluez/input
Nov 17 23:08:18 localhost hcid[5505]: Registering service
Nov 17 23:08:18 localhost hcid[5505]: Registered manager path:/org/bluez/serial
Nov 17 23:08:18 localhost hcid[5505]: Registering service
Nov 17 23:08:18 localhost hcid[5505]: Registered manager path:/org/bluez/network
Nov 17 23:08:18 localhost hcid[5505]: Registering service
Nov 17 23:08:18 localhost hcid[5505]: Unix socket created: 18
Nov 17 23:08:18 localhost hcid[5505]: Registered manager path:/org/bluez/audio
Nov 17 23:08:18 localhost hcid[5505]: Registering service
Nov 17 23:08:18 localhost kernel: pan0: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
тут он подвисает а дальше при нажатии Ctrl-C получаю мессаги
Unregistered manager path
Unregistered manager path
Unregistered manager path
Stopping SDP server
Exit

Линукс только начинаю изучать, и сразу захотелось освоить "быстро" оборудование, которое есть на ноутбуке. 

Вроде wifi работает
# iwlist scan
lo        Interface doesn't support scanning.

eth0      Interface doesn't support scanning.

wmaster0  Interface doesn't support scanning.

wlan0     Scan completed :
          Cell 01 — Address: 00:02:2D:4C:48:CC
                    ESSID:"TEST"
                    Mode:Master
                    Frequency:2.457 GHz (Channel 10)
                    Channel:10
                    Quality=42/100  Signal level=-84 dBm  Noise level=-127 dBm
                    Encryption key:off
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
                    Extra:tsf=000008c1fa4b918d

pan0      Interface doesn't support scanning

А wifi и bluetooth расположены как понял из мануала на ноутбук на одном кристалле Intel(R) PRO/Wireless 3945ABG/BG.

Неактивен

 

#2 2008-11-19 10:01:05

rodef
New member
Зарегистрирован: 2008-11-19
Сообщений: 4

Re: проблема bluetooth_dbus_Intel-Wireless-3945ABG/BG

Вчера забыл написать, что ядро у меня вот такое:
$ uname -r
2.6.25-14.fc9.x86_64

Сегодня в интернете нашел интересную команду modinfo iwl3945 хотел проверить что мне ответит терминал на эту команду. Включаю ноутбук и вижу что wifi "Подключен к беспроводной сети "TEST"(54%)" и wifi светодиод периодически мигает. Хотя вчера все время писал что не удалось подключиться к сети тест и соединение разорвано.Так что я вчера сделал что у меня сегодня вайфай запустился? Вроде после каждой манипуляции перегружал комп, или сеть.
Команда modinfo вот это:
# modinfo iwl3945
filename:       /lib/modules/2.6.25-14.fc9.x86_64/kernel/drivers/net/wireless/iwlwifi/iwl3945.ko
license:        GPL
author:         Copyright(c) 2003-2008 Intel Corporation
version:        1.2.26kds
description:    Intel(R) PRO/Wireless 3945ABG/BG Network Connection driver for Linux
srcversion:     C0B9B89A3CF1DFFB6E89D18
alias:          pci:v00008086d00004227sv*sd*bc*sc*i*
alias:          pci:v00008086d00004222sv*sd*bc*sc*i*
alias:          pci:v00008086d00004227sv*sd00001014bc*sc*i*
alias:          pci:v00008086d00004222sv*sd00001044bc*sc*i*
alias:          pci:v00008086d00004222sv*sd00001034bc*sc*i*
alias:          pci:v00008086d00004222sv*sd00001005bc*sc*i*
depends:        mac80211,cfg80211
vermagic:       2.6.25-14.fc9.x86_64 SMP mod_unload 
parm:           antenna:select antenna (1=Main, 2=Aux, default 0 [both]) (int)
parm:           disable:manually disable the radio (default 0 [radio on]) (int)
parm:           hwcrypto:using hardware crypto engine (default 0 [software])
(int)
parm:           debug:debug output mask (int)
parm:           disable_hw_scan:disable hardware scanning (default 0) (int)
parm:           queues_num:number of hw queues. (int)
parm:           qos_enable:enable all QoS functionality (int)
Ну вроде wifi работает, но проверить пока не могу.(нет прибора с wifi). Подумал что блютуф наверно тоже заработал, но bluetooth молчит вообще hci0 не обнаруживается.Почему? Вчера у меня были два предположения почему не работает bluetooth: 1-проблемы с драйвером. 2- проблемы с d-bus. Раз wifi работает, то наверно с драйвером все в порядке.Остается проверить d-bus и конфигурационные файлы. Но как?

Неактивен

 

#3 2008-11-19 12:37:46

oNe3
Member
Зарегистрирован: 2008-09-18
Сообщений: 36

Re: проблема bluetooth_dbus_Intel-Wireless-3945ABG/BG

А обновить систему не пробовал?

Неактивен

 

#4 2008-11-19 15:44:27

rodef
New member
Зарегистрирован: 2008-11-19
Сообщений: 4

Re: проблема bluetooth_dbus_Intel-Wireless-3945ABG/BG

обновить в каком плане?
Федора10 как появится поставлю. Но сейчас хочется запустить все под девятой федорой.
Или речь идет об обновлении драйверов? Так вроде на интеловском сайте смотрел и самые свежие последние драйвера под wifi в системе у меня есть.

Неактивен

 

#5 2008-11-20 09:34:01

rodef
New member
Зарегистрирован: 2008-11-19
Сообщений: 4

Re: проблема bluetooth_dbus_Intel-Wireless-3945ABG/BG

Вообщем с wifi разобрался в первом приближении все работает.
Надо после запуска системы написать:
# rrmod -f iwl3945
# modprobe iwl3945
И после этого светодиод мигает, и wifi работает.:-)
Но тут с kill switch проблемы возникают, если нажать на кнопку аппаратного выключения wifi и затем сразу выйти из системы. При последующем входе в систему светодиод wifi не загорается и команды rrmod и modprobe не срабатывает. а в мессадже возникает сообщение
iwl3945: Radio disabled by HW RF Kill switch
Немного поигравшись с
/etc/init.d/wpa_supplicant restart
и
/etc/init.d/networkmanager restart
удалось включить светодиод и запустить wifi.
Но в сети нашел Readme.iwp3945, прочитал что можно софтверно переключать Kill switch а так же включать и выключать светодиод программно. Сделал modprobe iwp3945 disable=0, тоже не помогло.
disable
    Manually disable the radio (software RF kill).  This parameter
    allows you to configure the syfs rf_kill setting to turn on
    software based RF kill.  You must clear out the sysfs entry in
    order to turn the radio on if this parameter is provided.

    For additional details on the rf_kill sysfs entry see the section
    on sysfs below.

    0 = Radio ON, 1 = Radio OFF.  Default is 0 [Radio ON]

  led
    Can be used to turn on LED code.

    0 = Off, 1 = On.  Default is 1 [LED On].

Не могу найти такой же ридми для iwl3945, может кто знает где в сети есть такой документ если он есть такой документ? В системе в /usr/doc/ нашел док для фермваре. 
Похожим образом, т.е перезагрузкой хотел запустить блютуф
# /etc/init.d/bluetooth restart
но пока не получается запустить блютуф,в месагах есть сообщения
Nov 20 08:53:27 localhost hcid[3454]: Bluetooth HCI daemon
Nov 20 08:53:27 localhost hcid[3454]: Starting SDP server
Nov 20 08:53:27 localhost hcid[3454]: Registered input manager path:/org/bluez/input
Nov 20 08:53:27 localhost hcid[3454]: Registering service
Nov 20 08:53:27 localhost hcid[3454]: Registered manager path:/org/bluez/serial
Nov 20 08:53:27 localhost hcid[3454]: Registering service
Nov 20 08:53:27 localhost kernel: pan0: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
Nov 20 08:53:27 localhost hcid[3454]: Registered manager path:/org/bluez/network
Nov 20 08:53:27 localhost hcid[3454]: Registering service
Nov 20 08:53:27 localhost hcid[3454]: Unix socket created: 18
Nov 20 08:53:27 localhost hcid[3454]: Registered manager path:/org/bluez/audio
Nov 20 08:53:27 localhost hcid[3454]: Registering service
Nov 20 08:57:36 localhost hcid[3651]: Bluetooth HCI daemon
Nov 20 08:57:36 localhost hcid[3651]: Can't open config file hcid.conf
Nov 20 08:57:36 localhost hcid[3651]: Config load failed
Nov 20 08:57:36 localhost hcid[3651]: Could not become the primary owner of org.bluez
Nov 20 08:57:36 localhost hcid[3651]: Unable to get on D-Bus
При перезагрузке блютуфа, видел в гугле что можно еще вот эту команду дописать # rc-update add bluetooth default, но тут баш говорит что не знает такой команды
Пробовал делать перезагрузку мессаджбаса, тут вообще компьютер перегружается воовсе и надо все заново заходить в систему.
Что то упускаю, не могу понять что.

Неактивен

 

#6 2009-01-09 13:25:08

mishutka12
Member
Зарегистрирован: 2009-01-05
Сообщений: 20

Re: проблема bluetooth_dbus_Intel-Wireless-3945ABG/BG

у меня синезуб заработал только после сборки и установки модуля omnibook (ноут Toshiba A200) по этому мануалу http://habrahabr.ru/blogs/linux/37606/

Неактивен