Hello everyone!
Would be nice to have a forum for GPE/Familiar :)
Where is the community?
Anyway, I am using GPE on an hx4700 with the WiFi drivers from sdg.
These work really well. The only problem is we need to reinsert the
module after resuming from standby.
I have written a small scripted app to do that with an icon and I
thought I'd share it here.
file: restart-wifi to put in /usr/bin
/////////////////////////////////////////////////////////////////////
#!/bin/sh
/sbin/ifdown wlan0
/sbin/modprobe -r hx4700_acx
/sbin/modprobe hx4700_acx
/sbin/ifup wlan0 > /dev/null 2>&1
/usr/bin/gpe-question --icon wifi-gpe --question "WiFi restarted"
--buttons "ok:OK"
/////////////////////////////////////////////////////////////////////
NB: I put the '> /dev/null 2>&1' only at the end so that if anything
goes wrong, an error message is displayed. But we don't want an error
message for the verbose DNS registration in case you use dhcp.
The Desktop entry
file: restart-wifi.desktop to put in /usr/share/applications/
/////////////////////////////////////////////////////////////////////
[Desktop Entry]
Encoding=UTF-8
Name=Restart WiFi
Comment=Script to reset WiFi
Exec=gpe-su -c restart-wifi
Terminal=0
Type=Application
Icon=wifi-gpe.png
Categories=Application;PIM;GPE;
StartupNotify=true
/////////////////////////////////////////////////////////////////////
The icon is attached but I don't know if we can attach files to this list.
One question for you guys. I use 'gpe-question' to display the
confirmation dialog, but I'd rather use the bubble notification
interface instead (less obtrusive + no confirmation needed).
Do you know if there is a scripting interface to these info bubbles?
Cheers,
-Julien
This archive was generated by hypermail 2.2.0 : Sun Sep 02 2007 - 16:39:04 EDT