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)

lcuk 2010-05-11 17:10

Re: Flashing Keyboard lights as patterns
 
MohammadAG
adding specific scripts to sudoers manages one aspect of this
but what about alternative patterns and stuff?
knightrider.sh can be added but it really needs as qwerty said some proper mechanism to control them

xperto 2010-05-13 09:26

Re: Flashing Keyboard lights as patterns
 
i Want this on my phone :( step by step procedure please ! like for LED patterns on 'http://wiki.maemo.org/LED_patterns#N900'
This will be a great help !

Thanks !:o

xperto 2010-05-14 15:52

Re: Flashing Keyboard lights as patterns
 
anyone ?




--------------

F2thaK 2010-05-19 06:47

Re: Flashing Keyboard lights as patterns
 
do we have an app for this yet?????? thanks

MohammadAG 2010-05-19 10:49

Re: Flashing Keyboard lights as patterns
 
Not yet, Qt Designer is a pain in the ***.
(Actually imo, it seems Qt is all together a pita :p)

xperto 2010-06-05 12:22

Re: Flashing Keyboard lights as patterns
 
do we at least get a step by step procedure ?

baboo 2010-06-05 13:28

Re: Flashing Keyboard lights as patterns
 
can someone help here plz?..im a general user and i dont know how to make this work..i've downloaded the file but after that...i know nothing.

anaskr 2010-06-05 14:03

Re: Flashing Keyboard lights as patterns
 
i installed via xterminal !! now what to do?

FifthFreedom 2010-06-05 16:06

Re: Flashing Keyboard lights as patterns
 
Awesome idea for a script:
Making each key light up as pressed then fade out.

Would make texting look awesome.
Somebody make it? :P

cjp 2010-06-05 16:41

Re: Flashing Keyboard lights as patterns
 
Make the lights wrap around the keyboard, so that it swipes from left to right, reappearing at the left to swipe to the right again, and reappering from the left ad infinitum!

:D

vabgeo 2010-06-17 13:56

Re: Flashing Keyboard lights as patterns
 
1 Attachment(s)
Quote:

Originally Posted by FifthFreedom (Post 701232)
Awesome idea for a script:
Making each key light up as pressed then fade out.

Would make texting look awesome.
Somebody make it? :P

I dont think we will be able to get global keyboard events, so I modified the python script to wait for 20 key presses
Code:

sudo gainroot
python KR.py
Usage :  KR.py  --keypress --selftest --kr


MohammadAG 2010-06-17 14:00

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by vabgeo (Post 719204)
I dont think we will be able to get global keyboard events, so I modified the python script to wait for 20 key presses

AFAIK there are keyloggers for linux, so I don't see why this wouldn't be possible :)

@ all previous threads, I'll be finishing my exams on the 18th, so I'll read the pygtk tutorial properly this time, also got another project on mind, so I might make a gui for this, although it's pretty pointless as it is (unless you like your keyboards lights sweeping for no reason).

F2thaK 2010-06-17 14:09

Re: Flashing Keyboard lights as patterns
 
...........................sure......why not?

vabgeo 2010-06-17 14:19

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by MohammadAG (Post 719210)
AFAIK there are keyloggers for linux, so I don't see why this wouldn't be possible :)
.

there, are but seems to kernel modules. I worked on one 10 years ago and I used Xlib extensions XTest and XRecord. not sure how it is in maemo

vabgeo 2010-06-17 14:56

Re: Flashing Keyboard lights as patterns
 
duplicate post..

jedi 2010-06-17 18:56

Re: Flashing Keyboard lights as patterns
 
I installed this essential app via the .deb package, but it doesn't play the MP3 for me :(

I can play via mplayer
Code:

# mplayer /opt/liqbase/KR/KR.mp3
and hear the tune, but not via the script.

Any ideas?

(or I could just wait a bit for the 'proper' app)
Thanks

~~~~EDIT~~~~

ah got sound working using vabgeo's mod'd script a few posts up :) (http://talk.maemo.org/showpost.php?p...4&postcount=51). Only get the Knightrider effect twice, though :(

vabgeo 2010-06-20 17:34

Re: Flashing Keyboard lights as patterns
 
It would be good if we can call it when u open the keyboard.
is there a configuration in the mce.ini or dbus that we can use?

next step Mohammad,lcuk, would be to remove the sudo requirement...

qwenjis 2010-06-20 18:05

Re: Flashing Keyboard lights as patterns
 
Quote:

It would be good if we can call it when u open the keyboard.
exactly what i was thinking about! it would be really great if somebody writes a tiny script to make keyboard flash once(for instance from left to right,but a bit slower than on "knight rider" video),when you open keyboard.

Dousan 2010-06-20 18:17

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by vabgeo (Post 722791)
It would be good if we can call it when u open the keyboard.
is there a configuration in the mce.ini or dbus that we can use?

next step Mohammad,lcuk, would be to remove the sudo requirement...

Hopbeat made lockdaemon that plays a tune when you slide the keyboard open or close or lock onlock screen. Maybe he could implement it in his app. The knight rider effect ;)

Just a thought :)

F2thaK 2010-06-30 03:17

Re: Flashing Keyboard lights as patterns
 
any news on this??

F2thaK 2010-08-02 01:11

Re: Flashing Keyboard lights as patterns
 
b*********u*********m********p

jbw89 2010-08-02 10:34

Re: Flashing Keyboard lights as patterns
 
Why cant ther be mad a little program, i really dont get it (by terminal an all)
can you make it easier please? another idea; on the accelotometer when you move you n900 to right al lights fall to the richt get my drift?

lcuk 2010-08-02 10:41

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by f2thak (Post 772526)
b*********u*********m********p

you do not bump this thread

you highlight it!


Quote:

Originally Posted by jbw89 (Post 772897)
Why cant ther be mad a little program, i really dont get it (by terminal an all)
can you make it easier please? another idea; on the accelotometer when you move you n900 to right al lights fall to the richt get my drift?

the issue with making programs as stated (which would be cool) are that to set these lights, the process running it has to be run under root context.
Its not good form to have user applications running as root and so pending a mechanism right now to do this.
it would have to be a small daemon sat listening (perhaps over dbus?)

lcuk 2010-08-02 11:07

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by jbw89 (Post 772897)
Why cant ther be mad a little program, i really dont get it (by terminal an all)
can you make it easier please? another idea; on the accelotometer when you move you n900 to right al lights fall to the richt get my drift?

ps, install liqflow - i keep thinking of using the keys to expand on that and allow you to use the location of the keylights to create new energetic particles and make them bob up.

F2thaK 2010-08-03 10:27

Re: Flashing Keyboard lights as patterns
 
KNIGHT RIDER APP SHORTCUT


I also extended its duration to around 20 seconds




1. extract this zip to root of N900 (not MyDocs)

2. make /opt/scripts/KR executable

3. run "Knight Rider" from app menu.........

MohammadAG 2010-08-03 10:47

Re: Flashing Keyboard lights as patterns
 
tbh I started liking this KR thingy while the media player is running, might get off my a*** and learn how to make a daemon that starts it when a song/video's playing.

F2thaK 2010-08-03 10:54

Re: Flashing Keyboard lights as patterns
 
when U get a msg would be cool, only work if kb open tho obviously

mangal_sk8erboy 2010-08-03 11:24

Re: Flashing Keyboard lights as patterns
 
does this work when you just slide the keyboard out?that would be the best application of this script.[key boad opens..knight rider effect for 2 seconds]bad ***.
btw another idea.
if you could tie the key presses to this script it would be mad.
(ie light up the keys around the key you have pressed.for like half a second.it would make typing fast look so bad ***.)
btw, noob here, step by step procedure please?
was waiting for a while for this to come out.saw it on youtube a while ago.

jmangs 2010-08-03 13:33

Re: Flashing Keyboard lights as patterns
 
I tried to run the shell script but it says it's missing gsleep - do you need another package for the script to run?

kaos_king 2010-08-03 14:16

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by jmangs (Post 774270)
I tried to run the shell script but it says it's missing gsleep - do you need another package for the script to run?

Ive got this too, but when mohammed first posted it and i tried it worked. Only thing thats changed really is PR1.2.

kaos_king 2010-08-06 14:42

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by kaos_king (Post 774329)
Ive got this too, but when mohammed first posted it and i tried it worked. Only thing thats changed really is PR1.2.

Anyone?

Its not mega important i know as it doesnt do much, but more curious as to why it wont work more than anything.

MohammadAG 2010-08-06 15:11

Re: Flashing Keyboard lights as patterns
 
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.

mangal_sk8erboy 2010-08-06 15:34

Re: Flashing Keyboard lights as patterns
 
guys, step by step tutorial?
please?

jd4200 2010-08-06 15:39

Re: Flashing Keyboard lights as patterns
 
Might look at having this execute when a SMS/call comes through.

mangal_sk8erboy 2010-08-07 08:31

Re: Flashing Keyboard lights as patterns
 
step by step tutorial, guys??

Dousan 2010-08-08 10:05

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by f2thak (Post 774110)
KNIGHT RIDER APP SHORTCUT


I also extended its duration to around 20 seconds




1. extract this zip to root of N900 (not MyDocs)

2. make /opt/scripts/KR executable

3. run "Knight Rider" from app menu.........


Can't seem to make this work. Extracted to /home/user. Then moved .desktop file to it's location. Then made path /opt/scripts/KR. Then typed in xterm as root: chmod +x /opt/scripts/KR.
When i press the desktop icon xterm opens and then closes short after and then nothing? Am i missing somthing to make it work?

mangal_sk8erboy 2010-08-13 12:22

Re: Flashing Keyboard lights as patterns
 
bump.
tutorial please?

James_Littler 2010-08-13 12:44

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by mangal_sk8erboy (Post 785234)
bump.
tutorial please?

Read the post above yours.

1. extract this zip to root of N900 (not MyDocs)

2. make /opt/scripts/KR executable

3. run "Knight Rider" from app menu.........


Why post the same thing 3 times when the requested information is clearly in the thread?!

mangal_sk8erboy 2010-08-13 12:47

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by James_Littler (Post 785256)
Read the post above yours.

1. extract this zip to root of N900 (not MyDocs)

2. make /opt/scripts/KR executable

3. run "Knight Rider" from app menu.........


Why post the same thing 3 times when the requested information is clearly in the thread?!

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
[sudo gainroot is something i know :P.
just tell me the commands so i can just copy paste em in xterm.
btw the downloaded file is in MyDocs. commands please :D]

qwenjis 2010-08-13 12:58

Re: Flashing Keyboard lights as patterns
 
Quote:

Originally Posted by mangal_sk8erboy (Post 774169)
that would be the best application of this script.[key boad opens..knight rider effect for 2 seconds]bad ***

This.

Is it still possible?

Btw,since it requieres root access,may be make it similar to cpu overlocking widgets in QWB? So after you reboot your device,just hit the widget and wooola - it will work=) Seems good for me


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

vBulletin® Version 3.8.8