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

Search This thread

danytrial

Senior Member
Nice, work perfect :D

:thumbup:

Enviado desde mi C6906 mediante Tapatalk
 

Attachments

  • uploadfromtaptalk1392755611427.jpg
    uploadfromtaptalk1392755611427.jpg
    57.9 KB · Views: 1,110

kantk20111

Senior Member
Feb 26, 2011
1,400
625
Wow...this is amazing. Like seriously, this is awesome! Why would Sony disable this feature?

I kinda wish it worked with my Wacom pen though..I feel like metal would scratch up my screen protector.
 

AndroPlus

Senior Member
Mar 13, 2013
1,898
4,156
Kyoto
androplus.org
Lenovo P11
Xiaomi Mix Fold 2
I update my app's toggle method, it uses "cat /sys/devices/virtual/input/clearpad/pen" now.
http://d-h.st/mZl

I recommend changing one value in /system/usr/idc/clearpad_pen.idc for more sensitivity.
With default settings, it made broken lines (due to screen not rsponed to touch) when I write something but 0.1 is fine for me.
Change
Code:
# Pressure
touch.pressure.scale = 0.2
to
Code:
# Pressure
touch.pressure.scale = 0.1
 
Last edited:
L

LeParkour012

Guest
Question. Will this work with CM11?

Sent from my Xperia Z1 using Tapatalk
 

funky0308

Inactive Recognized Themer
Aug 27, 2012
7,029
5,681
Osijek
I have been testing this for a few hours and I found I'm having problems with touchscreen sensitivity.

When I disabled this, everything went back to normal...

Someone could check that and maybe he'll find solution for touchscreen problems on Z1 (someone reported they have problems with sensitivity).

Sent from my C6903 using Tapatalk
 

acervenky

Inactive Recognized Contributor
Mar 25, 2012
2,326
4,945
Mumbai
POCO M2 Pro
Xiaomi Mi 10T / 10T Pro
I have been testing this for a few hours and I found I'm having problems with touchscreen sensitivity.

When I disabled this, everything went back to normal...

Someone could check that and maybe he'll find solution for touchscreen problems on Z1 (someone reported they have problems with sensitivity).

Sent from my C6903 using Tapatalk

Ya I had some problems with touchscreen not responding to touches,but after some time its normal again.
Btw,If you take a look at it closely,it makes our screen supersensitive kinda floating touch.(Had tried it)
Regards,
acervenky,
XPT
 

jxx17

Member
Aug 5, 2012
33
1
I really have no idea. Working with my gloves, so I think mod make it possible. But anyway your work is best. Please make knock-knock like in lg g2 or sony tablet z.

Wysłane z mojego C6903 przy użyciu Tapatalk
 

Top Liked Posts

  • There are no posts matching your filters.
  • 108
    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.
    https://drive.google.com/open?id=0B0j3VJ1Xp5N8ZWtYVlRRYWNPSWM

    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.
    https%3A%2F%2Fxdaforums.com%2Fimg.xda-cdn.com%2F3psQZNR6iMeCfoBbGC_5CsqK-qI%3D%2Fhttps%253A%252F%252Fxdaforums.com%252Fimg.xda-cdn.com%252F6Xmqv68Q_UGmFCvylGTImd3CaEE%253D%252Fhttp%25253A%25252F%25252Fi.imgur.com%25252FdhlBCBa.png

    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.
    7
    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??

    clearpad folder looks like this:
    dza0Wfz.png


    Please try my toggle app, this will change pen's 0 to 1.
    http://d-h.st/5az
    7
    And I get no credit for finding it, and adding it to XperiaSettings app first :crying: :crying:

    Haha. Just kidding.
    Nice to see someone wrote up all the instructions and got the tasker app for stock too. :cowboy: I was about to open a thread to mention this can be done on stock too, but I had work and forgot about it. Thank you for posting this.

    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:
    Code:
    #!/system/bin/sh
    chown system:system /sys/devices/virtual/input/clearpad/pen
    echo 1 > /sys/devices/virtual/input/clearpad/pen
    or add these lines at the bottom of hw_config.sh:
    Code:
    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.
    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
    Code:
    # Pressure
    touch.pressure.scale = 0.2
    to
    Code:
    # Pressure
    touch.pressure.scale = 0.1
    dhlBCBa.png


    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.
    4
    I update my app's toggle method, it uses "cat /sys/devices/virtual/input/clearpad/pen" now.
    http://d-h.st/mZl

    I recommend changing one value in /system/usr/idc/clearpad_pen.idc for more sensitivity.
    With default settings, it made broken lines (due to screen not rsponed to touch) when I write something but 0.1 is fine for me.
    Change
    Code:
    # Pressure
    touch.pressure.scale = 0.2
    to
    Code:
    # Pressure
    touch.pressure.scale = 0.1
    3
    this is a video I made showing the phone while using this mod! thank you so much! it is awesome !

    https://www.youtube.com/watch?v=bdXi07KpWHE