The Following User Says Thank You to n950 For This Useful Post: | ||
|
2015-11-19
, 08:00
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#22
|
Ok but in Nitdroid it's not the same thing.
perhaps a file need to be deleted. The one which control power led.
Anybody have a solution for me?
thanks in advance.
The Following User Says Thank You to juiceme For This Useful Post: | ||
|
2015-11-19
, 10:42
|
Posts: 1,196 |
Thanked: 1,413 times |
Joined on Aug 2011
|
#23
|
|
2015-11-19
, 15:45
|
Posts: 1,196 |
Thanked: 1,413 times |
Joined on Aug 2011
|
#24
|
|
2015-11-20
, 12:32
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#25
|
|
2015-11-20
, 12:36
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#26
|
how can i search a file inside terminal?
because in /sys/devices there is no sleep_ind file only directories.
The Following User Says Thank You to juiceme For This Useful Post: | ||
|
2015-11-21
, 10:38
|
Posts: 1,196 |
Thanked: 1,413 times |
Joined on Aug 2011
|
#27
|
Did you check the command I gave you previously?
A simple shellscript that searches for the directory where resides a file that has the word "sleep_ind" in it, and then echo a zero to the file named "value" in the same directory...
devel-su (the password) leds=$(find /sys/devices/virtual/gpio -name name | xargs grep sleep_ind | cut -d ":" -f 1| sed -e "s/name/value/") echo "0" > $leds
The Following User Says Thank You to n950 For This Useful Post: | ||
|
2015-11-21
, 20:35
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#28
|
Code:devel-su (the password) leds=$(find /sys/devices/virtual/gpio -name name | xargs grep sleep_ind | cut -d ":" -f 1| sed -e "s/name/value/") echo "0" > $leds
leds=$(find /sys/devices/virtual/gpio -name name | xargs grep sleep_ind | cut -d ":" -f 1| sed -e "s/name/value/")
echo "0" > $leds
leds=$(find /sys/devices/virtual/gpio -name name | xargs grep sleep_ind | cut -d ":" -f 1| sed -e "s/name/value/"); echo "0" > $leds
The Following User Says Thank You to juiceme For This Useful Post: | ||
|
2015-11-21
, 21:38
|
Posts: 1,196 |
Thanked: 1,413 times |
Joined on Aug 2011
|
#29
|
[/SIZE]
Its 2 rows actually...
Code:leds=$(find /sys/devices/virtual/gpio -name name | xargs grep sleep_ind | cut -d ":" -f 1| sed -e "s/name/value/")
andCode:echo "0" > $leds
Or if you want to have it in one go, put a semicolon there...
Code:leds=$(find /sys/devices/virtual/gpio -name name | xargs grep sleep_ind | cut -d ":" -f 1| sed -e "s/name/value/"); echo "0" > $leds
The Following User Says Thank You to n950 For This Useful Post: | ||
|
2015-11-22
, 09:47
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#30
|
The Following User Says Thank You to juiceme For This Useful Post: | ||
perhaps a file need to be deleted. The one which control power led.
Anybody have a solution for me?
thanks in advance.