Difference between revisions of "Talk:UltraNav"

From ThinkWiki
Jump to: navigation, search
(T40 without UltraNav: remove irrelevant number)
 
(4 intermediate revisions by 4 users not shown)
Line 19: Line 19:
 
You will need to reboot (actually restart both X11 and HAL, but reboot is easier at that point) before it takes effect.
 
You will need to reboot (actually restart both X11 and HAL, but reboot is easier at that point) before it takes effect.
 
--[[User:Tonko|Tonko]] 00:18, 14 February 2009 (UTC)
 
--[[User:Tonko|Tonko]] 00:18, 14 February 2009 (UTC)
 +
 +
== Script for switching state of TouchPad and TrackPoint ==
 +
 +
{{HINT|A suggestion.}}
 +
{{key|Fn}}{{key|F8}} can run {{cmduser|untranav.sh toggle}}
 +
 +
untranav.sh
 +
<pre>
 +
#!/bin/bash
 +
TRACKPOINT_NAME="trackpoint"
 +
TRACKPOINT='TPPS/2 IBM TrackPoint'
 +
TOUCHPAD_NAME="touchpad"
 +
TOUCHPAD='SynPS/2 Synaptics TouchPad'
 +
 +
Usage()
 +
{
 +
    echo "usage: ${0/*\/} status [device]"
 +
    echo "      ${0/*\/} enable [device]"
 +
    echo "      ${0/*\/} disable [device]"
 +
    echo "      ${0/*\/} toggle [device]"
 +
    echo "device: $TRACKPOINT_NAME"
 +
    echo "        $TOUCHPAD_NAME"
 +
    echo "toggle order: 1) $TRACKPOINT_NAME enable"
 +
    echo "                $TOUCHPAD_NAME disable"
 +
    echo "              2) $TRACKPOINT_NAME disable"
 +
    echo "                $TOUCHPAD_NAME enable"
 +
    echo "              3) $TRACKPOINT_NAME disable"
 +
    echo "                $TOUCHPAD_NAME disable"
 +
    echo "              4) $TRACKPOINT_NAME enable"
 +
    echo "                $TOUCHPAD_NAME enable"
 +
    exit 1
 +
}
 +
 +
GetState()
 +
{
 +
    echo $(/usr/bin/xinput list-props "$1" | grep "Device Enabled" | cut -f2 -d:)
 +
}
 +
 +
Status()
 +
{
 +
    case "$1" in
 +
"$TRACKPOINT")
 +
    DEVICE="$TRACKPOINT_NAME"
 +
;;
 +
"$TOUCHPAD")
 +
    DEVICE="$TOUCHPAD_NAME"
 +
;;
 +
    esac
 +
 +
    if [ $(GetState "$1") = "1" ]; then
 +
STATUS="enabled"
 +
    else
 +
STATUS="disabled"
 +
    fi
 +
   
 +
    echo -e "$DEVICE: $STATUS"
 +
}
 +
 +
SetState()
 +
{
 +
    /usr/bin/xinput set-int-prop "$1" "Device Enabled" "8" "$2"
 +
}
 +
 +
Enable()
 +
{
 +
    SetState "$1" 1
 +
}
 +
 +
Disable()
 +
{
 +
    SetState "$1" 0
 +
}
 +
 +
Toggle()
 +
{
 +
    if [ $(GetState "$1") = "1" ]; then
 +
STATE=0
 +
    else
 +
STATE=1
 +
    fi
 +
   
 +
    SetState "$1" "$STATE"
 +
}
 +
 +
[ $# -gt 2 ] && Usage
 +
 +
case "$1" in
 +
    "status")
 +
COMMAND="Status"   
 +
    ;;
 +
    "enable")
 +
COMMAND="Enable"
 +
    ;;
 +
    "disable")
 +
COMMAND="Disable"
 +
    ;;
 +
    "toggle")
 +
COMMAND="Toggle"
 +
if [ -z "$2" ]; then
 +
    if [ $(GetState "$TRACKPOINT") = "1" -a $(GetState "$TOUCHPAD") = "1" ]; then
 +
        SetState "$TRACKPOINT" 1
 +
        SetState "$TOUCHPAD" 0
 +
    elif [ $(GetState "$TRACKPOINT") = "1" -a $(GetState "$TOUCHPAD") = "0" ]; then
 +
        SetState "$TRACKPOINT" 0
 +
        SetState "$TOUCHPAD" 1
 +
    elif [ $(GetState "$TRACKPOINT") = "0" -a $(GetState "$TOUCHPAD") = "1" ]; then
 +
        SetState "$TRACKPOINT" 0
 +
        SetState "$TOUCHPAD" 0
 +
    else
 +
        SetState "$TRACKPOINT" 1
 +
        SetState "$TOUCHPAD" 1
 +
    fi
 +
    exit
 +
fi
 +
    ;;
 +
    *)
 +
Usage
 +
    ;;
 +
esac
 +
 +
case "$2" in
 +
    "$TRACKPOINT_NAME")
 +
$COMMAND "$TRACKPOINT"
 +
    ;;
 +
    "$TOUCHPAD_NAME")
 +
$COMMAND "$TOUCHPAD"
 +
    ;;
 +
    "")
 +
$COMMAND "$TRACKPOINT"
 +
$COMMAND "$TOUCHPAD"
 +
    ;;
 +
    *)
 +
    Usage
 +
esac   
 +
</pre>
 +
 +
==2-finger scrolling==
 +
''Info here: http://ubuntu-ky.ubuntuforums.org/showthread.php?t=1603657''
 +
 +
==Issues==
 +
I noticted that when i'm moving the cursor with the touchpad a annoying ZZZZZCCCCHHHHHHHHHHHH-sound comes from the laptop.
 +
This happends only when on battery. Discussion about the issue:
 +
* [http://forum.notebookreview.com/archive/index.php/t-154034.html notebook review]
 +
 +
== T40 without UltraNav ==
 +
 +
The 14.1-inch T40-family was the last generation of T-series that can be configured without a UltraNav touchpad.  From the Hardware Maintenance Manual, you will find "Palm rest assembly without touch pad (14.1-in.) P/N 91P8399".  Marked on the actual plastic part, I found more numbers.  I hope these numbers will help others find these uncommon parts.
 +
 +
IBM P/N 41V9153
 +
IBM ASM 41V9154
 +
Striked-out: IBM P/N 32P4253; IBM ASM 32P4251
 +
 +
--[[User:Numeric|Numeric]] 19:24, 3 December 2011 (CET)

Latest revision as of 20:18, 3 December 2011

Is there a reliable way to turn off the touchpad and the lowermost buttons, but leave the other functions (trackpoint and three buttons above the pad) not tampered with? Thanks for input!

Update: Nevermind, I just found the BIOS-option to disable it :D

- colo


Yes there is with the very latest distributions like Fedora 10 with updates applied create a file like this:

/etc/hal/fdi/policy/disable-touchpad.fdi

<match key="info.product" string="SynPS/2 Synaptics TouchPad">
 <merge key="input.x11_options.TouchpadOff" type="string">1</merge>
</match>

You will need to reboot (actually restart both X11 and HAL, but reboot is easier at that point) before it takes effect. --Tonko 00:18, 14 February 2009 (UTC)

Script for switching state of TouchPad and TrackPoint

Hint:
A suggestion.

FnF8 can run $ untranav.sh toggle

untranav.sh

#!/bin/bash
TRACKPOINT_NAME="trackpoint"
TRACKPOINT='TPPS/2 IBM TrackPoint'
TOUCHPAD_NAME="touchpad"
TOUCHPAD='SynPS/2 Synaptics TouchPad'

Usage()
{
    echo "usage: ${0/*\/} status [device]"
    echo "       ${0/*\/} enable [device]"
    echo "       ${0/*\/} disable [device]"
    echo "       ${0/*\/} toggle [device]"
    echo "device: $TRACKPOINT_NAME"
    echo "        $TOUCHPAD_NAME"
    echo "toggle order: 1) $TRACKPOINT_NAME enable"
    echo "                 $TOUCHPAD_NAME disable"
    echo "              2) $TRACKPOINT_NAME disable"
    echo "                 $TOUCHPAD_NAME enable"
    echo "              3) $TRACKPOINT_NAME disable"
    echo "                 $TOUCHPAD_NAME disable"
    echo "              4) $TRACKPOINT_NAME enable"
    echo "                 $TOUCHPAD_NAME enable"
    exit 1
}

GetState()
{
    echo $(/usr/bin/xinput list-props "$1" | grep "Device Enabled" | cut -f2 -d:)
}

Status()
{
    case "$1" in
	"$TRACKPOINT")
	    DEVICE="$TRACKPOINT_NAME"
	;;
	"$TOUCHPAD")
	    DEVICE="$TOUCHPAD_NAME"
	;;
    esac

    if [ $(GetState "$1") = "1" ]; then
	STATUS="enabled"
    else
	STATUS="disabled"
    fi
    
    echo -e "$DEVICE: $STATUS"
}

SetState()
{
    /usr/bin/xinput set-int-prop "$1" "Device Enabled" "8" "$2"
}

Enable()
{
    SetState "$1" 1
}

Disable()
{
    SetState "$1" 0
}

Toggle()
{
    if [ $(GetState "$1") = "1" ]; then
	STATE=0
    else
	STATE=1
    fi
    
    SetState "$1" "$STATE"
}

[ $# -gt 2 ] && Usage

case "$1" in
    "status")
	COMMAND="Status"    
    ;;
    "enable")
	COMMAND="Enable"
    ;;
    "disable")
	COMMAND="Disable"
    ;;
    "toggle")
	COMMAND="Toggle"
	if [ -z "$2" ]; then
	    if [ $(GetState "$TRACKPOINT") = "1" -a $(GetState "$TOUCHPAD") = "1" ]; then
	        SetState "$TRACKPOINT" 1
	        SetState "$TOUCHPAD" 0
	    elif [ $(GetState "$TRACKPOINT") = "1" -a $(GetState "$TOUCHPAD") = "0" ]; then
	        SetState "$TRACKPOINT" 0
	        SetState "$TOUCHPAD" 1
	    elif [ $(GetState "$TRACKPOINT") = "0" -a $(GetState "$TOUCHPAD") = "1" ]; then
	        SetState "$TRACKPOINT" 0
	        SetState "$TOUCHPAD" 0
	    else
	        SetState "$TRACKPOINT" 1
	        SetState "$TOUCHPAD" 1
	    fi
	    exit
	fi
    ;;
    *)
	Usage
    ;;
esac

case "$2" in
    "$TRACKPOINT_NAME")
	$COMMAND "$TRACKPOINT"
    ;;
    "$TOUCHPAD_NAME")
	$COMMAND "$TOUCHPAD"
    ;;
    "")
	$COMMAND "$TRACKPOINT"
	$COMMAND "$TOUCHPAD"
    ;;
    *)
    Usage
esac    

2-finger scrolling

Info here: http://ubuntu-ky.ubuntuforums.org/showthread.php?t=1603657

Issues

I noticted that when i'm moving the cursor with the touchpad a annoying ZZZZZCCCCHHHHHHHHHHHH-sound comes from the laptop. This happends only when on battery. Discussion about the issue:

T40 without UltraNav

The 14.1-inch T40-family was the last generation of T-series that can be configured without a UltraNav touchpad. From the Hardware Maintenance Manual, you will find "Palm rest assembly without touch pad (14.1-in.) P/N 91P8399". Marked on the actual plastic part, I found more numbers. I hope these numbers will help others find these uncommon parts.

IBM P/N 41V9153
IBM ASM 41V9154
Striked-out: IBM P/N 32P4253; IBM ASM 32P4251

--Numeric 19:24, 3 December 2011 (CET)