The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Yoga 2 Pro - Made a script that reenables the touchpad toggle (F6) and automatically disable/enable the touchpad in slate mode

    Discussion in 'Lenovo' started by dn00, Apr 23, 2014.

  1. dn00

    dn00 Notebook Consultant

    Reputations:
    20
    Messages:
    105
    Likes Received:
    3
    Trophy Points:
    31
    Couldn't find a tool for this so I made one. For use with non-Lenovo, less buggy Synaptic drivers. =)
    Let me know if it works.

    .exe Download: https://docs.google.com/file/d/0B4sC2-vITmIXSVI5T0pHTTRZUE0/edit

    Autohotkey source
    Code:
    #SingleInstance force
    OnMessage(0x1A, "TOGGLE") ; Listen to WM_SETTINGCHANGE
    return
    
    TOGGLE(wParam, lParam)
    {
        
    	if (lParam = 4450664) ; message 4450664 is "ConvertibleSlateMode"
    	{
    		mode := DllCall("GetSystemMetrics", UInt, 0x2003) ; Get SM_CONVERTIBLESLATEMODE. 0 = slate mode, 1 = laptop mode
    
    		if (mode = 0) ; in slate mode
    		{
    			SynAPI:=ComObjCreate("SynCtrl.SynAPICtrl"), SynDev:=ComObjCreate("SynCtrl.SynDeviceCtrl")
    			SynAPI.Initialize
    			SynDev.Select(SynAPI.FindDevice(0,2,-1))
    			SynDev.SetLongProperty(268435825, State:=1) ; 1 means off here
    			return
    			
    		}
    		else if (mode = 1) ; in laptop mode
    		{
    			SynAPI:=ComObjCreate("SynCtrl.SynAPICtrl"), SynDev:=ComObjCreate("SynCtrl.SynDeviceCtrl")		
    			SynAPI.Initialize
    			SynDev.Select(SynAPI.FindDevice(0,2,-1))
    			SynDev.SetLongProperty(268435825, State:=0)
    			return
    		}
    	}
    }
    
    SC13F::TouchpadToggle() ; SC13F is keycode for touchpad toggle on keyboard. Not actually "F6"
    TouchpadToggle() {
    	SynAPI:=ComObjCreate("SynCtrl.SynAPICtrl"), SynDev:=ComObjCreate("SynCtrl.SynDeviceCtrl")
    	SynAPI.Initialize
    	SynDev.Select(SynAPI.FindDevice(0,2,-1))
    	SynDev.SetLongProperty(268435825, State:=(!SynDev.GetLongProperty(268435825) ? 1 : 0))
    }
     
    laser21, Diversion and duttyend like this.
  2. splus

    splus Notebook Consultant

    Reputations:
    8
    Messages:
    180
    Likes Received:
    89
    Trophy Points:
    41
    Sorry for being uninformed, but doesn't touchpad get disabled automatically when in non-laptop modes, and enabled again when in laptop mode?

    Or it doesn't when used with a certain version of Synaptic drivers? Which drivers are those, and what's the benefit over Lenovo stock ones?
     
  3. bradcsti

    bradcsti Newbie

    Reputations:
    0
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    5
    I just installed the synaptics driver yesterday, and just figured out that the touchpad stopped shutting off when i would switch to tablet mode. I did a google search and this post came up, so i gave your solution a shot, and it woorked for me!! So thank you very much sir!! The touchpad is turning off when i put the yoga into tablet mode and turning back off when i flip it back to laptop mode. You are Awesome.
     
  4. dn00

    dn00 Notebook Consultant

    Reputations:
    20
    Messages:
    105
    Likes Received:
    3
    Trophy Points:
    31
    That feature doesn't work when using a non-yoga 2 driver such as the latest Synaptic driver. The latest drivers are on the synaptic website and they are apparently much less buggy. When I had the stock yoga 2 drivers installed, the cursor would jump every time I lift my finger. That was a huge problem because I was never able to actually point at anything I intended. This actually happens with the latest drivers for me but it is very rare.
     
  5. laser21

    laser21 Notebook Consultant NBR Reviewer

    Reputations:
    69
    Messages:
    179
    Likes Received:
    0
    Trophy Points:
    30
    How do you install the synaptics driver? I get a prompt that it is not signed...
     
  6. dn00

    dn00 Notebook Consultant

    Reputations:
    20
    Messages:
    105
    Likes Received:
    3
    Trophy Points:
    31
  7. laser21

    laser21 Notebook Consultant NBR Reviewer

    Reputations:
    69
    Messages:
    179
    Likes Received:
    0
    Trophy Points:
    30
    awesome, thanks for the script!!!
     
  8. duttyend

    duttyend Notebook Enthusiast

    Reputations:
    0
    Messages:
    30
    Likes Received:
    7
    Trophy Points:
    16
    Dear dn00,

    First I want to thank you very much for your script, it is really needed to enjoy fully our beautiful Yoga.

    I confirm that the keyboard toggle to enable/disable the touchpad works very well with newer Synaptics drivers.

    However, I cannot get the script to automatically enable/disable it. I am using driver version 18.1.7.8 and also tried version 18.1.3.0 without success.

    I might think the problem would come from the "slate mode detection" because when I insert (see attached file) this script by iDrone ( Disable synaptics touchpad via a hotkey. - Support - AutoHotkey Community) into yours, nothing happens, whereas when I run it independently, it works (enable/disable touchpad). :(

    PD: keep in mind it is the second time I manipulate a script lol, so I could be totally wrong or have inserted it badly into yours. :)
     

    Attached Files:

  9. splus

    splus Notebook Consultant

    Reputations:
    8
    Messages:
    180
    Likes Received:
    89
    Trophy Points:
    41
    I thought the newest Synaptic driver was version 17.0.19?
    At least that's what it is on Synaptic's download page: Drivers – Synaptics

    The stock Y2P is v17.0.8.7 (from Aug 2013), and the stock for Yoga 2 (non-pro) is newer v17.0.14.71.

    EDIT:
    OK, I found the Synaptic driver version 18.1.7.8 at HP's site http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?cc=us&lc=en&softwareitem=ob-131896-1

    or the list of latest drivers here: http://dellwindowsreinstallationguide.com/driver-sets/dell-touchpad-drivers/

    How does it compare to stock Yoga 2 Pro touchpad driver?
     
  10. duttyend

    duttyend Notebook Enthusiast

    Reputations:
    0
    Messages:
    30
    Likes Received:
    7
    Trophy Points:
    16
    Yes, Synaptics don't seem to update the drivers on their webpage anymore.

    Regarding the comparison between the latest driver and the stock one, my experience is better accurateness (the cursor doesn't jump at all anymore) and more customization options.
     
  11. Diversion

    Diversion Notebook Deity

    Reputations:
    171
    Messages:
    1,813
    Likes Received:
    1,343
    Trophy Points:
    181
    I have a Yoga 2 (non-Pro) and I didn't even need this to get the touchpad toggle key to turn on/off the touchpad.. and if I go to tablet mode everything turns off.. However in tent/stand mode everything is still enabled so I'm not sure if this script actually checks for that or not.
     
  12. duttyend

    duttyend Notebook Enthusiast

    Reputations:
    0
    Messages:
    30
    Likes Received:
    7
    Trophy Points:
    16
    Friends,

    Just to let you know that, after unsuccessfully trying to use a Autohotkey script to disable touchpad in tablet mode, I've tried all the Yoga family (old and newest, all sizes) touchpad drivers newer than the original Yoga 2 Pro one.

    I've come to a successful result with the Yoga 2 11 Notebook latest driver version (18.0.7.24) that is available on Home - Lenovo (US) which works perfectly ! :thumbsup:

    The archive contains Elan and Synaptics drivers, moreover twice (for Win 8 and 8.1) so after uncompressing it, I only kept the Win 8.1 Synaptics v18 installation files and zipped them for further install.

    No more unprecise touchpad behavior and still auto disable when tablet mode (and keyboard hotkey functional) ! :)
     
  13. grimloktt

    grimloktt Notebook Enthusiast

    Reputations:
    0
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    5
    Does this have chiral scroll?
     
  14. espoyoga

    espoyoga Newbie

    Reputations:
    0
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    5
    Hi dn00,

    I tried your script program and it seems to work (I am now using the Synaptics driver from Toshiba). The only issue I have is that it only works right after I install it. Is there something different I have to do so that it automatically runs after I restart the computer, without reinstalling it each time? Thanks.
     
  15. Brad331

    Brad331 Notebook Enthusiast

    Reputations:
    27
    Messages:
    44
    Likes Received:
    32
    Trophy Points:
    26
    Thank you for this! I am using Windows 10 on my Yoga 2 Pro. The F6 hotkey works but the automatic switching doesn't. Does the state/mode detection depend on Lenovo Transition? I uninstalled Transition because it has no effect in Windows 10.
     
  16. Brad331

    Brad331 Notebook Enthusiast

    Reputations:
    27
    Messages:
    44
    Likes Received:
    32
    Trophy Points:
    26
    You mean the try icon and the app itself doesn't appear after reboot? Try putting the exe file in C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup .