Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Enable Pen Mode - Any pen or pencil works as stylus!

OP AndroPlus

26th August 2014, 08:45 PM   |  #121  
mamatkool's Avatar
Member
Flag Kuala Lumpur
Thanks Meter: 4
 
42 posts
Join Date:Joined: Feb 2013
Try this on MIUI V5 4.4.4 and you know what happen? It works great. I'm typing this message using a pencil. Nice work dev...
2nd September 2014, 12:26 AM   |  #122  
Senior Member
Thanks Meter: 32
 
361 posts
Join Date:Joined: Oct 2013
More
Can this work on xperia z2 tablet? I got the apk and get toast notification saying enabled and disabled but tried with pencil didnt work is it just pen?
3rd October 2014, 07:45 AM   |  #123  
Junior Member
Thanks Meter: 0
 
11 posts
Join Date:Joined: Oct 2010
Xperia Z3
Quote:
Originally Posted by RyokoN

AOKP introduced pen mode for Z1 and I could enable it on stock ROM!
Xperia Z Ultra can use the pen or pencil made of wood or metal as stylus, but Z1's screen also supports it and Sony disabled it for some reason.

root is needed to enable this.

To enable pen mode, there's three methods.
One of them is enough.
● Create init.d script in /system/etc/init.d (requires init.d support):

Code:
#!/system/bin/sh
chown system:system /sys/devices/virtual/input/clearpad/pen
echo 1 > /sys/devices/virtual/input/clearpad/pen
● Add these lines at the bottom of /system/etc/hw_config.sh:
Code:
chown system:system /sys/devices/virtual/input/clearpad/pen
echo 1 > /sys/devices/virtual/input/clearpad/pen
● Use toggle app
I created pen mode enable/disable toggle app with Tasker.
http://d-h.st/mZl

Now you can use anything made of wood, metal or rubber.
I couldn't use a plastic pen, though...

I recommend changing one value in /system/usr/idc/clearpad_pen.idc for more accuracy.
Change
Code:
# Pressure
touch.pressure.scale = 0.2
to
Code:
# Pressure
touch.pressure.scale = 0.1
works for me.

In /sys/devices/virtual/input/clearpad/,
there is "grove" but I could only show circle with pen and I couldn't use with glove.
http://i.imgur.com/RibpIAi.png

Thanks championswimmer for finding this.

Will this work on Xperia Z3?
3rd October 2014, 10:54 AM   |  #124  
AndroPlus's Avatar
OP Senior Member
Thanks Meter: 1,228
 
557 posts
Join Date:Joined: Mar 2013
Donate to Me
More
Quote:
Originally Posted by macdonx

Will this work on Xperia Z3?

Yes, it will work since I found pen file on Z3 D6603 using Sony Remote Device Lab.
All "clearpad" devices has pen file.
9th October 2014, 04:49 PM   |  #125  
Member
Malaysia
Thanks Meter: 6
 
77 posts
Join Date:Joined: Mar 2013
Will this work with other android devices???
love to have this features... mine is oneplus one
9th October 2014, 05:07 PM   |  #126  
JustPlayingHard's Avatar
Senior Member
Flag Coventry
Thanks Meter: 305
 
996 posts
Join Date:Joined: Jul 2013
More
Quote:
Originally Posted by old_art

Will this work with other android devices???
love to have this features... mine is oneplus one

Maybe. But not a high chance. The Z1 and higher kernals have pen mode
17th October 2014, 09:55 PM   |  #127  
Senior Member
Thanks Meter: 14
 
161 posts
Join Date:Joined: Feb 2011
Could it be possible to "echo" some other parameters so that finger touch is disabled when pen mode is on and vice versa?
18th October 2014, 06:09 AM   |  #128  
Emrul's Avatar
Senior Member
Flag Chittagong
Thanks Meter: 20
 
319 posts
Join Date:Joined: Dec 2009
More
Thx a lot Bro. Great mode.

Tried adding asked 2 lines in hw and installing pen mode apk. Working perfectly with Metal and Pencil. But not working with pen.

Z1, 4.4.4 rooted stock
Last edited by Emrul; 18th October 2014 at 06:23 AM.
21st December 2014, 08:03 AM   |  #129  
krrishvaid's Avatar
Senior Member
Flag Ambala
Thanks Meter: 52
 
202 posts
Join Date:Joined: Jun 2012
More
Doesn't work on lollipop.

Sent from my Xperia Z1 using XDA Free mobile app

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes