Page 1 of 169 1231151101 ... LastLast
Results 1 to 10 of 1688

Thread: HOW TO: Set up the HP TX2z and Dell XT & XT2 (N-trig digitizer) in Ubuntu

  1. #1
    Join Date
    Nov 2008
    Beans
    9,635
    Distro
    Ubuntu 12.04 Precise Pangolin

    HOW TO: Set up the HP TX2z and Dell XT & XT2 (N-trig digitizer) in Ubuntu

    Lucid (10.04), Maverick (10.10), Natty (11.04), Oneiric (11.10), Precise (12.04), & pre-alpha Quantal

    Note: Tannalv reports the HP Slate 500 netbook "works" in pre-alpha Quantal with multi-touch support. The video chipset is supported. A custom .conf file needs to be added to the user xorg.conf.d to enable multitouch support. See below. Also see the now closed HP Slate 500 thread.
    Note: I am not aware of anyone setting up a Fujitsu Lifebook T580 yet, so no idea what the impact of version 3.5 DuoSense technology is.

    A Call for Testers (6-26-11) for Rafi's new MT hid-ntrig.ko. It has several important new features, see post #1545 for more details.

    Last Updated: June 6, 2012

    Sources
    The " HOWTO setting up ubuntu 8.10 intrepid on the HP tx2z tablet pc" thread, posts #1 (by glurgle), and #72 (by exophobe) here: http://ubuntuforums.org/showthread.php?t=1038898
    Rafi Rubin's site: http://ofb.net/~rafi/latitude_xt.html
    Ubuntu Multitouch wiki.
    Canonical Launchpad Multitouch page.
    ENAC Multitouch page.


    Ubuntu Release Specific Notes
    Precise, Oneiric, Natty, & Maverick
    The N-trig works "out of the box" provided you have updated the N-trig firmware to at least the 2.239 software bundle (containing the 4.6.5.8.5 firmware; see Miscellaneous Notes below). The stylus is on the Wacom driver and touch on the evdev driver. See 1) Oneiric, Natty, & Maverick below.

    Lucid
    The N-trig will work out of the box in Lucid (maybe depending on your firmware version(?)). You should have stylus and probably single finger touch. To get better function and multi-touch consider patching the hid-ntrig.c with one of the new available patches (preferably the 5-4-10 one in Miscellaneous Notes below) and then compiling it to get a hid-ntrig.ko (the N-trig usb kernel module/driver). Described in the Lucid step 1) below.

    That takes care of the usb part but you also need a X driver. You can clone the xf86-input-wacom git repository for a newer version than the default 0.10.5 version, see Lucid 1 c) below. The version of xf86-input-wacom in Lucid is package "xserver-xorg-input-wacom (1:0.10.5-0ubuntu2)" with the source being xf86-input-wacom 0.10.5 from the LWP. We are using a new xorg.conf developed for Rafi's new patches or the modified 10-wacom.conf to use the evdev X driver for touch as below.


    Miscellaneous Notes
    Multi-touch in Maverick Meerkat (10.10): See ginn in 1) Maverick a) below. Also see the Ubuntu Multitouch wiki and the Canonical Multitouch site on Launchpad. For some more background see the Canonical Blog and the Phoronix articles "Canonical Comes Up With Its Own Multi-Touch Framework" and "Introducing The X.Org Gesture Extension".

    Latest hid-ntrig.ko patch or full hid-ntrig.c source code: The 5-4-10 version is at post #977. A cleaned up replacement for the previous (2010_04_27) version by Stephane Chatty and Rafi Rubin. Instructions for installing it are in "1) Lucid: Compiling the 2010_05_04 hid-ntrig.ko... a)" below.

    Currently Ayuthia recommends the 2.239 software bundle, containing the 4.6.5.8.5 firmware. This newest firmware version is available for the HP and the Dell's at their sites. [The 32-bit version is not available at the HP site, it is at the N-trig site: HP 32-bit 2.239 software bundle]. Install in Windows. It is the stablest so far and with Rafi Rubin's new hid-ntrig.ko reports 4 fingers instead of one finger like the Win7 rc did. This should fix the issues where the earlier patches do not work well with the Win7 firmware (the 2.184 firmware from HP or the 2.172 for the Dell's). They do work with the earlier Win7 RC (v. 2.59) or Vista firmware. There is a table of N-trig firmware versions at the ENAC site. Ayuthia describes the behavior of various firmware in post # 1145.

    Rafi Rubin has provided linux firmware/mode tools. In addition he has made calib.c easier to use by including in the tarball a makefile and run script. See post #1073 & post #1179 . Hopefully this will allow us to not only report the correct firmware but possibly standardize firmware to simplify set up. Calibration is also discussed at the Ubuntu Multitouch wiki in Calibration Ntrig. This is calibration as in "degaussing" the N-trig digitizer, i.e. eliminating noise, not as in X,Y coordinates calibration.

    ================================================== ======================

    1) pre-alpha Quantal:
    To select multitouch instead single finger touch for the HP Slate create a .conf file called 52-ntrig.conf in /etc/X11/xorg.conf.d. You may have to create the xorg.conf.d directory. Use the following two snippets as the contents of the .conf file:
    Code:
    Section "InputClass"
            Identifier "N-Trig Touchscreen"
            MatchIsTouchscreen "on"
            MatchProduct "N-Trig Touchscreen"
            Driver "evdev"
            Option "Ignore"  "on"
    EndSection
    
    Section "InputClass"
            Identifier "N-Trig MultiTouch"
            MatchIsTouchscreen "on"
            MatchProduct "N-Trig MultiTouch"
            Driver "evdev"
    EndSection
    * tested by tannalv on post #1609.
    Use:
    Code:
    gksudo gedit /etc/X11/xorg.conf.d/52-ntrig.conf
    ================================================== ======================

    1) Precise, Oneiric, Natty, & Maverick:

    a) Win7 updated firmware (4.6.5.8.5 in the 2.239 software bundle) and multitouch ("N-Trig MultiTouch")
    Provided you have updated the N-trig firmware with the 2.239 software bundle (containing the 4.6.5.8.5 firmware; see above) you'll see "N-Trig MultiTouch" in your 'xinput --list' output. The N-trig digitizer will work "out of the box" with the stylus on the Wacom driver and touch on the evdev driver. You won't need to modify anything. However single finger touch will not be available to you in Maverick. I assume this has been fixed in Natty.

    If you want to try out some multitouch gestures use ginn ("Gesture Injector: No-GEIS, No-Toolkits"). With Natty ginn should be installed by default, or if it isn't it's in the repository. Just install it using your preferred method, i.e. Synaptic Package Manager, Software Center, or apt-get.

    Natty: The ginn the /etc/wishes.xml file has a slightly different syntax form Maverick, see: https://wiki.ubuntu.com/Multitouch/Ginn You need to add when="update" to the action name line as shown below:
    Code:
        <wish gesture="Tap" fingers="4">
          <action name="action1">
            <trigger prop="tap time" min="20" max="400"/>
            <key modifier1="Super_L">E</key>
          </action>
        </wish>
    becomes:
    Code:
        <wish gesture="Tap" fingers="4">
          <action name="action1" when="update">
            <trigger prop="tap time" min="20" max="400"/>
            <key modifier1="Super_L">E</key>
          </action>
        </wish>
    * thanks to wildschweini post #1519

    Maverick: To install ginn (use Ayuthia's source code, he had to make some modifications to get drag to work) in:
    Code:
    sudo apt-get install utouch
    
    sudo apt-get build-dep utouch-gesturetest
    
    sudo apt-get install build-essential libx11-dev libxml2-dev libxi-dev libxtst-dev
    
    wget http://linuxfans.keryxproject.org/packages/ntrig/ginn/ginn.tar.bz2
    
    tar -xvjf ginn.tar.bz2
    
    cd ginn
    
    ./autogen.sh --prefix=/usr
    
    ./configure --prefix=/usr
    
    make
    
    sudo make install
    
    sudo cp etc/wishes.xml /etc/
    The ginn app. reads the /etc/wishes.xml file to determine the gesture rules for each application. It converts the gestures to keyboard output. In this set Inkscape has the pinching ability and Firefox should have the two-finger up/down drag for scrolling and two-finger left/right drag for page forward and page back. The command to run ginn is:
    Code:
    ginn
    floyd0815 shares two videos of ginn in action "Ubuntu 10.10 with GINN (gestures) on an HP TX2" & "Ubuntu 10.10 HP TX2 ginn magick-rotation onboard". He also provides examples of the ginn scripts he is using in posts #1391, #1392, & #1404. smallblackanimal joins the fun in post #1402 as does wildschweini in post #1413. See also the original Maverick ginn post at post #1272 by Ayuthia.

    You can also get two finger (2FGT) rather than evdev's 4FGT multitouch gestures by placing touch on the linuxwacom driver. Ayuthia reports you have to use the multitouch xorg.conf (attached below) to do this.

    Consider installing the Magick Rotation applet. Not only does it add automatic rotation support it has a touch toggle feature. See "2) Rotation to tablet" or "3) Turning touch on and off" below. Note: The old evdev rotation method of axis inversion is currently broken in Natty. But you can get rotation working with the CTM (coordinate transform matrix). See post #1518 or "Appendix 1 - Tablet PC Rotation with CTM" at HOW TO Setup a Wacom Tablet with Multi-Monitors in Maverick and Natty. Of course you will need to use "N-Trig MultiTouch" for the "device name".

    b) Vista firmware and single finger ("N-Trig Touchscreen") touch - only applies to Maverick
    Follow this if you are using Vista or Win7rc firmware and only have "N-Trig Touchscreen" in 'xinput --list' as your touch device. The Maverick default hid-ntrig.ko inadvertantly left out code to support single finger touch. This should also fix the "freeze" you may be experiencing when using the stylus. We will use Ayuthia's single finger patch submitted to the Launchpad bug report and DKMS. Using DKMS means each time the kernel is updated, it will automatically rebuild the hid-ntrig kernel module with the patch for you.

    If you have used Hardware Drivers to install fglrx or install a Broadcom driver the dkms framework will be installed. There should not be any additional packages to install. So in a terminal enter:
    Code:
    cd /usr/src
    
    sudo wget http://linuxfans.keryxproject.org/packages/ntrig/dkms/maverick/ntrig-20101020.tar.bz2
    
    sudo tar -xvjf ntrig-20101020.tar.bz2
    
    sudo dkms add -m ntrig -v 20101020
    
    sudo dkms build -m ntrig -v 20101020
    
    sudo dkms install -m ntrig -v 20101020
    See post #1251 by Ayuthia which links to the Launchpad bug report where the single touch firmware, test1 (ntrig-20101020) patch was submitted.
    See post #1255 by Ayuthia
    See post #1263 by Ayuthia

    ================================================== ======================

    1) Lucid: Compiling the 2010_05_04 hid-ntrig.ko & configuring through 10-wacom.conf in xorg.conf.d & how to clone the xf86-input wacom git repository

    a) The example below compiles Rafi's latest pre-patched 5-4-10 hid-ntrig.c and is adapted from Ayuthia's "HOW TO Add Pen and Touch Patch to Karmic" for patching hid-ntrig.c. You could substitute another pre-patched hid-ntrig.c in the example below or should be able to follow Ayuthia's version if you want to patch a different hid-ntrig.c. Change the kernel to 2.6.32, and use the appropriate patch instead of the hid-ntrig.c-confidence.patch. And you can skip Step 3.

    Open a terminal and copy & paste the following commands:
    Code:
    sudo apt-get build-dep linux-meta
    
    sudo apt-get build-dep linux-image-$(uname -r)
    
    cd Desktop
    
    apt-get source linux-image-$(uname -r)
    
    wget http://ofb.net/~rafi/2010_05_04_hid-ntrig.c
    
    cp 2010_05_04_hid-ntrig.c linux-2.6.32/drivers/hid/hid-ntrig.c
    
    cd linux-2.6.32/drivers/hid
    
    sudo make -C /lib/modules/`uname -r`/build M=`pwd` modules
    
    sudo cp hid-ntrig.ko /lib/modules/`uname -r`/kernel/drivers/hid/
    
    sudo depmod -a
    Now reboot.

    We have figured out how to configure it with a xorg.conf (the multitouch Symlinks one attached below, also see 6) below) or through 10-wacom.conf. Currently Ayuthia is recommending the xorg.conf which will put stylus and touch on the xf86-input-wacom driver. Use the new udev n-trig symlink rule when using the xorg.conf. Rafi recommends the 10-wacom.conf which puts the stylus on the xf86-input wacom driver and touch on the evdev driver. Feedback appreciated (& please mention your firmware version).

    b) To configure through the 10-wacom.conf use:
    Code:
    gksudo gedit /usr/lib/X11/xorg.conf.d/10-wacom.conf
    And change the N-trig snippet/section to look like the one in the following example:
    Code:
     Section "InputClass"
     	Identifier "Wacom N-Trig class"
    	MatchProduct "HID 1b96:0001|N-Trig Pen"
     	MatchDevicePath "/dev/input/event*"
     	Driver "wacom"
    	Option "Button2" "3"
     EndSection
    This should give you the stylus on the xf86-input-wacom driver wacom_drv.so and touch on the evdev driver.

    Thanks to: Rafi Rubin & Ayuthia

    c) To use the Linux Wacom Project's driver for touch: The new two finger patch for gestures was accepted by xf86-input-wacom and is in the 0.10.7 xf86-input-wacom tar. Rafi's patch to add the N-trig vendor and device codes was accepted on 8-2-10, after 0.10.8 came out. To get it you will want to clone the git repository, if you use wacom drivers for touch rather than evdev. Because of the LWP's update to macros 1.8 please use Section 2 in the linuxwacom HOW TO or part II. in the Bamboo P&T HOW TO.

    Note: The Xorg xf86-input-wacom driver tars are available at the usual sourceforge linuxwacom driver site.

    ================================================== ======================

    2) Rotation to tablet

    The Magick Rotation 1.5 applet now supports Oneiric, and of course the Dell, HP, and Lenovo tablet pc's. It features automatic screen rotation and rotation of devices on Wacom and evdev drivers. It also has touch toggling and other useful features.

    For automatic rotation i.e. the swivel hinge switch (see Method 2 & 3 at the Rotation HOW TO).:
    HP TX2z's: You can use either the applet or script. If you do not have an "eraser" comment out or remove the xsetwacom eraser lines in the Auto-magic Rotation script.

    Dell XT's: Instead of Magick Rotation or the automatic rotation script you can use Rafi's Perl script. See: http://ofb.net/~rafi/latitude_xt.html You'll need a dell-wmi that works correctly, see post #1339.

    For manual rotation i.e. using a launcher:
    a) Using evdev for touch and the Wacom drivers for the stylus:
    Rafi's latest "evdev" rotation script. This requires the extended shell zsh so "apt-get install zsh". From post #1053.

    pepar's "evdev" rotation script.

    Rafi's first "evdev" rotation script.

    dyslexia has a script for just evdev touch rotation on post # 1084.

    b) Using the Wacom driver for both: See the Rotation HOW TO. Methods 1 and 4 should work for everyone. TX2z's be sure to read Appendix 1 to set up ATI video (if you are using the proprietary driver "fglrx") for rotation. If you do not have an "eraser" you can comment out or remove the xsetwacom eraser lines in the Method 1 scripts.

    c) Maverick: Nphyx's script to rotate the stylus.
    See post # 1193.

    For resizing the Panels to make them more touch friendly in Portrait
    The commands to return the top and bottom panels to the default size when in landscape are:
    Code:
    gconftool-2 --set /apps/panel/toplevels/top_panel_screen0/size --type integer 24
    or
    gconftool-2 --set /apps/panel/toplevels/bottom_panel_screen0/size --type integer 24
    To increase the size of the top panel when in portrait:
    Code:
    gconftool-2 --set /apps/panel/toplevels/top_panel_screen0/size --type integer 42
    A size between 36 to 42 seems reasonable. To verify what your default panel size is use Configuration Editor (you may have to make it visible through System > Preferences > Main Menu). Go to Applications > System Tools > Configuration Editor. Then look in apps > panel > default_setup > toplevels, then top_panel or bottom_panel. An example of the use of these commands in Magick Rotation are in the Rotation HOW TO method 4.


    3) Turning touch on and off

    Magick Rotation includes a touch toggle feature for both Wacom and evdev touch.

    a) evdev
    In the following commands use whatever "device name" 'xinput list' calls touch, e.g.:
    Off:
    Code:
    xinput set-prop "N-Trig MultiTouch" "Device Enabled" 0
    On:
    Code:
    xinput set-prop "N-Trig MultiTouch" "Device Enabled" 1
    or
    Off:
    Code:
    xinput float "N-Trig MultiTouch"
    On:
    Code:
    xinput reattach "N-Trig MultiTouch" "Virtual core pointer"
    If touch is on "N-Trig Touchscreen" just substitute that for "N-Trig MultiTouch". You can use either set of commands for the touch toggle scripts below.

    For a touch toggle script you can use Ayuthia's in post #1150 or the one below. Call it .evdev_touch-toggle.sh:
    Code:
    #!/bin/bash
    
    ## evdev touch toggle script
    ##
    ## For touch state notification use:
    ##   sudo apt-get install libnotify-bin
    ## Otherwise comment (#) out the two notify-send lines.
    ## If installed see 'man notify-send'.
    
    if [ -f /tmp/touch_off ]; then
    	xinput set-prop "N-Trig MultiTouch" "Device Enabled" 1
    	notify-send -t 1500 "N-Trig Touchscreen touch ON"
    	rm -f /tmp/touch_off && exit 0
    else
    	xinput set-prop "N-Trig MultiTouch" "Device Enabled" 0
    	notify-send -t 1500 "N-Trig Touchscreen touch OFF"
    	echo 1 > /tmp/touch_off && exit 0
    fi
    Remember to make it executable and place it in a launcher. You can drag the launcher into a panel for single click.

    from post #655 (by rafyir)
    from post #967 (by Ayuthia)

    b) linuxwacom
    Some programs like Xournal don't seem to like touch much. To temporarily disable touch enter in a terminal:
    Code:
    xsetwacom set "device name" Touch off
    To turn it back on:
    Code:
    xsetwacom set "device name" Touch on
    You could also set up a launcher for each xsetwacom command.

    You can also make a shell script "touch toggle" like synace did (substituting the "device name" for touch):
    Code:
    #!/bin/bash
    
    STATUS=`xsetwacom get touch Touch`
    if [ "$STATUS" == "0" ]
      then
        echo "Touch was OFF, enabling."
        xsetwacom set touch Touch on
    else
        echo "Touch was ON, disabling."
        xsetwacom set touch Touch off
    fi
    Or you could use Rafi Rubin's version for "/bin/sh":
    Code:
    #!/bin/sh
    
    if [ `xsetwacom get touch Touch` -gt 0 ]
    then
    	xsetwacom set touch Touch 0
    else
    	xsetwacom set touch Touch 1
    fi
    You can also disable touch "permanently" by commenting out this line in the "touch" section of xorg.conf:
    Code:
    #	Option		"Touch"		"on"
    see page 9, posts #81 to 91 here: http://ubuntuforums.org/showthread.php?t=1206355&page=9


    4) Sound

    a) For the TX2z: Add the line "options snd-hda-intel model=toshiba" (without the quotes) to the end of the file "alsa-base.conf" located in the directory "/etc/modprobe.d/". They renamed alsa-base to alsa-base.conf going from Intrepid to Jaunty. To edit "alsa-base.conf" use in a terminal:
    Code:
    gksudo gedit /etc/modprobe.d/alsa-base.conf
    Save, close. Reboot.

    Or to do it from the command line enter in a terminal:
    Code:
    sudo echo "options snd-hda-intel model=toshiba" >> /etc/modprobe.d/alsa-base.conf
    Reboot.

    from posts #1 (by glurgle), #53 (by abramdemski), and #72 (by exophobe) here: http://ubuntuforums.org/showthread.php?t=1038898

    b) For the XT2: Add the line "options snd-hda-intel model=hp-m4" (without the quotes) to the end of the file "alsa-base.conf" located in the directory "/etc/modprobe.d/". You can edit it as above in a).

    from post #301 (by quambo)


    5) Internal Microphone

    a) For the TX2z: There are some adjustments needed in alsamixer to get the internal microphone to work. First, you need to go into alsamixer from the Terminal. Once you are in there, press the right arrow until you see Input Source. If you don't see that entry, press tab until you do. Make sure that it is set to Front Mic. Set Front Mic and the Front Mic Boost as high as possible. Play around with the Capture and Digital controls until your voice is clear. Fan noise or the display buzz may get recorded into the sound, but you should be able to get voice to sound clear. Try Capture volume at 65 and Digital at 40. You might be able to adjust it via the volume control in the system tray. KDE and KMix does provide the ability to adjust all the controls. The Line In does work with a microphone plugged it. You need to adjust the Input Source to Line In. It does capture the sound, but may not come in as loud as the internal mic.

    from post #118 (by Ayuthia)

    b) For the TX2z Internal Microphone to work after a suspend: Add
    Code:
    options snd-cmipci mpu_port=0x330 fm_port=0x388
    options snd-hda-intel index=0 model=toshiba position_fix=1
    to /etc/modprobe.d/alsa-base.conf. This depends on your soundcard of course (input is mic2, decrease the volume).

    from post #1396 (by floyd0815)


    6) N-trig Udev Rule/Symlink and xorg.conf's

    This is no longer necessary if you are using the wacom.conf to place the stylus on the Wacom X driver and you have your touch on the evdev X driver. It is only needed to place the N-Trig touch on the xf86-input-wacom X driver.

    To avoid dealing with the different usb pci by-paths for the TX2z and XT's, and the changes to them that the Win 7 v.s. Vista firmware makes, you can construct a symlink instead to add to the xorg.conf in place of the by-paths.

    In Lucid, Maverick, & Natty the udev rules are now located in "/lib/udev/rules.d/" instead of "/etc/udev/rules.d/". But they want you to add custom rules to the old location. So we will call it "90-n-trig.rules" and place it in "/etc/udev/rules.d/". Create the file with:
    Code:
    gksudo gedit /etc/udev/rules.d/90-n-trig.rules
    a) For Lucid, Maverick, and Natty with Rafi's multi-touch hid-ntrig.ko (5-4-10 hid-ntrig.c patches). Works with xf86-input-wacom.

    The N-trig udev rules. Enter the following in the file (copy the entire contents & paste):
    Code:
    # udev rules for n-trig tablets.
    #
    # These rules were compiled for the Ubuntu/Debian GNU/Linux distribution, but others may,
    # and indeed are encouraged to, use them also.
    #
    # Should you do so, PLEASE CO-ORDINATE ANY CHANGES OR ADDITIONS of new devices with ????
    # so that we can try to present users with a standard set of device nodes which they can
    # rely on across the board.
    
    KERNEL!="event[0-9]*", GOTO="n-trig_end"
    
    # To mirror linuxwacom, we keep the input/n-trig link as the generic stylus device.
    ATTRS{name}=="N-Trig Touchscreen", SUBSYSTEM=="input", ENV{x11_driver}="wacom", SYMLINK+="input/n-trig-touch"
    ATTRS{name}=="N-Trig MultiTouch", SUBSYSTEM=="input", ENV{x11_driver}="wacom", SYMLINK+="input/n-trig-mttouch"
    ATTRS{name}=="N-Trig Pen", SUBSYSTEM=="input", ENV{x11_driver}="wacom", SYMLINK+="input/n-trig"
    
    # Check and repossess the device if a module other than the n-trig one is already bound
    # to it.
    ATTRS{idVendor}=="1b96", ACTION=="add", RUN+="check_driver ntrig $devpath $env{ID_BUS}"
    
    LABEL="n-trig_end"
    Save and close. For the above to work correctly you need to ensure that 'check_driver' is installed at "/lib/udev/check_driver". A copy is below:
    Code:
    #!/bin/sh
    #
    
    #logger check_driver called with: $1 - $2 - $3 -
    
    wanted=$1
    devpath=$2
    bustype=$3
    
    device=$(readlink /sys/$devpath/device)
    device=${device##*/}
    driver=$(readlink /sys/$devpath/device/driver)
    driver=${driver##*/}
    
    logger device $device is bound to the $driver driver
    
    if [ "$driver" != "$wanted" ]; then
        logger must rebind
        echo -n "$device" > /sys/$devpath/device/driver/unbind
        echo -n "$device" > /sys/bus/$bustype/drivers/$wanted/bind
    else
        logger no need to rebind
    fi
    If it isn't there install it using:
    Code:
    gksudo gedit /lib/udev/check_driver
    Copy the entire contents of the 'check_driver' script from "#!/bin/sh ... to ... fi" into the empty file and Save and close. Then to make it executable:
    Code:
    sudo chmod +x /lib/udev/check_driver
    b) Next use your new symlinks in the xorg.conf.

    First make a back up of your current, working xorg.conf. In a terminal enter:
    Code:
    sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
    To restore it from the command line use:
    Code:
    sudo cp /etc/X11/xorg.conf.bak /etc/X11/xorg.conf
    To edit it enter in a terminal:
    Code:
    gksudo gedit /etc/X11/xorg.conf
    Now you can substitute for the usb pci by-paths in the "stylus" & "eraser" sections of the xorg.conf:
    Code:
    	Option		"Device"	"/dev/input/n-trig"
    In the "touch" section of the xorg.conf:
    Code:
    	Option		"Device"	"/dev/input/n-trig-touch"
    And in the new "mttouch" section of the xorg.conf:
    Code:
    	Option		"Device"	"/dev/input/n-trig-mttouch"
    The xorg.conf attached below called "TX2z&XT's_multi-touch-Symlinks_test1_xorg.conf.txt" already has the symlinks in place. Use the video sections as a "placeholders" and substitute yours in if needed. You'll need to reboot to activate the symlinks.

    Stylus, Touch, and multi-Touch should now be working.

    developed by Ayuthia & Favux, and tested by Ayuthia post #620. Thanks to Nphyx.

    tested by Ayuthia post #261


    Troubleshooting

    tannalv has some useful suggestions for wireless card caused interference on the N-Trig digitizer and the heatsink fan on post #1475 .


    Appendix 1: Determining Your Kernel Version
    To determine your current kernel version enter in a terminal:
    Code:
    cat /proc/version_signature
    To determine whether you are running 32-bit or 64-bit type in a terminal:
    Code:
    uname -a
    or
    uname -m
    Appendix 2: The xorg.conf using usb pci by-paths - for using the mutiplexed hid-ntrig.ko (Ayuthia's ntrig-v6.tar or earlier)
    The xorg.conf, called "TX2z & XT's_Jaunty_xorg.conf" is attached below and should complete setting up the stylus and touch in Jaunty. The two Dell XT's usb by-paths differ from the TX2z. Flensburger reports in post #22 that the XT2's usb by-path is different from the XT's. See below for the XT2 by-path. So XT & XT2 users don't forget to change the by-paths. And XT2 users the xorg.conf is wrong about your by-path. Use the video sections as "placeholders" and substitute yours in if needed. The Wacom entries are based on Rafi Rubin's who has a Dell XT.

    For the XT2 (per Flensburger) with Vista N-trig firmware the by-path is:
    Code:
    Option "Device" "/dev/input/by-path/pci-0000:00:1d.1-usb-0:2:1.0-event-mouse"
    Caution: The by-path changes if you are using Win 7 (instead of Vista/Win7 RC) firmware.

    For the TX2z (per angel120) the Win7 N-trig firmware changes the by-path to:
    Code:
    Option "Device" "/dev/input/by-path/pci-0000:00:14.5-usb-0:2:1.1-event-mouse"
    For the XT (per Nimless) the Win7 N-trig firmware changes the by-path to:
    Code:
    Option "Device" "/dev/input/by-path/pci-0000:00:13.1-usb-0:2:1.1-event-mouse"
    For the XT2 (please verify) the Win7 N-trig firmware changes the by-path to:
    Code:
    Option "Device" "/dev/input/by-path/pci-0000:00:1d.1-usb-0:2:1.1-event-mouse"
    To avoid dealing with the different usb by-paths you can construct symlinks, see 6) above. Now reboot.

    Stylus and Touch should now be working.
    Last edited by Favux; June 6th, 2012 at 10:59 PM.

  2. #2
    Join Date
    Apr 2007
    Location
    Mount Horeb, WI
    Beans
    4,312
    Distro
    Kubuntu Development Release

    Re: HOW TO: Set up the HP TX2z and Dell XT & XT2 (N-trig digitizer) in Ubuntu

    EDIT: If you want to try an installer application you can go to this post. You will still need to do the configuration part, but it will download and install the drivers for you.

    I will try to keep up with the kernel updates however, I will admit that I am a Gentoo user so I usually see the updates through the forums rather than by updates. If it has not been updated in a while, please let me know.

    24 September 2009 update:
    For those who want to test Karmic and want the N-Trig patches for the kernel, you can go to this post:
    http://ubuntuforums.org/showpost.php...6&postcount=98

    Also for those who want to use the automagic rotation, it does look like the hp-wmi module does not autoload. You can autoload it by doing the following:
    Code:
    echo hp-wmi | sudo tee -a /etc/modules
    And it should autoload the module the next time you start Karmic.
    Last edited by Ayuthia; April 12th, 2010 at 02:00 PM.

  3. #3
    Join Date
    Sep 2007
    Beans
    108

    Re: HOW TO: Set up the HP TX2z and Dell XT & XT2 (N-trig digitizer) in Ubuntu

    Isn't the patched wacom package needed?

  4. #4
    Join Date
    Jun 2009
    Location
    San Diego,California
    Beans
    65
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOW TO: Set up the HP TX2z and Dell XT & XT2 (N-trig digitizer) in Ubuntu

    Thank you Favux for the HOWTO,finally all the info is in one place.
    I am planning to try a new distro,any ideas??I want a very light but not bad looking OS,mainly for classes and battery improvement.Of course the touch support would be most important,followed by battery.Jaunty has been giving me problems lately.....

  5. #5
    Join Date
    Nov 2008
    Beans
    9,635
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOW TO: Set up the HP TX2z and Dell XT & XT2 (N-trig digitizer) in Ubuntu

    Hi nema.arpit,

    Your welcome. Hopefully this will help folks just setting up.

    Have you looked at Xubuntu? Here: http://www.xubuntu.org/

  6. #6
    Join Date
    Jun 2009
    Location
    San Diego,California
    Beans
    65
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOW TO: Set up the HP TX2z and Dell XT & XT2 (N-trig digitizer) in Ubuntu

    Isn't xubuntu a branch of ubuntu only??
    I want to try a new flavour of linux.
    I am thinking about arc right now. Does it have ntrig support?
    Tho I think I'll try xubuntu as well.Thx

  7. #7
    Join Date
    Nov 2008
    Beans
    9,635
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOW TO: Set up the HP TX2z and Dell XT & XT2 (N-trig digitizer) in Ubuntu

    Hi nema.arpit,

    Well I think Arch has a rolling distribution so they probably have a newer kernel. I think 2.6.30 already has most of Rafi Rubin's patches in it. But from what Ayuthia is saying about 2.6.31 (Karmic) you'll still need a patch. But apparently you can apply it to the n-trig.ko instead of the kernel. You might also have to apply Rafi's n-trig.patch to whatever version of linuxwacom Arch has.

    That's why I stuck to Xubuntu, because it has 9.04 out now.
    Last edited by Favux; August 29th, 2009 at 08:09 PM.

  8. #8
    Join Date
    Feb 2005
    Beans
    12

    Re: HOW TO: Set up the HP TX2z and Dell XT & XT2 (N-trig digitizer) in Ubuntu

    In Karmic my tx2-1020us is working with 2.6.31 kernels (last one rc8), with fdi disabled and xorg.conf configured as specified. Touchscreen works with stylus and fingers. Rotation not tested yet. I am using the radeon driver.

    Fingerprint reader is not working because driver for Authentec device in tx2-1020us is not yet converted to the new libusb version in Karmic.

    Webcam is not working, borked images, low resolution, and freezes.

  9. #9
    Join Date
    Nov 2008
    Beans
    9,635
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOW TO: Set up the HP TX2z and Dell XT & XT2 (N-trig digitizer) in Ubuntu

    Hi accensi,

    Thanks for letting us know that.

    Please keep us posted.

  10. #10
    Join Date
    Sep 2009
    Beans
    33

    Re: HOW TO: Set up the HP TX2z and Dell XT & XT2 (N-trig digitizer) in Ubuntu

    Quote Originally Posted by Favux View Post
    Hi iboot,

    I'd like to point out we are "hijacking" this thread. This is for the TouchSmart desktop pc not the tablet.

    Good, at least you've got the stylus button along with the stylus. Well did you comment out the n-trig section in 10-wacom.fdi? Did you do the kernel patches or deb.s?
    Hi Favux,

    Moving to the tablet thread so as to not hijack the desktop thread. Yes, I did comment out n-trig section in 10-wacom.fdi. I did tried installing the deb.s but they were already installed. Still no touch.

    About the rotation, I installed the applets and put them in the startup. When I boot, I get the message "Tablet State: error Get hp_wmi data" and on rollover, the message hp_wmi not found. The Applet loads fine and I can enter setup for the applet.

    Do I need to follow the Mister2's #106 thread? Does the applet code automatically calibrate the stylus upon rotation or do I need to have some additional scripting?

    Thanks Much!

Page 1 of 169 1231151101 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •