Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 14/02/2007, à 20:20

Flankouze

Logitech Dinovo & Demarage Edgy ! (bluetooth inside )

Salut tout le monde !
Depuis que j'ai ubuntu, j'ai le clavier qui se "bloque" au demarage. Enfin c'est un probleme connu pour les peripheriques en bluetooth.

Le probleme est qu'en suivant les solutions proposées par Joueur de blues! et jmb0007
ici : http://forum.ubuntu-fr.org/viewtopic.php?id=70506

Je bloque ici :

cd xy\:xy\:xy\:xy\:xy\:xy (en remplaçant les xy par ce qui a été affiché par ls)

ls -l
cat hidd
sudo cat linkkeys

Il n'existe pas chez moi de fichier hidd ni de fichier linkkeys !!
La commande hidd --search est trop rapide pour rechercher quoique ce soit !

Dans ce cas que faire ???! !!

Les autres commandes données :

sudo hcitool -i hci0 cc --role=m "masourie"
sudo hidd -i hci0 --connect "masourie"

Ca ne donnes rien !! ( soit adresse inconnue ou quelque chose du genre )

A priori la bluetooth est correctement config
Je copierai les fichiers /etc/default/bluetooth & /etc/init.d/bluetooth des que je retourne sous ubuntu

Materiel :
Xp2500+ sur Asus A7N8X(nforce2)
Dinovo Media desktop 2.0
Edgy 6.10

Thx d'avance

@++

Hors ligne

#2 Le 28/02/2007, à 16:20

Flankouze

Re : Logitech Dinovo & Demarage Edgy ! (bluetooth inside )

Voila le /etc/default/bluetooth :

# Defaults for bluez-utils

# This file supersedes /etc/default/bluez-pan.  If
# that exists on your system, you should use this
# file instead and remove the old one.  Until you
# do so, the contents of this file will be ignored.

############ HIDD
#
# To have Bluetooth mouse and keyboard support, get the
# Linux 2.6.6 patch or better from bluez.org, and set 
# HIDD_ENABLED to 1.

HIDD_ENABLED=1
HIDD_OPTIONS="-i hci0 --server"
#HIDD_OPTIONS="-i 00:07:61:0C:FD:6B -i 00:07:61:09:38:76 --server"

# to make hidd always use a particular interface, use something
# like this, substituting the bdaddr of the interface:
# HIDD_OPTIONS="-i AA:BB:CC:DD:EE:FF --server"
#
# remove '--master' if you're having trouble working with Ericsson
# T630 phones with hidd operational at the same time.

############ COMPATIBILITY WITH OLD BLUEZ-PAN
# Compatibility: if old PAN config exists, use it
# rather than this file.
if test -f /etc/default/bluez-pan; then
    . /etc/default/bluez-pan
    return
fi
############

############ DUND
#
# Run dund -- this allows ppp logins. 1 for enabled, 0 for disabled.
DUND_ENABLED=0

# Arguments to dund: defaults to acting as a server
DUND_OPTIONS="--listen --persist"

# Run dund --help to see the full array of options.
# Here are some examples:
#
# Connect to any nearby host offering access
# DUND_OPTIONS="--search"
#
# Connect to host 00:11:22:33:44:55
# DUND_OPTIONS="--connect 00:11:22:33:44:55"
#
# Listen on channel 3
# DUND_OPTIONS="--listen --channel 3"

# Special consideration is needed for certain devices. Microsoft
# users see the --msdun option.  Ericsson P800 users will need to
# listen on channel 3 and also run 'sdptool add --channel=3 SP'

############ PAND
#
# Run pand -- ethernet: creates new network interfaces bnep<N>
# that can be configured in /etc/network/interfaces
# set to 1 for enabled, 0 for disabled
PAND_ENABLED=0

# Arguments to pand
# Read the PAN howto for ways to set this up
# http://bluez.sourceforge.net/contrib/HOWTO-PAN
PAND_OPTIONS=""

# example pand lines
#
# Act as the controller of an ad-hoc network
# PAND_OPTIONS="--listen --role GN"
#
# Act as a network access point: routes to other networks
# PAND_OPTIONS="--listen --role NAP"
#
# Act as a client of an ad-hoc controller with number 00:11:22:33:44:55
# PAND_OPTIONS="--role PANU --connect 00:11:22:33:44:55"
#
# Connect to any nearby network controller (access point or ad-hoc)
# PAND_OPTIONS="--role PANU --search"

Hors ligne

#3 Le 28/02/2007, à 16:21

Flankouze

Re : Logitech Dinovo & Demarage Edgy ! (bluetooth inside )

et le etc/init.d/bluetooth :

#! /bin/sh
#
# bluez-utils    Bluetooth subsystem starting and stopping
#
# Edd Dumbill <ejad@debian.org>
#
# startup control over dund and pand can be changed by 
# editing /etc/default/bluez-utils

PATH=/sbin:/bin:/usr/sbin:/usr/bin
DESC="Bluetooth services"

HCID=/usr/sbin/hcid
HCIATTACH=/usr/sbin/hciattach
HCID_NAME=hcid

HID2HCI=/usr/sbin/hid2hci

UART_CONF=/etc/bluetooth/uart

RFCOMM=/usr/bin/rfcomm
RFCOMM_NAME=rfcomm
RFCOMM_CONF=/etc/bluetooth/rfcomm.conf

SDPD=/usr/sbin/sdpd
SDPD_NAME=sdpd

DUND_DAEMON=/usr/bin/dund
DUND_NAME=dund
PAND_DAEMON=/usr/bin/pand
PAND_NAME=pand
HIDD_DAEMON=/usr/bin/hidd
HIDD_NAME=hidd

DUND_ENABLED=0
PAND_ENABLED=0
HIDD_ENABLED=1
DUND_OPTIONS=""
PAND_OPTIONS=""
HIDD_OPTIONS="--search --master --server"

test -f /etc/default/bluez-utils && . /etc/default/bluez-utils
test -f /etc/default/rcS && . /etc/default/rcS

. /lib/lsb/init-functions

# test for essential daemons
test -x $HCID || exit 0
test -x $HCIATTACH || exit 0
test -x $RFCOMM || exit 0
test -x $SDPD || exit 0

# disable nonessential daemons if not present
if test "$DUND_ENABLED" != "0"; then
	if ! test -f $DUND_DAEMON; then
		DUND_ENABLED=0
	fi
fi

if test "$PAND_ENABLED" != "0"; then
	if ! test -f $PAND_DAEMON; then
		PAND_ENABLED=0
	fi
fi

if test "$HIDD_ENABLED" != "0"; then
	if ! test -f $HIDD_DAEMON; then
		HIDD_ENABLED=0
	fi
fi

set -e

enable_hci_input()
{
	if [ "$VERBOSE" != no ]; then
 		log_success_msg "Switching on Bluetooth input devices..."
 		$HID2HCI --tohci
 	else
 		$HID2HCI --tohci >/dev/null 2>&1
 	fi
}

disable_hci_input()
{
	if [ "$VERBOSE" != no ]; then
 		log_success_msg "Switching Bluetooth input devices back to HID mode..."
 		$HID2HCI --tohid
 	else
 		$HID2HCI --tohid >/dev/null 2>&1
 	fi
}

start_pan()
{
	if test "$DUND_ENABLED" != "0"; then
		start-stop-daemon --start --quiet --exec $DUND_DAEMON -- $DUND_OPTIONS
		[ "$VERBOSE" != no ] && log_success_msg "Starting $DUND_NAME..."
	fi
	if test "$PAND_ENABLED" != "0"; then
		start-stop-daemon --start --quiet --exec $PAND_DAEMON -- $PAND_OPTIONS
		[ "$VERBOSE" != no ] && log_success_msg "Starting $PAND_NAME..."
	fi
}


stop_pan()
{
	if test "$DUND_ENABLED" != "0"; then
		start-stop-daemon --stop --quiet --exec $DUND_DAEMON || true
		[ "$VERBOSE" != no ] && log_success_msg "Stopping $DUND_NAME..."
	fi
	if test "$PAND_ENABLED" != "0"; then
		start-stop-daemon --stop --quiet --exec $PAND_DAEMON || true
		[ "$VERBOSE" != no ] && log_success_msg "Stopping $PAND_NAME..."
	fi
}

start_hid()
{
	if test "$HIDD_ENABLED" != "0"; then
		start-stop-daemon --start --quiet --exec $HIDD_DAEMON -- $HIDD_OPTIONS
		[ "$VERBOSE" != no ] && log_success_msg "Starting $HIDD_NAME..."
	fi
}

stop_hid()
{
	if test "$HIDD_ENABLED" != "0"; then
		$HIDD_DAEMON --killall
		start-stop-daemon --stop --quiet --exec $HIDD_DAEMON || true
		[ "$VERBOSE" != no ] && log_success_msg "Stopping $HIDD_NAME..."
	fi
}

start_uarts()
{
	[ -f $HCIATTACH ] && [ -f $UART_CONF ] || return
	grep -v '^#' $UART_CONF | while read i; do
		if [ "$VERBOSE" != no ]; then
			$HCIATTACH $i 
		else
			$HCIATTACH $i >/dev/null 2>&1
		fi
	done
}

stop_uarts()
{
	killall hciattach > /dev/null 2>&1 || true
}

start_rfcomm()
{
	if [ -x $RFCOMM ] && [ -f $RFCOMM_CONF ] ; then
		# rfcomm must always succeed for now: users
		# may not yet have an rfcomm-enabled kernel
 		if [ "$VERBOSE" != no ]; then
 			 log_success_msg "Starting $RFCOMM_NAME..."
 			$RFCOMM -f $RFCOMM_CONF bind all || true
 		else
 			$RFCOMM -f $RFCOMM_CONF bind all >/dev/null 2>&1 || true
 		fi
	fi
}

stop_rfcomm()
{
	if [ -x $RFCOMM ] ; then
 		if [ "$VERBOSE" != no ]; then
 			log_success_msg "Stopping $RFCOMM_NAME..."
 			$RFCOMM unbind all || true
 		else
 			$RFCOMM unbind all >/dev/null 2>&1 || true
 		fi	
	fi
}

restart_rfcomm()
{
	if [ -x $RFCOMM ] && [ -f $RFCOMM_CONF ] ; then
 		if [ "$VERBOSE" != no ]; then
 			log_success_msg  "Restarting $RFCOMM_NAME..."
 			$RFCOMM unbind all || true
 			$RFCOMM -f $RFCOMM_CONF bind all || true
 		else
 			$RFCOMM unbind all >/dev/null 2>&1|| true
 			$RFCOMM -f $RFCOMM_CONF bind all >/dev/null 2>&1 || true
 		fi
	fi
}

case "$1" in
  start)
	log_begin_msg "Starting $DESC..."
	start-stop-daemon --start --quiet --exec $HCID || true
	echo -n " $HCID_NAME"
	start_uarts || true
	start-stop-daemon --start --quiet --exec $SDPD || true
	echo -n " $SDPD_NAME"
	start_hid || true
	enable_hci_input || true
	start_rfcomm || true
	start_pan || true
	log_end_msg 0
	;;
  stop)
	log_begin_msg "Stopping $DESC..."
	stop_pan || true
	stop_rfcomm || true
	disable_hci_input || true
	stop_hid || true
	start-stop-daemon --stop --quiet --exec $SDPD || true
	echo -n " $SDPD_NAME"
	start-stop-daemon --stop --quiet --exec $HCID || true
	echo -n " $HCID_NAME"
	stop_uarts || true
	log_end_msg 0
	;;
  restart|force-reload)
	log_begin_msg "Restarting $DESC..."
	stop_hid || true
	stop_pan || true
	start-stop-daemon --stop --quiet --exec $SDPD || true
	start-stop-daemon --stop --quiet --exec $HCID || true
	sleep 1

		enable_hci_input || true

	start-stop-daemon --start --quiet --exec $HCID || true
	start-stop-daemon --start --quiet --exec $SDPD || true
	start_pan || true
	start_hid || true
	restart_rfcomm
	log_end_msg 0
	;;
  *)
	N=/etc/init.d/bluez-utils
	log_success_msg "Usage: $N {start|stop|restart|force-reload}"
	exit 1
	;;
esac

exit 0

Hors ligne