Notices


Reply
Thread Tools
Posts: 1,031 | Thanked: 1,113 times | Joined on Aug 2011
#21
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 n950 For This Useful Post:
Community Council | Posts: 4,074 | Thanked: 9,751 times | Joined on May 2012 @ Southerrn Finland
#22
Originally Posted by n950 View Post
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 kernel is same in Harmattan and Nitdroid, hence the base devices are same.
Just search for sleep_ind under /sys/devices, you should find the correct device.
 

The Following User Says Thank You to juiceme For This Useful Post:
Posts: 1,031 | Thanked: 1,113 times | Joined on Aug 2011
#23
Originally Posted by juiceme View Post
The kernel is same in Harmattan and Nitdroid, hence the base devices are same.
Just search for sleep_ind under /sys/devices, you should find the correct device.
If i find it i need to delete it or what?
 
Posts: 1,031 | Thanked: 1,113 times | Joined on Aug 2011
#24
how can i search a file inside terminal?

because in /sys/devices there is no sleep_ind file only directories.
 
Community Council | Posts: 4,074 | Thanked: 9,751 times | Joined on May 2012 @ Southerrn Finland
#25
Originally Posted by n950 View Post
Originally Posted by juiceme View Post
The kernel is same in Harmattan and Nitdroid, hence the base devices are same.
Just search for sleep_ind under /sys/devices, you should find the correct device.
If i find it i need to delete it or what?
Why on eatrh would you want to delete a system device?
 

The Following 2 Users Say Thank You to juiceme For This Useful Post:
Community Council | Posts: 4,074 | Thanked: 9,751 times | Joined on May 2012 @ Southerrn Finland
#26
Originally Posted by n950 View Post
how can i search a file inside terminal?
because in /sys/devices there is no sleep_ind file only directories.
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...
 

The Following User Says Thank You to juiceme For This Useful Post:
Posts: 1,031 | Thanked: 1,113 times | Joined on Aug 2011
#27
Originally Posted by juiceme View Post
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...
I tried it but it doesn't work.

I open terminal and i write:

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
after that when i connect the power usb cable to the device i always have the led turn ON.
In Nitdroid the light is always ON too.


So how can i disable the power led please?

I have noticed when the n950 is turn ON the led automaticaly is ON and stay ON even in Nitdroid system.

Last edited by n950; 2015-11-21 at 10:48.
 

The Following User Says Thank You to n950 For This Useful Post:
Community Council | Posts: 4,074 | Thanked: 9,751 times | Joined on May 2012 @ Southerrn Finland
#28
Originally Posted by n950 View Post
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


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/")

and
Code:
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 juiceme For This Useful Post:
Posts: 1,031 | Thanked: 1,113 times | Joined on Aug 2011
#29
Originally Posted by juiceme View Post
[/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/")

and
Code:
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
It doesn't work too.
the power led continue to blink when usb cable is connected in Meego. why?
in nitdroid always turn ON.
 

The Following User Says Thank You to n950 For This Useful Post:
Community Council | Posts: 4,074 | Thanked: 9,751 times | Joined on May 2012 @ Southerrn Finland
#30
Originally Posted by n950 View Post
It doesn't work too.
the power led continue to blink when usb cable is connected in Meego. why?
in nitdroid always turn ON.
Well, then it might be some other control.
 

The Following User Says Thank You to juiceme For This Useful Post:
Reply

Thread Tools

 
Forum Jump


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