Author Topic: Usbapplet  (Read 49862 times)

dougeeebear

  • Hero Member
  • *****
  • Posts: 537
    • View Profile
    • http://
Usbapplet
« Reply #15 on: November 07, 2006, 11:16:22 am »
Quote
I managed to rewrite the applet while everyone was watching the horse race.Here's the rewritten version. It has some more features, but needs much more testing also...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=145739\"][{POST_SNAPBACK}][/a][/div]
Wow! That was fast

Here's how it works for me so far:
I get a popup notification on insertion of usb drive using /mnt/usbstorage directory.
Unmount option now works.
After unmount, this item disappears from the list (no option to remount)
Not sure if this is intended behavior.

No popup notification on insertion of usb mouse, but it shows up in the list.
Not sure if this is intended behavior.

Nice work.
Thanks for this update.

Regards,
Doug
« Last Edit: November 07, 2006, 11:50:05 am by dougeeebear »
Zaurus SL-C1000 and SL-5500
NetWalker PC-T1 (tablet)

John Galt

  • Newbie
  • *
  • Posts: 34
    • View Profile
Usbapplet
« Reply #16 on: November 07, 2006, 01:04:36 pm »
Quote
Quote
I managed to rewrite the applet while everyone was watching the horse race.Here's the rewritten version. It has some more features, but needs much more testing also...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=145739\"][{POST_SNAPBACK}][/a][/div]
Wow! That was fast

Here's how it works for me so far:
I get a popup notification on insertion of usb drive using /mnt/usbstorage directory.
Unmount option now works.
After unmount, this item disappears from the list (no option to remount)
Not sure if this is intended behavior.

No popup notification on insertion of usb mouse, but it shows up in the list.
Not sure if this is intended behavior.

Nice work.
Thanks for this update.

Regards,
Doug
[div align=\"right\"][a href=\"index.php?act=findpost&pid=145742\"][{POST_SNAPBACK}][/a][/div]

Nice update indeed. In my case, though, I do not see an icon in the the statusbar. Instead, there is blank space. When I click on the space, it shows me the various options: "Unmount usbstorage1", "Mount USB ZIP" and "Mount CD-ROM".

By the way, the blank spot (or potential icon) only shows up after I attach the USB cable and the USB flash drive to the Z.


Thanks again!

N.

C3000, Sharp ROM
« Last Edit: November 07, 2006, 01:07:53 pm by John Galt »
Zaurus SL-C3000 with pdaXii13
4GB CF, 4GB SD, AmbiCom CF Wireless card

dougeeebear

  • Hero Member
  • *****
  • Posts: 537
    • View Profile
    • http://
Usbapplet
« Reply #17 on: November 07, 2006, 03:55:52 pm »
Quote
I do not see an icon in the the statusbar.[div align=\"right\"][a href=\"index.php?act=findpost&pid=145751\"][{POST_SNAPBACK}][/a][/div]
Do you have Meanie's System Info ipk installed?
It containes the icon the usbapplet uses, but I don't think sharp's default system info does.
Zaurus SL-C1000 and SL-5500
NetWalker PC-T1 (tablet)

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Usbapplet
« Reply #18 on: November 07, 2006, 04:09:57 pm »
Quote
Quote
I do not see an icon in the the statusbar.[div align=\"right\"][a href=\"index.php?act=findpost&pid=145751\"][{POST_SNAPBACK}][/a][/div]
Do you have Meanie's System Info ipk installed?
It containes the icon the usbapplet uses, but I don't think sharp's default system info does.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=145775\"][{POST_SNAPBACK}][/a][/div]

 i will repackage it with its own icons eventually once i got it fully functional. functionality first, then the art work can begin

everything seems to be working ok, except the keyboard/mouse notifications sometimes dont happen, but they sometimes do so i dont know what is wrong
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

John Galt

  • Newbie
  • *
  • Posts: 34
    • View Profile
Usbapplet
« Reply #19 on: November 07, 2006, 04:47:52 pm »
Quote
Quote
I do not see an icon in the the statusbar.[div align=\"right\"][a href=\"index.php?act=findpost&pid=145751\"][{POST_SNAPBACK}][/a][/div]
Do you have Meanie's System Info ipk installed?
It containes the icon the usbapplet uses, but I don't think sharp's default system info does.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=145775\"][{POST_SNAPBACK}][/a][/div]

I don't think I do...I will search for it and install it. Thanks!
Zaurus SL-C3000 with pdaXii13
4GB CF, 4GB SD, AmbiCom CF Wireless card

dougeeebear

  • Hero Member
  • *****
  • Posts: 537
    • View Profile
    • http://
Usbapplet
« Reply #20 on: November 07, 2006, 04:54:02 pm »
Quote
Quote
Quote
I do not see an icon in the the statusbar.[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
Do you have Meanie's System Info ipk installed?
It containes the icon the usbapplet uses, but I don't think sharp's default system info does.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=145775\"][{POST_SNAPBACK}][/a][/div]

I don't think I do...I will search for it and install it. Thanks!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=145781\"][{POST_SNAPBACK}][/a][/div]
You will find it at the link in Meanie's sig.
There are also some updates to it [a href=\"https://www.oesf.org/forums/index.php?showtopic=21396&st=0] here[/url]
« Last Edit: November 07, 2006, 04:59:03 pm by dougeeebear »
Zaurus SL-C1000 and SL-5500
NetWalker PC-T1 (tablet)

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Usbapplet
« Reply #21 on: November 08, 2006, 01:09:29 am »
I build a new version (1.0.2) to be uploaded later once I package it.

This version will contain the following features and enhancements:

a set of icons for the menu options and small tray icon
usb icon is displayed in tray when usb host cable and/or devices is/are plugged in
can unmount up to 4 USB disks/devices if used in combination with a USB hub and my automounter script
can unmount single USB disk/device using standard usb-storage script
can mount and unmount usb cdrom (without the need to physically unplug and replug the drive)
can mount and unmount usbzip (without the need to physically unplug and replug the drive)
detects when a usb device (mouse/keyboard/ethernet/bluetooth) is plugged in or unplugged. there will be additional item(s) in the usb menu and also a short popup notification (sometimes popup does not appear  )
if a custom script exists (to be created by user) then the usb menu will have a start and a stop menu selection for the script.
ie. if there is a /opt/QtPalmtop/bin/usbethernet script and the applet detects a usb lan card being plugged in, then there will be two options added, one which call the usbethernet script with the start option being passed and one with the stop option being passed. This way, the usbethernet script can be tailored to be executed to for example connect to a specific network and disconnect from it. if the script does not exist, a single menu item will be added instead which does not do anything but just says USB Ethernet Detected.
currently, the following scripts can be added for customisation:
/opt/QtPalmtop/bin/usbbluetooth
/opt/QtPalmtop/bin/usbethernet
/opt/QtPalmtop/bin/usbkeyboard
/opt/QtPalmtop/bin/usbmouse
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Usbapplet
« Reply #22 on: November 08, 2006, 07:19:56 am »
here's the updated package
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

dougeeebear

  • Hero Member
  • *****
  • Posts: 537
    • View Profile
    • http://
Usbapplet
« Reply #23 on: November 08, 2006, 09:05:42 am »
Nice job.

I see the two menu items "Mount USB ZIP" and "Mount CD-ROM" are not listed now.
I assume they only show up if they are plugged in (which makes sense).
I don't have either one to check it out.

Thanks again for this very handy application.

Doug
« Last Edit: November 08, 2006, 09:15:46 am by dougeeebear »
Zaurus SL-C1000 and SL-5500
NetWalker PC-T1 (tablet)

dougeeebear

  • Hero Member
  • *****
  • Posts: 537
    • View Profile
    • http://
Usbapplet
« Reply #24 on: November 08, 2006, 04:29:07 pm »
Here's a little icon I whipped up for usb storage.
To use it, save image as "usbstorage.png" and copy it to /home/QtPalmtop/pics144/usbmon

It would also be kind of neat if there could be separate icons for the mouse and keyboard
« Last Edit: November 08, 2006, 07:16:56 pm by dougeeebear »
Zaurus SL-C1000 and SL-5500
NetWalker PC-T1 (tablet)

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Usbapplet
« Reply #25 on: November 08, 2006, 08:26:55 pm »
Quote
Here's a little icon I whipped up for usb storage.
To use it, save image as "usbstorage.png" and copy it to /home/QtPalmtop/pics144/usbmon

It would also be kind of neat if there could be separate icons for the mouse and keyboard
[div align=\"right\"][a href=\"index.php?act=findpost&pid=145847\"][{POST_SNAPBACK}][/a][/div]

send me more nice looking images and I will add them to the package

btw, the USB ZIP and CDROM will only appear if they are detected, ie automounter script detects them and creates the required mount points for them. (ie, /mnt/cdrom /mnt/usbzip). Unfortunately, this means, once, you have those directories, they will always appear, even when they are not plugged in. I will need to fix that eventually...
« Last Edit: November 08, 2006, 08:34:50 pm by Meanie »
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Usbapplet
« Reply #26 on: November 08, 2006, 09:15:47 pm »
Quote
btw, the USB ZIP and CDROM will only appear if they are detected, ie automounter script detects them and creates the required mount points for them. (ie, /mnt/cdrom /mnt/usbzip). Unfortunately, this means, once, you have those directories, they will always appear, even when they are not plugged in. I will need to fix that eventually...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=145855\"][{POST_SNAPBACK}][/a][/div]

fixed that now

I will repackage again and include more images. The applet will look for the following images under usbmon:

usbbluetooth.png
usbethernet.png
usbmouse.png
usbkeyboard.png
usbzip.png
usbcdrom.png
usbstorage.png
usb-host.png

I will just link all those images that I don't have to usb.png so you can break the link and replace with appropriate icons in the future...
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

dougeeebear

  • Hero Member
  • *****
  • Posts: 537
    • View Profile
    • http://
Usbapplet
« Reply #27 on: November 09, 2006, 07:28:35 am »
Quote
I will just link all those images that I don't have to usb.png so you can break the link and replace with appropriate icons in the future...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=145858\"][{POST_SNAPBACK}][/a][/div]
So do you mean the applet will use the icons if they exist, otherwise it will use usb.png?

I'll look around for some icons that will fit in and look good.
(I cheat and save them from various sites and edit them).
The keyboard might be hard to get a good looking one.

Here's one for the usbmouse:
« Last Edit: November 09, 2006, 07:47:47 am by dougeeebear »
Zaurus SL-C1000 and SL-5500
NetWalker PC-T1 (tablet)

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Usbapplet
« Reply #28 on: November 09, 2006, 07:55:26 am »
Quote
Quote
I will just link all those images that I don't have to usb.png so you can break the link and replace with appropriate icons in the future...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=145858\"][{POST_SNAPBACK}][/a][/div]
So do you mean the applet will use the icons if they exist, otherwise it will use usb.png?

I'll look around for some icons that will fit in and look good.
(I cheat and save them from various sites and edit them).
The keyboard might be hard to get a good looking one.

Here's one for the usbmouse:
[div align=\"right\"][a href=\"index.php?act=findpost&pid=145883\"][{POST_SNAPBACK}][/a][/div]

I added the icons you posted. The applet will use the images of those names which are symbolic links to usb.png, so all you need to do to customise them is to delete them and replace with your own image.

removed attached package. see newer post for fixed package
« Last Edit: November 09, 2006, 07:52:45 pm by Meanie »
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

dougeeebear

  • Hero Member
  • *****
  • Posts: 537
    • View Profile
    • http://
Usbapplet
« Reply #29 on: November 09, 2006, 08:33:49 am »
This is nice.

One question:
(since I only have a usb drive and a mouse, I can't check other items)

On the mouse popup detected/unplugged notifications I get the mouse icon ok.

On the usbstorage popup mounted/unmounted notifications I get the usb.png icon, but the usbstorage.png icon displays ok in the menu.

Not sure what's going on there.
I'm using /mnt/usbstorage (I don't have automounter installed).
Maybe that's the problem.

Thanks,
Doug
« Last Edit: November 09, 2006, 08:58:22 am by dougeeebear »
Zaurus SL-C1000 and SL-5500
NetWalker PC-T1 (tablet)