Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 119911 Details for
Bug 178160
net-wireless/bluez-utils-3.10 - hidd doesn't start
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
hidtool.py
hidtool.py (text/plain), 1.10 KB, created by
Dick Marinus
on 2007-05-21 18:13:47 UTC
(
hide
)
Description:
hidtool.py
Filename:
MIME Type:
Creator:
Dick Marinus
Created:
2007-05-21 18:13:47 UTC
Size:
1.10 KB
patch
obsolete
>#!/usr/bin/python >import sys >import getopt >import dbus > >bus = dbus.SystemBus() > >bmgr = dbus.Interface(bus.get_object('org.bluez', '/org/bluez'), 'org.bluez.Manager') >bus_id = bmgr.ActivateService('input') > >imgr = dbus.Interface(bus.get_object(bus_id, '/org/bluez/input'), 'org.bluez.input.Manager') > >optlist, args = getopt.getopt(sys.argv[1:], '', ['list','connect=','disconnect=','help']) > >for opt,val in optlist: > if opt == '--list': > for path in imgr.ListDevices(): > idev = dbus.Interface (bus.get_object(bus_id, path), 'org.bluez.input.Device') > print "%s Name: \"%s\" ID: %04x:%04x Connected: %i" % (path, idev.GetName(), idev.GetProductId(), idev.GetVendorId(), idev.IsConnected()) > elif opt == '--connect': > path = '' > if (val[0] == '/'): > path = val > else: > path = imgr.CreateDevice(val) > idev = dbus.Interface (bus.get_object(bus_id, path), 'org.bluez.input.Device') > idev.Connect() > elif opt == '--disconnect': > imgr.RemoveDevice(val) > else: > print 'usage: ', sys.argv[0], '[ --list, --connect=[XX:XX:XX:XX:XX, /org/bluez/input/device0], --disconnect=/org/bluez/input/device0, --help ]' > break >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 178160
:
119461
| 119911