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

Search This thread

Hermantje

Senior Member
May 22, 2012
305
291
Groningen
hugehog.blogspot.com
Actually, I made a video about the Pen Mod the other day, and I'd like to know on which devices exactly it does and does not work. This thread has contradicting facts whether it works on the Z2 and Z3, and I'm not even sure about the Compact devices. I'd like to update the video description with what does and doesn't work, so it's clear once and for all.

So if y'all could tell me if it either works by default, needs the mod or simply doesn't work at all on your device, that'd be greatly appreciated :highfive:
 

Funkmasterchilla

Senior Member
May 13, 2014
452
128
Lorient
Actually, I made a video about the Pen Mod the other day, and I'd like to know on which devices exactly it does and does not work. This thread has contradicting facts whether it works on the Z2 and Z3, and I'm not even sure about the Compact devices. I'd like to update the video description with what does and doesn't work, so it's clear once and for all.

So if y'all could tell me if it either works by default, needs the mod or simply doesn't work at all on your device, that'd be greatly appreciated :highfive:

Well as far as I am concerned Pen Mod does NOT work on Z1C

D5503 UB Dstriker ROM KK.157
 
  • Like
Reactions: Hermantje

IgorEisberg

Senior Member
Jul 6, 2009
1,835
3,968
www.audiobudget.com
Pen mode works on Z1. It may seem like it works fine, but after a while you'll notice unpredictable behavior. The screen starts going crazy, clicking on random locations on its own. Obviously you could say that Z1 wasn't designed to be used with Pen mode.
 

migidid

Senior Member
Mar 30, 2010
205
30
Espoo
HI ! Cant seem to be able to Download the toggle app, blocked by AV... is it the same as we used in KK ? i still have it :)
 

Nedd_Ung

New member
Mar 9, 2016
2
0
Pls help!!:(((

I downloaded your app but it doesn't work,is it because I didn't root it?(How to root BTW) or is it because my phone is not compatible(My phone is Sony Xperia Z4 aka Song Xperia Z3+)
 

christoforos1980

New member
Mar 20, 2016
1
0
Z1 honami doenst work 5.1.1 lolipop , doesnt accept to edit file system/etc/hw_config.sh, says "cant save file", doesnt open app if press pen mode ico , for some reason now after installation system folder disappear,
 

Hermantje

Senior Member
May 22, 2012
305
291
Groningen
hugehog.blogspot.com
Z1 honami doenst work 5.1.1 lolipop , doesnt accept to edit file system/etc/hw_config.sh, says "cant save file", doesnt open app if press pen mode ico , for some reason now after installation system folder disappear,

It works just fine on my Xperia Z1 running 5.1.1 Lollipop (14.6.A.0.368). I'm not sure what you're doing wrong but it definitely still works on this Android version.
I even made a persistent notification toggle for the Pen Mod 'app' with Tasker, so I can toggle pen input quickly whatever I'm doing (that's a protip for y'all Tasker fans) :cool:
 

christophoros19980

New member
Mar 21, 2016
1
0
as i know sony has blocked this feature, but if the new apk file has avoid sony update, this is something that i dont know, btw With what app you have root your mobile ? i have root it with king root. Maybe the problem has to do with root. Thanks for reply.
 

mopserdak

New member
Dec 2, 2008
4
0
I have z1 6903 am on custom android 4.4.4 st ultimate v3 and app with root access worked for me. Have second glass screen protector and pen mode work with steel, copper, cable insulation, soft plastic (water bottle) but needed little more preasure, and glass. Option for editing pressure, and some on/off indicator will be lovely.
 

frans3q

Member
Aug 14, 2007
45
2
i cant change the value into "1"
1. i tried the app, didnt work.
2. tried using es note editor, edit it directly, didnt work, as soon as i saved it the value back to 0
3. add a init.d script using Kernel Adiutor
#!/system/bin/sh
chown system:system /sys/devices/virtual/input/clearpad/pen
echo 1 > /sys/devices/virtual/input/clearpad/pen
didnt work too. reboot, check the files, the value still 0
4. try edit the script into
#!/system/bin/sh
chown system:system /sys/devices/virtual/input/clearpad/pen
echo "1" > /sys/devices/virtual/input/clearpad/pen
or this one
#!/system/bin/sh
chown system:system /sys/devices/virtual/input/clearpad/pen
echo 1 > /sys/devices/virtual/input/input1/pen
didnt work too

is there any way to change the pen value into 1?
 

emmanu73

Member
Jul 10, 2017
5
0
I tried the app in my rooted xperia z1 compact with the original rom, modified the pen file from 0 to 1 and is not working.
 
Last edited:

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