Author Topic: Mb-applet-powerctrl  (Read 34279 times)

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Mb-applet-powerctrl
« Reply #45 on: July 06, 2007, 10:17:18 am »
latest source and test 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

ecc_hy

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Mb-applet-powerctrl
« Reply #46 on: July 06, 2007, 10:23:50 am »
Segfaults?
 If used old version, you sould delete file /home/root/Choice/powerctrl.cfg.

Otherwise, run mb-applet-powerctrl in x terminal, and try to upload debug information.
SL-C1000, Roku wifi, pdaxii13v2/Debian dual booting

zedkatuf2

  • Full Member
  • ***
  • Posts: 153
    • View Profile
    • http://www.projectgalileo.org.uk
Mb-applet-powerctrl
« Reply #47 on: July 07, 2007, 03:37:58 am »
Quote
Segfaults?
 If used old version, you sould delete file /home/root/Choice/powerctrl.cfg.

Otherwise, run mb-applet-powerctrl in x terminal, and try to upload debug information.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=164448\"][{POST_SNAPBACK}][/a][/div]

Thanks - deleting the old powerctrl.cfg worked.
Zaurus SLC3200 (Terrier) [SOLD]
Hardware extras: 2Gb Viking SD card 4Gb Transcode MMC card 2Gb Kingston 50x CF card Symbol Socket Spectrum & Ambicom 1100C  WLAN cards Shirtpocket Bluetooth CF  & Sitecom USB cards Running Pdaxii13 using Meanie's Atika ROM & full-hd apps.

zi99y

  • Sr. Member
  • ****
  • Posts: 282
    • View Profile
Mb-applet-powerctrl
« Reply #48 on: July 07, 2007, 05:23:52 am »
I'm still getting the segfault.

Code: [Select]
gez@zaurus:~$ sudo mb-applet-powerctrl
Password:
mbmenu: no _MB_THEME set on root window
Segmentation fault
gez@zaurus:~$

using latest ipk, have deleted powerctrl.cfg, using sudo.

ecc_hy

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Mb-applet-powerctrl
« Reply #49 on: July 07, 2007, 06:25:56 am »
It seems the problem caused by not-root user.
First, I suggest you login as root, and try again.
Second, I will test powerctrl as not-root user, and try to find solution.
SL-C1000, Roku wifi, pdaxii13v2/Debian dual booting

ecc_hy

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Mb-applet-powerctrl
« Reply #50 on: July 07, 2007, 06:38:07 am »
How add/remove applet in ICEWM:

HIDING CONTROL APPLETS (ICONS):
You can hide IceWM Control Panel applets very easily, if you would like certain icons NOT to show up in the control panel. In the IceWM Control Panel's main window, click 'File' on the menu, then click 'Configuration...'. Then, click the 'Hide' check-button next to the icon you don't wish to see. Finally, click the 'Save' button. You're done!.

Please read
http://www.phrozensmoke.com/projects/icewmcp/applets.php
SL-C1000, Roku wifi, pdaxii13v2/Debian dual booting

zeigerpuppy

  • Full Member
  • ***
  • Posts: 109
    • View Profile
Mb-applet-powerctrl
« Reply #51 on: July 08, 2007, 03:44:06 am »
I am also getting a segfault with error (sudo makes no difference and I am running a root session)

Can't open mixer device /dev/mixer
mbmenu: no _MB_THEME set on root window

I have noticed that the icewm theme browser doesn't seem to load the themes, even when I change the settings to the correct directory /usr/share/icewm/themes

might be a related problem?
I am running pdaXii13
« Last Edit: July 08, 2007, 03:44:47 am by zeigerpuppy »
Zaurus C3100, CE-RH2, Socket lowpower CF Wifi, Socket CF Bluetooth
pdaXrom r198 - testing!, IceWM, Bluetooth modem: Sony Ericsson v600i with 3G.
see some howtos and tips at http://greenant.net/portal/greenant/wiki/Zaurus3100

ecc_hy

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Mb-applet-powerctrl
« Reply #52 on: July 08, 2007, 03:48:43 am »
powerctrl is conflicted to icewm's volume applet. You may close the volume ctrl in powerctrl.cfg now.
SL-C1000, Roku wifi, pdaxii13v2/Debian dual booting

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Mb-applet-powerctrl
« Reply #53 on: July 08, 2007, 08:25:41 pm »
the volume control can be controlled by editing powerctrl.cfg and changing bVolumeCtrl=False


when the power is very low, the applet flashes the warning dialog, but it should just pop it up for a while so it can be read...

some nice enhancements would be:
- integrate the card applet functionality as well
- integrate the usbfunction.py as well
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

ecc_hy

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Mb-applet-powerctrl
« Reply #54 on: July 08, 2007, 09:35:12 pm »
zeigerpuppy:
mbmenu: no _MB_THEME set on root window

I am not sure why we get the error message, but it is just warn. Alomost other applets also display same message.

Meanie:
When the enchancements are finished, the powerctrl should be rename to control center. Before we did it, can you tell me why? Or what do you plan?
SL-C1000, Roku wifi, pdaxii13v2/Debian dual booting

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Mb-applet-powerctrl
« Reply #55 on: July 08, 2007, 10:15:06 pm »
Quote
zeigerpuppy:
mbmenu: no _MB_THEME set on root window

I am not sure why we get the error message, but it is just warn. Alomost other applets also display same message.

Meanie:
When the enchancements are finished, the powerctrl should be rename to control center. Before we did it, can you tell me why? Or what do you plan?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=164549\"][{POST_SNAPBACK}][/a][/div]

yeah, it looks like the powerctrl applet is becoming more than just controlling the power, ie it does volume as well and potentially swap. since it already does most the functionality of the majority of the applets, ie volume, power, blanker, battery, so it might as well do everything, since the current memory usage is just 1MB.

there really are only two applets left that are not yet integrated into powerctrl, card and wireless, so might as well create one all powerful applet which can do everything

and while we are at it, we might as well integrate some of the functionality of the python scripts into the applet which is what the original applet was doing, ie cpuoverclock and lightnpower

i think it is a good idea to rename it control applet or control center since it pretty much does everything that is important.
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

zeigerpuppy

  • Full Member
  • ***
  • Posts: 109
    • View Profile
Mb-applet-powerctrl
« Reply #56 on: July 08, 2007, 11:10:37 pm »
Still getting the segfault after trying while not running volume control.
is there a way I can get more debugging info?
Zaurus C3100, CE-RH2, Socket lowpower CF Wifi, Socket CF Bluetooth
pdaXrom r198 - testing!, IceWM, Bluetooth modem: Sony Ericsson v600i with 3G.
see some howtos and tips at http://greenant.net/portal/greenant/wiki/Zaurus3100

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Mb-applet-powerctrl
« Reply #57 on: July 08, 2007, 11:35:46 pm »
Quote
Still getting the segfault after trying while not running volume control.
is there a way I can get more debugging info?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=164552\"][{POST_SNAPBACK}][/a][/div]

compile it with debugging enabled
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/
Mb-applet-powerctrl
« Reply #58 on: July 09, 2007, 11:02:20 pm »
another update from ecc_hy

Changlog:
Fixed: Low battery warning update for 400ms
Fixed: two seperate line when disable volume ctrl
Fixed: volume control keep mixer control file open
Add: new pixmaps
Fixed: change the value of powerctrl.cfg according to pdaxrom's
 cpuoverclock.py, cacko value cause some machine crash.
« Last Edit: July 09, 2007, 11:03:19 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

climber

  • Full Member
  • ***
  • Posts: 189
    • View Profile
Mb-applet-powerctrl
« Reply #59 on: July 10, 2007, 06:29:37 am »
Meanie,

how can I add this applet permanent inside icewm?

I can't find anything for fixing this inside the IceWM Config menue. When I click anything inside the Control Center I get the error message:

"Can't open /home/root/.icewm key".

Thanks
climber

SL-C3100 pdaXii13 v5.4.7