From Fedora Project Wiki

 
(3 intermediate revisions by the same user not shown)
Line 9: Line 9:


== How to test "Test on demand" ==
== How to test "Test on demand" ==
* enable bluetooth in current runlevel
* Enable bluetooth the bluetooth service: <pre>chkconfig bluetooth on</pre>
  # chkconfig --level 5 bluetooth on
* Enable on demand functionality: <pre>echo "BLUETOOTH_ONDEMAND=true" >> /etc/sysconfig/bluetooth</pre>
* enable on demand functionality
* Stop the bluetooth service: <pre>service bluetooth stop</pre>
  # echo "BLUETOOTH_ONDEMAND=true" >> /etc/sysconfig/bluetooth
* Now '''activate''' bluetooth by:
* stop bluetooth
*# Inserting a USB bluetooth device, or
  # service bluetooth stop
*# Toggling your laptop bluetooth switch, or
* insert bluetooth stick or switch bt on and check status
*# Right-click on the bluetooth icon and select ''Turn On Bluetooth''
  # service bluetooth status
* Confirm the bluetooth daemon has started:
  bluetoothd (pid 22364) is running...
<pre>service bluetooth status
* remove stick or switch bt off and check status
bluetoothd (pid 22364) is running...</pre>
  # service bluetooth status
* Now '''deactivate''' bluetooth by:
  bluetoothd is stopped
*# Removing the USB bluetooth device, or
* with chkconfig disable bluetooth in current runlevel
*# Toggling your laptop bluetooth switch, or
  # chkconfig --level 5 bluetooth off
*# Right-click on the bluetooth icon and select ''Turn Off Bluetooth''
* insert bluetooth stick or switch bt on and check status
* Confirm that the bluetooth daemon is no longer running:
  # service bluetooth status
<pre>service bluetooth status
  bluetoothd is stopped
bluetoothd is stopped</pre>
* Disable the bluetooth service: <pre>chkconfig bluetooth off</pre>
* Now '''activate''' bluetooth by:
*# Inserting a USB bluetooth device, or
*# Toggling your laptop bluetooth switch, or
*# Right-click on the bluetooth icon and select ''Turn On Bluetooth''
* Confirm that the bluetooth daemon did '''not''' start:
<pre>service bluetooth status
bluetoothd is stopped</pre>


=== Test your preferred application: ===
=== Test your preferred application: ===
* enable bluetooth in current runlevel
* Enable the bluetooth service: <pre>chkconfig bluetooth on</pre>
  # chkconfig --level 5 bluetooth on
* Enable on demand functionality: <pre>echo "BLUETOOTH_ONDEMAND=true" >> /etc/sysconfig/bluetooth</pre>
* enable on demand functionality
* Now '''activate''' bluetooth by:
  # echo "BLUETOOTH_ONDEMAND=true" >> /etc/sysconfig/bluetooth
*# Inserting a USB bluetooth device, or
* insert bluetooth stick or switch bt on and check status
*# Toggling your laptop bluetooth switch, or
  # service bluetooth status
*# Right-click on the bluetooth icon and select ''Turn On Bluetooth''
  bluetoothd (pid 22364) is running...
* Confirm the bluetooth daemon has started:
* Now run your preferred program using bluetooth and remove/switch off BT and
<pre>service bluetooth status
insert/switch on.
bluetoothd (pid 22364) is running...</pre>
* Now run your preferred program using bluetooth and remove/switch off bluetooth and insert/switch on.


== Results ==
== Results ==

Latest revision as of 15:54, 2 April 2009

Bluetooth on demand

Testcase is focused on bluetooth on demand.

  • Use this testcase if you have usb bluetooth stick, or in case yare able turn on/off bluetooth HW

Sytem Preparation

  • install bluetooth on demand test repo:
    rpm -ivh http://plautrba.fedorapeople.org/bluez/bluez-ondemand-release-1-2.fc11.noarch.rpm
  • install or update bluez and DeviceKit packages
    yum install bluez DeviceKit

How to test "Test on demand"

  • Enable bluetooth the bluetooth service:
    chkconfig bluetooth on
  • Enable on demand functionality:
    echo "BLUETOOTH_ONDEMAND=true" >> /etc/sysconfig/bluetooth
  • Stop the bluetooth service:
    service bluetooth stop
  • Now activate bluetooth by:
    1. Inserting a USB bluetooth device, or
    2. Toggling your laptop bluetooth switch, or
    3. Right-click on the bluetooth icon and select Turn On Bluetooth
  • Confirm the bluetooth daemon has started:
service bluetooth status
bluetoothd (pid 22364) is running...
  • Now deactivate bluetooth by:
    1. Removing the USB bluetooth device, or
    2. Toggling your laptop bluetooth switch, or
    3. Right-click on the bluetooth icon and select Turn Off Bluetooth
  • Confirm that the bluetooth daemon is no longer running:
service bluetooth status
bluetoothd is stopped
  • Disable the bluetooth service:
    chkconfig bluetooth off
  • Now activate bluetooth by:
    1. Inserting a USB bluetooth device, or
    2. Toggling your laptop bluetooth switch, or
    3. Right-click on the bluetooth icon and select Turn On Bluetooth
  • Confirm that the bluetooth daemon did not start:
service bluetooth status
bluetoothd is stopped

Test your preferred application:

  • Enable the bluetooth service:
    chkconfig  bluetooth on
  • Enable on demand functionality:
    echo "BLUETOOTH_ONDEMAND=true" >> /etc/sysconfig/bluetooth
  • Now activate bluetooth by:
    1. Inserting a USB bluetooth device, or
    2. Toggling your laptop bluetooth switch, or
    3. Right-click on the bluetooth icon and select Turn On Bluetooth
  • Confirm the bluetooth daemon has started:
service bluetooth status
bluetoothd (pid 22364) is running...
  • Now run your preferred program using bluetooth and remove/switch off bluetooth and insert/switch on.

Results

  • Is application running?
  • Did any problem occur?
  • Write status and bugs into wiki

Known issues:

  • BT hw detection doesn't work with DeviceKit < 002-5
  • kbluetooth4 crash when usb BT removed bug