Notices


Reply
Thread Tools
Andre Klapper's Avatar
Posts: 1,665 | Thanked: 1,649 times | Joined on Jun 2008 @ Praha, Czech Republic
#31
Originally Posted by nokiaboy97 View Post
could someone PM or e-mail me a step by step walk throuhgh of how to apply scripts?
Google for "linux shell script"?
Basically you mark a script file as executable and then you can run it.
chmod is your friend.
__________________
maemo.org Bugmaster
 

The Following 4 Users Say Thank You to Andre Klapper For This Useful Post:
Posts: 433 | Thanked: 274 times | Joined on Jan 2010
#32
ah, shiny toys! As an enhancement proposal: if you place a solar cell beside the keyboard during the light show, and wire it up to the phone's power input, you will have cracked the battery life issue too :-)

(sorry, couldn't resist ... I know the LED flashing is just harmless fun, but it did make me smile to run it on a device that is so "mAh-challenged").
 
Posts: 642 | Thanked: 486 times | Joined on Aug 2008
#33
This is cool!

Lets see and iphone do this - oh wait it don't have a keyboard!

Last edited by rash.m2k; 2010-05-10 at 14:51.
 

The Following 2 Users Say Thank You to rash.m2k For This Useful Post:
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#34
this looks so much better when you do it yourself!
 
cddiede's Avatar
Posts: 1,034 | Thanked: 784 times | Joined on Dec 2007 @ Annapolis, MD
#35
I'm trying to make a KR.desktop entry that will let me run this from a menu Icon, but I'm stuck due to the root access requirement.

I tried making a script that ran something like:

sudo gainroot;/usr/bin/python /opt/liqbase/KR/KR.py
or
sudo gainroot /usr/bin/python /opt/liqbase/KR/KR.py

But that just dumps the script out at a root prompt and fails to execute KR.py until after the root shell is exited.

Is it possible to post a script to that would not require root privileges to flash the keyboard lights?

Last edited by cddiede; 2010-05-11 at 17:11.
 
lcuk's Avatar
Posts: 1,635 | Thanked: 1,816 times | Joined on Apr 2008 @ Manchester, England
#36
cddiede the script is a prototype and we are looking at how to enable playing with the lighting combinations without requiring root for every single app that uses it.
tho its most likely going to be a bit tricky
__________________
liqbase sketching the future.
like what i say? hit the Thanks, thanks!
twitter.com/lcuk
 

The Following 2 Users Say Thank You to lcuk For This Useful Post:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#37
Originally Posted by lcuk View Post
cddiede the script is a prototype and we are looking at how to enable playing with the lighting combinations without requiring root for every single app that uses it.
tho its most likely going to be a bit tricky
Do an MCE and make a D-Bus service! Or, more simply, just add exceptions in sudoers
 
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#38
Originally Posted by qwerty12 View Post
Do an MCE and make a D-Bus service! Or, more simply, just add exceptions in sudoers
afaik, sudoers would work for echoing into sysfs (I have sudo enabled for all binaries)

Edit: wouldn't*

Last edited by MohammadAG; 2010-05-11 at 17:05.
 
lcuk's Avatar
Posts: 1,635 | Thanked: 1,816 times | Joined on Apr 2008 @ Manchester, England
#39
Originally Posted by MohammadAG View Post
afaik, sudoers would work for echoing into sysfs (I have sudo enabled for all binaries)
i think MohammadAG is a pretty cool guy
eh runs all binaries as root as doesn't afraid of anything

for normal users however I think a simpler approach would be required.
__________________
liqbase sketching the future.
like what i say? hit the Thanks, thanks!
twitter.com/lcuk
 

The Following 2 Users Say Thank You to lcuk For This Useful Post:
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#40
Originally Posted by lcuk View Post
i think MohammadAG is a pretty cool guy
eh runs all binaries as root as doesn't afraid of anything

for normal users however I think a simpler approach would be required.
lol it shouldn't affect security, a lot... :P
Code:
~ $ sudo echo 0 > /sys/class/i2c-adapter/i2c-2/2-0032/leds\:lp5523\:kb1/brightness      
-sh: cannot create /sys/class/i2c-adapter/i2c-2/2-0032/leds:lp5523:kb1/brightness: Permission denied
Code:
echo "/path/to/script.sh" | root
should work though

On its own I can't see why it needs a .desktop file and .deb package, otherwise I would've made them. It doesn't even have a GUI (yet)
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:18.