Disable Touch wake, a way to save battery. - Wear OS General

Hey guys, this is my first post so probably i will have a lot of erros. Pls dont be angry haha.
First Everything here is at your own risk so if your watch stop working is your fault no mine. You have been warned. Lets start:
-You need to instal TWRP in your smartwatch.
Here some links:
-(MOTO 360) http://forum.xda-developers.com/moto-360/development/unofficial-twrp-2-8-1-0-moto-360-t2966750
-(SONY SMARTWATCH 3) http://forum.xda-developers.com/sma...overy-twrp-2-8-3-0-sony-smartwatch-3-t2986907
-(LG G R) http://forum.xda-developers.com/g-watch-r/development/root-root-twrp-r-t2960511
Click to expand...
Click to collapse
-When you have installed, start in recovery mode, and go to mount and press system. Connect your watch to your computer and open ADB
adb root
adb pull /system/usr/idc/sec_touchscreen.idc <where you want to save the file>
Click to expand...
Click to collapse
-Make a copy of the file and open the file with notepad++, you will se the following things
# Copyright 2014 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Input Device Calibration File for the Dory touch screen.
#
device.internal = 1
touch.deviceType = touchScreen
touch.orientationAware = 1
touch.wake = 1
Click to expand...
Click to collapse
-Remove the part of ( touch.wake = 1 , please make a copy, because you will need it .
-Now go other time to adb and putt he following
adb push /system/usr/idc/ <where you have the file>
Click to expand...
Click to collapse
-Restart the watch.
-Now you will see that is impossible to block the watch, calm down xD. Restart other time the watch in recovery.
-Now with the copy of the original file, mount system on twrp and puth this on adb (the file must have the same name as the original)
adb push /system/usr/idc/ <where you have the copy>
Click to expand...
Click to collapse
-Restart the watch and now, you will se that the screen is only going to be unlocked by the button of your watch.
Also if you want to sabe more battery you can change the cpu governor

Looks like you have mistyped adb push into adb pull.
Good idea. Tryin.
EDIT : looks like you don't know adb pull and push:
Push means Computer to Device
Pull means Device to Computer
---------- Post added at 19:51 ---------- Previous post was at 19:46 ----------
And shouldn't 'sec' means Samsung? This guide may only work for Samsung devices. Please modify.
Maybe we have to find the exact file using ls.
Nice work.

I know hahaha, muy mistake .Also i want to know if this work for mor people
Sent from my A0001 using XDA Free mobile app

Thanks! Ill wait a bit for you to work out the typos. I also have to decide if i want to keep my LG R or get the zenwatch2 when it is out... But hanks all the same. This has been bugging me since i got the watch. Theater mode doesn't send notifications and I cross my arms while I sleep, waking my watch up all night...
Also thanks for posting the other sources for each watch. Great first post!

Working on Gear 2.. no need to copy the original file back.

working on LG g watch (wear 5.1) fine too, but the .idc-filename is
/system/usr/idc/synaptics_rmi4_i2c.idc now!
Only replace the last line
Code:
touch.wake = 1
with
Code:
# touch.wake = 1
I'm sure
Code:
touch.wake = 0
instead of commenting out, would work to! - But didn't test it...
and push the file back...
after reboot touch2wake is disabled and rotateWRIST2wake works fine!
Lets see how much battery drain will be decreased...
Thanx @dataonlycod ! (for finding and your solution):good:

No measureable benefit
Disabling touch2wake gave me no longer battery life here !!!

I've done the mod on my LGWR by simply booting (not flashing) TWRP
funny thing is that now the watch won't wake when touched, but it is still possible to scroll through notifications
bitstra said:
Disabling touch2wake gave me no longer battery life here !!!
Click to expand...
Click to collapse
as scrolling notifications is still possible, the touch screen is still active
to save battery, you would have to find a way to really disable it - but the power reduction sould be negligible

2k4ever said:
as scrolling notifications is still possible, the touch screen is still active
Click to expand...
Click to collapse
how can i block scrolling in ambient mode?

starbase64 said:
how can i block scrolling in ambient mode?
Click to expand...
Click to collapse
I don't know
keep in mind that disabling touch 2 wake is just a hack
the most probable way would be an xposed module that disables the toch screen when the watch goes into ambient mode

I was hoping this would fix the issue i have when i cross my arms and the watch starts doing things because it thinks my arm is my finger... ugh

Thanks
La:good:

Has anybody managed to get this hack working on the Sony Smartwatch 3.
The file that appears to need editing is called 'synaptics_dsx.idc'.
I have ensured the edited file is pushed back to the phone, but the hack never works.

hi friends/ does it work for URBANE ?

Hi friends, anyone get it to work with Moto 360 ?

persichini said:
I was hoping this would fix the issue i have when i cross my arms and the watch starts doing things because it thinks my arm is my finger... ugh
Click to expand...
Click to collapse
I had the same issue.
And here's what I did:
1. Set touch.wake = 0 on the file
2. Installed 'Showear: Android Wear Lock ' app from google play
link: https://play.google.com/store/apps/details?id=com.jdd.showear&hl=fi
3. Set lock method as sequence of swipes: Just one swipe from left to right
4. Set the following setting:
- Auto-lock on standy
- Lock on startup
- Vibration (to notify me when I unlock the screen since I set the lock screen invisible)
- Hide lock screen on standby
- Transparent lock screen
- Transparent (unselected) lock elements (Answer no to the msg box after setting this on)
Yes this way needs me to swipe the screen from left to right every time I want to use touch on the watch with my finger, but it is now impossible for any touch event to occur when the screen is dimmed since the lock cannot be unlocked from dim mode with the option 'Hide lock screen on standby' selected.
And having that no-touch on dim mode is way more important to me than the added swipe.
Hope this helps

very useful tip , thanks

Thank you

nice woooooooork

Fine
I will try, anyway I get pretty decent batt life with my Sony sw3, 4 days.

Related

New Power Control widget with one click 2G/3G toggling

Hello
I waited a lot of time for Google to release the support of a API to allow changing the 2G/3G with one click
As many others I would like to have the ability to do it without need to go to the settings.
Since Google didn't do it, I decided to do it by myself.
For that I modified the Phone and Setting applications that are delivered in the Cyanogen 6 version.
I made a new Power Control widget that now has the following:
Additional buttons:
- 2G/3G toggling (one click. With 3G only or 3G preferred)
- Ring mode toggling (Different possibilities)
- Screen timeout (15s/1min/5 min or 30s/2m/5Min)
- Toggle orientation sensor(enabled/disabled)
- Brightness levels (added different possible levels)
- Airplane mode enable/disable
- Lock Screen enable/disable
- Flashlight (screen mode works on Magic. on N1 it doesn't work=Don't use it)
Options:
- Can now be set with vertical layout
- you can choose different buttons on the widget
- possibility for a transparent widget
- possibility to avoid the widget "round corners"
- Option to change to 2G automatically when Mobile data is disabled
- Option to change to 3G automatically when Mobile data is enabled back
- Option to disable sync automatically when WIFI is disabled (avoids sync on mobile data)
- Option to enable sync automatically when WIFI is enabled back
- Option to choose if Ring mode is ON with vibrate or with sound
- Option to monitor the Data roaming (set the icon to red if enabled)
Other changes:
Changes done to GPS or Mobile Data in normal Settings page are now automatically synchronized in the widget.
Limitations:
- Setting page still very ugly
- Like the original one, limited to a single 4x1 widget.
- Button order is fixed
Before I contribute with my code to Cyanogen, I would like to see the feedback of other persons to confirm if this change is interesting or not.
If not, I would keep it just to myself.
It was only tested in my own HTC Magic. So I cannot guarantee that it will work 100%. If you want it, then use it at your own risk
Unfortunately it require changes of main Phone applications so I don't think it is possible to do it for all the Phones.
For now it will only work with CM6
I hope this is also interesting for several other people.
How to download:
update.zip file:
http://share1t.com/lg7prf
Screenshots:
My personal update procedure (flashmode):
Step 1:
Copy the update.zip (power_control_v2.01.zip) to the SD Card
Shutdown phone and boot it in recovery mode (On HTC Magic, press HOME + POWER to boot)
Step 2: (optional but recommended)
move the directory of your computer to were to store the backup files
Wait for the Recovery console
Connect the usb cable
adb.exe shell mount /system
Make a backup of the original files:
adb.exe pull /system/app/Settings.apk Settings_original.apk
adb.exe pull /system/app/Phone.apk Phone_original.apk
Step 3:
Select the Flash option on the recovery, and select to choose the file name
Select the power_control_v2.01.zip
Confirm and wait for it to finish.
Reboot the phone.
Step 4:
Add the new Power Control widget
Thank you verry much !
Is this the app from BK Mobility? Of so, this would be considered a WAREZ and you will get banned for it, because it is an paid app.
to futango:
Can you even READ?
Any screens?
Now it has
anwoo said:
to futango:
Can you even READ?
Click to expand...
Click to collapse
Sorry OP. Was tired when reading.
That thing looks great BTW.
installed. looks good and works. very nice and thanks.
can i add a suggestion? possibility to reorder the buttons
When i do
Code:
# mount /system
i have error: device or recovery busy ...
What now ?
nice thanks
virnik said:
When i do
Code:
# mount /system
i have error: device or recovery busy ...
What now ?
Click to expand...
Click to collapse
Well I'm not experienced in that.
Maybe the volume is already mounted?
If you really have boot the phone in Recovery mode (not the normal mode)
then check the following after the shell part:
ls /system/app
if you see a lot of files ending in *.apk, then the system is mounted.
You can see if you can execute the remaining operations (starting with the adb pull)
If not, then I don't know how you can push it. maybe in a next CM6 build it will be available.
You read my mind and made it work. Ive been looking for a widget that would do this properly. All other programs could disable apn but then it would mysteriously start up again on its own.
So far so good.
Thanks
Edit: my phone had a force close and when it rebooted, it had automatically reverted back to the normal power widget, with no sign of your version???
If we can have a toggle for the rest of the items it would be perfect.
Specifically hiding bluetooth, GPS and autosync since I never touch those.
xaueious said:
If we can have a toggle for the rest of the items it would be perfect.
Specifically hiding bluetooth, GPS and autosync since I never touch those.
Click to expand...
Click to collapse
You can select what options do you want to see. So you can hide these three and keep the other ones.
twigster said:
Edit: my phone had a force close and when it rebooted, it had automatically reverted back to the normal power widget, with no sign of your version???
Click to expand...
Click to collapse
That is strange for me.
I can only see it happening if the original settings apk get installed on the system. I don't think there is any "recovery" rom for that.
What could happen is for it to loose the configured settings and revert to the default one.
There you will have two differences:
1- In my case, the disable mobile data is after the GPS icon. in the original one it after the wifi I think.
2- 2G/3G data is automatically changed when you enable/disable the mobile data.
Perfect
Good work !
Works fine on Vodafone Magic 32b with Chromatic Rom (4.2)
Thanks !
Can you add Airplane Mode toggle, please?
Wow cool
Gonna try it asasp, been looking for this aswell!
Is it workable if I change the phone.apk and settings.apk into yours and resign the ROM?
Cuz my Magic seems fail to mount...
Anyway Good Jobsince I hate the original CM's Power Control Widget much(the number of buttons are fixed to 7,quite hard for me to press the right one...)

[APP] Unlock At Home Using Wifi v1.5.9

Hi people,
I'm the developer of an application distributed on the market called "Unlock At Home Using Wifi", I've developed this basically because I was tired of having to unlock the phone's dots security pattern in every time and place, specially when I was at secure locations, like home f.e.
The idea of the application is that whenever the phone is connected to a wifi network defined as secure, you'll have to unlock the device just ONCE, and then after disconnection, lock will be again automatically enabled. Also you can define a different wifi sleep policy depending if you are in a secure location or not.
NOTE: I'm deleting my xda-developers account (this thread will stay here I think) but isn't supported for me anymore. If you want to contact me please use the provided email at market. Thanks everyone!
UPDATES
*** version 1.5.9 *** (05/12/2011)
(RECOMMENDED BRANCH)
Free market application link
- Enforced and default activation of "(Wifi) White-Network Always On" option (sleep policy RECOMMENDED), if it's off the application might get some issues.
*** version 1.5.8 *** (04/28/2011)
- Several issues fixed in service (unlock finally holds all the time it shoulds)
- Added option to disable the screen flick on wifi off/screen off locking situations (NOT RECOMMENDED)
*** version 1.5.7 *** (04/25/2011)
- Fixing keyguard
- Better app behavior
*** version 1.5.6 *** (04/11/2011)
Now when app detects a white-list network connection, it'll show a yellow status bar icon, indicating that after unlocking, phone will switch to fixed unlocked status (red icon). Known issue: From time to time, at least in my phone (CM7) keyguard is coming back on his own, it this happens also to you, you'll have to unlock again to fix it, I'm looking for a solution to this... (I feel a bit at the limit of OS posibilities now...)
*** version 1.5.5 ***
More app behavior fix... Hope this is the last. Screen now will flick a little when disconnecting. (it'll fix keygyard state).
Remember now you just have to unlock the device once, when connected to a secure located wifi network. It's safer and fits quite well inside the OS limits.
*** version 1.4 ***
NOTE: This branch is a bit outdated now, the recommended one is the 1.5, try this for curiosity if you want, view the (outdated) source) and so if you want, but this is, I repeat it: OUTDATED.
If you don't like the idea of a totally unlocked device, try this, is only for Android 2.2 onwards, it will change from dotted lock to slide lock on secure locations, requires a rooted phone and installing the app in /system/app.
APK version 1.4 android 2.2+
Github source code repository (v.1.4)
If you don't know how to install this, better go for the 1.5 free market app.
FINAL WORDS
If you find useful this application, please consider a small donation via the donation app. Thank you very much!
Works on Galaxy S! Great app thx! how is the battery drain?
Hi DasPrinzip,
in my experience, almost inexistent, it's just hooked to wifi up/wifi down events, also has a very low memory footprint.... check for yourself
Greetings,
Ruben
Works well on Desire Z CM7 nightly #32
Tested today and no problem yet.
Thanks
fantastic idea. feel like I saw a post here or somewhere else where you were asking opinions on pricing. Did you decide yet if/what you are going to charge for this? This app would make a great partnership with something like widget locker.
ThePitboss said:
fantastic idea. feel like I saw a post here or somewhere else where you were asking opinions on pricing. Did you decide yet if/what you are going to charge for this? This app would make a great partnership with something like widget locker.
Click to expand...
Click to collapse
Thank you ThePitboss, the app is GPL3 free software, may be you saw another app that was inspired on mine, recently on the xda-news ...
You can get the github repo and compile for yourself if you want...
Thanks khroma. Just getting into android development, and it's great to read code for apps like this.
Sent from my PC36100 using XDA App
Unlocking doesn't work affter reboot
It worked successfully for a certain time yesterday, after reboot I realize that the phone get lock even when on wifi whitelist. Then when I unlock the phone, the green lock icon is still there. I have to click on "Tap for modify networks lock configuration" in notification area to unlock the phone again ( I see the red unlock icon in status bar). It works for a few minutes, then it revert back to green lock icon even when unlock.
I'm using the github apk installed with adb push.
Using CM7 nightly #32 on rooted Desire Z
Will try CM7 RC4 today with all the usual wipe dalvick cache etc...
Any Ideas?
No success after upgraded to CM7 RC4 and reinstalled apk. No significant messages in logs. UnlockAtHome icon still switching to green lock even when my sreen is on :-(
droidoz said:
No success after upgraded to CM7 RC4 and reinstalled apk. No significant messages in logs. UnlockAtHome icon still switching to green lock even when my sreen is on :-(
Click to expand...
Click to collapse
I'm sorry droidoz ... if you like the new approach, uninstall the v.1.4 of /system/app space and try the app directly from market. Please tell me what happens there.
Wont install from the Market :-(
droidoz said:
Wont install from the Market :-(
Click to expand...
Click to collapse
Did you delete it first from /system/app?
Steps:
[plug phone]
adb remount
adb shell
cd /system/app
rm UnlockAtHome.apk
exit
Khroma said:
I'm sorry droidoz ... if you like the new approach, uninstall the v.1.4 of /system/app space and try the app directly from market. Please tell me what happens there.
Click to expand...
Click to collapse
It works but reboot erase configs. I went to an internet coffee shop to test it and it last 2 hours without any problem, then I came back at home enter my shema to unlock and it works well. I tried a reboot, then it lost all configs like if it was a new app. I did the same config as the first time: settings wifi always on a you suggested. Waited a few minutes... still working. Did another reboot and lost again my all configs.
Could it be a permission problem? I did a fix permission from recovery, but didn't change anythings.
droidoz said:
Waited a few minutes... still working. Did another reboot and lost again my all configs.
Could it be a permission problem? I did a fix permission from recovery, but didn't change anythings.
Click to expand...
Click to collapse
Weird... yes it seems a permission problem, may be your phone still contains the old /system/app aplication data (?), look in /data/data directory using adb shell, the app id is com.accedo.unlockathome, compare user/permissions of the directory, or if you want to make to make sure the directory is created again (sample commands, take care with this):
[uninstall unlock at home once again, plug your phone]
adb shell
cd /data/data
ls -ld com.accedo.unlockathome
[if you see some dir here delete it with this command:]
rm -rf com.accedo.unlockathome
Install the app again, you'll need to configure your data again but I hope this time you get no issues
Installed from Market for me! Nice app - will try it out over next few days.
Great that your offering is Free / GPL unlike the other one
I am running Pongsters HyperDroidGBX-v11 on an HTC HD2
Cheers
UPDATE
Uninstalled - used 70% battery overnight - normal usage is 3%. I normally turn everything off using a power widget - no WiFi, etc - phone in airplane mode. Despite this left with 9% battery when I woke up - was at 79% 8 hours before going to kip!
Khroma said:
[uninstall unlock at home once again, plug your phone]
adb shell
cd /data/data
ls -ld com.accedo.unlockathome
[if you see some dir here delete it with this command:]
rm -rf com.accedo.unlockathome
Install the app again, you'll need to configure your data again but I hope this time you get no issues
Click to expand...
Click to collapse
ls: com.accedo.unlockathome: No such file or directory.
But there was a file in dalvik-cache which I deleted. Removed copmpletly the app and did a reinstall and it reverted back to the same problem. It works for a few minutes and then locks again. It solved configs problem at reboot, but still no improvement.
droidoz said:
ls: com.accedo.unlockathome: No such file or directory.
But there was a file in dalvik-cache which I deleted. Removed copmpletly the app and did a reinstall and it reverted back to the same problem. It works for a few minutes and then locks again. It solved configs problem at reboot, but still no improvement.
Click to expand...
Click to collapse
Soooo weird... now my only guess is CM7 RC4, I'll try to test this ASAP, when the ROM is available for my phone, sorry for the inconveniences. Please see also my PM.
jellywobbles said:
Great that your offering is Free / GPL unlike the other one
[..]
UPDATE
Uninstalled - used 70% battery overnight - normal usage is 3%. I normally turn everything off using a power widget - no WiFi, etc - phone in airplane mode. Despite this left with 9% battery when I woke up - was at 79% 8 hours before going to kip!
Click to expand...
Click to collapse
Thank you anyway for your confidence and your feedback!
The app it self it's a service that runs only on wifi app - down events, should not drain at all, but I'll check this today
Regards
Khroma said:
Thank you anyway for your confidence and your feedback!
The app it self it's a service that runs only on wifi app - down events, should not drain at all, but I'll check this today
Regards
Click to expand...
Click to collapse
Thanks - if the battery drain can be solved, this will be a brilliant product!
jellywobbles said:
Thanks - if the battery drain can be solved, this will be a brilliant product!
Click to expand...
Click to collapse
Please could help me with this issue checking what process are draining the battery, I've tested it for a few hours and here everything is running ok, just a guess: Did you checked the "white network always on" checkbox? Maybe the problem is some process over-using wifi?
Anyway I'm interested (if you can do some more testing) about what process are draining your battery, you can check it in "About the phone > Battery use"
(I've never seen my process in that list in my phone)

Soft key Leds Notifications v0.3 (Root)

This is an application I made for my phone to keep the button leds on when we receive a phonecall or SMS only.
Needs root access.
May harm your phone, I do not take any responsibility. Use it at your own risk.
i don t know what may happen if the leds are on for days. May harm them
my phone is i9105p.
official rom
root
android 4.2.2
I9105PXXUBMI1
KERNEL 3.0.31-1743918
BUILD NUMBER I9105PXXUBMI3
The Activate button enables the service.
The Deactivate button disables it.
the java code (3 classes)
Make sure task manager dont kill it. In Settings you can enable notification (prevent android task manager to kill it).
V.0.1
now works even if the event find the screen on
notification - prevent auto close. (no option to turn notification off yet, but i tried to keep it unoticable)
The only way to close is by android task manager which calls ondestroy command. (exit button to add)
V0.2
Settings:
- Screen timeout adjustable - propably help with other devices (set how much time takes the phone to close the screen when the event wakes the screen.)
- path to brightness editable
- notification to prevent android task manager on / off
V0.3
two mini bug fixed
1. (maybe) app does not respond on message receive when service is off.
2. now it does not lock led brightness (may caused issues with other apps)
How it works:
Activate / DeActivate Service from app.
It only works if
echo 1 > /sys/class/leds/button-backlight/brightness;
(or any path for your device's brightness works)
Hi!
Thanks for your help in the other thread! Unfortunately my led brightness path is different so your app is not working on my device.
Would you mind if I use your code in order to develop an app suitable for my specific device?
GustavYgman said:
Hi!
Thanks for your help in the other thread! Unfortunately my led brightness path is different so your app is not working on my device.
Would you mind if I use your code in order to develop an app suitable for my specific device?
Click to expand...
Click to collapse
not at all.later I will give options for each user's path for brightness, screen timeout when the event wakes the screen (not all devices are ten seconds., etc
hi ..thanx i will try this i was searching for this .. but i found it works when the screen is on .. but it stop working when is off .. i hope it will work ..
and plz help the guys in the CM10.2 i think you know java so you can help them .. they have some problem with ril .. and big problem with vibration ... we need team to make cm works .. thanx again ...... peace
http://forum.xda-developers.com/showthread.php?p=47912182#post47912182
nanoteam said:
hi ..thanx i will try this i was searching for this .. but i found it works when the screen is on .. but it stop working when is off .. i hope it will work ..
Click to expand...
Click to collapse
try in terminal emulator
su
echo 1 > /sys/class/leds/button-backlight/brightness
(or any path for your device's brightness)
it should light the leds.
and then turn off the screen without pressing back or menu, (they light the leds)
if the leds keep lighted while the screen is off, then propably it will work. if not then the kernel restrictions apply to your rom.
beastaki23 said:
try in terminal emulator
su
echo 1 > /sys/class/leds/button-backlight/brightness
(or any path for your device's brightness)
it should light the leds.
and then turn off the screen without pressing back or menu, (they light the leds)
if the leds keep lighted while the screen is off, then propably it will work. if not then the kernel restrictions apply to your rom.
Click to expand...
Click to collapse
They keep on, but they don't get on, if the device is already locked.
Sent from my GT-I9105P using XDA Premium 4 mobile app
CoolDevelopment said:
They keep on, but they don't get on, if the device is already locked.
Sent from my GT-I9105P using XDA Premium 4 mobile app
Click to expand...
Click to collapse
This is why I keep the screen on for 11 seconds. this way when the event comes:
1. android lights the screen and the lights for 10 seconds (by default of android)
2. android ask them both to turn off (after 10 seconds) -
But the screen is still on as I asked. :good:
So a second later (11 seconds) I turn on the lights and release the screen. (turns off unless you unlocked it)
try not to interact with your phone if you want to test it since you receive the sms or the missed call, cause then the lights wont start. (since you already saw the event)
it worked for me but .. 1st the led they are not bright ... you can't see them clearly .... and they just stay tuned ..if you can make them blink good luck ....
I think you should check https://play.google.com/store/apps/details?id=neldar.bln.control.free&hl=de.
The soft key driver in our kernel sources is drivers/input/touchscreen/coreriver_touchkey/
The app is incompatibel with our device, but maybe something similar would be possible
BLN control this application needs feature enabled in the kernel ... you need to path the corect driver to support it i tried it ... ... this project it is better it uses libs ... i think there is app it uses lib like this ... but it work just when the screen is on .. it kills when is off .. but this app it work ... the problem it is not bright .. and it needs blink ..
nanoteam said:
BLN control this application needs feature enabled in the kernel ... you need to path the corect driver to support it i tried it ... ... this project it is better it uses libs ... i think there is app it uses lib like this ... but it work just when the screen is on .. it kills when is off .. but this app it work ... the problem it is not bright .. and it needs blink ..
Click to expand...
Click to collapse
here is an example, how the support for the app is added, but our device uses a complete different touchkey diver
https://github.com/dmore70/kernel-GB-I9000/commit/d69303cae38bf1f6efe36aceab492d9bb8bc0ac3
BTW I found a way to increase the brightness of the keys, while the device is locked and blinking leds would kill our battery
I will try add a handler to execute
echo 255 > /sys/class/leds/button backlight/max_brightness
after the screen is off. probably since the brightness is 1,
it will allow me to play with brightness level. and simulate blinks. I will try if it works later.
As always feel free to edit the code yourself!
beastaki23 said:
I will try add a handler to execute
echo 255 > /sys/class/leds/button backlight/max_brightness
after the screen is off. probably since the brightness is 1,
it will allow me to play with brightness level. and simulate blinks. I will try if it works later.
As always feel free to edit the code yourself!
Click to expand...
Click to collapse
I found the brightness values in kernel, the thing you want to do won't change anything i guess
Sent from my GT-I9105P using XDA Premium 4 mobile app
they wont kill battery if make them blink every 7 or 8 sec ... blink for have second .. stay off for 8 sec .. and blink ..
you meant you must change them in the kernel .. may be you can override setting
nanoteam said:
they wont kill battery if make them blink every 7 or 8 sec ... blink for have second .. stay off for 8 sec .. and blink ..
you meant you must change them in the kernel .. may be you can override setting
Click to expand...
Click to collapse
I maybe found a way to support bnl control
Sent from my GT-I9105P using XDA Premium 4 mobile app
if it works tell me ......good luck
CoolDevelopment said:
I found the brightness values in kernel, the thing you want to do won't change anything i guess
Sent from my GT-I9105P using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Yep. tried it but it wont allow changes. not even with screen on.
So now I could succesfully build kernel, now I'm hanging with modding our lights.goldfish https://github.com/CyanogenMod/android_device_generic_goldfish/blob/cm-10.2/lights/lights_qemu.c like https://github.com/neldar/liblights_gt-i8190/blob/master/lights.c . Maybe anyone of you can help me ?
CoolDevelopment said:
So now I could succesfully build kernel, now I'm hanging with modding our lights.goldfish https://github.com/CyanogenMod/android_device_generic_goldfish/blob/cm-10.2/lights/lights_qemu.c like https://github.com/neldar/liblights_gt-i8190/blob/master/lights.c . Maybe anyone of you can help me ?
Click to expand...
Click to collapse
Where can we find our official's kernel light file? Can you upload it? propably it has different inputs than those.

notification fix

OK guys I hope this hasn't already been covered but here goes anyway. I have found this fix for notifications not arriving when doze is enabled. Iff you go into the particular app e.g what's app then into data usage you must select the following settings see pic below. then all the notifications will arrive straight away regardless of doze state.
sam00561 said:
OK guys I hope this hasn't already been covered but here goes anyway. I have found this fix for notifications not arriving when doze is enabled. Iff you go into the particular app e.g what's app then into data usage you must select the following settings see pic below. then all the notifications will arrive straight away regardless of doze state.
Click to expand...
Click to collapse
Yes that seems to be the problem. I had made a post months ago. It's very hidden feature by Lenovo and I think it's wrong to pre-restrict all background data. User should decide what to do.
I think they lenovo did it to block unnecessary data usage but i agree it is not needed and people are thinking their is something wrong with their phones.
Thanks for the tip
Thanks Sam, I saw this on the JJ review of Nougat. Is this for Nougat as my MM P2 settings don't look like the screenshot.
Sent from my Lenovo P2a42 using Tapatalk
Hi yes it is for Nougat the comment posted on JJs review regarding this fix was posted by me also.
Confusing settings these as the first one makes it look like enabling the "Restrict background data" option will disable background data, when in fact it does the opposite. You need to have both of these options enabled so the sliders are green, then you need to open Settings > Power Manager > Battery Optimization
Then you need to search for the apps that you need to fix notifications and change the option so it says "Don't optimize". Then the phone won't 'helpfully' close the app when the phone has been unused for a long time. This is why notifications are stopping.
precisely i agree quite confusing it took me a while i had to get a friend to send me whats app messages continuously untill i figured all this out but im glad i finally did.
If you make the changes to fix the notifications, shut down and power the phone back on rather than do a reboot. The settings don't seem to work until the phone has properly rebooted.
Is it worth noting that elsewhere it's stated that turning off doze altogether (using ADB) might be a saner option? Consensus seems to indicate it's basically a curse with little value, and that would certainly hold water in light of the battery capacity of the P2.
https://forum.xda-developers.com/lenovo-p2/help/regretting-purchase-t3611968
I think the following helps. Credit goes to JasonMR and manototh (Taken from oneplus.net forum)
JasonMR
KitKat
JasonMR, Nov 2, 2016 :
Guys, to avoid having to run the ADB command after each reboot follow these instructions (please note, the files should be downloaded to a PC and then transferred to your phone via USB otherwise they mess up sometimes):
You need to enable USB debugging mode in Developer options first
Download and install this apk and transfer it to your phones storage - https://drive.google.com/file/d/0BxD...w?usp=drivesdk
Then connect phone to PC and allow the drivers to install
Download and install ADB here - https://drive.google.com/file/d/0B0M...ljU2NPR0k/view
Go into the ADB folder, hold shift, right click and select "Open command prompt here"
Type the command: adb devices (now hit enter)
It should return your phones serial number is connected correctly
Run this command in ADB: adb -d shell pm grant com.adamioan.scriptrunner android.permission.DUMP (now hit enter)
Download this file and transfer it to your phones storage - https://drive.google.com/open?id=0Bx...VA4YmxGTS1OX3c
Open the SH Script runner app and tap the three dots in the top right corner, select "Load" and locate the file from teh previous step
Click the Circle button with the play sign at the top of the screen
You should see the message "Idle mode disabled" which means that Doze has now been disabled.
Whenever you reboot your phone, open the SH Script runner and the command will still be there, just click the play button to run the script again.
And that is it, two clicks to disable Doze after each reboot.
Full credit to manototh for putting this together originally.
Doze does not need disabling iff you follow my advice in the initial post i have tried and tested this and can confirm it works fully.
This is really frustrating. No matter what settings I use I still don't get notifications after a while. I don't want to go modifying my phone, can someone post a step by step if they have it working properly?
Spacedog79 said:
This is really frustrating. No matter what settings I use I still don't get notifications after a while. I don't want to go modifying my phone, can someone post a step by step if they have it working properly?
Click to expand...
Click to collapse
Follow my ordinal post and also go into battery optimisation and disable optimization for things like sms eggs what's app Facebook etc all the things you need notifications for should be disabled from sleep mode under battery optimization.
Like this
sam00561 said:
Like this
Click to expand...
Click to collapse
Yes thats exactly how I've done it. I've also tried every combination of settings under Apps for Unrestricted data usage.
And also the setting here
sam00561 said:
And also the setting here
Click to expand...
Click to collapse
Yep doesn't work either.
Perhaps your only option left is to try the disable doze app which has worked for many people but it's a paid app.
Just to update it does seem to be working properly now. I'm not 100% sure but I think turning the phone all the way off and on again instead of rebooting with the settings correct had the desired effect.

Themes / Apps / Mods Quick tip on adjusting screen saturation on rooted pixel

I always found stock pixel color saturation to be a bit washed out. I prefer the look of more saturated color palette. Even choosing "adaptive" color on display options is still not good enough for me.
If you're rooted and want to increase color saturation do the following:
Open any Android terminal with root capabilities, I personally use Termux.
Type "su" and hit enter to grant root privileges. I don't know if it's a necessary step, but I change the directory to the root of the phone by typing "CD /". Then I copy and paste the below code into the terminal. I personally set my "x.x" to 1.25. hit enter and it will automatically take effect. You can change the values at anytime afterwards to go higher or lower. Values will go back to stock after a reboot using this method, so if you don't like it, just reboot to go back to stock values.
"service call SurfaceFlinger 1022 f X.X" (x.x sets saturation up to 2.0)
I HAVE NOT TESTED THIS, but in the past I have used this code to permanently set the saturation level on boot:
Setprop persist.sys.sf.color_saturation X.X
using this, the saturation level will remain to the chosen value on boot. Again, I have not tested this on the pixel 7 Pro.
That's interesting as I also find the "adaptive" setting too washed out on Pixels.
I wonder if this could be used through a root app with more control over colors and such?
works - thank you!
Ghisy said:
That's interesting as I also find the "adaptive" setting too washed out on Pixels.
I wonder if this could be used through a root app with more control over colors and such?
Click to expand...
Click to collapse
I'm sure it could but that's beyond my capabilities lol l
Gotta wonder what effect this might have on...everything? Battery life...screen life...brightness level adjustments when on auto? YMMV
But what can we use after
"service call SurfaceFlinger 1022 f X.X" to disable if needed ?
Attinderkahlon said:
But what can we use after
"service call SurfaceFlinger 1022 f X.X" to disable if needed ?
Click to expand...
Click to collapse
I believe 1.0 is the stock value. So you can either enter the line again and replace whatever previous value you used with 1.0, or you could just reboot the device and it'll go back to the stock saturation settings.
jaseman said:
Gotta wonder what effect this might have on...everything? Battery life...screen life...brightness level adjustments when on auto? YMMV
Click to expand...
Click to collapse
It could have a negative effect on battery life....but I would guess its minimal. Been using a custom saturation value for 2 days now, no known issues.
I haven't checked yet but going by previous devices, there is probably a way to access other color modes using tasker. "boosted" has been taken away from the menu, my guess is its still there and can be accessed with tasker. I'll check it if i keep the phone.
Thank you for this, legit the only thing driving me crazy was the dull colors now it looks more like I wanted. You da man.
Glad I could help!
Dope. Going to give this a shot whenever I decide to root.
Now, has this always been a thing? If so, I wish I knew about it so I didn't have to use apps the entire time to tweak it to my liking.
Curiousn00b said:
Dope. Going to give this a shot whenever I decide to root.
Now, has this always been a thing? If so, I wish I knew about it so I didn't have to use apps the entire time to tweak it to my liking.
Click to expand...
Click to collapse
I've been using this mod since the OnePlus 6T....so it's been a thing for a while at least for me.
Has anyone tried this? Getting a Parcel Null error when I enter the code. Rooted. That "CD /" comes back as inaccessible too. It's probably me, but not able to get this to work as of now.
Unable to set up after boot, i get the setprop inaccessible
System is read-only for now. There's no rw mount mod so can't really edit build prop to set it on boot. We'll just have to wait for twrp or any system rw mount mod
xgerryx said:
Has anyone tried this? Getting a Parcel Null error when I enter the code. Rooted. That "CD /" comes back as inaccessible too. It's probably me, but not able to get this to work as of now.
Click to expand...
Click to collapse
I get parcell null response as well but it still works.
Also, I just tested changing directory in not necessary so you can skip the "CD /" part.
Trust me on this, run the script with a value of 0.5 and hit enter. Go to your home screen, open apps and scroll through your phone. Then open your emulator again, run the script with a value of 3.0 and hit enter. Then look about your phone it will look completely different. From there, just keep messing around with different values until you get one you like.
Pain-N-Panic said:
I get parcell null response as well but it still works.
Also, I just tested changing directory in not necessary so you can skip the "CD /" part.
Trust me on this, run the script with a value of 0.5 and hit enter. Go to your home screen, open apps and scroll through your phone. Then open your emulator again, run the script with a value of 3.0 and hit enter. Then look about your phone it will look completely different. From there, just keep messing around with different values until you get one you like.
Click to expand...
Click to collapse
Ok yes I'm seeing it now. Thanks for following up. It does change exactly what we're looking for. I bet you someone can make this into a little app or a magisk module.
xgerryx said:
Ok yes I'm seeing it now. Thanks for following up. It does change exactly what we're looking for. I bet you someone can make this into a little app or a magisk module.
Click to expand...
Click to collapse
Glad ya got it working! Yeah I'm sure it's possible, having to run the script everytime you boot is kind of annoying
I wish we could adjust the white balance. This screen is so yellow looking

Categories

Resources