LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Blueman cannot start properly (https://www.linuxquestions.org/questions/slackware-14/blueman-cannot-start-properly-791678/)

tridc 03-03-2010 06:00 AM

Hi,

When I upgrade pygobject to 2.19, blueman still doesnt work. Besides, it make wicd cannot start and work. So I must return to pygobject 2.16.

May I use kdebluetooth for Slack12.2 (http://slackbuilds.org/repository/12.../kdebluetooth/) on Slack 13? Why have no kdebluetooth or kbluetooth for Slackware 13 on SlackBuilds.org?

Is there someone use kbluetooth 0.4.2 (http://www.kde-apps.org/content/show...ntent=112110)? Does it work well and stable?

Hope for help. Thanks.

uppman 03-03-2010 10:26 AM

You probably have to upgrade to the same versions of gtk/glib etc. as I have..

kdebluetoothXX is crap.

Here is a summary of additional packages on my system:

Code:

SDL_Pango-0.1.2-i486-1_SBo.tgz          glibmm-2.21.5-i686-13.0_upx_1.tgz          openarena-0.8.1-i486-1_SBo.tgz
SDL_gfx-2.0.20-i486-1_SBo.tgz          google-chrome-5.0.307.5-i386-1as.txz        openobex-1.5-i686-13.0_upx_1.tgz
SDL_perl-1.20.0-i486-1_SBo.tgz          gparted-0.4.8-i686-13.0_upx_1.tgz          openoffice.org-3.1.0_sv-i586-4_SBo.tgz
alsa-lib-1.0.22-i686-13.0_upx_1.tgz    gslapt-0.5.2a-i686-13.0_upx_1.tgz          orbit2-2.14.17-i486-2as.txz
alsa-oss-1.0.17-i686-13.0_upx_1.tgz    gtk+2-2.17.11-i686-13.0_upx_1.tgz          pango-1.25.6-i686-13.0_upx_1.tgz
alsa-utils-1.0.22-i686-13.0_upx_1.tgz  gtkmm-2.17.11-i686-13.0_upx_1.tgz          pangomm-2.25.1.3-i686-13.0_upx_1.tgz
blueman-1.21-i686-13.0_upx_1.tgz        ilbc-rfc3951-i686-13.0_upx_1.tgz            pixman-0.16.0-i686-13.0_upx_1.tgz
bluez-4.59-i686-13.0_upx_1.tgz          kvkbd-0.6-i686-13.0_upx_1.tgz              pygobject-2.19.0-i686-13.0_upx_1.tgz
cairo-1.8.8-i686-13.0_upx_1.tgz        libdaemon-0.13-i686-13.0_upx_1.tgz          pygtk-2.16.0-i686-13.0_upx_1.tgz
cairomm-1.8.2-i686-13.0_upx_1.tgz      libdvdcss-1.2.10-i686-13.0_upx_1.tgz        sbopkg-0.31.0-noarch-1_cng.tgz
ccrtp-1.7.1-i686-12.2_upx_1.tgz        libmirage-1.2.0-i686-13.0_upx_1.tgz        sigc++-2.2.4.2-i686-13.0_upx_1.tgz
cdemu-client-1.2.0-i686-13.0_upx_1.tgz  libnotify-0.4.5-i686-13.0_upx_1.tgz        slapt-get-0.10.2b-i686-13.0_upx_1.tgz
cdemu-daemon-1.2.0-i686-13.0_upx_1.tgz  libsndfile-1.0.21-i686-13.0_upx_1.tgz      smb4k-0.10.4-i686-13.0_upx_1.tgz
cdemu-tray-0.2-i686-13.0_upx_1.tgz      libzrtpcpp-1.4.3-i686-12.2_upx_1.tgz        speex-1.2rc1-i686-13.0_upx_1.tgz
cdemu-tray-0.2-i686-13.0_upx_2.tgz      locale-gettext-1.05-i486-2_SBo.tgz          switchdriver-0.72-i686-13.0_2.6.32.7.tgz
commoncpp2-1.7.3-i686-12.2_upx_1.tgz    notify-python-0.1.1-i686-13.0_upx_1.tgz    twinkle-1.4.2-i486-13.0_upx_1.tgz
eduke32-20090313-i486-1_SBo.tgz        obex-data-server-0.4.5-i686-13.0_upx_1.tgz  wicd-1.6.2.2-i686-13.0_upx_1.tgz
frozen-bubble-2.2.0-i486-1_SBo.tgz      obexfs-0.12-i686-13.0_upx_1.tgz            wine-1.1.36-i486-13.0_upx_1.tgz
gconf-2.26.2-i486-3as.txz              obexftp-0.23-i686-13.0_upx_1.tgz            xblast-2.10.4-i686-12.2_upx_2.tgz
glib2-2.21.6-i686-13.0_upx_1.tgz        openal-1.10.622-i686-13.0_upx_1.tgz        xvkbd-3.0-i686-13.0_upx_1.tgz


tridc 03-04-2010 12:37 PM

After upgrade glib2, gtk+2, pygtk, pygobject, I run blueman-applet, then it still shows many exceptions with DBus, mostly as the same
Code:

DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 2 matched rules; type="method_call", sender=":1.29" (uid=1000 pid=4219 comm="/usr/bin/python /usr/bin/blueman-applet ") interface="org.bluez.Manager" member="ListAdapters" error name="(unset)" requested_reply=0 destination="org.bluez" (uid=0 pid=3726 comm="/usr/sbin/bluetoothd -d "))
I have searched but still not found any solution.

uppman 03-04-2010 02:30 PM

Well, I don't know.. below are some ideas..

Try to run bluetoothd in a shell and check the output..
bluetoothd -nd

Do you have these:
notify-python
libnotify

Groups correct? Compare with my system:
user1@localhost:/mnt/data/user1$ groups
users sys disk lp audio video cdrom slocate messagebus plugdev power netdev scanner

D-bus config correct? Compare with my system:

cat /etc/dbus-1/system.d/org.blueman.Mechanism.conf
Code:

<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->                         

<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>                                                   
        <policy user="root">                                 
                <allow own="org.blueman.Mechanism"/>         
        </policy>                                             
        <policy context="default">                           
                <allow send_destination="org.blueman.Mechanism"/>
        </policy>                                               
</busconfig>

cat /etc/dbus-1/system.d/bluetooth.conf
Code:

<!-- This configuration file specifies the required security policies   
    for Bluetooth core daemon to work. -->                             

<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">               
<busconfig>                                                                   

  <!-- ../system.conf have denied everything, so we just punch some holes -->

  <policy user="root">
    <allow own="org.bluez"/>
    <allow send_destination="org.bluez"/>
    <allow send_interface="org.bluez.Agent"/>
  </policy>

  <policy at_console="true">
    <allow send_destination="org.bluez"/>
  </policy>

  <!-- allow users of lp group (printing subsystem) to
      communicate with bluetoothd -->
  <policy group="lp">
    <allow send_destination="org.bluez"/>
  </policy>

  <policy context="default">
    <deny send_destination="org.bluez"/>
  </policy>

</busconfig>

/Magnus

tridc 03-04-2010 07:49 PM

Well, I did it!

It's seem permission problem. After add me to necessary groups with
Code:

root@latix:/home/tridc# usermod -G users,floppy,audio,video,cdrom,plugdev,power,netdev,sambashare,lp,messagebus,sys,disk,slocate tridc
and restart machine, BT icon applet appears at the system tray.

Does it need to add me to many groups like that (lp,messagebus,sys,disk,slocate)? I think only some groups is enough, maybe that make many securities issues.

How can I turn off BT LED? "Turn Bluetooth Off" of blueman-applet seem not working.

Thank you very much.

uppman 03-05-2010 03:01 AM

Quote:

Originally Posted by tridc (Post 3886320)
How can I turn off BT LED? "Turn Bluetooth Off" of blueman-applet seem not working.

Thank you very much.

Glad to hear it works!

I don't think you can turn of bluetooth from blueman.

/Magnus

tridc 03-05-2010 05:32 AM

So, are there command or config files to turn off BT LED? It's always on, consumes amount battery power, that wastes the resources.

Hope for answers.

tridc 03-08-2010 09:09 AM

Problem again,

After upgrading some packages included gtk from 2.14.7 to 2.17.11, SCIM doesn't work with OpenOffice, firefox, pidgin, .. So I turn back with 2.14.7. And this is the old error:
Code:

__load_plugin (/usr/bin/blueman-applet:172)
loading <class 'blueman.plugins.applet.StatusIcon.StatusIcon'>
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/blueman/plugins/AppletPlugin.py", line 96, in _load
    self.on_load(applet)
  File "/usr/lib/python2.6/site-packages/blueman/plugins/applet/StatusIcon.py", line 38, in on_load
    self.SetTextLine(0, _("Bluetooth Enabled"))
  File "/usr/lib/python2.6/site-packages/blueman/plugins/applet/StatusIcon.py", line 79, in SetTextLine
    self.update_tooltip()
  File "/usr/lib/python2.6/site-packages/blueman/plugins/applet/StatusIcon.py", line 89, in update_tooltip
    self.props.tooltip_markup = s[:-1]
AttributeError: 'gobject.GProps' object has no attribute 'tooltip_markup'
_________
__load_plugin (/usr/bin/blueman-applet:172)
Failed to load StatusIcon
'gobject.GProps' object has no attribute 'tooltip_markup'

Seem I know that blueman cannot start because of gtk. On the blueman's download page, gtk just need >= 2.14, but here a man compile gtk 2.18 and blueman works well. I don't think I need to upgrade to 2.18.

Are there someone use Slackware 13 and blueman on laptop without having problem with SCIM? If has, please tell me gtk version you are using.


All times are GMT -5. The time now is 07:12 AM.