Manjaro의 마지막 업데이트에서는 어떤 이유로 더 이상 blueman을 활성화할 수 없습니다. 오류는 다음과 같습니다.
Connection Failed: Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/dbus/service.py", line 707, in _message_cb
retval = candidate_method(self, *args, **keywords)
File "/usr/lib/python3.4/site-packages/blueman/main/DbusService.py", line 36, in wrapper
return method(*args[1:], **kwargs)
File "/usr/lib/python3.4/site-packages/blueman/plugins/applet/DBusService.py", line 76, in connect_service
self.Applet.Plugins.RecentConns.notify(service)
File "/usr/lib/python3.4/site-packages/blueman/plugins/applet/RecentConns.py", line 261, in notify
for i in RecentConns.items:
TypeError: 'NoneType' object is not iterable
blueman-applet
주어진
blueman-applet:1811): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2:19: Theming engine 'adwaita' not found
blueman-applet version 2.0 starting
Stale PID, overwriting
/usr/lib/python3.4/site-packages/gi/overrides/__init__.py:313: Warning: The property GSettings:schema is deprecated and shouldn't be used anymore. It will be removed in a future version.
return super_init_func(self, **new_kwargs)
_________
Load (/usr/lib/python3.4/site-packages/blueman/main/PluginManager.py:60)
['NMDUNSupport', 'PowerManager', 'DhcpClient', 'AppIndicator', 'ExitItem', 'TransferService', 'GameControllerWakelock', 'Menu', 'PPPSupport', 'ShowConnected', 'Networking', 'StandardItems', 'AuthAgent', 'DBusService', 'SerialManager', 'KillSwitch', 'DiscvManager', 'NMPANSupport', 'StatusIcon', 'RecentConns', 'Headset', 'NetUsage']
_________
Load (/usr/lib/python3.4/site-packages/blueman/main/PluginManager.py:60)
Unable to load plugin module AppIndicator
cannot import name AppIndicator3, introspection typelib not found
_________
get_interface_version (/usr/lib/python3.4/site-packages/blueman/bluez/BlueZInterface.py:13)
Detected BlueZ 5
_________
__load_plugin (/usr/lib/python3.4/site-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.Headset.Headset'>
_________
__load_plugin (/usr/lib/python3.4/site-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.TransferService.TransferService'>
_________
get_interface_version (/usr/lib/python3.4/site-packages/blueman/bluez/obex/Base.py:20)
Detected BlueZ integrated obexd
_________
__load_plugin (/usr/lib/python3.4/site-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.StatusIcon.StatusIcon'>
_________
__load_plugin (/usr/lib/python3.4/site-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.Menu.Menu'>
_________
__load_plugin (/usr/lib/python3.4/site-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.ExitItem.ExitItem'>
_________
__load_plugin (/usr/lib/python3.4/site-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.StandardItems.StandardItems'>
_________
__load_plugin (/usr/lib/python3.4/site-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.Networking.Networking'>
_________
load_nap_settings (/usr/lib/python3.4/site-packages/blueman/plugins/applet/Networking.py:36)
Loading NAP settings
_________
__load_plugin (/usr/lib/python3.4/site-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.AuthAgent.AuthAgent'>
_________
__load_plugin (/usr/lib/python3.4/site-packages/blueman/main/PluginManager.py:133)
Not loading DhcpClient because it's conflict has higher priority
_________
__load_plugin (/usr/lib/python3.4/site-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.DiscvManager.DiscvManager'>
_________
update_menuitems (/usr/lib/python3.4/site-packages/blueman/plugins/applet/DiscvManager.py:123)
warning: Adapter is None
_________
__load_plugin (/usr/lib/python3.4/site-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.RecentConns.RecentConns'>
_________
__load_plugin (/usr/lib/python3.4/site-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.PowerManager.PowerManager'>
_________
__load_plugin (/usr/lib/python3.4/site-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.ShowConnected.ShowConnected'>
_________
__load_plugin (/usr/lib/python3.4/site-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.GameControllerWakelock.GameControllerWakelock'>
_________
__load_plugin (/usr/lib/python3.4/site-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.DBusService.DBusService'>
_________
__load_plugin (/usr/lib/python3.4/site-packages/blueman/main/PluginManager.py:133)
Not loading PPPSupport because it's conflict has higher priority
_________
__load_plugin (/usr/lib/python3.4/site-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.NMDUNSupport.NMDUNSupport'>
_________
__load_plugin (/usr/lib/python3.4/site-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.SerialManager.SerialManager'>
_________
__load_plugin (/usr/lib/python3.4/site-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.NMPANSupport.NMPANSupport'>
_________
__load_plugin (/usr/lib/python3.4/site-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.KillSwitch.KillSwitch'>
_________
io_event (/usr/lib/python3.4/site-packages/blueman/plugins/applet/KillSwitch.py:72)
killswitch registered 1
_________
io_event (/usr/lib/python3.4/site-packages/blueman/plugins/applet/KillSwitch.py:72)
State: False
_________
UpdatePowerState (/usr/lib/python3.4/site-packages/blueman/plugins/applet/PowerManager.py:159)
off True
foff False
on True
current state True
new state False
_________
UpdatePowerState (/usr/lib/python3.4/site-packages/blueman/plugins/applet/PowerManager.py:159)
Signalling False
_________
_on_obex_owner_changed (/usr/lib/python3.4/site-packages/blueman/plugins/applet/TransferService.py:170)
obex owner changed: :1.45
_________
on_dbus_name_owner_change (/usr/bin/blueman-applet:94)
org.bluez owner changed to :1.2
_________
set_nap (/usr/lib/python3.4/site-packages/blueman/plugins/applet/Networking.py:65)
set nap False
_________
register_agent (/usr/lib/python3.4/site-packages/blueman/plugins/applet/AuthAgent.py:63)
Registering agent
_________
enumerate_connections (/usr/lib/python3.4/site-packages/blueman/plugins/applet/ShowConnected.py:50)
Found 0 existing connections
_________
on_registered (/usr/lib/python3.4/site-packages/blueman/bluez/obex/AgentManager.py:18)
/org/blueman/obex_agent
_________
RequestPowerState (/usr/lib/python3.4/site-packages/blueman/plugins/applet/PowerManager.py:131)
Requesting True
_________
on_power_state_change_requested (/usr/lib/python3.4/site-packages/blueman/plugins/applet/KillSwitch.py:119)
True
_________
UpdatePowerState (/usr/lib/python3.4/site-packages/blueman/plugins/applet/PowerManager.py:159)
off True
foff False
on False
current state False
new state False
_________
check (/usr/lib/python3.4/site-packages/blueman/plugins/applet/PowerManager.py:119)
callbacks done
_________
set_adapter_state (/usr/lib/python3.4/site-packages/blueman/plugins/applet/PowerManager.py:90)
True
_________
set_adapter_state (/usr/lib/python3.4/site-packages/blueman/plugins/applet/PowerManager.py:90)
Exception occurred org.bluez.Error.Blocked: Blocked through rfkill
gnome-themes-standard가 설치되었습니다.
그들은 내 티켓을 github에 버그로 표시했고 나는 결코 답변을 받지 못할 것이며 그것을 고치려면 다음 버전의 blueman까지 기다려야 할 것 같습니다. 너무 오래 기다리네요. xfce에 사용할 수 있는 다른 블루투스 애플릿이 있나요?
답변1
Lynob의 답변에 대한 작은 업데이트: 동일한 문제가 발생하여 blueman-applet
적어도 v.1.99에서 동일한 버그가 발견되었지만 문제가 되는 코드는 87-88 /usr/lib/python2.7/dist-packages/blueman/main/KillSwitchNG.py
행 에 있습니다.
플래그 |= os.O_NONBLOCK
self.fd = os.open("/dev/rfkill", 플래그)
...
문제를 해결하려면 호출하기 전에 다음 줄을 추가하여 설정해야 합니다 binary mode
.flags
open(...)
플래그 |= os.O_BINARY
답변2
나는 달렸다
sudo rfkill unblock bluetooth
작동하는 것 같지만 github에서 Christopher Schramm이 내 티켓을 다시 열었고 여전히 버그로 표시되어 있습니다. 아마도 그는 내가 모르는 버그, 아마도 GTK 버그를 조사하고 있는 것 같습니다. 나에게 있어 내가 관심을 갖는 것은 그것이 효과가 있다는 것이다.
편집하다
Christopher가 실제 버그를 발견했습니다. blueman/plugins/mechanism/RfKill.py
그에 따라 파일을 검토하고 변경하거나 업데이트가 푸시될 때까지 기다리십시오. 15번째 줄은 다음과 같아야 합니다
f = open('/dev/rfkill', 'wb')
그냥 b를 추가하세요