yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Android Development] aznrogerazn:
For me the init.d script worked well, and the pen stylus function was enabled. However, I have observed a strange behavior that has occurred on the Xperia Z Ultra when I worked in a local telecom company: the touch screen would malfunction from time to time, rendering the screen unusable until turning the screen on again. Pencil and metallic objects work as stylus, and the over-sensitivity causing crazy touch input could be the reason why this function was not officially enabled by default. This is only my guess, though.

The sometimes unusable pen function and the recent touch screen problem could be related to the touch screen firmware. Perhaps they'll be addressed in further system updates... D:
[Xperia Z1 Android Development] kraken000:
ZR

Can anyone try and tell me that will this work on Xperia zr?
[Xperia Z1 Android Development] Levered:
Thanks...now i get xperia sp ultra....lol

:D
[Xperia Z1 Android Development] nevadasaga:
OUT of MIND.

I am really sorry. Maybe it looks weird, but can we "port" it to Xperia SP? it may be good to use it, so i can show off to my friend.:silly::eek:
[Xperia Z1 Android Development] championswimmer:
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. :svetius: 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.
[Xperia Z1 Android Development] zyclops1:
Yey!!!!! Draw a picture after 17 years omg ^_^ using this Pen mod. Really cool but its hard to draw on edges :( why is that??? :/
[Xperia Z1 Android Development] championswimmer:
The clearpad code is not very refined to be honest (and could be a reason it was disabled)

Inaccuracy in edges is something I have noticed too. I am trying to find out ClearPad 3000 series code in linux kernel trees with any recent commits. If there are any, I'll try to pull them in.

All those who are asking about Z. Right now I am not sure, but *maybe* that firmware also supports it. But the whole code for pen support will have to be backported which wont be easy-peasy as it depends on many header files.
[Xperia Z1 Android Development] robneymcplum:
Probably a really, really stupid question but......

Is the Z1 screen a different kind to any other type of screen on phones? IE, could this theoretically be done to other phones and screens?

Although, I kind of know the answer :(
[Xperia Z1 Android Development] lordriguez:
Hi everyone !!! Can this mod work over Xperia Z??

Envoyé de mon C6603 en utilisant Tapatalk
[Xperia Z1 Android Development] jjpro45:
Nice mod. I noticed that the touch screen actually reacts if you hover your finger very close to it. Is there a way to make the display even more sensitive? I wonder If we could get something like Samsungs Air view (Kinda feature I miss from TouchWiz) or is there a hardware limitation?
[Xperia Z1 Android Development] LLars_PL:
Very Very Very Nice! Many thanx!!!!! Working pretty nice! :)

Would also love even more sensivity! :D

Z1 C6903 Unlocked Boot, Ihackers ROM
[Xperia Z1 Android Development] Nemeziz 56th:
It awesome I can navigate without touch the Touchscreen, when you know how work a capacitive Touchscreen then you can expreiemt with the sensitivity

My Questions: When push up the sensitivity to limit, will would control the Touchscreen with our finger in 2-5 cm range?

It is damager? The Voltage will pushed?

Sent from awesome Z1
[Xperia Z1 Android Development] sammjoy:
Cant believe works perfect <3

thank you so much its very easy to use <3
[Xperia Z1 Android Development] R@mi:
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
[Xperia Z1 Android Development] code01:
hi sir.. i just read this, im little confuse,

where is hw_config? hahaha.. im search via explore i didnt find it,

and what its init.d? i must create file then i save named init.d and inside i type like first page?

soury soury...
[Xperia Z1 Android Development] funky0308:
He_config is in the system/etc folder (be very careful there, only add those lines at the end and save)

Download toggle app from OP and that should be it (restart device, of course)
[Xperia Z1 Android Development] mety333:
yes give us hope and hopefully someone can make it happen! (:
[Xperia Z1 Android Development] code01:
thanks..

so the step is:

1. i must create manually file name : init.d script in /system/etc/init.d (requires init.d support)

and i must type first code on page one.

2. i go to hw_config then i add 2nd code in below code.

3. i install apk togle.

4. restart.

im i right bro. correct me if i wrong
[Xperia Z1 Android Development] funky0308:
I'm not sure but I think hw_config and toggle app will be enough.

If you edit hw_config, I don't think you need to add init.d.

Try without init.d and if failed then edit init.d
[Xperia Z1 Android Development] buzlightyear85:
Edit: I found the solution of my problem http://xdaforums.com/showthread.php?p=50662238#post50662238
[Xperia Z1 Android Development] olokos:
Dude, you're awesome. I typed this message with a pencil!!! Unbelievable! Love you! :)

Wysłane z mojego C6903 przy użyciu Tapatalka
[Xperia Z1 Android Development] AlphaBravo:
Xperia SP

Plz port it to Xperia SP too if Possible :P
[Xperia Z1 Android Development] guybrush2099:
It works perfectly on Z1 simply installing the apk with the easy enabler/disabler icon :good:
[Xperia Z1 Android Development] code01:
Yup.. itsworking now.. thanks bro..
[Xperia Z1 Android Development] BLEK0TA:
No way for non rooted dev?
[Xperia Z1 Android Development] southsideweezy:
no root....no pencil....no fair

I'd just like to point out T-Mobile can eat it for putting me thru this.....like...I got a whole thing of pencils mocking me on my desk....ugh...i just want root ;( Great job though Devs... this is what its all about!
[Xperia Z1 Android Development] naheel azawy:
On my tablet z I couldn't find pen eco or anything about pen, does that mean it's impossible to work with me?
[Xperia Z1 Android Development] olokos:
I don't think so. It was originally made for Z Ultra which holds the same board as the Z1 so somebody here guessed that it may also work for the Z1 or somebody could've found this in the phone files. I might be wrong though, but I think that I'm correct.

[MENTION=5169444]RyokoN[/MENTION]

I found out that after you use pencil or pen the actual touch seems to be registered a bit to the right from the actual tap point. Do you think that it's fixable? That's propably why it doesn't work flawlessy on the edges.
[Xperia Z1 Android Development] ThibaultAnd:
I also noticed that :/ I personally think that since it was meant for Xperia Z Ultra, the screen is not calibrated for using a pen on Z1 screen's. I searched for screen calibration app but I didn't any... Is there any way to calibrate our screen ?
[Xperia Z1 Android Development] AndroPlus:
Can you try editing /system/usr/idc/clearpad_pen.idc

# Size (Not tuned yet)
touch.size.scale = 32.69

to

# Size (Not tuned yet)
touch.size.scale = 22.69

or something lower than 32.69?

Settings for glove mode have settings to change X and Y position, but there's no more settings for pen...

# Glove Mode
touch.gloveMode.deflatePressure = 1
pointercontroller.hover1.filename = /system/somc/touch/images/big_hover.png
pointercontroller.hover1.hotSpotX =250
pointercontroller.hover1.hotSpotY =250
pointercontroller.touch1.filename = /system/somc/touch/images/big_touch.png
pointercontroller.touch1.hotSpotX = 250
pointercontroller.touch1.hotSpotY =250
[Xperia Z1 Android Development] olokos:
I'll do this right now and post back.

I tried to use the glove mode, but it didn't work for me at all. Did it work for you? O_O

---------- Post added at 04:02 AM ---------- Previous post was at 03:49 AM ----------

Nope, it's pretty similiar. I've even changed that value to 10.69, but it looks like nothing was changed. :/
[Xperia Z1 Android Development] algarues:
question regarding mod

Hello everyone, I would like to ask something before buying a z1

Once you enable the pen mod does it also imply that palm rejection is enabled too?

that is is it possible to write with the stylus while laying your hand on the screen?

Has anyone tried on the z1 the stylus for the z ultra? If yes, how did it feel?

thanks a lot
[Xperia Z1 Android Development] olokos:
Nope, you can touch the screen aswell as with a stylus.

Wysłane z mojego C6903 przy użyciu Tapatalka
[Xperia Z1 Android Development] drakic:
i have installed apk, and it works ok. only thing to mention and to ask is, my pressure scale was set to 0.0074, should i set it to 0.1 or left to 0.0074?

problem solved, edited wrong text file
[Xperia Z1 Android Development] algarues:
I am rooted and I also have tasker installed but I cannot install your apk

when I tap on it I get the installation screen but I can tap only on cancel, install does not work.....
[Xperia Z1 Android Development] AndroPlus:
Make sure you are not running overlay apps such as BatteryMix and enable Unknown sorces
[Xperia Z1 Android Development] olokos:
Any chance for calibrating it except for that file ryo?

Wysłane z mojego C6903 przy użyciu Tapatalka
[Xperia Z1 Android Development] JohnnyBravo-sobeast:
Does this work on xperia z?
[Xperia Z1 Android Development] algarues:
Thank you for your help,

In the end I decided to enable or disable it via 2 scripts that I launch using the scripter utility from rom toolbox.

It works

Anyway here is what my impression are:

1. when pen mode is enabled the display becomes a 1-point touch screen, that is if you touch the screen before laying your pen or finger, any other touch following it is undetected

this also mean that if you lay your hand on the screen first, the stylus touching it or your finger will not be detected

the question is whether this is the same behaviour on the ultra,

because if the ultra is still multitouch with pen mode enabled and if the screen technology is the same of the z1, then there is still some unknown setting to tinker with, which might also improve writing performance

2. I noticed that without changing the screen sensitivity, the writing efficiency changes based on the # of the lead of a pencil, so your mileage may vary depending on the "stylus" that you use

3. I tried today to test some "professional" styluses such as adonit jot pro or similar, but I couldn' t because the shop where I went did not have any available to test before hand for buyers

I also asked if I could test the Ultra stylus, but when the shop assistant opened the box with me, we realized that the stylus (at least) in germany is not sold with the phone.

It would be interesting to test the pen mode on the z1 with either the ultra stylus or an adonit and see how good it goes

Does anybody in this forum have the chance to do something like that and let us know?

---------- Post added at 01:08 AM ---------- Previous post was at 12:21 AM ----------

I found a couple of videos

This is the sony-made stylus for the ultra

http://www.youtube.com/watch?v=LMZD3qvinRA

In this italian video it is also said that it can write with a pencil without lead, more importantly it shows that while accepting pen input, the ultra still is multitouch, so maybe additional seetings have to be changed or maybe some software might be ported from the ultra to the z1

http://www.youtube.com/watch?v=buYLYzM1HGY

this other video shows a comparative test with different "styluses"

http://www.youtube.com/watch?v=GnxRxtm1H9c
[Xperia Z1 Android Development] BLiapis:
The apk worked wonders, cheers bud! Me likey!
[Xperia Z1 Android Development] algarues:
I found out that I could not install your app because i had easy eyes running while trying it

disabling it make the "install" button usable

By the way I noticed that if you change the touch sensitivity setting to 0.1 in clearpad_pen.idc

then the system rewrites it back to 0.2 after a while

How can it be permanently changed?
[Xperia Z1 Android Development] LSD DREAMER:
Correct me if I'm wrong. You can't use this if you still have the screen protector on
[Xperia Z1 Android Development] crusnikmachine:
Screen protector should not be an issue unless its super thick (1mm+?) , which would also make normal use worse.

100% working with my glass m 0.2mm protector, which i would highly recommend since i wrote this with a key which might make some surfaces unhappy :D

(This is the coolest thing ever!!)
[Xperia Z1 Android Development] aooga:
You can. It's meant to be used like that.
[Xperia Z1 Android Development] zaidx:
Can I use with xperia s?
[Xperia Z1 Android Development] olokos:
If you replaced your screen with Z1 screen then of course, you can.

Wysłane z mojego C6903 przy użyciu Tapatalka
[Xperia Z1 Android Development] LaizyJumper:
At least it does not seem to work with Z1 Compact. The (kernel) device is there but it does not seem to react on changes 0->1->0

It's probably just a different panel (I have AOU). Maybe it works with JDI?
[Xperia Z1 Android Development] IgorEisberg:
Doesn't work for me on C6902...
[Xperia Z1 Android Development] dodimo:
Thanks pal works like a charm ;)
[Xperia Z1 Android Development] olokos:
It worked perfectly with just the toggle app on stock rooted 4.4

Wysłane z mojego C6903 przy użyciu Tapatalka
[Xperia Z1 Android Development] mnsk:
I am using the toggle app on stock 4.4.2 but it seems after a while the pen mode

stops working, either i have to touch the screen again with the finger or keep touching

it with the pen to make it work again. Any help?
[Xperia Z1 Android Development] LLars_PL:
+1 to upper post - worked very well at first but since some time its not that smooth and good anymore. Stock based Rom 4.3

Wysłane z mojego C6903 przy użyciu Tapatalka
[Xperia Z1 Android Development] olokos:
Ryo - I tried to get it working without the app so it would work straight after booting, but nope. Phone acts like nothing happened.

I'm running Monx's rom 5.01 which is 4.4

Take a look at the file.

Wysłane z mojego C6903 przy użyciu Tapatalka
[Xperia Z1 Android Development] pranavthombare:
sorry to go offtopic, but can this mod work on xperia sp??
[Xperia Z1 Android Development] olokos:
No

Wysłane z mojego C6903 przy użyciu Tapatalka
[Xperia Z1 Android Development] mikerosas:
Great, this worked just fine.

Stock ROM 4.4.2

ROOT

14.3.A.0.757

:good::good::good::good:
[Xperia Z1 Android Development] kundil12:
can i just install the APK you give?

or still need to do editing init.d files?
[Xperia Z1 Android Development] puppet13th:
AUO/JDI was IPS panel,and have nothing to do with pen mode.it's look like Z1 Compact have same digitizer as Z1.

Z1 Compact uses Synaptic Clearpad too.

Only have clearpad.idc

We have pen in sys too

I have test the pen mode,but it was not working properly

I have ASF + Nillkin tempered glass.
[Xperia Z1 Android Development] algarues:
Sometimes pen mode works perfectly for days

then all of a sudden it starts to be buggy and you get only garbles even if you have the highest screen sensitivity

then it gets back to fully working

I thought it could depend on the shape on the pencil and bought the sony stylus for consistancy, but it still happens now and then.....

is it only me?
[Xperia Z1 Android Development] ffp.:
The app didn't worked. I installed and when i open nothing happens.

I could make it work changing the value in pen from 0 to 1, but i think it changes back at restart. And I would like to turn on/off whenever i want..
[Xperia Z1 Android Development] kumbangdesa:
Any chances this mod is available for Z2 too?
[Xperia Z1 Android Development] tracer123:
doesn't work on xperia z1 4.4.4 with nillkin h+ galss ;)
[Xperia Z1 Android Development] Geoffxx:
I just tried it and it does work using APK (I have Nilkin glass)

Only metal so far I don't have a pencil
[Xperia Z1 Android Development] andylai0923:
I know that why some people can't use this function now.

You should have turned on the glove mode!!
[Xperia Z1 Android Development] tracer123:
any metal works without this mod ;)
[Xperia Z1 Android Development] REALslik:
Yeah I really wonder does the z2 have it? Cuz if the z3 has it I'm sold. Otherwise the Note 4 it is.
[Xperia Z1 Android Development] AndroPlus:
Actually Z2 already supports pen.

If you want to disable, you have to create custom kernel...
[Xperia Z1 Android Development] REALslik:
Are you for real? I always thought it didn't. Do you think the z3 will have it?
[Xperia Z1 Android Development] AndroPlus:
I think Z3 also have it since Sony promotes their stylus pen.

http://www.xperiablog.net/2014/03/0...put-also-see-steadyshot-stabilisation-demoed/
[Xperia Z1 Android Development] ffp.:
How do the app work? Just install and open? I installed and nothing happens when i open it..
[Xperia Z1 Android Development] rb69:
Z2 supports pen mode? I dont see any option to enable it. Yes Pencil works perfect - but on xperia or google keyboard I dont see toggle to use pen mode todo free hand text inputs...:confused:
[Xperia Z1 Android Development] AndroPlus:
Unfortunately, pen mode on Z2 is always enabled and it causes gohst touch on some devices.

I could reduce gohst touch by modding kernel, but I couldn't find how to disable pen mode...
[Xperia Z1 Android Development] EeJay:
Sorry, I quoted so that I could copy the text to enable pen mode and accidentally pressed the submit button in the process.. My bad
[Xperia Z1 Android Development] =JKT=:
DAKOTA! Is that Mr. Saturn in the OP?!
[Xperia Z1 Android Development] mamatkool:
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...;)
[Xperia Z1 Android Development] RJASSI21:
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?
[Xperia Z1 Android Development] macdonx:
Xperia Z3

Will this work on Xperia Z3?
[Xperia Z1 Android Development] AndroPlus:
Yes, it will work since I found pen file on Z3 D6603 using Sony Remote Device Lab.

All "clearpad" devices has pen file.
[Xperia Z1 Android Development] old_art:
Will this work with other android devices???

love to have this features... mine is oneplus one
[Xperia Z1 Android Development] JustPlayingHard:
Maybe. But not a high chance. The Z1 and higher kernals have pen mode
[Xperia Z1 Android Development] algarues:
Could it be possible to "echo" some other parameters so that finger touch is disabled when pen mode is on and vice versa?
[Xperia Z1 Android Development] Emrul:
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
[Xperia Z1 Android Development] krrishvaid:
Doesn't work on lollipop. :(
[Xperia Z1 Android Development] olokos:
Are you even serious?
[Xperia Z1 Android Development] sfex3best:
Just tested on the Xperia z3 but it doesn't seem to work.

It does have the clearpad pen file but for some reason it just doesn't activate.

I tried manually too changing the 0 to 1 but nope even if I change it to 1 and click save it ends up turning back to 0.
[Xperia Z1 Android Development] zhane0513:
Is this still working on lollipop? i cant make it work on my z1 running stock lollipop
[Xperia Z1 Android Development] zyclops1:
Yep working for me
[Xperia Z1 Android Development] zhane0513:
it's working now, i used the apk, i dont know why the script didnt work for me though
[Xperia Z1 Android Development] NexusGTS:
Or download pimp my Z1 from playstore and it will enable glove and pen mode for you .
[Xperia Z1 Android Development] zhane0513:
nice app you have there, will the CPU control of your app works with stock lollipop?
[Xperia Z1 Android Development] NexusGTS:
yes . it is working and you can change individual governatours for ich core of the cpu
[Xperia Z1 Android Development] jonke11:
Its much easier to use Pimp My Z1
[Xperia Z1 Android Development] Hermantje:
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?
[Xperia Z1 Android Development] NexusGTS:
i don't know m8 . I just enabled the glowe mode and pen mode and both are working , i didn't do anything :)
[Xperia Z1 Android Development] Hermantje:
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.

[YOUTUBE]UTGFILLtuj0[/YOUTUBE]

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:
[Xperia Z1 Android Development] Funkmasterchilla:
Well as far as I am concerned Pen Mod does NOT work on Z1C

D5503 UB Dstriker ROM KK.157
[Xperia Z1 Android Development] ace_apr27:
The toggle app isn't working for me.

Running BlissPop (5.1) on a OnePlus One.

Has anyone managed to get this to work on the OPO? Is it even compatible?
[Xperia Z1 Android Development] IgorEisberg:
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.
[Xperia Z1 Android Development] Rozamar:
Anyone had luck with Z3 ot tablet Z with lollipop?

Sent from my D6603
[Xperia Z1 Android Development] migidid:
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 :)
[Xperia Z1 Android Development] Nedd_Ung:
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+)
[Xperia Z1 Android Development] christoforos1980:
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,
[Xperia Z1 Android Development] Hermantje:
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:
[Xperia Z1 Android Development] christophoros19980:
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.
[Xperia Z1 Android Development] mopserdak:
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.
[Xperia Z1 Android Development] sfex3best:
Is this possible with z5 premium?
[Xperia Z1 Android Development] frans3q:
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

didnt work too. reboot, check the files, the value still 0

4. try edit the script into

or this one

didnt work too

is there any way to change the pen value into 1?
[Xperia Z1 Android Development] vjluvanee:
It's working awesome, by using my 3.5mm jack
[Xperia Z1 Android Development] vato4001:
here is pen_mode_4 thanks to Andro Plus :)

http://www94.zippyshare.com/v/l0wTe8LR/file.html

:)