Author Topic: Automatic Load Mb-applet-powerctrl In Pdaxii13  (Read 3925 times)

climber

  • Full Member
  • ***
  • Posts: 189
    • View Profile
Automatic Load Mb-applet-powerctrl In Pdaxii13
« on: October 23, 2007, 07:03:13 am »
Hi,

I want to add the mb-applet-powerctrl applet v1.0.2 under pdaXii13 v5.5 alpha4 permanent and prevent mb-applet-volume from loading. I use icewm as window maker.

How can I do this?  


Thanks
climber

SL-C3100 & pdaXii13 v5.5 alpha4
« Last Edit: October 23, 2007, 07:07:51 am by climber »

ecc_hy

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Automatic Load Mb-applet-powerctrl In Pdaxii13
« Reply #1 on: October 23, 2007, 10:13:36 am »
How to use mb-applet-powerctrl in icewm?
1. Autorun when icewm startup
check & add line to ~/.xinitrc:
CODE
icewm 2>deve/null >/dev/null & wmpid=$!
icewmtray & >/dev/null
mb-applet-powerctrl & >dev/null


2. Use Menu to load powerctrl:
run makeicemenu in terminal after mb-applet-powerctrl installed.
the new menu item called "Power control" should be added into program->panel.
If you do not have panel yet, check
QUOTE
~/.icewm/programs

and delete char "#" before the line contain "folder panel"
SL-C1000, Roku wifi, pdaxii13v2/Debian dual booting

ecc_hy

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Automatic Load Mb-applet-powerctrl In Pdaxii13
« Reply #2 on: October 23, 2007, 10:15:47 am »
icewm reload every applet when screen rotate.
There is a another file working for icewm rotate, but I forgot the name.

That is important.
SL-C1000, Roku wifi, pdaxii13v2/Debian dual booting

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Automatic Load Mb-applet-powerctrl In Pdaxii13
« Reply #3 on: October 23, 2007, 07:42:15 pm »
~/.icewm/icedock contains a list of applets (one on each line) that gets automatically loaded by icewm and reloaded on rotation
no hacking of .initrc is required.
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

climber

  • Full Member
  • ***
  • Posts: 189
    • View Profile
Automatic Load Mb-applet-powerctrl In Pdaxii13
« Reply #4 on: October 24, 2007, 04:06:50 am »
Meanie,

yes that's correct but I only found icedock in "/etc/icewm/" folder. I replaced the volume applet with the powerctrl applet. This works fine for me.

Before I found this out I tried the steps from ecc_hy and typed run makeicemenu in terminal. Ather that I couldn't find a new menu item called "Power control" which should be added into program->panel. I thought it should be here ~root/.icewm/ but I have only the following files inside ~root/.icewm/:
- Games
- Games.bak
- Graphics
- Graphics.bak
- Network
- Network.bak
- Office
- Office.bak
- Utiltities
- Utilities.bak

That's all. Do you have more entries and if it's necessary how can I add the missing ones.

Thanks
climber

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Automatic Load Mb-applet-powerctrl In Pdaxii13
« Reply #5 on: November 15, 2007, 09:53:04 pm »
Quote from: climber
Meanie,

yes that's correct but I only found icedock in "/etc/icewm/" folder. I replaced the volume applet with the powerctrl applet. This works fine for me.

Before I found this out I tried the steps from ecc_hy and typed run makeicemenu in terminal. Ather that I couldn't find a new menu item called "Power control" which should be added into program->panel. I thought it should be here ~root/.icewm/ but I have only the following files inside ~root/.icewm/:
- Games
- Games.bak
- Graphics
- Graphics.bak
- Network
- Network.bak
- Office
- Office.bak
- Utiltities
- Utilities.bak

That's all. Do you have more entries and if it's necessary how can I add the missing ones.

Thanks
climber

ok, let me try to summarise how the config works.
/etc/icewm is where the default config is stored.
~/.icewm is where your customised config is stored.
if you mess up your config, you can just remove everything from ~/.icewm and the default configs will be used
makeicemenu (re)generates the menu files under ~/.icewm
you can remove the .bak ones if you wish, they are just backups of existing menu files prior to regeneration in case you had customised them and the regeneration removed your customisations so you can find your customisations easily and add them back.
The Settings menu file is not regenerated and you can customise it by copying it from /etc/icewm and manually adding entries for PowerCtrl
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