Page 17 of 33 FirstFirst ... 7151617181927 ... LastLast
Results 161 to 170 of 322

Thread: HOWTO setting up ubuntu 8.10 intrepid on the HP tx2z tablet pc

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

    Re: HOWTO setting up ubuntu 8.10 intrepid on the HP tx2z tablet pc

    Hi Ayuthia,

    So "SendCoreEvents" works and doesn't break anything. To get the stylus button as a right mouse click you could add to the stylus section;
    Code:
            Option		"Button2"	"3"  # make stylus button R mouse click
    Since touch is working with "SendCoreEvents" I wonder what happens with "standard" wacom entries? They should look something like this:
    Code:
    Section "InputDevice"
    	Identifier	"stylus"
    	Driver		"wacom"
     	Option "Device" "/dev/input/by-path/pci-0000:00:14.5-usb-0:2:1.0-event-mouse"
    #	Option "Device" "/dev/input/by-path/pci-0000:00:13.1-usb-0:2:1.0-event-mouse"
    	Option		"Type"		"stylus"
            Option		"USB"		"on"                  # USB ONLY
            Option		"Button2"	"3"  # make stylus button R mouse click
    EndSection
    
    Section "InputDevice"
    	Identifier	"touch"
    	Driver		"wacom"
    	Option "Device" "/dev/input/by-path/pci-0000:00:14.5-usb-0:2:1.0-event-mouse"
    #	Option "Device" "/dev/input/by-path/pci-0000:00:13.1-usb-0:2:1.0-event-mouse"
    	Option     	"Type"		"touch"
    	Option		"USB"           "on"                  # USB ONLY
            Option		"Touch"		"on"
    	Option 		"TopX"		"0"
    	Option 		"TopY"		"0"
    	Option 		"BottomX"	"9600"
    	Option 		"BottomY"	"7200"
    EndSection
    The rest should be either unnecessary or default. And then "ServerLayout":
    Code:
    Section "ServerLayout"
            Identifier      "Default Layout"
            Screen		"Default Screen"
    	InputDevice	"stylus"	"SendCoreEvents"
    	InputDevice	"touch"		"SendCoreEvents"
    EndSection
    Where the lines:
    Code:
            Identifier      "Default Layout"
            Screen		"Default Screen"
    Stand for whatever entries other than the wacom ones you need in it.

    Have you tried "wacomcpl" yet? That should let you calibrate your tablet and configure it. For instance if you want the stylus button a middle mouse click. Using "wacomcpl" is described in Section 3 here: http://ubuntuforums.org/showthread.php?t=1038949
    Last edited by Favux; June 20th, 2009 at 07:31 PM. Reason: Added 'Option "Touch" "on" ' per Ayuthia

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

    Re: HOWTO setting up ubuntu 8.10 intrepid on the HP tx2z tablet pc

    One minor change:
    Code:
    Section "InputDevice"
    	Identifier	"touch"
    	Driver		"wacom"
    	Option "Device" "/dev/input/by-path/pci-0000:00:14.5-usb-0:2:1.0-event-mouse"
    #	Option 		"Device" "/dev/input/by-path/pci-0000:00:13.1-usb-0:2:1.0-event-mouse"
    	Option     	"Type"		"touch"
    	Option		"USB"           "on"                  # USB ONLY
            Option          "Touch"         "on"
    	Option 		"TopX"		"0"
    	Option 		"TopY"		"0"
    	Option 		"BottomX"	"9600"
    	Option 		"BottomY"	"7200"
    EndSection
    It was missing the option "Touch" "on". If that is not enabled, the touch portion is not activated.

    I have tried the wacomcpl setup and I also have the Button 2 option set to 3 and it still is not changing. I know that the button still registers a response from /dev/hiddraw0. I am thinking that the changes in 2.6.30 has defined the button differently so the wacom driver is not finding it. I might check the older kernels to see if I can find the difference.

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

    Re: HOWTO setting up ubuntu 8.10 intrepid on the HP tx2z tablet pc

    Hi Ayuthia,

    Great! Standard syntax works! The "Touch" "on" option is interesting. It should be default, so it seems there is some difference with touch on the same usb input path.
    Code:
            Option		"Touch"		"on"
    I'll look at the linuxwacom-discuss and dev-discuss boards and see if there is anything regarding the button. I seem to remember something about a patch by Tom Jaeger for linuxwacom called something like "don't mess with my map". I don't remember the details (what few there were) but it may be Xserver 1.6 and not the kernel that is the problem.

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

    Re: HOWTO setting up ubuntu 8.10 intrepid on the HP tx2z tablet pc

    Hi Ayuthia,

    I've been thinking about the problem you said you had with the wacom.fdi and how you recommend commenting out the N-trig section. It isn't suppose to work that way. My understanding is they should execute in this order:

    10-wacom.fdi
    custom_wacom.fdi
    xorg.conf
    wacomcpl's .xinitrc

    And they should be able to coexist like they do in Intrepid. Whatever executes last controls. But something in an earlier one that isn't changed in a later one should still carry the setting applied.

    So is something grabbing the settings from the .fdi and not letting go like it should? Or is this a consequence of continued deprecation of the xorg.conf? Or maybe a bug?

    If this wasn't happening I'd wonder about adding:
    Code:
           <merge key="input.x11_options.Button2" type="string">3</merge>
    to the N-trig section of the wacom.fdi. Because RageAge said it gave him a working stylus button in post #6 here: http://ubuntuforums.org/showthread.php?t=1186428

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

    Re: HOWTO setting up ubuntu 8.10 intrepid on the HP tx2z tablet pc

    I tried it out and had the touch stay in xorg.conf and defined the stylus in .fdi. It ended up crashing X. So I decided to comment out the touch in xorg.conf and just use the stylus in .fdi and the stylus works but the button still does not switch to the right-click.

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

    Re: HOWTO setting up ubuntu 8.10 intrepid on the HP tx2z tablet pc

    Hi Ayuthia,

    Darn. So we're probably back to a bug somewhere. The kernel, Xserver 1.6, or linuxwacom. If linuxwacom probably in wacom-tools? And maybe from one of the N-trig patches? Shoot. Too many variables.

    So right now we're looking at stylus with button or stylus with touch. There has to be a way forward to get the whole panoply of stylus with button and touch.

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

    Re: HOWTO setting up ubuntu 8.10 intrepid on the HP tx2z tablet pc

    What I am finding out is that hal will assign wacom to the touch and stylus, but wacomcpl does not recognize them. The only way that it will recognize both is if I add them to xorg.conf.

    I am going to take a look at the two kernels now to see where the differences are.

    EDIT: If I have time, I might also try recompiling the kernel with the 2.6.29.4 ntrig changes. That has a chance to get the button click to work again. I say this only because I know that it was working once before.
    Last edited by Ayuthia; June 21st, 2009 at 12:11 AM.

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

    Re: HOWTO setting up ubuntu 8.10 intrepid on the HP tx2z tablet pc

    I just found out that there was no need for me to check the differences between the two kernels because Rafi Rubin has created another patch recently. I checked out his website and found that he submitted another patch recently. This patch fixes the button issue!

    I have updated my previous post to reflect the changes. I also have updated the two .deb files that was supplied in post 158.

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

    Re: HOWTO setting up ubuntu 8.10 intrepid on the HP tx2z tablet pc

    Hi Ayuthia,

    Excellent! You've done it! N-trig with full function in Jaunty. Thank you Rafi Rubin.

    By the way from what you were saying about HAL before you applied the new patch, it is possible we could construct a working .fdi now. We would need to look at the output of:
    Code:
    xinput --list
    and
    Code:
    lshal>Ayuthia_N-trig_lshal.txt
    with the current N-trig.fdi active and go from there.
    Last edited by Favux; June 21st, 2009 at 04:13 AM.

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

    Re: HOWTO setting up ubuntu 8.10 intrepid on the HP tx2z tablet pc

    Here is xinput --list:
    Code:
    "Virtual core pointer"	id=0	[XPointer]
    	Num_buttons is 32
    	Num_axes is 2
    	Mode is Relative
    	Motion_buffer is 256
    	Axis 0 :
    		Min_value is -1
    		Max_value is -1
    		Resolution is 0
    	Axis 1 :
    		Min_value is -1
    		Max_value is -1
    		Resolution is 0
    "Virtual core keyboard"	id=1	[XKeyboard]
    	Num_keys is 248
    	Min_keycode is 8
    	Max_keycode is 255
    "AT Translated Set 2 keyboard"	id=2	[XExtensionKeyboard]
    	Num_keys is 248
    	Min_keycode is 8
    	Max_keycode is 255
    "Video Bus"	id=3	[XExtensionKeyboard]
    	Num_keys is 248
    	Min_keycode is 8
    	Max_keycode is 255
    "Macintosh mouse button emulation"	id=4	[XExtensionPointer]
    	Num_buttons is 32
    	Num_axes is 2
    	Mode is Relative
    	Motion_buffer is 256
    	Axis 0 :
    		Min_value is -1
    		Max_value is -1
    		Resolution is 1
    	Axis 1 :
    		Min_value is -1
    		Max_value is -1
    		Resolution is 1
    "SynPS/2 Synaptics TouchPad"	id=5	[XExtensionPointer]
    	Num_buttons is 12
    	Num_axes is 2
    	Mode is Relative
    	Motion_buffer is 256
    	Axis 0 :
    		Min_value is 1472
    		Max_value is 5472
    		Resolution is 1
    	Axis 1 :
    		Min_value is 1408
    		Max_value is 4448
    		Resolution is 1
    "HID 1b96:0001"	id=7	[XExtensionKeyboard]
    	Num_keys is 248
    	Min_keycode is 8
    	Max_keycode is 255
    	Num_buttons is 5
    	Num_axes is 6
    	Mode is Absolute
    	Motion_buffer is 256
    	Axis 0 :
    		Min_value is 0
    		Max_value is 9600
    		Resolution is 1122
    	Axis 1 :
    		Min_value is 0
    		Max_value is 7200
    		Resolution is 935
    	Axis 2 :
    		Min_value is 0
    		Max_value is 256
    		Resolution is 1
    	Axis 3 :
    		Min_value is -64
    		Max_value is 63
    		Resolution is 1
    	Axis 4 :
    		Min_value is -64
    		Max_value is 63
    		Resolution is 1
    	Axis 5 :
    		Min_value is 0
    		Max_value is 1023
    		Resolution is 1
    "HID 1b96:0001"	id=6	[XExtensionDevice]
    Attached is the other requested file. It had to be gzipped due to the .txt filesize requirement was exceeded.

    Here is what I have tried out for the ntrig entry for my .fdi file:
    Code:
        <!-- N-Trig Duosense Electromagnetic Digitizer -->
        <match key="info.product" contains="HID 1b96:0001">
          <match key="info.parent" contains="if1">
           <merge key="input.x11_driver" type="string">wacom</merge>
           <merge key="input.x11_options.Type" type="string">touch</merge>
           <merge key="input.x11_options.USB" type="string">on</merge>
           <merge key="input.x11_options.Touch" type="string">on</merge>
           <merge key="input.x11_options.TopX" type="string">0</merge>
           <merge key="input.x11_options.TopY" type="string">0</merge>
           <merge key="input.x11_options.BottomX" type="string">9600</merge>
           <merge key="input.x11_options.BottomY" type="string">7200</merge>
          </match>
          <match key="info.parent" contains="if0">
           <merge key="input.x11_driver" type="string">wacom</merge>
           <merge key="input.x11_options.Type" type="string">stylus</merge>
           <merge key="input.x11_options.Button2" type="string">3</merge>
          </match>
        </match>
    It currently has the stylus working, but the touch is not happy. It does not move unless you use more than one finger. wacomcpl does not recognize the stylus or the touch.

    EDIT: For those of you who want to look at the attached file but do not know how to extract it:
    Code:
    gunzip Ayuthia_N-trig_lshal.txt.gz
    Attached Files Attached Files
    Last edited by Ayuthia; June 21st, 2009 at 04:42 AM.

Page 17 of 33 FirstFirst ... 7151617181927 ... 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
  •