maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Android (https://talk.maemo.org/forumdisplay.php?f=54)
-   -   [How to] Android 4.1.1_r2 (JellyBean) for Nokia N9. Alpha Release #5 "Gyla" (https://talk.maemo.org/showthread.php?t=90646)

n950 2015-11-19 06:42

Re: [How to] Android 4.1.1_r2 (JellyBean) for Nokia N9. Alpha Release #5 "Gyla"
 
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.

juiceme 2015-11-19 08:00

Re: [How to] Android 4.1.1_r2 (JellyBean) for Nokia N9. Alpha Release #5 "Gyla"
 
Quote:

Originally Posted by n950 (Post 1488517)
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.

n950 2015-11-19 10:42

Re: [How to] Android 4.1.1_r2 (JellyBean) for Nokia N9. Alpha Release #5 "Gyla"
 
Quote:

Originally Posted by juiceme (Post 1488523)
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?

n950 2015-11-19 15:45

Re: [How to] Android 4.1.1_r2 (JellyBean) for Nokia N9. Alpha Release #5 "Gyla"
 
how can i search a file inside terminal?

because in /sys/devices there is no sleep_ind file only directories.

juiceme 2015-11-20 12:32

Re: [How to] Android 4.1.1_r2 (JellyBean) for Nokia N9. Alpha Release #5 "Gyla"
 
Quote:

Originally Posted by n950 (Post 1488537)
Quote:

Originally Posted by juiceme (Post 1488523)
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?

juiceme 2015-11-20 12:36

Re: [How to] Android 4.1.1_r2 (JellyBean) for Nokia N9. Alpha Release #5 "Gyla"
 
Quote:

Originally Posted by n950 (Post 1488564)
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...

n950 2015-11-21 10:38

Re: [How to] Android 4.1.1_r2 (JellyBean) for Nokia N9. Alpha Release #5 "Gyla"
 
Quote:

Originally Posted by juiceme (Post 1488713)
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.

juiceme 2015-11-21 20:35

Re: [How to] Android 4.1.1_r2 (JellyBean) for Nokia N9. Alpha Release #5 "Gyla"
 
Quote:

Originally Posted by n950 (Post 1488980)
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

n950 2015-11-21 21:38

Re: [How to] Android 4.1.1_r2 (JellyBean) for Nokia N9. Alpha Release #5 "Gyla"
 
Quote:

Originally Posted by juiceme (Post 1489110)
[/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.

juiceme 2015-11-22 09:47

Re: [How to] Android 4.1.1_r2 (JellyBean) for Nokia N9. Alpha Release #5 "Gyla"
 
Quote:

Originally Posted by n950 (Post 1489119)
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.


All times are GMT. The time now is 04:41.

vBulletin® Version 3.8.8