maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Share your Widgets! (https://talk.maemo.org/showthread.php?t=59798)

PipoXtreme 2010-08-10 17:04

Re: Share your Widgets!
 
Quote:

Originally Posted by techie (Post 781645)
Update to 1.0.2 from devel that should fix it now

Which update ?! :confused:

gft2k1 2010-08-10 17:17

Re: Share your Widgets!
 
Quote:

Originally Posted by sacal (Post 781810)
Multiboot 0.2.5 and autoloading bq27x00_battery.

For those like me that are running OCCP widget and titan's power37 or 39 with multiboot 0.2.5, there is the need of loading bq27x00_battery module after every reboot.

As Jay-C, the author of multiboot stated here there are problems autoloading that module.

So for those interested i have added some lines of code to the /home/user/.OCCP file to autoload the bq2700_battery module so that the temperature is displayed in the OCCP widget:

Code:

QBW_REMEMBER_ME=${7}
if [ "$(cat /sys/class/power_supply/bq27200-0/temp)" == "" ] ; then
  sudo modprobe bq27x00_battery > /dev/null ;
fi

if [ "$QBW_REMEMBER_ME" -eq 3 ] ; then


Strange, i running OCCP widget and titan's power37 with multiboot 0.2.5 but i don't need to load bq27x00_battery module after every reboot.......:confused:

gft2k1 2010-08-10 18:09

Re: Share your Widgets!
 
Quote:

Originally Posted by PipoXtreme (Post 781812)
Which update ?! :confused:

Install Queen Beecon Widget 1.0.2 from Maemo Extras Devel and this should resolve your problem...........:)

sacal 2010-08-10 19:51

Re: Share your Widgets!
 
Quote:

Originally Posted by gft2k1 (Post 781830)
Strange, i running OCCP widget and titan's power37 with multiboot 0.2.5 but i don't need to load bq27x00_battery module after every reboot.......:confused:

Glad to know it is working with you. I really would like to know why. :confused:
I have tried everything i could and i also asked for help to the multiboot's author.
Adding those lines of code to the OCCP widget is a workaround so that i don't have to manually load the module every time the system boots.

Erazor 2010-08-10 21:07

Re: Share your Widgets!
 
hi its me again

i have the same issue like last night.
The CPU only goes down to 500MHz.
Now i edit the avoid frequencies in
/sys/devices/system/cpu/cpu0/cpufreq/ondemand/avoid_frequencies
and only write 125000 in there.
When this is done, all works fine.

BUT after a reboot the 250000 is in the file again......

Does anybody know this issue?

gft2k1 2010-08-11 08:46

Re: Share your Widgets!
 
Quote:

Originally Posted by Erazor (Post 782102)
hi its me again

i have the same issue like last night.
The CPU only goes down to 500MHz.
Now i edit the avoid frequencies in
/sys/devices/system/cpu/cpu0/cpufreq/ondemand/avoid_frequencies
and only write 125000 in there.
When this is done, all works fine.

BUT after a reboot the 250000 is in the file again......

Does anybody know this issue?

Do you use the "ideal" setting ?

Because the minimum frequency of ideal is 500 MHz.
If you edit the avoid frequencies the cpu goes down to 250 Mhz but after a reboot the system return to ideal default (500-850 MHz).

Try another setting ("lv", "ulv", "xlv" or "starving") who have the minimum frequency at 250 MHz(default).

gft2k1 2010-08-11 09:02

Re: Share your Widgets!
 
Quote:

Originally Posted by sacal (Post 781990)
Glad to know it is working with you. I really would like to know why. :confused:
I have tried everything i could and i also asked for help to the multiboot's author.
Adding those lines of code to the OCCP widget is a workaround so that i don't have to manually load the module every time the system boots.

If this can help you my multiboot menu is the follow:

1 - Maemo 2.6.28-omap1

2 - Maemo 2.6.28.10power37

3 - NITdroid on MMCp2 - 2.6.28.NIT.05

Erazor 2010-08-11 09:29

Re: Share your Widgets!
 
Quote:

Originally Posted by gft2k1 (Post 782679)
Do you use the "ideal" setting ?

Because the minimum frequency of ideal is 500 MHz.
If you edit the avoid frequencies the cpu goes down to 250 Mhz but after a reboot the system return to ideal default (500-850 MHz).

Try another setting ("lv", "ulv", "xlv" or "starving") who have the minimum frequency at 250 MHz(default).

yes its the ideal setting

but now the strange thing
over the night it goes down to 250MHz
over the day it goes down to 500MHz

its very very strange

btw i use the power-kernel 40 from extra-devels

and

lv=low voltage
ulv=ultra low voltage
xlv= xtreme low voltage
starving=please give me MORE power :D

correct?

sacal 2010-08-11 15:30

Re: Share your Widgets!
 
Quote:

Originally Posted by gft2k1 (Post 782696)
If this can help you my multiboot menu is the follow:

1 - Maemo 2.6.28-omap1

2 - Maemo 2.6.28.10power37

3 - NITdroid on MMCp2 - 2.6.28.NIT.05

Thanks gft2k1

The issue isn't in multiboot menu. Mine is almost the same except that i now use power39. Anyway with power37 the problem was the same.
I am now waiting for a stable multiboot 0.2.9 to try it and see if the problem still remains.

munkiii 2010-08-12 09:48

Re: Share your Widgets!
 
Quote:

Originally Posted by techie (Post 780668)
The edited image is better, I couldn't make sense of the original one:).Also I think you should ideally be getting only the right half of ideal button responsive.
You cannot edit the area for button press.QBW divides it into an equal grid of 3x3, maybe in a future version it could be possible to define custom areas (send a request to QBW author).For now thats how it will work or you can reduce the width.

Why 3x3 when there is only 2 buttons on the bottom row?

Strangely, the left 3rd worked for STOCK, but the right 2/3rds worked for IDEAL.

P.S. Seeing as my attempts are failing, is there any chance you could edit this to be 400x110 and try to make it work as the original does?

gft2k1 2010-08-13 08:46

Re: Share your Widgets!
 
Quote:

Originally Posted by sacal (Post 783122)
Thanks gft2k1

The issue isn't in multiboot menu. Mine is almost the same except that i now use power39. Anyway with power37 the problem was the same.
I am now waiting for a stable multiboot 0.2.9 to try it and see if the problem still remains.

I currently use titan's power40 and multiboot 0.2.9 and everything works fine (bq27x00_battery module) and overclock with a workaround.

The following files are required:

nitdroid-uninstaller
multiboot_0.2.9_armel.deb
kernel-power-bootimg_2.6.28-maemo40_armel.deb
kernel-power-modules_2.6.28-maemo40_armel.deb
multiboot-kernel-maemo_0.2_armel.deb
multiboot-kernel-power_0.2_armel.deb
nitdroid-kernel-2.6.28-06_final1_armel.deb
nitdroid-0.0.6-patch-1.tar.gz
nitdroid-0.0.6-patch-2.tar.gz

Copy all files to /home/user/MyDocs

The steps:

You must deinstall titan's power39 with the icon "deinstall-power-kernel" (make sure you are connected to internet).

Open xterminal and as root:

mount -o noatime,rw /dev/mmcblk1p2 /and
cd /home/user/MyDocs
sh nitdroid-uninstaller
dpkg -i multiboot_0.2.9_armel.deb
dpkg -i kernel-power-bootimg_2.6.28-maemo40_armel.deb
dpkg -i kernel-power-modules_2.6.28-maemo40_armel.deb
dpkg -i multiboot-kernel-maemo_0.2_armel.deb
dpkg -i multiboot-kernel-power_0.2_armel.deb
dpkg -i nitdroid-kernel-2.6.28-06_final1_armel.deb
cd /and
tar xzvf /home/user/MyDocs/nitdroid-0.0.6-patch-1.tar.gz
tar xzvf /home/user/MyDocs/nitdroid-0.0.6-patch-2.tar.gz

If you want to enable overclock in titan's power40:

download kernel-power-settings_0.11_armel.deb and copy the file to /home/user/MyDocs/tmp (please note if the tmp dir doesnt exist you will need to create it).

Open xterminal and as root:

cd /home/user/MyDocs/tmp
dpkg-deb -x kernel-power-settings_0.11_armel.deb /home/user/MyDocs/tmp

Now you should see in that directory two new dirs. One will be called usr and one called etc

You now need to copy those two folders into the system in "/" (not in "/root" !)

I use OpenSSH Server to do this (is simple :))

If program ask you to overwrite file click yes to all.

Once you have done this the last step is to change the perms on the two binaries.

Open xterminal and as root:

chmod +x /usr/sbin/kernel-*

That's all !

Now keep in mind this means you wont get update notifications about kernel-power etc as you are essentially just copying files and not installing the package itself.

I follow this steps and everything work fine (for me).

If you wanna try fell free.............:)

gft2k1 2010-08-13 08:56

Re: Share your Widgets!
 
Quote:

Originally Posted by Erazor (Post 782725)
yes its the ideal setting

but now the strange thing
over the night it goes down to 250MHz
over the day it goes down to 500MHz

its very very strange

btw i use the power-kernel 40 from extra-devels

and

lv=low voltage
ulv=ultra low voltage
xlv= xtreme low voltage
starving=please give me MORE power :D

correct?

Yes, it's correct.........:)

Your issue is very, very strange..............:confused:

I currently use OCCP by techie with this settings:

TEMPERATURE: starving
STOCK: default
IDEAL: ideal

By the way, you can try setting "lv" because is very similar to "ideal".

gft2k1 2010-08-13 08:57

Re: Share your Widgets!
 
I also use titan's power 40

gft2k1 2010-08-13 09:31

Re: Share your Widgets!
 
sorry for the long post to sacal, i know this is not the right place to speak of multiboot and nitdroid but i really want to solve his problem...............:o

Erazor 2010-08-16 05:27

Re: Share your Widgets!
 
Quote:

Originally Posted by gft2k1 (Post 785061)
Yes, it's correct.........:)

Your issue is very, very strange..............:confused:

I currently use OCCP by techie with this settings:

TEMPERATURE: starving
STOCK: default
IDEAL: ideal

By the way, you can try setting "lv" because is very similar to "ideal".

yeah ist very strange.
now i take the ideal sttings and changed ideal settings to 500-750
because i see the voltage table from the titan kernel

ideal has lower voltages than lv or ulv
and all work fine for me
750mhz are really enough for the phone ;)

BUT now the other problem that i have is when i set the temperature profile it dont clock down by the temperature.
i have rootsh1.8 and changed the rootsh to sudo in the script.
i also changed chmod +x on the overclock and underclock file.
but doesnt work.

with rootsh 1.5 and rootsh it works.
but i want it to run with 1.8 too :D :P

any ideas?


BTW thanks for the reply :)

techie 2010-08-16 07:33

Re: Share your Widgets!
 
Quote:

Originally Posted by Erazor (Post 787674)
yeah ist very strange.
now i take the ideal sttings and changed ideal settings to 500-750
because i see the voltage table from the titan kernel

ideal has lower voltages than lv or ulv
and all work fine for me
750mhz are really enough for the phone ;)

BUT now the other problem that i have is when i set the temperature profile it dont clock down by the temperature.
i have rootsh1.8 and changed the rootsh to sudo in the script.
i also changed chmod +x on the overclock and underclock file.
but doesnt work.

with rootsh 1.5 and rootsh it works.
but i want it to run with 1.8 too :D :P

any ideas?


BTW thanks for the reply :)

Your device has the same issue that many others have but mysteriously not everyone:rolleyes: .sudo in your case will not work unless you hack certain files with the risk of bricking your device,so I cannot help you with that.You will have to use rootsh 1.5 and "rootsh" instead of "sudo".

Erazor 2010-08-16 08:40

Re: Share your Widgets!
 
Quote:

Originally Posted by techie (Post 787749)
Your device has the same issue that many others have but mysteriously not everyone:rolleyes: .sudo in your case will not work unless you hack certain files with the risk of bricking your device,so I cannot help you with that.You will have to use rootsh 1.5 and "rootsh" instead of "sudo".

hey... thats my life
With a bug bug here and a bug bug there,
Here a bug, there a bug, ev'rywhere a bug bug
:D


so i gow back to 1.5 and hope all works fine ;)
dont want to brick my phone.
its very stable and awesome fast. :)

thx




edit //

today the new Queen Beecon comes out and a new version of rootsh1.8 (or is this the old one?)
but now it works for me with the sudo command.

damn thats great :)


welldone 2 all

gft2k1 2010-09-04 18:39

Re: Share your Widgets!
 
Hi all..........:)

I found a simple solution to use OC Control Panel overclock/underclock with rootsh 1.8.

Use OpenSSH Server and open the file /etc/sudoers

Add the following two lines at the end of file:

user ALL = NOPASSWD: /usr/local/bin/overclock
user ALL = NOPASSWD: /usr/local/bin/underclock
(leave a blank line here)

Save the file.

Remember to change rootsh with sudo in /home/user/.OCCP file.

Et voilą ! Now you can use temperature option with overclock according to battery temperature.

Erazor 2010-09-04 18:47

Re: Share your Widgets!
 
yep this works ;)

after the reflash for 2days i set

user ALL = NOPASSWD: ALL

so i can use sudo <command> everywhere :)

yaaaaaaaa its a security thing, but who cares :D

Linux ftw ^^

gft2k1 2010-09-04 19:00

Re: Share your Widgets!
 
Quote:

Originally Posted by Erazor (Post 807314)
yep this works ;)

after the reflash for 2days i set

user ALL = NOPASSWD: ALL

so i can use sudo <command> everywhere :)

yaaaaaaaa its a security thing, but who cares :D

Linux ftw ^^

Yes, you can use sudo everywere but if you install an application who contains a malware ? :eek:

Erazor 2010-09-04 19:03

Re: Share your Widgets!
 
i think no one in the community will release a malware in a software.

hope so :D :D :D

when i get one, we hack him down :D :D :D

gft2k1 2010-09-04 19:44

Re: Share your Widgets!
 
Quote:

Originally Posted by Erazor (Post 807344)
i think no one in the community will release a malware in a software.

hope so :D :D :D

when i get one, we hack him down :D :D :D

I agree !!! :D:D:D ;)

Erazor 2010-09-04 20:12

Re: Share your Widgets!
 
Quote:

Originally Posted by gft2k1 (Post 807375)
I agree !!! :D:D:D ;)

:D thats good
then we are 2 for fighting against the malware kidz

and when we are surrounded we ask Eugene Kaspersky for help :D


sry for the offtopic but i lol'ed so much :D that i have to write this :D :D

btw it could be nice when we have Kaspersky on the Device :D

yeah i'm dreaming sry for that :D :D :D

Trestry 2010-09-07 19:38

Re: Share your Widgets!
 
Is there a way to let the N900 auto-connect to a internet connection? I use auto-disconnect to save power, but I hate it to manually connect to internet. This widget can overclock the N900 so it might be possible to auto-connect to the internet.

Or is there a better way to do this?

techie 2010-09-08 10:32

Re: Share your Widgets!
 
Quote:

Originally Posted by Trestry (Post 809927)
Is there a way to let the N900 auto-connect to a internet connection? I use auto-disconnect to save power, but I hate it to manually connect to internet.

Contradiction:confused: Sorry I do not understand clearly what you are trying to achieve.
You can use this command to connect to any saved connection, or you may also provide the name of any specific connection to use
Code:

dbus-send --system --type=method_call --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:"[ANY]" uint32:0
You can run this from a widget set to auto update for eg. every hour.You may also use additional checks to see if you are already connected or not.

Harick 2010-09-09 21:01

Re: Share your Widgets!
 
i need assistance, i tried to import the widget, but when i click "buffer to beecon" it gives a "bad checksum" error, i tried to create it manually, but it doesnt work either

all the files were moved to their correct location and i have QBW 1.0.0.4 and rotsh 1.8 (already edited sudoer file including overclock and underclock) and images files were moved to /home/user/.queen_beecon_dir/ instead of MyDocs/.images/.queen_beecon_dir/


pls help me

techie 2010-09-10 08:22

Re: Share your Widgets!
 
Quote:

Originally Posted by Harick (Post 812023)
i need assistance, i tried to import the widget, but when i click "buffer to beecon" it gives a "bad checksum" error, i tried to create it manually, but it doesnt work either

all the files were moved to their correct location and i have QBW 1.0.0.4 and rotsh 1.8 (already edited sudoer file including overclock and underclock) and images files were moved to /home/user/.queen_beecon_dir/ instead of MyDocs/.images/.queen_beecon_dir/


pls help me

How are you putting the code in the buffer?By importing the file or by pasting?If you have done it one way then try the other.A single change in the buffer data can throw a checksum error so be careful.

Erazor 2010-09-10 09:00

Re: Share your Widgets!
 
yep.

the best way is, when you put the code directly in your n900.
join the site with the n900 and copy/paste the code :)

works like a charm for me :)


Greetz
Erazor

Harick 2010-09-10 13:25

Re: Share your Widgets!
 
seems that was the problem.

i was trying to import the file, that gave me the checksum error. copy/pasting the code did the trick, it works now, thanx :)

Erazor 2010-09-10 13:34

Re: Share your Widgets!
 
Quote:

Originally Posted by Harick (Post 812625)
seems that was the problem.

i was trying to import the file, that gave me the checksum error. copy/pasting the code did the trick, it works now, thanx :)

Well Done :D

enjoy the nice app

Greetz
Erazor

Trestry 2010-09-10 17:32

Re: Share your Widgets!
 
Quote:

Originally Posted by techie (Post 810474)
Contradiction:confused: Sorry I do not understand clearly what you are trying to achieve.

Okay, I'll try to explain more clearly.

When I lock my N900, my internet disconnected automatically after some time. It would be very nice if your widget causes my Internet connection is restored when I unlock my N900. The same is happening now with overclocking with this widget

Sorry for my bad English:)

techie 2010-09-11 16:36

Re: Share your Widgets!
 
1 Attachment(s)
Quote:

Originally Posted by Trestry (Post 812866)
Okay, I'll try to explain more clearly.

When I lock my N900, my internet disconnected automatically after some time. It would be very nice if your widget causes my Internet connection is restored when I unlock my N900. The same is happening now with overclocking with this widget

Sorry for my bad English:)

Okay I created a new widget for you.The widget itself is hidden and will run in background.Whenever you unlock your device it will attempt to connect to any saved connection (or you can specify manually which one to connect).
I intentionally introduced small delay to avoid possible conflict with my OCCP widget, it shouldn't be noticeable though.I named it AutoConnect as a companion to AutoDisconnect :D
Hopefully this serves your purpose.

Trestry 2010-09-12 11:34

Re: Share your Widgets!
 
Quote:

Originally Posted by techie (Post 813506)
Okay I created a new widget for you.The widget itself is hidden and will run in background.Whenever you unlock your device it will attempt to connect to any saved connection (or you can specify manually which one to connect).
I intentionally introduced small delay to avoid possible conflict with my OCCP widget, it shouldn't be noticeable though.I named it AutoConnect as a companion to AutoDisconnect :D
Hopefully this serves your purpose.

It works perfect! I have removed the small delay and I haven't got any issues so far with the OCCP widget. Autodisconnect ensures you aren't connected to internet when there is no need for and your widget makes sure I have internet when I need it. A perfect solution :D

Thank you very much:)

techie 2010-09-13 05:17

Re: Share your Widgets!
 
Quote:

Originally Posted by Trestry (Post 814032)
It works perfect! I have removed the small delay and I haven't got any issues so far with the OCCP widget. Autodisconnect ensures you aren't connected to internet when there is no need for and your widget makes sure I have internet when I need it. A perfect solution :D

Thank you very much:)

Glad to know you found it useful.However I must make sure you are aware of what possibly happens in absence of a delay.
Two different processes will attempt to read/write to the same file located on the disk at approx the same instant.How the OS handles these tasks (check priority etc) is beyond me.Simultaneous reads shouldn't be a problem,but simultaneous writes "may" cause file corruption.Again,I must confess that without knowledge of how underlying operations are performed, nothing can be said definitively.
Still , as the creator of the widget it was my duty to take necessary precautions,how you use it is upto you:)
PS: A delay of even 1 is significant in terms of cpu instruction speed.I was just being conservative:D

jbw89 2010-09-13 07:01

Re: Share your Widgets!
 
how do i get to personalis the profile's? so
"stock" is 250 - 700 mhz, an
"ideal" 500 - 950

thanx

Erazor 2010-09-13 10:37

Re: Share your Widgets!
 
Quote:

Originally Posted by jbw89 (Post 814636)
how do i get to personalis the profile's? so
"stock" is 250 - 700 mhz, an
"ideal" 500 - 950

thanx

What you need:
rootsh
leafpad
xterm


1.open xterm
2.become root
3."cd /usr/share/kernel-power-settings"
4."leafpad default"
5.edit your falues
6."Strg + S" to save
7.exit leafpad
8."leafpad ideal"
9.edit your falues
10."Strg + S" to save
11.exit leafpad

all without the "


Greetz
Erazor

jbw89 2010-09-13 15:58

Re: Share your Widgets!
 
Quote:

Originally Posted by Erazor (Post 814783)
What you need:
rootsh
leafpad
xterm


1.open xterm
2.become root
3."cd /usr/share/kernel-power-settings"
4."leafpad default"
5.edit your falues
6."Strg + S" to save
7.exit leafpad
8."leafpad ideal"
9.edit your falues
10."Strg + S" to save
11.exit leafpad

all without the "


Greetz
Erazor

O my god, i got it in one time! Thanx man! Good help are you!

Erazor 2010-09-13 16:10

Re: Share your Widgets!
 
Quote:

Originally Posted by jbw89 (Post 814983)
O my god, i got it in one time! Thanx man! Good help are you!

Glad to hear that :)

enjoy your n900

Greetz
Erazor

erniadeldesktop 2010-09-13 16:20

Re: Share your Widgets!
 
Quote:

Originally Posted by jbw89 (Post 814636)
how do i get to personalis the profile's? so
"stock" is 250 - 700 mhz, an
"ideal" 500 - 950


there's also an easiest and more correct way:
Code:

kernel-config load ideal
kernel-config limits 500 950
kernel-config save ideal95

now you with a simple
Code:

kernel-config load ideal95
will'have access to your personal settings. then in the qbwidget in advanced panel you can just change ideal to ideal95.
that's it

if you want to override at all costs the previous configuration just
Code:

kernel-config load ideal
kernel-config limits 500 950

and put
Code:

kernel-config save ideal
and same idea for stock. (is called default)
Code:

kernel-config load default
kernel-config limits 500 700
kernel-config save default

et voila'. ps: think carefully when rewriting default.

Erazor 2010-09-13 16:35

Re: Share your Widgets!
 
Quote:

Originally Posted by erniadeldesktop (Post 814999)
there's also an easiest and more correct way:
Code:

kernel-config load ideal
kernel-config limits 500 950
kernel-config save ideal95

now you with a simple
Code:

kernel-config load ideal95
will'have access to your personal settings. then in the qbwidget in advanced panel you can just change ideal to ideal95.
that's it

if you want to override at all costs the previous configuration just
Code:

kernel-config load ideal
kernel-config limits 500 950

and put
Code:

kernel-config save ideal
and same idea for stock. (is called default)
Code:

kernel-config load default
kernel-config limits 500 700
kernel-config save default

et voila'. ps: think carefully when rewriting default.

jep that works too

But i think he want to overwrite them for ever.
anyway ^^
for me
i changed the ideal profile for my settings and make this as default.
works like a charm.

But beware.
every n900 is different.

and when you set your own default and the n900 crashes, the power kernel set the clocks automaticly to 125 -600 after the crash ;)

PowerKernel RockZ :D


All times are GMT. The time now is 20:44.

vBulletin® Version 3.8.8