Page 132 of 169 FirstFirst ... 3282122130131132133134142 ... LastLast
Results 1,311 to 1,320 of 1689

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

  1. #1311
    Join Date
    Nov 2010
    Beans
    48
    Distro
    Ubuntu 11.04 Natty Narwhal

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

    after restarting my tablet, i saw the following in the shell when using the screen in tablet mode:
    Code:
    ~/magick-rotation$ ./magick-rotation 
    ['/dev/input/hp-wmi', '/dev/input/dell-wmi']
    stat /dev/input/hp-wmi
    stat /dev/input/dell-wmi
    False
    /dev/input/dell-wmi
    type 3e5c  code 4d06  value 0
    type d925  code 7  value 0
    type 0  code 0  value 0
    i started no other processes, but unfortunately the rotation did NOT take place, only this output came to my shell.
    after starting the xxd process, there was no additional "type" output after starting ./magick-rotation.

    Hope this is helpful for you!

  2. #1312
    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

    Quote Originally Posted by wildschweini View Post
    after restarting my tablet, i saw the following in the shell when using the screen in tablet mode:
    Code:
    ~/magick-rotation$ ./magick-rotation 
    ['/dev/input/hp-wmi', '/dev/input/dell-wmi']
    stat /dev/input/hp-wmi
    stat /dev/input/dell-wmi
    False
    /dev/input/dell-wmi
    type 3e5c  code 4d06  value 0
    type d925  code 7  value 0
    type 0  code 0  value 0
    i started no other processes, but unfortunately the rotation did NOT take place, only this output came to my shell.
    after starting the xxd process, there was no additional "type" output after starting ./magick-rotation.

    Hope this is helpful for you!
    Can you switch the lid to tablet mode and back to laptop mode and see if more information comes out? We would like to see what shows up for the code and value fields. We are looking for a 5 in the code so if it does not show up, the rotation does not happen.

  3. #1313
    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

    Quote Originally Posted by wildschweini View Post

    trying to use
    Code:
     $ sudo xxd -g1 /dev/input/dell-wmi
    ends up in doing nothing on my shell, but ps -e shows a running xxd process...
    Sorry if you already know this portion. I just want to be on the same page with everybody. xxd listens to what is happening in /dev/input/dell-wmi and returns any information that comes back. In this case /dev/input/dell-wmi is mainly reporting on the hinge. So if you flip the lid to tablet mode, xxd should produce some information. If you change it back to laptop mode, it should produce more information. You can then press control-c to stop the xxd application.

    Are you doing this and no information is returning or does it work?

  4. #1314
    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

    Quote Originally Posted by Ubuntiac View Post
    OK, get ready for a data dump!

    Firstly... progress! When I run ./magick-rotate from the CLI, it opens in my systray.

    The rest of your suggestions in #1300 give the following data:

    I open MR and in the konsole is displayed:
    Code:
    stat /dev/input/hp-wmi
    stat /dev/input/dell-wmi
    False
    /dev/input/dell-wmi
    Weird thing is, /dev/input/dell-wmi *does* exit. If *I* stat it, I get:
    From the debugging information that is reported, it looks like it cannot find /dev/input/dell-wmi, but it is actually using it. What is happening is that the two stat lines are coming from hinge.py. The next two results are coming from oem-wmi.py where the False comes up because it did not find /dev/input/hp-wmi so it defaulted to /dev/input/dell-wmi (which is the final line).

    sudo xxd -g1 /dev/input/dell-wmi returns nothing at all onscreen when I rotate. using event8 instead also gives nothing. Yeah, I used sudo.
    Can you show the results of 'ls -l /dev/input'? I would like to see if all the permissions are correct.

    If I enter xrandr -o right, my screen (but not touch) rotate properly, and now cellwriter opens up as well as a notification. When I xrandr -o normal, I get another notification and cellwriter closes.
    Can you try running xrotate.py by itself:
    Code:
    ./xrotate.py
    It should rotate the screen and the devices.

  5. #1315
    Join Date
    Nov 2010
    Beans
    48
    Distro
    Ubuntu 11.04 Natty Narwhal

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

    Quote Originally Posted by Ayuthia View Post
    Can you switch the lid to tablet mode and back to laptop mode and see if more information comes out? We would like to see what shows up for the code and value fields. We are looking for a 5 in the code so if it does not show up, the rotation does not happen.
    i switch the lid to tablet mode and the shell reports the following

    (1)
    Code:
    $ ./magick-rotation 
    ['/dev/input/hp-wmi', '/dev/input/dell-wmi'] 
    stat /dev/input/hp-wmi 
    stat /dev/input/dell-wmi 
    False 
    /dev/input/dell-wmi 
    type 4b83  code 4d06  value 0 
    type c993  code 7  value 0 
    type 0  code 0  value 0
    (2)
    Code:
    $ sudo xxd -g1 /dev/input/dell-wmi  
    0000000: 83 4b 06 4d 00 00 00 00 93 c9 07 00 00 00 00 00  .K.M............
    but those reports only come when i start the magick-script for the first time. for reply of the above messages i have to RESTART THE COMPUTER! but when i turning the lid to tablet mode, no rotation takes place...and there is no output when returning to laptop mode.

    sorry, i still can't provide you the '5'.

    but ./xrotate works fine
    Last edited by wildschweini; December 13th, 2010 at 06:35 PM.

  6. #1316
    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

    Correct. The first two stat lines with differing device nodes is hinge.py iterating through the list of device nodes in the dictionary. With a HP you just see:
    Code:
    stat /dev/input/hp-wmi
    False tells us that a spurious hp-wmi wasn't created and the if/else statement in oem_wmi.py is assigning the correct device node.


    You're doing well wildschweini. You're giving us something to work with.
    Code:
    $ ./magick-rotation
    ['/dev/input/hp-wmi', '/dev/input/dell-wmi']
    stat /dev/input/hp-wmi
    stat /dev/input/dell-wmi
    False /dev/input/dell-wmi
    type 4b83  code 4d06  value 0
    type c993  code 7  value 0
    type 0  code 0  value 0
    Code:
    $ sudo xxd -g1 /dev/input/dell-wmi
    0000000: 83 4b 06 4d 00 00 00 00 93 c9 07 00 00 00 00 00  .K.M............
    Last edited by Favux; December 13th, 2010 at 05:57 PM.

  7. #1317
    Join Date
    Nov 2010
    Beans
    48
    Distro
    Ubuntu 11.04 Natty Narwhal

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

    have a bit more tried out, hopefully it can help you:

    (1) after rotating the screen to the left using the xrotate.py file
    outputs:
    (1a)
    Code:
    $ ./magick-rotation 
    ['/dev/input/hp-wmi', '/dev/input/dell-wmi']
    stat /dev/input/hp-wmi
    stat /dev/input/dell-wmi
    False
    /dev/input/dell-wmi
    type 5336  code 4d06  value 0
    type 948a  code c  value 0
    type 0  code 0  value 0
    (1b)
    Code:
    $ sudo xxd -g1 /dev/input/dell-wmi 
    0000000: 36 53 06 4d 00 00 00 00 8a 94 0c 00 00 00 00 00  6S.M............
    (2) after rotating the screen to inverted
    (2a)
    Code:
    $ ./magick-rotation 
    ['/dev/input/hp-wmi', '/dev/input/dell-wmi']
    stat /dev/input/hp-wmi
    stat /dev/input/dell-wmi
    False
    /dev/input/dell-wmi
    type 5b30  code 4d06  value 0
    type 7730  code 3  value 0
    type 0  code 0  value 0
    (2b)
    Code:
    $ sudo xxd -g1 /dev/input/dell-wmi 
    0000000: 30 5b 06 4d 00 00 00 00 30 77 03 00 00 00 00 00  0[.M....0w......
    (2c)
    Code:
    $ evtest /dev/input/dell-wmi 
    Input driver version is 1.0.1
    Input device ID: bus 0x19 vendor 0x0 product 0x0 version 0x0
    Input device name: "Dell WMI hotkeys"
    Supported events:
      Event type 0 (Sync)
      Event type 1 (Key)
        Event code 148 (Prog1)
        Event code 149 (Prog2)
        Event code 161 (EjectCD)
        Event code 224 (Brightness down)
        Event code 225 (Brightness up)
        Event code 227 (?)
        Event code 236 (?)
        Event code 238 (?)
    Testing ... (interrupt to exit)
    Event: time 1292262192.227120, -------------- Report Sync ------------
    (3) after rotating the screen to the right:
    (3a)
    Code:
    $ ./magick-rotation 
    ['/dev/input/hp-wmi', '/dev/input/dell-wmi']
    stat /dev/input/hp-wmi
    stat /dev/input/dell-wmi
    False
    /dev/input/dell-wmi
    ^[[Atype 5d29  code 4d06  value 0
    type 188e  code 7  value 0
    type 0  code 0  value 0
    (3b)
    Code:
    $ sudo xxd -g1 /dev/input/dell-wmi 
    0000000: 29 5d 06 4d 00 00 00 00 8e 18 07 00 00 00 00 00  )].M............
    (3c)
    Code:
    $ evtest /dev/input/dell-wmi 
    Input driver version is 1.0.1
    Input device ID: bus 0x19 vendor 0x0 product 0x0 version 0x0
    Input device name: "Dell WMI hotkeys"
    Supported events:
      Event type 0 (Sync)
      Event type 1 (Key)
        Event code 148 (Prog1)
        Event code 149 (Prog2)
        Event code 161 (EjectCD)
        Event code 224 (Brightness down)
        Event code 225 (Brightness up)
        Event code 227 (?)
        Event code 236 (?)
        Event code 238 (?)
    Testing ... (interrupt to exit)
    Event: time 1292262697.465038, -------------- Report Sync ------------
    that's it!
    Last edited by wildschweini; December 13th, 2010 at 07:05 PM.

  8. #1318
    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

    @wildschweini-
    This is all very helpful. Can you do me a favor and install evtest (if it is not currently installed). Then please post the results of:
    Code:
    evtest /dev/input/dell-wmi
    Press control-c to stop the application. While the application is running, please rotate the lid to tablet and back to laptop.

    It should produce something similar to:
    Code:
    Input driver version is 1.0.0
    Input device ID: bus 0x19 vendor 0x0 product 0x0 version 0x0
    Input device name: "HP WMI hotkeys"
    Supported events:
      Event type 0 (Sync)
      Event type 1 (Key)
        Event code 138 (Help)
        Event code 148 (Prog1)
        Event code 153 (Direction)
        Event code 224 (Brightness down)
        Event code 225 (Brightness up)
        Event code 226 (Media)
        Event code 358 (Info)
      Event type 5 (?)
        Event code 1 (?)
        Event code 5 (?)
    Testing ... (interrupt to exit)
    Event: time 1292260147.412318, type 5 (?), code 1 (?), value 1
    Event: time 1292260147.412360, -------------- Report Sync ------------
    Event: time 1292260151.669418, type 5 (?), code 1 (?), value 0
    Event: time 1292260151.669457, -------------- Report Sync ------------
    ^C
    This will help us verify what codes are showing up. From the dell-wmi.c code, it looks like we should be getting a code 5 from our results so I just want to verify it.

    Right now, it looks like there is something going on with oem-wmi.py.

  9. #1319
    Join Date
    Nov 2010
    Beans
    48
    Distro
    Ubuntu 11.04 Natty Narwhal

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

    Quote Originally Posted by Ayuthia View Post
    @wildschweini-
    This is all very helpful. Can you do me a favor and install evtest (if it is not currently installed). Then please post the results of:
    Code:
    evtest /dev/input/dell-wmi
    hello ayuthia. no problem to give you the outputs:

    Code:
    $ evtest /dev/input/dell-wmi 
    Input driver version is 1.0.1
    Input device ID: bus 0x19 vendor 0x0 product 0x0 version 0x0
    Input device name: "Dell WMI hotkeys"
    Supported events:
      Event type 0 (Sync)
      Event type 1 (Key)
        Event code 148 (Prog1)
        Event code 149 (Prog2)
        Event code 161 (EjectCD)
        Event code 224 (Brightness down)
        Event code 225 (Brightness up)
        Event code 227 (?)
        Event code 236 (?)
        Event code 238 (?)
    Testing ... (interrupt to exit)
    Event: time 1292260981.402256, -------------- Report Sync ------------
    this comes up when switching the lid to tablet (without using magick-rotation). but i really wonder because the event is showed only for the first time. all other times i switch the lid (even back to laptop) nothing happens in the shell! perhaps it is a hardware problem...?

    <edit>
    a hardware problem can be excluded because on windows all is working quite fine
    </edit>
    Last edited by wildschweini; December 13th, 2010 at 07:02 PM.

  10. #1320
    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

    Quote Originally Posted by wildschweini View Post
    hello ayuthia. no problem to give you the outputs:

    Code:
    $ evtest /dev/input/dell-wmi 
    Input driver version is 1.0.1
    Input device ID: bus 0x19 vendor 0x0 product 0x0 version 0x0
    Input device name: "Dell WMI hotkeys"
    Supported events:
      Event type 0 (Sync)
      Event type 1 (Key)
        Event code 148 (Prog1)
        Event code 149 (Prog2)
        Event code 161 (EjectCD)
        Event code 224 (Brightness down)
        Event code 225 (Brightness up)
        Event code 227 (?)
        Event code 236 (?)
        Event code 238 (?)
    Testing ... (interrupt to exit)
    Event: time 1292260981.402256, -------------- Report Sync ------------
    this comes up when switching the lid to tablet (without using magick-rotation). but i really wonder because the event is showed only for the first time. all other times i switch the lid (even back to laptop) nothing happens in the shell! perhaps it is a hardware problem...?

    <edit>
    a hardware problem can be excluded because on windows all is working quite fine
    </edit>
    That is interesting. I was thinking that we would have seen the switch code there. If you don't mind, I have one other application that I would like you to try. Please download the file and do the following:
    Code:
    tar -xvjf dell_wmi_mon.pl.tar.bz2
    perl dell_wmi_mon.pl
    and rotate from laptop to tablet and back again. Please let us know if any results come back from this. This code is from Rafi Rubin. I just changed it so that it will print out information instead of calling a rotate application.
    Attached Files Attached Files

Page 132 of 169 FirstFirst ... 3282122130131132133134142 ... 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
  •