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...
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):
● Add these lines at the bottom of /system/etc/hw_config.sh:Code:#!/system/bin/sh chown system:system /sys/devices/virtual/input/clearpad/pen echo 1 > /sys/devices/virtual/input/clearpad/pen
● Use toggle appCode:chown system:system /sys/devices/virtual/input/clearpad/pen echo 1 > /sys/devices/virtual/input/clearpad/pen
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
toCode:# Pressure touch.pressure.scale = 0.2
works for me.Code:# Pressure touch.pressure.scale = 0.1
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.
Maybe. But not a high chance. The Z1 and higher kernals have pen modeWill this work with other android devices???
love to have this features... mine is oneplus one
Are you even serious?Doesn't work on lollipop.
Sent from my Xperia Z1 using XDA Free mobile app
Is this still working on lollipop? i cant make it work on my z1 running stock lollipop
Or download pimp my Z1 from playstore and it will enable glove and pen mode for you .
nice app you have there, will the CPU control of your app works with stock lollipop?
Or download pimp my Z1 from playstore and it will enable glove and pen mode for you .
That's weird: I could never get Glove Mode to work. Can you elaborate on how this works? Once you enable this setting, how can you test it?
With none of my (thin) gloves this setting ever worked. What am I doing wrong?
#!/system/bin/sh
chown system:system /sys/devices/virtual/input/clearpad/pen
echo 1 > /sys/devices/virtual/input/clearpad/pen
chown system:system /sys/devices/virtual/input/clearpad/pen
echo 1 > /sys/devices/virtual/input/clearpad/pen
# Pressure
touch.pressure.scale = 0.2
# Pressure
touch.pressure.scale = 0.1
I tried in hw and in init.d, but it doesn't work, also clearpad doesn't look like folder when i browse with root explorer it looks like file??
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, create init.d script:
or add these lines at the bottom of hw_config.sh:Code:#!/system/bin/sh chown system:system /sys/devices/virtual/input/clearpad/pen echo 1 > /sys/devices/virtual/input/clearpad/pen
Now you can use anything made of wood, metal or rubber.Code:chown system:system /sys/devices/virtual/input/clearpad/pen echo 1 > /sys/devices/virtual/input/clearpad/pen
I couldn't use a plastic pen, though...
[UPDATE]
I created pen mode enable/disable toggle app with Tasker.
http://d-h.st/mZl
I recommend changing one value in /system/usr/idc/clearpad_pen.idc for more sensitiveness.
Change
toCode:# Pressure touch.pressure.scale = 0.2
Code:# Pressure touch.pressure.scale = 0.1
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 AOKP for infomation.
# Pressure
touch.pressure.scale = 0.2
# Pressure
touch.pressure.scale = 0.1