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)

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 10:23.

vBulletin® Version 3.8.8