Linux.com

BT module in Slackware

Link to this post 20 May 11

atreyu wrote:

[b]mfillpot wrote:[/b]
[quote]
At least with Fedora/RH-based Linux, system initscripts will not be run by the system unless the proper symlinks have been generated for them for the specific runlevels in which they are supposed to run. These runlevels are defined at the top of each initscript ( e.g., "# chkconfig: - 85 15" ). So you can drop an executable script in /etc/init.d/ but it won't run until you:

a) put the proper "chkconfig" entry at the top of the script
b) run a command to create the symlinks, e.g. "chkconfig --add myService" , or create them manually


In fact, this is how is defined in the standard ;)

Regards

Link to this post 06 Nov 11

Hi, after some long time, I hardly need to open this thread again. I am facing problem with my blueman-manager. Actually, I re-installed Slackware due to some KDE problems and for past 2-3 months am trying to use the BT service. I strongly doubt that, the same problem may be a reason for my home wireless router is not getting listed in wicd.

In my system, I need to move same physical button for BT as well as for wireless network.

I can able to do the above both in Windows. So, in that way, there is no problem with actual device inside the system

So, I want to get the BT to work and possibly try with wlan issue.

This is what I am getting , when I ran "blueman-manager" from terminal,
########################################################################################################################
bash-4.1$ blueman-manager
Loading configuration plugins
_________
<module> (/usr/lib/python2.6/site-packages/blueman/main/Config.py:20)
Skipping plugin Gconf
No module named gconf
Using file config backend
_________
Load (/usr/lib/python2.6/site-packages/blueman/main/PluginManager.py:68)
['Services', 'PulseAudioProfile']
_________
Load (/usr/lib/python2.6/site-packages/blueman/main/PluginManager.py:68)
Unable to load plugin module PulseAudioProfile
PulseAudio applet plugin not loaded, nothing to do here
_________
__load_plugin (/usr/lib/python2.6/site-packages/blueman/main/PluginManager.py:142)
loading <class 'blueman.plugins.manager.Services.Services'>
blueman-manager version 1.22 starting
_________
on_bluez_name_owner_changed (/usr/bin/blueman-manager:110)
org.bluez owner changed to :1.25
Using file config backend
_________
SetAdapter (/usr/lib/python2.6/site-packages/blueman/gui/DeviceList.py:301)
None
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 586, in msg_reply_handler
reply_handler(*message.get_args_list(**get_args_opts))
File "/usr/bin/blueman-manager", line 162, in on_bluez_name_owner_changed
self.List = ManagerDeviceList(adapter=self.Config.props.last_adapter, inst=self)
File "/usr/lib/python2.6/site-packages/blueman/gui/manager/ManagerDeviceList.py", line 71, in __init__
DeviceList.__init__(self, adapter, data)
File "/usr/lib/python2.6/site-packages/blueman/gui/DeviceList.py", line 122, in __init__
self.SetAdapter(adapter)
File "/usr/lib/python2.6/site-packages/blueman/gui/DeviceList.py", line 332, in SetAdapter
except dbus.DBusServiceUnknownError:
AttributeError: 'module' object has no attribute 'DBusServiceUnknownError'
^CTraceback (most recent call last):
File "/usr/bin/blueman-manager", line 301, in <module>
Blueman()
File "/usr/bin/blueman-manager", line 188, in __init__
gtk.main()
KeyboardInterrupt
_________
save (/usr/lib/python2.6/site-packages/blueman/plugins/config/File.py:117)
Saving config
Exception AttributeError: "'NoneType' object has no attribute 'Bus'" in <bound method File.__del__ of <File object at 0x84d198c (blueman+plugins+ConfigPlugin+ConfigPlugin at 0x82c4f30)>> ignored
########################################################################################################################
Thanks,

Link to this post 07 Nov 11

Have you checked the proc directory to locate the files that controls your bluetooth and wifi radios? One you find those files and figure out the commands you can script the system to enable both on boot.

As for the errors, I would be best to focus on both of those after the radios are activated.

Link to this post 07 Nov 11

thanks Mathew. I expected your reply.

Can you please help me out to find out those two in /proc dir. I can not able to find anything related to radios in that dir.

in iomem file I can not able to find any word "radio" or bluetooth"
I can not understand and not fully aware of the error it is saying about , "Dbus"...

Link to this post 08 Nov 11

Sorry the trigger files are not in /proc, they are in sys. You can locate them by using "find /sys/ -name state" , this will output the state files (on/off) for all devices on your system, generally your wireless will be listed with 80211 such as "/sys/devices/pci0000:00/0000:00:1c.2/0000:04:00.0/ieee80211/phy0/rfkill0/state" and something similar will be listed for the bluetooth most likely citing the protocol.

Link to this post 08 Nov 11

thats ok and here is the output,
################################################################################################################
/sys/devices/virtual/video_output/acpi_video0/state
/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:0c/PNP0C09:00/VPC2004:00/rfkill/rfkill0/state
/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:0c/PNP0C09:00/VPC2004:00/rfkill/rfkill1/state
/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:0c/PNP0C09:00/VPC2004:00/rfkill/rfkill3/state
/sys/devices/pci0000:00/0000:00:02.0/graphics/fb0/state
/sys/devices/pci0000:00/0000:00:1c.2/0000:04:00.0/ieee80211/phy0/rfkill2/state
/sys/devices/pci0000:00/0000:00:1f.2/host2/scsi_host/host2/state
/sys/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/state
/sys/devices/pci0000:00/0000:00:1f.2/host3/scsi_host/host3/state
/sys/devices/pci0000:00/0000:00:1f.2/host3/target3:0:0/3:0:0:0/state
/sys/devices/pci0000:00/0000:00:1f.2/host4/scsi_host/host4/state
/sys/devices/pci0000:00/0000:00:1f.2/host5/scsi_host/host5/state
/sys/devices/pci0000:00/0000:00:1f.2/host6/scsi_host/host6/state
/sys/power/state
################################################################################################################
and I guess, the one we need is,
/sys/devices/pci0000:00/0000:00:1c.2/0000:04:00.0/ieee80211/phy0/rfkill2/state. then, what I need to do ?

Thanks a lot matt

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board