[TOOL][AOSP]Xperia z1's pen mode activation with pressure sensitivity - Xperia Z1 General

->Rename "clearpad_pen.idc.rar" to "clearpad_pen.idc"
->Just simply put clearpad_pen.idc in "system/usr/idc"
->set the permissios to rw-r-r
->activate pen mode by this thread or clearpad-controls(glove,pen,vibration)(import them in kernel adiutor custom controls)
For best experience use Sony Sketch app from play store
Tested on raschads Aicp 14
post your own sketches right here
file content:
Code:
# Device Type
touch.deviceType = touchScreen
# Pressure
touch.pressure.calibration = physical
touch.pressure.scale = 0.15
#Size
touch.size.calibration = area
touch.size.scale = 32.69
# Touch Filter
touch.filter.level = 2
touch.filter.path = /system/lib/touchfilter/tftype4.so
touch.filter.tftype4.Enabled = 1
touch.filter.tftype4.AssumedDelayFactorA = -11.71
touch.filter.tftype4.AssumedDelayFactorB = 12.53
touch.filter.tftype4.AssumedDelayFactorC = -0.81
touch.filter.tftype4.MaxSpeed = 0.052
touch.filter.tftype4.PositionFactorA = 0.2
touch.filter.tftype4.PStablePositionFactor = 0
touch.filter.tftype4.DirectivePriorityFactor = 0.9
touch.filter.tftype4.LatestSpeedWeight = 0.9
touch.filter.tftype4.GapResolver = 0.8
touch.filter.tftype4.OrgSize = 8
touch.filter.tftype4.AccSize = 8
touch.filter.tftype4.AddInitialAcc = 1
touch.filter.tftype4.DefaultInitialAcc = 0
touch.filter.tftype4.DragRangeSize = 3
touch.filter.tftype4.NoAccDistanceMin = 15.0
touch.filter.tftype4.NoAccDistanceMax = 650.0
touch.filter.tftype4.NoAccRate = 0.3

Related

Control Panel apps in WAD

How can I put Control Panel apps in WAD?
CreaTe A shotcut: \Windows\cplmain.cpl,4
(THIS IS FOR mEMORY)
Ecco l'elenco di tuttii settingi collegabili d un'icona sul dektop:
1 = Password
2= Owner Information
3= Power
4 = Memory
5 = About
7 = Screen
8 = Input
9 = Sounds & Notifications
10 = Remove Programs
11 = Menus
12 =Buttons
13 = Today
15 = Beam
16 = Clock & Alarms
17 = Network Cards
18 = Regional Settings
19 = Connections
20 = Phone
22 = Certificates
23 = Bluetooth
24 = Error Reporting
25 = GPS
Thanks a lot, man. I think I was blind or lack of sleep! It's all in Lakeridgesoftware forum.

How to send message from icon on the upper toolbar ?

We are using SHNOTIFICATIONDATA to show icon on the upper toolbar on Windows Mobile 5. But we can't find out how to send a message to our window when we click on the icon, without shoing any poop-up window.
Our code:
SHNOTIFICATIONDATA* pNotification = NULL;
HICON hIconn = NULL;
hIconn = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
pNotification = (SHNOTIFICATIONDATA*)malloc(sizeof(SHNOTIFICATIONDATA));
pNotification->dwID = ICON_ID;
pNotification->clsid = guidPPCAlertsApp; npPriority = SHNP_INFORM;
pNotification->csDuration = 10; hwndSink = m_hWnd; pszHTML =
pNotification->_T("<html><b>...</b></html>");
pNotification->hicon = hIconn;
pNotification->cbStruct = sizeof(SHNOTIFICATIONDATA); pszTitle =
pNotification->TEXT("Application name"); grfFlags = SHNF_STRAIGHTTOTRAY;
SHNotificationAdd( pNotification );
!??

InTheHand Bluetooth - Weird stream problems

I am currently working on my "SciLor's WiMoBlue". The new protocol is ready. Everything works fine, until I send much data at the same time.
For example if I try to send an image in that way:
Code:
Public Sub SendImage(ByVal Image As Bitmap, ByVal Position As Point, ByVal Format As ImageFormat)
Dim PosX, PosY, Width, Height As Byte()
Dim ImageStream As New IO.MemoryStream
Dim ImageLength As Integer
Dim ImageLengthBytes As Byte()
Dim ImageBuffer(MaxChunkSize - HeaderSize - 1) As Byte
PosX = BitConverter.GetBytes(Position.X)
PosY = BitConverter.GetBytes(Position.Y)
Width = BitConverter.GetBytes(Image.Width)
Height = BitConverter.GetBytes(Image.Height)
Image.Save(ImageStream, ImageFormat2ImagingFormat(Format))
ImageStream.Seek(0, SeekOrigin.Begin)
ImageLength = ImageStream.Length
ImageLengthBytes = BitConverter.GetBytes(ImageLength)
SendData(BuildCommand(BaseProtocol.Image, ImageProtocol.Initiate, CombineBytes(PosX, PosY, Width, Height, ImageLengthBytes)))
Thread.Sleep(2000)
Dim DataPos As Integer
For DataPos = 0 To ImageStream.Length - MaxChunkSize - HeaderSize - 1 Step MaxChunkSize - HeaderSize
ImageStream.Read(ImageBuffer, 0, MaxChunkSize - HeaderSize)
SendData(BuildCommand(BaseProtocol.Image, ImageProtocol.Data, ImageBuffer))
'WaitForNextChunk = True
'Do While WaitForNextChunk = True
'Loop
'Thread.Sleep(2000)
Next
ImageBuffer = New Byte(ImageLength - DataPos - 1) {}
ImageStream.Read(ImageBuffer, 0, ImageBuffer.Length)
SendData(BuildCommand(BaseProtocol.Image, ImageProtocol.End, ImageBuffer))
End Sub
SendData:
Code:
If Data.Length > MaxChunkSize Then
MsgBox("Data to long... " & vbNewLine & "SendSize:" & Data.Length & vbNewLine & "MaxSize:" & MaxChunkSize)
Else
If btClient.Connected = True And isRecieving = True Then
btStream.Write(Data, 0, Data.Length)
btStream.Flush()
End If
End If
Recieving Part:
Code:
While isRecieving = True
If btStream IsNot Nothing And btStream.DataAvailable = True Then
Try
Recieved = btStream.Read(myHeader, 0, myHeader.Length)
If myHeader(0) = HeaderIdentifier And myHeader(1) = OtherModeHeader Then
btStream.Read(myDataSize, 0, 2)
DataLength = BitConverter.ToInt16(myDataSize, 0)
myBuffer = New Byte(DataLength - 1) {}
Recieved = 0
Do Until Recieved = DataLength
If btStream.DataAvailable = True Then
Recieved += btStream.Read(myBuffer, Recieved, DataLength - Recieved)
End If
Loop
ExecuteCommand(myHeader(2), myHeader(3), myBuffer)
Else
Debug.WriteLine("WrongData")
Exit While
End If
Catch ex As Exception
Debug.WriteLine(ex.Message)
If Recieved = 0 Then
Exit While
End If
End Try
End If
End While
If I send the image, without Thread.Sleeps (huighe ones). The recieving stream gets weird. The gets btStream.DataAvailable = False forever. If I remove that ckeck, it hangs at the btStream.Read.
I also tried to fix that with waiting for the answer of the server, but the problem doesn't get solved.
Do you have any idea how to fix that problem?. In that speed the image sending is worthless
SciLor

[Q] Reduce wifi scan delays

Hi guys,
I'm currently working on a indoor positioning project. I'm using WiFi signals to do this. I've tested a couple of phones and tablets but they all have a different delay between the scans. This varies from 600ms to 6 seconds. I'm looking for a way to get the scans as fast as possible 2/3 or maybe 4 scans per second. Perhaps tweaking the roms for the devices, this is no problem at all but then I need to know what I need to tweak of course.
Thnx in advance,
flitjes
Try WiFi analyzer from the market. It has a sgetting to adjust the scan interval. Otherwise, the scan interval is typically set in build.prop
You could fiddle around with sysctl in the console to see if something changes it.
sysctl -a|grep wlan gives you a list of possible candidates.
Isnt this a build.prop edit?
Sent from my Desire HD using XDA App
pretty sure you will have to root, if you havent done so already...
i havent...
Hi guys, I've rooted my phone so that is not a problem. I'm going to try the things u guys sugessted.
I've tried these things but I'm still not progressing.
When I edit the build.prop it only changes the interval of scanning for accesspoints when no application is running.
The problem I'm facing is: My application can't scan fast enough. I'm only getting 2 scans a second. And I'm looking for about 10 scans a second.
Maby this has to be changed on driver level?
I've found out something more. I've switch roms a couple of times and did the measurement of the scanrate. Because of the results I can conclude that some romes scan faster then others. But can't find out why?
Hi,
I have exactly the same question than flitjes. Is someone found a solution ?
I noted a sampling of:
- 5.4s on Nexus 5X (up to 3.3s if i change the ROM)
- 3s on Nexus 5
- 0.6s on Nexus 4
It's a bit hard to use a 6s sampling for indoor positioning
Code:
[email protected]:/ # sysctl -a|grep wlan
net.ipv4.conf.wlan0.accept_local = 0
net.ipv4.conf.wlan0.accept_redirects = 1
net.ipv4.conf.wlan0.accept_source_route = 1
net.ipv4.conf.wlan0.arp_accept = 0
net.ipv4.conf.wlan0.arp_announce = 0
net.ipv4.conf.wlan0.arp_filter = 0
net.ipv4.conf.wlan0.arp_ignore = 0
net.ipv4.conf.wlan0.arp_notify = 0
net.ipv4.conf.wlan0.bootp_relay = 0
net.ipv4.conf.wlan0.disable_policy = 0
net.ipv4.conf.wlan0.disable_xfrm = 0
net.ipv4.conf.wlan0.force_igmp_version = 0
net.ipv4.conf.wlan0.forwarding = 1
net.ipv4.conf.wlan0.log_martians = 0
net.ipv4.conf.wlan0.mc_forwarding = 0
net.ipv4.conf.wlan0.medium_id = 0
net.ipv4.conf.wlan0.promote_secondaries = 0
net.ipv4.conf.wlan0.proxy_arp = 0
net.ipv4.conf.wlan0.proxy_arp_pvlan = 0
net.ipv4.conf.wlan0.route_localnet = 0
net.ipv4.conf.wlan0.rp_filter = 0
net.ipv4.conf.wlan0.secure_redirects = 1
net.ipv4.conf.wlan0.send_redirects = 1
net.ipv4.conf.wlan0.shared_media = 1
net.ipv4.conf.wlan0.src_valid_mark = 0
net.ipv4.conf.wlan0.tag = 0
net.ipv4.neigh.wlan0.anycast_delay = 100
net.ipv4.neigh.wlan0.app_solicit = 0
net.ipv4.neigh.wlan0.base_reachable_time = 15
net.ipv4.neigh.wlan0.base_reachable_time_ms = 15000
net.ipv4.neigh.wlan0.delay_first_probe_time = 5
net.ipv4.neigh.wlan0.gc_stale_time = 60
net.ipv4.neigh.wlan0.locktime = 100
net.ipv4.neigh.wlan0.mcast_solicit = 3
net.ipv4.neigh.wlan0.proxy_delay = 80
net.ipv4.neigh.wlan0.proxy_qlen = 64
net.ipv4.neigh.wlan0.retrans_time = 100
net.ipv4.neigh.wlan0.retrans_time_ms = 1000
net.ipv4.neigh.wlan0.ucast_solicit = 3
net.ipv4.neigh.wlan0.unres_qlen = 31
net.ipv4.neigh.wlan0.unres_qlen_bytes = 65536
sysctl: key 'net.ipv4.route.flush': Permission denied
net.ipv6.conf.wlan0.accept_dad = 1
net.ipv6.conf.wlan0.accept_ra = 2
net.ipv6.conf.wlan0.accept_ra_defrtr = 1
net.ipv6.conf.wlan0.accept_ra_mtu = 1
net.ipv6.conf.wlan0.accept_ra_pinfo = 1
net.ipv6.conf.wlan0.accept_ra_prefix_route = 1
net.ipv6.conf.wlan0.accept_ra_rt_info_max_plen = 0
net.ipv6.conf.wlan0.accept_ra_rt_table = -1000
net.ipv6.conf.wlan0.accept_ra_rtr_pref = 1
net.ipv6.conf.wlan0.accept_redirects = 1
net.ipv6.conf.wlan0.accept_source_route = 0
net.ipv6.conf.wlan0.autoconf = 1
net.ipv6.conf.wlan0.dad_transmits = 1
net.ipv6.conf.wlan0.disable_ipv6 = 0
net.ipv6.conf.wlan0.force_mld_version = 0
net.ipv6.conf.wlan0.force_tllao = 0
net.ipv6.conf.wlan0.forwarding = 1
net.ipv6.conf.wlan0.hop_limit = 64
net.ipv6.conf.wlan0.max_addresses = 16
net.ipv6.conf.wlan0.max_desync_factor = 600
net.ipv6.conf.wlan0.mtu = 1500
net.ipv6.conf.wlan0.ndisc_notify = 0
net.ipv6.conf.wlan0.optimistic_dad = 1
net.ipv6.conf.wlan0.proxy_ndp = 0
net.ipv6.conf.wlan0.regen_max_retry = 3
net.ipv6.conf.wlan0.router_probe_interval = 60
net.ipv6.conf.wlan0.router_solicitation_delay = 1
net.ipv6.conf.wlan0.router_solicitation_interval = 4
net.ipv6.conf.wlan0.router_solicitations = 3
net.ipv6.conf.wlan0.temp_prefered_lft = 86400
net.ipv6.conf.wlan0.temp_valid_lft = 604800
net.ipv6.conf.wlan0.use_oif_addrs_only = 1
net.ipv6.conf.wlan0.use_optimistic = 1
net.ipv6.conf.wlan0.use_tempaddr = 2
net.ipv6.neigh.wlan0.anycast_delay = 100
net.ipv6.neigh.wlan0.app_solicit = 0
net.ipv6.neigh.wlan0.base_reachable_time = 15
net.ipv6.neigh.wlan0.base_reachable_time_ms = 15000
net.ipv6.neigh.wlan0.delay_first_probe_time = 5
net.ipv6.neigh.wlan0.gc_stale_time = 60
net.ipv6.neigh.wlan0.locktime = 0
net.ipv6.neigh.wlan0.mcast_solicit = 3
net.ipv6.neigh.wlan0.proxy_delay = 80
net.ipv6.neigh.wlan0.proxy_qlen = 64
net.ipv6.neigh.wlan0.retrans_time = 100
net.ipv6.neigh.wlan0.retrans_time_ms = 1000
net.ipv6.neigh.wlan0.ucast_solicit = 3
net.ipv6.neigh.wlan0.unres_qlen = 31
net.ipv6.neigh.wlan0.unres_qlen_bytes = 65536
sysctl: key 'net.ipv6.route.flush': Permission denied
sysctl: key 'vm.compact_memory': Permission denied

[TWEAK] [MOD] [CM9/CM10/CM11 Only] Touchscreen Sensitive Tweak

Code:
[B]#include
/*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/[/B]
first you must know other way to tweak touchscreen
> touch.pressure.scale = 0.001 > system/build.prop
better is tweak module directly than make new line in build.prop
> mxt224_ts_input.idc > system/usr/idc/
for touchscreen module in CM9/CM10/CM11 we have sec_touchscreen.idc, and mxt224_ts_input.idc is same with that. but yeah you must know different devices is different module name.. ex : on p500 is touch_mcs6000.idc
I will provide you best way to tweak Touchscreen Sensitive on CM9/CM10/CM11
Below is Stock CyanogenMod 9/10/11 Touchscreen Module
blue text is line will tweaked
Code:
# Basic Parameters
touch.deviceType = touchScreen
touch.orientationAware = 1
# Touch Size
touch.touchSize.calibration = pressure
# Tool Size
# Driver reports tool size as an area measurement.
#
# Based on empirical measurements, we estimate the size of the tool
# using size = sqrt(22 * rawToolArea + 0) * 9.2 + 0.
touch.toolSize.calibration = area
touch.toolSize.areaScale = 22
touch.toolSize.areaBias = 0
touch.toolSize.linearScale = 9.2
touch.toolSize.linearBias = 0
touch.toolSize.isSummed = 0
# Pressure
# Driver reports signal strength as pressure.
#
# A normal thumb touch typically registers about 100 signal strength
# units although we don't expect these values to be accurate.
touch.pressure.calibration = amplitude
touch.pressure.source = default
[B][COLOR="Blue"]touch.pressure.scale = 0.01 #all device not same value[/COLOR][/B]
# Size
touch.size.calibration = normalized
# Orientation
touch.orientation.calibration = none
And below is Touchscreen Module already tweaked by me
Code:
# Basic Parameters
touch.deviceType = touchScreen
touch.orientationAware = 1
# Touch Size
touch.touchSize.calibration = pressure
# Tool Size
# Driver reports tool size as an area measurement.
#
# Based on empirical measurements, we estimate the size of the tool
# using size = sqrt(22 * rawToolArea + 0) * 9.2 + 0.
touch.toolSize.calibration = area
touch.toolSize.areaScale = 22
touch.toolSize.areaBias = 0
touch.toolSize.linearScale = 9.2
touch.toolSize.linearBias = 0
touch.toolSize.isSummed = 0
# Pressure
# Driver reports signal strength as pressure.
#
# A normal thumb touch typically registers about 100 signal strength
# units although we don't expect these values to be accurate.
touch.pressure.calibration = amplitude
touch.pressure.source = default
[B][COLOR="blue"]touch.pressure.scale = 0.001[/COLOR][/B]
# Size
touch.size.calibration = normalized
# Orientation
touch.orientation.calibration = none
I made a flashable zip for that..
this zip will delete
> touch.pressure.scale = 0.001 from build.prop
> mxt224_ts_input.idc from usr/idc
but also will backup your original to sdcard/Reincarnation_Engine
How to install :
Download zip from attachement
Reboot to recovery
install zip from sd card
done
If you found some problem with touchscreen
First Gonna try this

Categories

Resources