Page 21 of 65 FirstFirst ... 11192021222331 ... LastLast
Results 201 to 210 of 646

Thread: How to Rotate the Screen for a TX2000 Tablet PC

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

    Re: How to Rotate the Screen for a TX2000 Tablet PC

    Hi Shawn,

    Fantastic! You're there. And the script works? Cool.

    Every time they update Ubuntu the button mapping changes. I guess because there's a new Xorg Xserver (v. 1.6 in Jaunty). What we were able to do is the key code addendum near the bottom of the HOW TO. That gave us back the two buttons that disappeared going from Hardy to Intrepid. 2/4 we could never get.

    But don't do that!! No one has reported that it works in Jaunty. Don't be the first to try it!

    If after a few weeks, when you know more, you want to do some research and look into it that'd be great.

  2. #202
    Join Date
    Jul 2009
    Beans
    3

    Re: How to Rotate the Screen for a TX2000 Tablet PC

    Hi all,

    Perhaps I have overlooked something here or a difference between distros. But I figure it can't hurt to ask you guys for a little help.

    I've recently purchased an HP tx2510us and am trying to get the rotation to work properly. I've tried all of the scripts listed in the first post and they mostly work. The only problem is that when I have this in tablet mode, the bottom portion of the screen is unusable. It is just a stretched out blur and anything placed into that area is completely unreadable. I am running a new install of Gentoo and do not use Compiz at all. I am using the fglrx driver. I have tried each script with Fluxbox, Gnome, and Kde4, each resulting in this same unusable area equaling about 1/3 of the screen.

    If you need anything from me system wise to help you assist me I'll be more than happy to post it. And thanks in advance for any possible help you can give.

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

    Re: How to Rotate the Screen for a TX2000 Tablet PC

    Hi gothgirl,

    Welcome to Ubuntu forums.

    That's a weird one. Like you said it may be a distro thing.

    Can you tell me what version of Catalyst your "fglrx" is from?
    Also which version of linuxwacom do you have installed? And which version of Xorg's Xserver?

    Edit: By the way did you run the aticonfig command in Appendix 1 at the bottom?
    Last edited by Favux; July 17th, 2009 at 03:25 AM.

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

    Re: How to Rotate the Screen for a TX2000 Tablet PC

    It does not appear to be a distro thing. I am able to get it to work on Gentoo with the 2.6.30 kernel (64-bit) and the catalyst 9.6 (ati-drivers 9.6). However, I am using the tx2-1025dx. If you are not using the 9.6, then it could be missing a patch.

    I can also confirm that it does not work for me when I use compiz, but it does work fine using kwin (under KDE4).

  5. #205
    Join Date
    Jun 2008
    Beans
    62

    Re: How to Rotate the Screen for a TX2000 Tablet PC

    i can solve that one.. turn off compiz

    that's the 'blur' issue.

    system > prefs > appearance > visual effects > none

    the scripts are supposed to toggle compiz vs metacity, but something must not be working on your implementation.

  6. #206
    Join Date
    May 2006
    Beans
    36
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: How to Rotate the Screen for a TX2000 Tablet PC

    Hello again. Sorry about my last post not being very clear on how to get to where I was at that time. I've made some more progress, and I'll try to be a little clearer.

    So. It works.

    Automatic rotation.

    Make sure you have the kernel headers for your system (apparently 2.6.28-14 is the latest, which means I have to rebuild also...).

    Apt-get install inotify-tools. This includes a program that will monitor a file for a state change.

    Make a folder and place hp-wmi.c (with the ".txt" removed, it's already patched) and the Makefile in there.

    Run the makefile and place the resulting .ko (there will be more files generated, but that's the one we're interested in) inside of /lib/modules/*kernel_version*/kernel/drivers/misc.

    Take the rotate_screen_inotify_v2 script (a modification of something I found here earlier, sorry for not being able to give proper credit) and open it. The secret sauce here is inotifywait, which monitors the tablet switch input device created by the driver. You'll have to change the input event to your proper one that's watched in one of the line that runs inotifywait. Hopefully I can get something in there to automatically detect which one it is at the first running of the script.

    If you want to test out the script, comment out all lines dealing with xrandr and wacom rotation. Uncomment the lines that place the text file in /tmp. You can open up two terminals: one to run the (modified) script and one to monitor the file created in.

    I've learned a little bit more about how to play with HAL and udev through this, but I still have yet to get HAL to recognize the tablet switch. The actual node is part of the hp-wmi platform device, and not something "under" it like the rfkill switches (bt, wifi, etc). And if hal doesn't see it, udev doesn't know or care if it exists, and dbus can't tell you when something's changed. So that's the next step to get this working "properly". But for right now, we have this.

    Eventually, I'm going to get this put into an init script.

    Good Luck and have fun.

    DT
    Attached Files Attached Files
    Last edited by MisteR2; July 19th, 2009 at 12:22 AM. Reason: Didn't actually say that it works : )

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

    Re: How to Rotate the Screen for a TX2000 Tablet PC

    Hi MisteR2,

    Welcome back. Thanks, your explanation clears things up a bit.

    Do you have any thoughts on getting HAL onboard?

  8. #208
    Join Date
    May 2006
    Beans
    36
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: How to Rotate the Screen for a TX2000 Tablet PC

    I'm not sure exactly how to go about it. When I use "udevadm info -ap /sys/devices/platform/hp-wmi" this is what I get:

    Code:
      looking at device '/devices/platform/hp-wmi':
        KERNEL=="hp-wmi"
        SUBSYSTEM=="platform"
        DRIVER=="hp-wmi"
        ATTR{modalias}=="platform:hp-wmi"
        ATTR{display}=="1"
        ATTR{dock}=="0"
        ATTR{tablet}=="0"
    
      looking at parent device '/devices/platform':
        KERNELS=="platform"
        SUBSYSTEMS==""
        DRIVERS==""
    I'm still unsure on how to get sysfs values to work within HAL. I think it's something to do with the platform device. When I was playing with HAL to get the other device to play nice (the one I mentioned earlier in the thread deals with hotkeys, unfortunately not the bezel keys) I was able to add things to it via "append" tags in an FDI file. I haven't been able to do that with this platform device.

    DT

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

    Re: How to Rotate the Screen for a TX2000 Tablet PC

    Hi DT,

    You are definitely beyond me. A couple of links you may want to glance at:

    Think wiki on docking and un-docking (with reference link): http://www.thinkwiki.org/wiki/Instal...a_ThinkPad_X61

    kernel modules keymap: http://people.freedesktop.org/~hughs...p-modules.html

    LaptopSpecialKeys wiki: https://help.ubuntu.com/community/LaptopSpecialKeys

    Hopefully something in there you can use, and I'm not wasting your time.

  10. #210
    Join Date
    May 2006
    Beans
    36
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: How to Rotate the Screen for a TX2000 Tablet PC

    I've been past a lot of those links, and unfortunately many of them depend on acpi signals to run programs. Right now, this doesn't send any ACPI signals. Which is why HAL is (right now) pretty important. Maybe I'll try to get in touch with Matthew again and see if he has any ideas on how to access it.

    So did everything work out for you? Anytime I have the script running in a xterminal (or whatever), I can swivel the screen and it switches.

    DT

Page 21 of 65 FirstFirst ... 11192021222331 ... 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
  •