Related
Hello. I have never written any software...so I cannot do it myself. I don't know whether it already exists or not....in case, I don't think it would be more than 5 minutes work for you people....
What I need is an application (one single .exe) which turns off the screen.
Why do I need this? I recently installed a voice clock (i run the .exe and the voice tells me the time in my earphone). The problem is that when i run the voice clock, the screens turns itself on...turning on also the 4 hardware buttons (i have a HTC TOUCH blackstone). The mobile is usually inside my jacket, in a pocket which is not really comfortable to reach...also because i have often backpacks, or luggage, or i am riding a bike and so on...that's why i just launch the application (voice clock) speaking in the microphone of the earphone set.
Result: i launch the application, screen and buttons turn on for one minute (after one minute there is the automatic switch off)....in that one minute EVERYTHING happens: calls start, application open, sms are being written....everything inside my pocket.
SO
it would be really helpful for me to have an .exe which turns my screen off. I would be then able to launch the voice clock, and then launch the black screen .exe....so that i can avoid that 'inside the jacket' business.
don't think i'm crazy...in my situation this thing is really helpful.
xnView Pocket creates slideshows in exe format... But what you want is to suspend your phone (just making the screen black doesn't work... LMAO).
Mortscript may be of help. Just adapt the following in notepad, save and change the file extension to .mscr. This will launch your clock, wait a minute and put your phone to sleep
Code:
Run("your_clock_exe_or_link_path_here") #you must keep the quotes
Sleep ( 60000 ) #this is 60 seconds but you probably don't need this much
PowerOff
If you need an exe file to lauch it just copy the "autorun.exe" inside the Mortscript setup folder to the same folder as the script, change the name to be the same as the script and assign the new exe to the button you want.
I seriously encourage you (and anyone else with a WinMo) to get familiar with Mortscritp. It's both easy (I'm not a coder either) and extremely useful.
Get QuickShutdown. When use this a long press on power button allows you 'slide to turn off the screen'. I find this useful for same problem as you - except with music player!
How do you run your voice clock without turning on the screen?
Is your voice clock launched every some time?
By the wayn what voice clock do you use? There might be a setting in this program to avoid turning on the screen...
@michoob
i have a voice clock called 'vasquez'. The voice quality is not that much...but i just have to run the exe (through clicking on it or through the voice command to the vasquez.exe) and i get the voice in the earphone (no applications popping up...just the voice. the setup is another .exe which i ran only once to set the right options).
The screen turns itself on whenever you activate the voice command. The clock doesn't have an option to turn off the screen right after the time has been said.
I'll try the solution given by frmariam ....doesn't seem bad, although i didn't really understand it. It looks a bit difficult, if i keep having problems (the ones i said in the first post...that is, everything happening inside my pocket then i'll try that solution.
try mylostblog's myLight. google it. it has this feature in menu where you can turn off screen. it's also a user friendly app to adjust the backlight.
i don't think i would be able to have a voice command to the SCREEN OFF command with that software (you need to click on something inside the menu). thanks anyway.
Ah, ok, so the problem is not directly related to your voice clock, but more to the fact that when you enable the voice command, the screen toggles on.
Which voice command software do you use?
Maybe you could find a way to avoid your voice command software to toggle on the screen?
Otherwise, the MortScript solution can be good, but I wouldn't use the PowerOff function which doesn't only turns off the screen, but actually suspend your device, so you might have unexpected behaviours. For instance, the voice command may not work if your device is suspended... I don't know.
So instead of the PowerOff function, I would rather use one of the solutions proposed here.
I've tried searching in the forums, but no luck..
I've installed CM6-v3.1 on my phone, and now it seems that the backlight on the pull-out-keyboard always is on? (as long as the phone's not at standby) It drains my battery.. Any ways to fix this?
Also, I wonder if it's possible to get the key-setup fixed for the pull-out-keyboard?
It's now in English, and I have an Norwegian phone..
Then I have 3more letters in my alphabet (æ-ø-å), which means I have some extra keys on it.. The keyboard is messed up with the signs, but not the letters and numbers.. f.inst. : my dot button (.) and the '':'' button now shows ''?'' and ''!'' ..
My ''æ'' button shows dot (.) and '':''...
See my point ? I think I just need the Original SE ''pull-out-keyboard'' file to replace the CM file? If, how do I get it?
Please answer my first question first, as that is more important to me
Thanks!
HanMedSverd said:
I've tried searching in the forums, but no luck..
I've installed CM6-v3.1 on my phone, and now it seems that the backlight on the pull-out-keyboard always is on? (as long as the phone's not at standby) It drains my battery.. Any ways to fix this?
Also, I wonder if it's possible to get the key-setup fixed for the pull-out-keyboard?
It's now in English, and I have an Norwegian phone..
Then I have 3more letters in my alphabet (æ-ø-å), which means I have some extra keys on it.. The keyboard is messed up with the signs, but not the letters and numbers.. f.inst. : my dot button (.) and the '':'' button now shows ''?'' and ''!'' ..
My ''æ'' button shows dot (.) and '':''...
See my point ? I think I just need the Original SE ''pull-out-keyboard'' file to replace the CM file? If, how do I get it?
Please answer my first question first, as that is more important to me
Thanks!
Click to expand...
Click to collapse
the keyboard light is a quick dirty fix coz we have bigger bugs to solve now i fixed it that way for now
and don't panic the led almost don't eat battery mike and i will look into it after fixing the bigger bugs
and please reflash make an backup in xRecovery flash se firmware back
then please copy the /syetem/usr folder and sent it to me (pm) and i will fix your keyboard (i thougt it was the same as swedish (try to flash that one first) if it dont work sent me your usr folder)
after you sent it you can place your floyo backup back
Owain
i have the same problem here.. Not just about killing battery owain, but it reduce our own visibility of the keyboard characters itself when we are on the bright room.. Maybe there's a generic fix that we can apply by ourself if that's quite easy for us?
Well anyway if it's easy to fix then i guess you must be already bundling it on the next version Thanks so much for the hard work.
hansip87 said:
i have the same problem here.. Not just about killing battery owain, but it reduce our own visibility of the keyboard characters itself when we are on the bright room.. Maybe there's a generic fix that we can apply by ourself if that's quite easy for us?
Well anyway if it's easy to fix then i guess you must be already bundling it on the next version Thanks so much for the hard work.
Click to expand...
Click to collapse
if you really wanna turn it of do this in root explorer
put a "0" in "/sys/devices/platform/msm_pmic_misc_led.0/brightness" file and save it now your led is off and if you want it on again just put a 1 or any number above 1 in the file it is quite simple lol
im trying to get it nice fixed in the CM settings but that kinda hard so when i fail at that i will try another way bash script i guess
owain94 said:
put a "0" in "/sys/devices/platform/msm_pmic_misc_led.0/brightness" file and save it now your led is off and if you want it on again just put a 1 or any number above 1 in the file it is quite simple lol
Click to expand...
Click to collapse
with Tasker and Locale Execute plugin, you can automate this task so that keyboard led turns on when keyboard is out and it turns off when not out
owain94 said:
Please reflash make an backup in xRecovery flash se firmware back
then please copy the /syetem/usr folder and sent it to me (pm) and i will fix your keyboard (i thougt it was the same as swedish (try to flash that one first) if it dont work sent me your usr folder)
after you sent it you can place your floyo backup back
Owain
Click to expand...
Click to collapse
Ok, I got a little confused in there.. Im really a noob so ;
* Reflash to CM again? And then make backup.
* Then flash to SE fw. and copy ''/syetem/usr'' (< u mean system right?)
* Then flash back to CM again, and w8 4 U fix 4 me?
(About the SWE. Keyb. : Sweden have 3 letters 2, but it's not the same symbol.. :S Then I'll probably get the key-setup right, but it will input the swedish letters?)
Thanks 4 the help! (I dont rlly care about the backlight, just wondered ^^)
P's, I did take backup in xRecovery b4 starting with CM (and thats the 2.1-update1 version..). Is it possible 2 find the file in the backup? or i can send u the backup? Then I wont have 2 reflash..
Also : When im gonna reflash, which program should I use 2 backup my apps ?
My keyboard : http://www.google.com/imgres?imgurl...ndsp=21&ved=1t:429,r:16,s:19&biw=1366&bih=625
drsood said:
with Tasker and Locale Execute plugin, you can automate this task so that keyboard led turns on when keyboard is out and it turns off when not out
Click to expand...
Click to collapse
Really ?
I tried it, but no chance that tasker detect the keyboard out event.
You did it ?
regs
Dominic
Edit :
Sorry, I am stupid, of course it works, I had to enable the task
just flashed the ''danish.zip'' works perfectly" ;D
TESTED and working like a charm...
with Tasker and Locale Execute plugin on the STATE Keyboard Out, executing echo "1" >> /sys/devices/platform/msm_pmic_misc_led.0/brightness and as exit task echo "0" >> /sys/devices/platform/msm_pmic_misc_led.0/brightness
starting from the above minimal procedure, you could customize as you want (else trigging from light intensity) the keyboard led behaviour...
respect
I have that same issue about that special bottom right button "àü" in Belgium, which had to show me a panel of symbols or could push it with another key to have a special letter like these "é è ë ê à ç"
it should normally be the same as the french keyboard (don't know if they have QWERTY or AZERTY keyboards tho)
liquidsk said:
TESTED and working like a charm...
with Tasker and Locale Execute plugin on the STATE Keyboard Out, executing echo "1" >> /sys/devices/platform/msm_pmic_misc_led.0/brightness and as exit task echo "0" >> /sys/devices/platform/msm_pmic_misc_led.0/brightness
starting from the above minimal procedure, you could customize as you want (else trigging from light intensity) the keyboard led behaviour...
respect
Click to expand...
Click to collapse
hello how to change /sys/devices/platform/msm_pmic_misc_led.0/brightness into 1 or 0???
im trying to do with rootexplorer but when i open this file via text editor it shows blank & after i changed the value & exit after saving its not changed means file remains blank..
please help?
liquidsk said:
TESTED and working like a charm...
with Tasker and Locale Execute plugin on the STATE Keyboard Out, executing echo "1" >> /sys/devices/platform/msm_pmic_misc_led.0/brightness and as exit task echo "0" >> /sys/devices/platform/msm_pmic_misc_led.0/brightness
starting from the above minimal procedure, you could customize as you want (else trigging from light intensity) the keyboard led behaviour...
respect
Click to expand...
Click to collapse
Not sure where to input these commands. Mind give me a simplistic step by step where to go to input these commands? thanks in advance!
ctalcant said:
Not sure where to input these commands. Mind give me a simplistic step by step where to go to input these commands? thanks in advance!
Click to expand...
Click to collapse
Make sure u have installed Tasker and Locale Execute plugin (from market)
after that just import the attached profile into tasker...
drsood said:
with Tasker and Locale Execute plugin, you can automate this task so that keyboard led turns on when keyboard is out and it turns off when not out
Click to expand...
Click to collapse
Please help me with this :
I don't want the backlight to be off.. I just want it to be off when the keyboard is in, and if it's out> I want it to turn off when not touched, and turn on as long as I use the buttons..
Think thats how the default in the 2.1-update1 SE fw was..
At least thats how it was on my phone
Working with locale plugin ... just one thing, every time I open or close physical keyboard, a notification appears, echo "x" >> .... on half of my screen, how to remove it ?
D4rKn3sSyS said:
Working with locale plugin ... just one thing, every time I open or close physical keyboard, a notification appears, echo "x" >> .... on half of my screen, how to remove it ?
Click to expand...
Click to collapse
u must have entered the command as "echo..........."
just add @ infront of the command and the notifications (toasts) should disappear e.g. "@ echo...."
drsood said:
u must have entered the command as "echo..........."
just add @ infront of the command and the notifications (toasts) should disappear e.g. "@ echo...."
Click to expand...
Click to collapse
Nice man thanks
keyboard light
Works perfect for me tasker+locale execute= problem solved. thanks.,..
widget
I'll be the first to admit that I'm a noob. But it seems to me that if you can switch it at runtime with a command it would be fairly easy to make a widget for the switching right?
That way you can manually select at any moment whether you want the light to be on or not. (Possibly working together with the solution above to automatically switch it off when the keyboard isn't out.)
In-deep-taskin'
JDRX said:
I'll be the first to admit that I'm a noob. But it seems to me that if you can switch it at runtime with a command it would be fairly easy to make a widget for the switching right?
That way you can manually select at any moment whether you want the light to be on or not. (Possibly working together with the solution above to automatically switch it off when the keyboard isn't out.)
Click to expand...
Click to collapse
In Tasker you have the ability to "link" the keyb-light-on command to the keyb-out state, aswell to "link" the keyb-light-off script to the keyb-in state (or as exit task)...
BUT
you could also make the command on + off on exit task (keyb-in) LINKED to a variable determined by an external condition (external LIGHT intensity):
in simple words:
hi tasker, i would like to have my keyboard backlight on when i slide out my physical qwerty but only ***IF*** the ambient light level is not enough to make me easily identify the buttons, then, please tasker, turn off the light when I close my qwerty if before you have turned it on.
To achieve this behaviour, just check the ***If*** box by editing the execute command in the created task (keyb-light-on when keyb-state=out) to set the If variable. Select as variable **Light level** (%LIGHT) and link it to a math **Condition Operator** like "less than" (<) then put the desired percentage of ambient light below which (in this case) the command keyb-light-on triggered by keyb-out state will get executed. Remember to also create an exit task with the keyb-light-off execute command (obviously without setting the **IF** variable).
Note:
On tasker, the first time you use the %LIGHT (light level variable) you should expose your device first a while in a dark place, then a while in a WELL lightened place. Do that in order to allow tasker to set properly the on-off border working conditions to internally understand light sensor datas
Hope that could help.
Any doubt --> post here
best regards,
respect!
Hello,
This is my first post on the forum and I am relatively new to programming on Android so please forgive my ignorance.
I own a Samsung Galaxy S3 and am trying to write a shell script that will simulate screen presses in a very rapid fashion. To do so, I stumbled across the "input tap" function from /system/bin/input and my script looks like this:
Code:
x=1
while [ $x -lt 10 ]
do
input tap 640 110
(( x++ ))
done
Anyway, the code works great in that it will tap the screen at location 640,100. However, each call to "input tap" takes almost a second to return. My script takes around 10 seconds to complete. However, I was hoping to find a way to speed up the call to "input tap". I am not sure if this is a limitation of my phone. Any suggestions would be greatly appreciated.
Thanks!
You can speed it up by changing:
Code:
input tap 640 110
Into:
Code:
input tap 640 110 &
And if you must wait until all touch events have been sent before proceeding you can add this at the end of the loop:
Code:
wait
So the final result would be this:
Code:
x=1
while [ $x -lt 10 ]
do
input tap 640 110 &
(( x++ ))
done
wait
But I honestly don't understand why it takes so long for a touch event to be sent. This limitation makes it impossible to automate testing of applications that require low latency of user-based input.
Edit: I probably should have explained. When you add
Code:
&
at the end of a command, you are telling the shell to run it "in the background" so your script continues even though the tap command has not returned yet. When you type
Code:
wait
at the end, you are asking the shell to pause until all the commands that you spawned in another thread have returned.
Hello everyone, I hope you guys can help me solve this issue
I change my Z2 DPI to 360, everything is fine except Incoming call interface when I get a call, the swipe to answer bar and the button don't fit the screen, I tried to use Per App settings module of Xposed but useless, can someone give me a solution to make these things fit the screen , thanks in advance!
thode1226 said:
Hello everyone, I hope you guys can help me solve this issue
I change my Z2 DPI to 360, everything is fine except Incoming call interface when I get a call, the swipe to answer bar and the button don't fit the screen, I tried to use Per App settings module of Xposed but useless, can someone give me a solution to make these things fit the screen , thanks in advance!
Click to expand...
Click to collapse
that should be an easy one with tasker, executing 'wm density xxx' whenever call comes in
(xxx stands for numeric dpi value)
and exit with 'wm density 360' when call ends
bgumble said:
that should be an easy one with tasker, executing 'wm density xxx' whenever call comes in
(xxx stands for numeric dpi value)
and exit with 'wm density 360' when call ends
Click to expand...
Click to collapse
Thank you for give me an idea but can you show me detail about the procedure to set that with tasker ?, I got the app but I don't know how to make a task as you said
thode1226 said:
Thank you for give me an idea but can you show me detail about the procedure to set that with tasker ?, I got the app but I don't know how to make a task as you said
Click to expand...
Click to collapse
On profile add App, select Phone, new task (name it), add shell, enter command 'wm density 424' (without quotes), add exit task (name it), add shell, enter command 'wm density 360'
Not exactly, but you'll figure it out.
Give feedback :good:
bgumble said:
On profile add App, select Phone, new task (name it), add shell, enter command 'wm density 424' (without quotes), add exit task (name it), add shell, enter command 'wm density 360'
Not exactly, but you'll figure it out.
Give feedback :good:
Click to expand...
Click to collapse
I've try as you said but when a call comes in, the screen still like above , i tried to check all service involved to phone, but nothing changes.
thode1226 said:
I've try as you said but when a call comes in, the screen still like above , i tried to check all service involved to phone, but nothing changes.
Click to expand...
Click to collapse
you may execute the script as root user.
Other than this I have no idea.
I've already execute the shell with root user, but I think the problem here is "Phone" app is incorrect, it must be another app, but anyway, thanks for your help
Not exactly what you want, but if you use 320dpi instead all apps works fine and adapt perfectly to the screen size.
Maybe try it and see if you like how it looks.
On profile add Status, select Calls (both incoming and outgoing), new task (name it), add shell, enter command 'wm density 424' (without quotes), add exit task (name it), add shell, enter command 'wm density 360'
Thanks to both of you, I decided come back to stock dpi and set specific app I want to 320dpi, that makes me breath easily
Anyone know a way to disable tap-to-click on remix os for pc?
Im also looking to disable it. It's almost unusable on my laptop's touchpad.
+1
Please add this feature.
You can disable the touch pad if you want to use a mouse
Sent from my on Z00A using XDA Labs
lollyjay said:
You can disable the touch pad if you want to use a mouse
Sent from my on Z00A using XDA Labs
Click to expand...
Click to collapse
Thanks, but I want to use the touchpad without accidentaly clicking every two seconds.
Hate the tap-to-click feature, it's the first thing I disable after a clean install in every laptop.
ignaciojn said:
Thanks, but I want to use the touchpad without accidentaly clicking every two seconds.
Hate the tap-to-click feature, it's the first thing I disable after a clean install in every laptop.
Click to expand...
Click to collapse
You might try this:
First, you need to identify the name of the input device used by the system:
• Start root terminal by typing (Alt/F1), You will get a prompt with a #
• Type getevent and press <ENTER>
• You will see a long list of devices scroll by
• Press the device you wish to deactivate (for example, I touched the touch pad) and note the event number (in my example it is 13)
• Type Ctrl/c to stop and you will get a prompt with a #
• Type getevent again and look at the list displayed; Look for the event number that matches your device (NOT THE DEVICE NUMBER!)
• You will see under it the device name in quotes (for example "SynPS/2 Synaptics TouchPad")
• Use the input device again to check you've found the right event number (my touchpad, for example, was 13)
• Press Ctrl/c again to stop
• At the prompt #, press Alt/F7 to exit the terminal Next, you need to modify the excluded-input-devices.xml file:
? In your root browser (I use SE File Explorer), navigate to root/system/etc/excluded-inputdevices.xml
• Open it with the native SE Text Editor; the file should end with something like this: <devices>
<device name="Power Button" />
</devices>
• Add your device between the top and bottom "</devices> as in my example for the touch pad
• Your modified file should end like this (again with my example): <devices>
<device name="Power Button" />
<device name="SynPS/2 Synaptics TouchPad"/>
</devices>
• Save the file and reboot.
• Test after boot.
Sent from my LENOVO 33476WU using XDA Labs
My Remix OS is not rooted. And rooting seems to need a reinstall. Don't really have the time right now.
I appreciate your help.
lollyjay said:
You might try this:
First, you need to identify the name of the input device used by the system:
• Start root terminal by typing (Alt/F1), You will get a prompt with a #
• Type getevent and press <ENTER>
• You will see a long list of devices scroll by
• Press the device you wish to deactivate (for example, I touched the touch pad) and note the event number (in my example it is 13)
• Type Ctrl/c to stop and you will get a prompt with a #
• Type getevent again and look at the list displayed; Look for the event number that matches your device (NOT THE DEVICE NUMBER!)
• You will see under it the device name in quotes (for example "SynPS/2 Synaptics TouchPad")
• Use the input device again to check you've found the right event number (my touchpad, for example, was 13)
• Press Ctrl/c again to stop
• At the prompt #, press Alt/F7 to exit the terminal Next, you need to modify the excluded-input-devices.xml file:
? In your root browser (I use SE File Explorer), navigate to root/system/etc/excluded-inputdevices.xml
• Open it with the native SE Text Editor; the file should end with something like this: <devices>
<device name="Power Button" />
</devices>
• Add your device between the top and bottom "</devices> as in my example for the touch pad
• Your modified file should end like this (again with my example): <devices>
<device name="Power Button" />
<device name="SynPS/2 Synaptics TouchPad"/>
</devices>
• Save the file and reboot.
• Test after boot.
Sent from my LENOVO 33476WU using XDA Labs
Click to expand...
Click to collapse
Thanks for your tip...I had thought it otherwise....Another help I want from you regarding disabling input devices....
I just installed RemixOS (April release) on my touch supported 11" Dell 3147. I had read it somewhere (tried to search for it but couldn't find it) that removing Power Button string will enable Power Button wake and lock just like in our Android Phones but removing it did not work on RemixOS...Also doesn't the device go in sleep (deep sleep as well) mode when not in use? I thought the Power Button tweak would achieve that functionality in our laptop..
thank you..
ssanjy said:
Thanks for your tip...I had thought it otherwise....Another help I want from you regarding disabling input devices....
I just installed RemixOS (April release) on my touch supported 11" Dell 3147. I had read it somewhere (tried to search for it but couldn't find it) that removing Power Button string will enable Power Button wake and lock just like in our Android Phones but removing it did not work on RemixOS...Also doesn't the device go in sleep (deep sleep as well) mode when not in use? I thought the Power Button tweak would achieve that functionality in our laptop..
thank you..
Click to expand...
Click to collapse
I have had no success in enabling the power button to sleep. I use Nova Launcher and the double tap to sleep works to initiate deep sleep.
Sent from my on Z00A using XDA Labs
lollyjay said:
I have had no success in enabling the power button to sleep. I use Nova Launcher and the double tap to sleep works to initiate deep sleep.
Click to expand...
Click to collapse
Sorry I don't know how to activate double tap to sleep.... Instead I just activated Nova action to lock screen...I hope it does it's job to put device into deep sleep.... Could you please tell me how to activate double tap to sleep?
Thanks
ssanjy said:
Sorry I don't know how to activate double tap to sleep.... Instead I just activated Nova action to lock screen...I hope it does it's job to put device into deep sleep.... Could you please tell me how to activate double tap to sleep?
Thanks
Click to expand...
Click to collapse
Same here I just set it to use double tap to activate
Sent from my on Z00A using XDA Labs
lollyjay said:
Same here I just set it to use double tap to activate
Sent from my on Z00A using XDA Labs
Click to expand...
Click to collapse
I couldn't recover it from sleep.... The device restarted
Edit: device did go to sleep but not in deep sleep i guess... Battery drained about 4% in about10 mins... So guess it's only stand by mode rather than sleep mode... i think if I keep my device in screen of mode for longer time it fails to wake up and rather restart....
Sent from my GT-I9100 using Tapatalk
Some time has passed... Did anyone come up with a solution reg. the original post, i.e. disabling tap to click? The latter makes using Remix OS on my Laptop a real pain. Which is a shame, because otherwise it works really great.