Wednesday, July 14, 2010

NetBeans 6.9 and Lenovo TrackPoint in Windows 7

Problem
Recently I installed new NetBeans 6.9 on my Lenovo X61s and found that TrackPoint is not working for scrolling with middle button.

Solution
You need to find TrackPoint file tp4table.dat where programs mappings listed.
Under my Windows 7 Enterprise 32-bit I found it in C:\Program Files\Lenovo\TrackPoint\.
Use file search, if you have a trouble finding it there.
Now open file with write permission (if you non-privileged user, use admin account) and add following to the programs section.
; NetBeans
*,*,netbeans.exe,*,*,*,WheelStd,0,9

Don't mess with [AutoScrollTable] section at the end of the file were syntax goes like this
*,*,iexplore.exe,*,smooth
NetBeans fix should be inserted before auto scroll table part. Believe me, I tried that for two days asking myself a lot of "why this not working" :-)

To apply settings, open Windows Task Manager, find process named tp4serv.exe (PS/2 TrackPoint Daemon) and end it. As it run as your user, you don't need administrator to rerun it again. Go to C:\Program Files\Lenovo\TrackPoint\ and run tp4serv.exe again.
If that doesn't help to apply settings, try to restart Windows or check other related precesses: SynTPEnh.exe and SynTPLpr.exe; restart SynTPEnh.exe.

Tested on
Product Version: NetBeans IDE 6.9 (Build 201006101454)
Java: 1.6.0_21; Java HotSpot(TM) Client VM 17.0-b16
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)

More info
"Mouse wheel scroll" not working on Touchpads
Thinkpad Scrolling fixed for Safari and IntelliJ
Trackpoint Scrolling with Java
Google on tp4table.dat

Bonus
Firefox fix
; Mozilla Firefox
*,*,firefox.exe,*,*,MozillaWindowClass,WheelVkey,0,11

Other Java programs fix (if not works by defaults)
*,*,*,*,*,SunAwtFrame,WheelStd,0,9
*,*,*,*,*,SunAwtDialog,WheelStd,0,9
*,*,*,*,*,SunAwtCanvas,WheelStd,0,9
*,*,*,*,*,SunAwtFrame,WheelStd,0,9

Window names can be found with free AutoIt tool, kudos for tip to Andy.

No comments:

Post a Comment