Page 1 of 4 123 ... LastLast
Results 1 to 10 of 39

Thread: Ubuntu 10.04: Calibrate touch in HP tx2000

  1. #1
    Join Date
    Jun 2009
    Location
    Brazil
    Beans
    44
    Distro
    Ubuntu 9.10 Karmic Koala

    Ubuntu 10.04: Calibrate touch in HP tx2000

    I have an HP Pavilion tx2000 tablet, wich is working perfectly in Ubuntu 10.04. The touch and the stylus works out of box, and i'm using the script that Favux has posted to rotate my screen and i've installed the wacomrotate daemon, wich is working too.

    Now, I've two questions:

    - How to calibrate it? The stylus is ok, but the touch isn't calibrated. In Karmic, I was using wacomcpl and xsetwacom, but neither of them detect my tablet now (in 9.10, Hal was used to detect the tablet, now it's xserver-xorg-input-wacom).
    Code:
    leotorok@leotorok-laptop:~$ xsetwacom set touch bottomy "3932"
    Error (2): WacomConfigOpenDevice: No such device
    Set: Failed to open device 'touch'
    leotorok@leotorok-laptop:~$
    - It's possible to set up the automatic screen rotation, like in Windows (the screen rotates automaticaly in tablet position)?

  2. #2
    dino99's Avatar
    dino99 is offline Ubuntu addict and loving it
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Ubuntu 10.04: Calibrate touch in HP tx2000

    xserver-xorg-input-wacom installed ?

    http://ubuntuforums.org/showthread.php?p=9177144

  3. #3
    Join Date
    Jun 2009
    Location
    Brazil
    Beans
    44
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Ubuntu 10.04: Calibrate touch in HP tx2000

    Yes, it's installed, and the tablet and stylus are working. The problem is how to calibrate the touch and how to change the second button of the stylus (it's set to middle click, not right click):

    Code:
     leotorok@leotorok-laptop:~$ xinput --list
    ⎡ Virtual core pointer                        id=2    [master pointer  (3)]
    ⎜   ↳ Virtual core XTEST pointer                  id=4    [slave  pointer  (2)]
    ⎜   ↳ Wacom ISDv4 93                              id=12    [slave  pointer  (2)]
    ⎜   ↳ Wacom ISDv4 93 eraser                       id=11    [slave  pointer  (2)]
    ⎜   ↳ Wacom ISDv4 93                              id=13    [slave  pointer  (2)]
    ⎜   ↳ SynPS/2 Synaptics TouchPad                  id=15    [slave  pointer  (2)]
    ⎜   ↳ Macintosh mouse button emulation            id=16    [slave  pointer  (2)]
    ⎣ Virtual core keyboard                       id=3    [master keyboard (2)]
        ↳ Virtual core XTEST keyboard                 id=5    [slave  keyboard (3)]
        ↳ Power Button                                id=6    [slave  keyboard (3)]
        ↳ Video Bus                                   id=7    [slave  keyboard (3)]
        ↳ Power Button                                id=8    [slave  keyboard (3)]
        ↳ Sleep Button                                id=9    [slave  keyboard (3)]
        ↳ HP Webcam                                   id=10    [slave  keyboard (3)]
        ↳ AT Translated Set 2 keyboard                id=14    [slave  keyboard (3)]
    leotorok@leotorok-laptop:~$ xsetwacom set 12 Button3 "2"
    Error (2): WacomConfigOpenDevice: No such device
    Set: Failed to open device '12'
    leotorok@leotorok-laptop:~$ xsetwacom set 13 Button3 "2"
    Error (2): WacomConfigOpenDevice: No such device
    Set: Failed to open device '13'
    leotorok@leotorok-laptop:~$ xsetwacom set "Wacom ISDv4 93" Button3 "2"
    X Error: 2 BadValue (integer parameter out of range for operation)
    Error (22): WacomConfigSetRawParam: failed
    Set: Failed to set Wacom ISDv4 93 value for 'Button3'
    leotorok@leotorok-laptop:~$ xsetwacom set "Wacom ISDv4" Button3 "2"
    Error (2): WacomConfigOpenDevice: No such device
    Set: Failed to open device 'Wacom ISDv4'
    leotorok@leotorok-laptop:~$

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

    Re: Ubuntu 10.04: Calibrate touch in HP tx2000

    Hi trx64,

    My calibration is:
    Code:
    xsetwacom set touch bottomy "3969"
    xsetwacom set touch bottomx "4028"
    xsetwacom set touch topy "215"
    xsetwacom set touch topx "140"
    Your xinput list is giving the same Device name for stylus and touch. That might actually be a bug. The touch device should be labled with touch I think. But instead of just the "device name" in quotes you can also use the ID number. Let's guess touch is 13. So it would look like:
    Code:
    xsetwacom set 13 bottomy "3969"
    xsetwacom set 13 bottomx "4028"
    xsetwacom set 13 topy "215"
    xsetwacom set 13 topx "140"
    Put it in a script say .xsetwacom.sh (to replace wacomcpl's .xinitrc), make it executable, and set it up to auto-start with the session.

  5. #5
    Join Date
    Jun 2009
    Location
    Brazil
    Beans
    44
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Ubuntu 10.04: Calibrate touch in HP tx2000

    Thanks by the answers, Favux and dino99. I've tryed to set it with xsetwacom, but:
    Code:
    leotorok@leotorok-laptop:~$ xsetwacom set 13 bottomy "3969"
    Error (2): WacomConfigOpenDevice: No such device
    Set: Failed to open device '13'
    leotorok@leotorok-laptop:~$ xsetwacom set touch bottomy "3969"
    Error (2): WacomConfigOpenDevice: No such device
    Set: Failed to open device 'touch'
    leotorok@leotorok-laptop:~$ xsetwacom set 13 topy "215"
    Error (2): WacomConfigOpenDevice: No such device
    Set: Failed to open device '13'
    leotorok@leotorok-laptop:~$ xsetwacom set 12 topy "215"
    Error (2): WacomConfigOpenDevice: No such device
    Set: Failed to open device '12'
    leotorok@leotorok-laptop:~$
    It's possible to change directly the file /usr/lib/X11/xorg.conf.d/10-wacom.conf to change the settings? It will be added to xorg.conf and X.org is handling the wacom tablets now.

    My 10-wacom.conf:
    Code:
    Section "InputClass"
        Identifier "Wacom class"
        MatchProduct "Wacom|WACOM"
        MatchDevicePath "/dev/input/event*"
        Driver "wacom"
    EndSection
    
    Section "InputClass"
        Identifier "Wacom serial class"
        MatchProduct "Serial Wacom Tablet"
        Driver "wacom"
        Option "ForceDevice" "ISDV4"
    EndSection
    
    # N-Trig Duosense Electromagnetic Digitizer
    Section "InputClass"
        Identifier "Wacom N-Trig class"
        MatchProduct "HID 1b96:0001"
        MatchDevicePath "/dev/input/event*"
        Driver "wacom"
    EndSection

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

    Re: Ubuntu 10.04: Calibrate touch in HP tx2000

    Hi trx64,

    Maybe I guessed wrong and touch is 12? Let's look at what:
    Code:
    xsetwacom list
    shows.

    You should be able to add the coordinates to the wacom.conf, but at least one person who tried it said it didn't work. Another said coordinates work if you use the location they recommend for custon changes, which I believe is /etc/X11/xorg.conf.d/.

  7. #7
    Join Date
    Jun 2009
    Location
    Brazil
    Beans
    44
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Ubuntu 10.04: Calibrate touch in HP tx2000

    "xsetwacom list" doesn't show any devices:
    Code:
    leotorok@leotorok-laptop:~$ xsetwacom list
    leotorok@leotorok-laptop:~$
    What changes should I do in 10-wacom.conf to calibrate the touch and change the button of the stylus?

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

    Re: Ubuntu 10.04: Calibrate touch in HP tx2000

    Hi trx64,

    Apparently you can use the same syntax as for options in xorg.conf. There also may be a alternate sytax we could try if the coordinate options don't work.
    Code:
    Option "Button2" "3"
    
    Option "bottomy" "3969"
    You would add it to the bottom of the usb snippet which has the identifier:
    Code:
    Identifier "Wacom class"

  9. #9
    Join Date
    Jun 2009
    Location
    Brazil
    Beans
    44
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Ubuntu 10.04: Calibrate touch in HP tx2000

    Favux, I've made the changes (using the values of xinitrc, wich was ok in Karmic). The touch is calibrated, but now the stylus wasn't calibrated (before that, the touchscreen was 1cm out of place. After that, the stylus is 20 cm out of the place ).

    The option to change the button worked perfectly. Here's my new 10-wacom.conf (I've commented the lines about the position):
    Code:
    Section "InputClass"
        Identifier "Wacom class"
        MatchProduct "Wacom|WACOM"
        MatchDevicePath "/dev/input/event*"
        Driver "wacom"
        Option "Button2" "3"
    #    Option "bottomy" "3932"
    #    Option "bottomx" "3984"
    #    Option "topy" "187"
    #    Option "topx" "139"
    EndSection
    
    Section "InputClass"
        Identifier "Wacom serial class"
        MatchProduct "Serial Wacom Tablet"
        Driver "wacom"
        Option "ForceDevice" "ISDV4"
    EndSection
    
    # N-Trig Duosense Electromagnetic Digitizer
    Section "InputClass"
        Identifier "Wacom N-Trig class"
        MatchProduct "HID 1b96:0001"
        MatchDevicePath "/dev/input/event*"
        Driver "wacom"
    EndSection

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

    Re: Ubuntu 10.04: Calibrate touch in HP tx2000

    Hi trx64,

    I've made the changes (using the values of xinitrc, wich was ok in Karmic). The touch is calibrated, but now the stylus wasn't calibrated (before that, the touchscreen was 1cm out of place. After that, the stylus is 20 cm out of the place ).
    Well of course. I feel a little silly. The usb section is everything so we need a "match" line that seperates out touch and then we should list the touch coordinates below that! Something like:
    Code:
    ENV{ID_INPUT_TOUCH}==1
    We'll have to look at your udevadm info and look up the device tree for touch for the appropriate match line:
    Code:
    udevadm info --export-db > $HOME/udevadm.txt
    I suppose the alternative would be to add a touch section with coordinates in xorg.conf.

Page 1 of 4 123 ... 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
  •