View Single Post
Posts: 839 | Thanked: 3,386 times | Joined on Mar 2009
#62
I made some testing about sysinfod.

First grab installation deb, backup it and unpack, e.g.
Code:
apt-get install --reinstall sysinfod
cp /var/cache/apt/archives/sysinfod_0~20100226.1\+0m5_armel.deb .
(Then you can install it back with dpkg -i sysinfod_0~20100226.1\+0m5_armel.deb)

Unpack deb:
Code:
ar x sysinfod_0~20100226.1\+0m5_armel.deb
tar zxvf data.tar.gz
Then uninstall sysinfod and reboot
Code:
apt-get remove sysinfod
reboot
I found that wifi and bluetooth are then broken (anything else?).

Enable wifi: (use xterm on root)
Code:
./sysinfod --system
Let it running

In another tab run (also root)
Code:
wl1251-cal
It should say: "found MAC address" (And not "The name com.nokia.SystemInfo was not provided by any .service files")

Then you can kill sysinfod (Ctrl+c)

Finish with GUI to select access point.

Enable bluetooth:
Code:
./sysinfod --system
Let it running

Another tab or over ssh (root):
Code:
/usr/bin/sysinfo-tool -g /certs/npc/esn/bt_id | sed 's/\(..\)/\1:/g;s/:$//' > /sys/devices/platform/hci_h4p/bdaddr
At this point you can kill sysinfod.

Code:
dbus-send --system --type=method_call --dest=org.bluez `dbus-send --system --print-reply --dest=org.bluez / org.bluez.Manager.ListAdapters | awk -F'"' '/at/ {print $2}' ` org.bluez.Adapter.SetProperty string:Powered variant:boolean:true
***************
Getting rid of sysinfod:
For bluetooth, run once (when sysinfod is running):
/usr/bin/sysinfo-tool -g /certs/npc/esn/bt_id | sed 's/\(..\)/\1:/g;s/:$//' > bt_address

And later (no need for sysinfod)
Code:
cat bt_address > /sys/devices/platform/hci_h4p/bdaddr
dbus-send --system --type=method_call --dest=org.bluez `dbus-send --system --print-reply --dest=org.bluez / org.bluez.Manager.ListAdapters | awk -F'"' '/at/ {print $2}' ` org.bluez.Adapter.SetProperty string:Powered variant:boolean:true
----
wl1251-cal do more, there are wiki page: http://wiki.maemo.org/Wl1251-cal
 

The Following 5 Users Say Thank You to AapoRantalainen For This Useful Post: