maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Flashing Keyboard lights as patterns (https://talk.maemo.org/showthread.php?t=52239)

James_Littler 2010-08-13 13:07

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by mangal_sk8erboy (Post 785260)
when you say root, I really dont understand.
when you say make /opt/scripts/KR executable, i REALLY dont understand.

the last one i do understand..
but kinda defeats the point doesnt it?
it would be great if you could explain like you would to a 13 year old child.
sorry :P


Code:

root
unzip /home/user/MyDocs/knight-rider.zip /root/
cd /root/opt/scripts/
chmod +x KR

I think

Pressure 2010-08-13 13:11

Re: Flashing Keyboard lights as patterns
 
...wooooooooow

kaos_king 2010-08-13 13:12

Re: Flashing Keyboard lights as patterns
 
I know pretty much rock all about linux programming, but could it be done using this?

Quote:

Originally Posted by Matan (Post 568111)
Easily done with dbus-scripts. Create a file in directory /etc/dbus-scripts.d/ conaining
Code:

/usr/bin/slide * * org.freedesktop.Hal.Device Condition ButtonPressed cover
And the file /usr/bin/slide will be executed whenever the keyboard is opened or closed.

If we just have it run the kr script instead of the 'slide' file would that work? Would we still have permissions issues needing to be root?

mangal_sk8erboy 2010-08-13 13:20

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by James_Littler (Post 785289)
Code:

root
unzip /home/user/MyDocs/knight-rider.zip /root/
cd /root/opt/scripts/
chmod +x KR

I think

root


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900:~# unzip /home/user/MyDocs/knight-rider.zip /root/Archive: /home/user/MyDocs/knight-rider.zip
caution: filename not matched: /root/
Nokia-N900:~# cd /root/opt/scripts/
-sh: cd: can't cd to /root/opt/scripts/
Nokia-N900:~# chmod +x KR
chmod: KR: No such file or directory
Nokia-N900:~#

help? :$

James_Littler 2010-08-13 13:36

Re: Flashing Keyboard lights as patterns
 
Ok, try:
Code:

root
cd /home/user/MyDocs/
unzip xf knight-rider.zip  -C /root/
cd /root/opt/scripts/
chmod +x KR

So what we're doing is:

gain root access
change directory to /home/user/MyDocs/
unzip, which is the process,
x extracts, f is the file (could be a drive or whatever)
knight-rider.zip is the file to run the command on
-C changes directory before extracting
/root/ tells unzip where to extract to

change directory to /root/opt/scripts/
make KR excecutable

mangal_sk8erboy 2010-08-13 13:48

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by James_Littler (Post 785319)
Ok, try:
Code:

root
cd /home/user/MyDocs/
unzip xf knight-rider.zip  -C /root/
cd /root/opt/scripts/
chmod +x KR

So what we're doing is:

gain root access
change directory to /home/user/MyDocs/
unzip, which is the process,
x extracts, f is the file (could be a drive or whatever)
knight-rider.zip is the file to run the command on
-C changes directory before extracting
/root/ tells unzip where to extract to

change directory to /root/opt/scripts/
make KR excecutable

again error :s

i havent made a opt/scripts file in root btw. i dont know how. can you give me a command to create file 1st.then copy paste the extracted file(extracted in mydocs already)..and then execute?and how to make an APP button too.

this is my error

root


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900:~# cd /home/user/MyDocs/
Nokia-N900:/home/user/MyDocs# unzip xf knight-rider.zip -C /root/
unzip: cannot find or open xf, xf.zip or xf.ZIP.
Nokia-N900:/home/user/MyDocs# cd /root/opt/scripts/
-sh: cd: can't cd to /root/opt/scripts/
Nokia-N900:/home/user/MyDocs# chmod +x KR
chmod: KR: No such file or directory
Nokia-N900:/home/user/MyDocs#

James_Littler 2010-08-13 14:02

Re: Flashing Keyboard lights as patterns
 
Ok that might make things easier

so you have opt and usr directories from the zip extracted to your MyDocs directory?

If so:

Code:

root
Code:

cp -r /home/user/MyDocs/opt /root
cp -r /home/user/MyDocs/usr /root
cd /root/opt/scripts/
chmod +x KR


mangal_sk8erboy 2010-08-13 14:14

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by James_Littler (Post 785347)
Ok that might make things easier

so you have opt and usr directories from the zip extracted to your MyDocs directory?

If so:

Code:

root
Code:

cp -r /home/user/MyDocs/opt /root/opt
cp -r /home/user/MyDocs/usr /root/usr
cd /root/opt/scripts/
chmod +x KR


no!i have the KR file extracted and ready, that way you can skip the whole UNZIP command.
all i have is the KR file in MyDocs.
i do not have ANYTHING else.i dont know if i have the opt file in the root directory either.
so what i have to do (from what ive read is) i have to paste the KR file inside /root/opt/scripts (which is a default folder?if not please give me a command for this too :$)
and then be able to execute the command too!
thanks alot for your time man.

James_Littler 2010-08-13 14:23

Re: Flashing Keyboard lights as patterns
 
Inside the zip file there are 2 directories/folders, 'opt' and 'usr'.

These 2 directories need to be moved to the folder /root.

The KR file will be in the scripts folder within opt

All that command I gave you did was copied the folder '/home/user/MyDocs/opt' and '/home/user/MyDocs/usr' (which you said you had extracted to MyDocs ) to /root

The next command changed directory to /root/opt/scripts

The next command makes KR executable

Nowhere in there was an unzip/extract command

mangal_sk8erboy 2010-08-13 20:16

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by James_Littler (Post 785366)
Inside the zip file there are 2 directories/folders, 'opt' and 'usr'.

These 2 directories need to be moved to the folder /root.

The KR file will be in the scripts folder within opt

All that command I gave you did was copied the folder '/home/user/MyDocs/opt' and '/home/user/MyDocs/usr' (which you said you had extracted to MyDocs ) to /root

The next command changed directory to /root/opt/scripts

The next command makes KR executable

Nowhere in there was an unzip/extract command

AHH FINALY!
Ive got the problem..the two files were inside the knight-rider folder.thats why it wasnt found.
anyways ive done the needfull.but i still cant seem to find KNIGHT rider in the application menu!!
(im almost there!!i can feeel it!!)

James_Littler 2010-08-15 09:35

Re: Flashing Keyboard lights as patterns
 
for the application menu icon you'll have to make a new entry for it.
have a search for 'changing icons', i found a set of instructions the other day, I'll see if I can find them for you.

EDIT: look here : http://www.themaemo.com/howto-launch...om-a-shortcut/

mangal_sk8erboy 2010-08-15 12:53

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by James_Littler (Post 786849)
for the application menu icon you'll have to make a new entry for it.
have a search for 'changing icons', i found a set of instructions the other day, I'll see if I can find them for you.

EDIT: look here : http://www.themaemo.com/howto-launch...om-a-shortcut/

w8 up..
so once i type in chmod +x KR
the keyboards supposed to start flashing?
(it isnt happening :( )

F2thaK 2010-08-15 13:09

Re: Flashing Keyboard lights as patterns
 
if u dont kno how to do it, you probly shoudnt do it

Marcus 2010-08-15 13:19

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by mangal_sk8erboy (Post 786957)
w8 up..
so once i type in chmod +x KR
the keyboards supposed to start flashing?
(it isnt happening :( )

As f2thak is saying; you should not do anything you don't know what is.

Anyways, that command only makes it executable. You need to run it as well, usind sh.

sh KR

louispires 2010-08-15 16:06

Re: Flashing Keyboard lights as patterns
 
HELP!!

No matter how many times i restart, my application icon just doesn't appear in the menu and i also cant add a shortcut to the desktop because it doesn't know that it is there.
What must i do so that the icon appears in the menu?

Need some assistance asap please

mangal_sk8erboy 2010-08-15 16:26

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by Marcus (Post 786979)
As f2thak is saying; you should not do anything you don't know what is.

Anyways, that command only makes it executable. You need to run it as well, usind sh.

sh KR

HAHAHAH OMG!!!!
DUDE THATS THE ONLY THING THAT WAS LEFT!!!!
sh KR!
omg!
lol thanks alot man.

mangal_sk8erboy 2010-08-15 16:28

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by James_Littler (Post 786849)
for the application menu icon you'll have to make a new entry for it.
have a search for 'changing icons', i found a set of instructions the other day, I'll see if I can find them for you.

EDIT: look here : http://www.themaemo.com/howto-launch...om-a-shortcut/

james..THANKS A TON YOU sweetheart you!!!
the only thing that was left for you to tell me was
"oh yeah and to run it all you have to do is type
sh KR"

but thats okay.!
THANKS A TON (again!)
much love!

mangal_sk8erboy 2010-08-15 16:33

Re: Flashing Keyboard lights as patterns
 
alright guys, there is an app for the n900 where you play a sound once the keyboard is open.
how about you just link this to the app?

louispires 2010-08-15 17:41

Re: Flashing Keyboard lights as patterns
 
Okay i got the shortcut in my menu but when i click on it. The x-terminal opens and closes straight after that so what should i do so that the shortcut in the menu runs the script??

NightShift79 2010-09-09 04:17

Re: Flashing Keyboard lights as patterns
 
Awesome ideas. just read the whole thread. Hopefully an app is near...
This would be so great to show off :)

lot of great ideas in this thread!

xperto 2010-09-27 23:08

Re: Flashing Keyboard lights as patterns
 
Waiting for it from months !

white_ranger 2010-10-01 19:35

Re: Flashing Keyboard lights as patterns
 
Can somebody make step-by-step instructions on how to install this? I'm a total noob.

jbw89 2010-10-02 09:23

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by MohammadAG (Post 777899)
Hmm, my bad, in a root shell:
Code:

apt-get install coreutils-gnu

Status update: media player daemon almost ready, thanks to altergo's media-im-status-updater.

what those this do exectly? i typed it, lot of things happend in Terminal, did it changed my N900? or Harmed?

towhatend 2010-10-02 10:08

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by jbw89 (Post 831466)
what those this do exectly? i typed it, lot of things happend in Terminal, did it changed my N900? or Harmed?

http://en.wikipedia.org/wiki/GNU_Core_Utilities
http://www.gnu.org/software/coreutils/

jbw89 2010-10-02 10:27

Re: Flashing Keyboard lights as patterns
 
dont really get what it says (in those sites) not that smart:P but its nothing bad, could be a good things do?:P

MohammadAG 2010-10-27 18:43

Re: Flashing Keyboard lights as patterns
 
http://i56.tinypic.com/2mez4wn.jpg

:)

xperto 2010-10-27 18:57

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by MohammadAG (Post 854010)

do we finally got an app to do this ????


-Thanks :)

tHMZ 2010-11-09 17:27

Re: Flashing Keyboard lights as patterns
 
Is this project dead? I really would have liked it, when you wrote an SMS and when u pressed a key it would dim down and then brighten up again. If this couldn't happen, then at least when the keyboard opened it would flash or something :S

giecsar 2010-11-09 17:30

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by tHMZ (Post 868264)
Is this project dead? I really would have liked it, when you wrote an SMS and when u pressed a key it would dim down and then brighten up again. If this couldn't happen, then at least when the keyboard opened it would flash or something :S

I don't think so, but MohammadAG is involved in a lot of stuff so I don't think he's allocating much time to this - after all such an app would have no practical use, it's just a visual effect...

MohammadAG 2010-11-09 18:14

Re: Flashing Keyboard lights as patterns
 
Actually, I was working on it yesterday, I guess I can release it as 0.1 soon.

xperto 2010-11-09 18:47

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by MohammadAG (Post 868292)
Actually, I was working on it yesterday, I guess I can release it as 0.1 soon.

WOW !!! fingers crossed !

n900maniac 2010-11-09 18:51

Re: Flashing Keyboard lights as patterns
 
:) :) :)
Waiting eagerly!!!

MohammadAG 2010-11-09 19:09

Re: Flashing Keyboard lights as patterns
 
Sent to devel, it's not the pattern itself though, if you that I guess I can add it, a button maybe?
I should also really get back to the media player idea.

xperto 2010-11-09 19:45

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by MohammadAG (Post 868327)
Sent to devel, it's not the pattern itself though, if you that I guess I can add it, a button maybe?
I should also really get back to the media player idea.

Whats the name of the package ? cant find it yet...

nidO 2010-11-09 19:47

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by xperto (Post 868357)
Whats the name of the package ? cant find it yet...

As a random guess...

http://maemo.org/packages/view/keyboard-leds/

xperto 2010-11-09 19:58

Re: Flashing Keyboard lights as patterns
 
i downloaded the app but it doesnt start for me.. it crashes...

xperto 2010-11-09 20:11

Re: Flashing Keyboard lights as patterns
 
tried rebooting.. it isnt working

MohammadAG 2010-11-09 20:15

Re: Flashing Keyboard lights as patterns
 
Hmm, sorry, run update-sudoers in a root terminal and start it again.

xperto 2010-11-09 20:24

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by MohammadAG (Post 868395)
Hmm, sorry, run update-sudoers in a root terminal and start it again.

it made the application work.. but it just shuts off the Keyboard LEDS.. tried moving the bar.. it does nothing.. and when i close the app my keyboard lights again..

MohammadAG 2010-11-09 20:28

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by xperto (Post 868401)
it made the application work.. but it just shuts off the Keyboard LEDS.. tried moving the bar.. it does nothing.. and when i close the app my keyboard lights again..

Hmm, mind starting the app from terminal? Type keyboardleds to start it then post the error that shows up.


All times are GMT. The time now is 21:26.

vBulletin® Version 3.8.8