Page 2 of 8 FirstFirst 1234 ... LastLast
Results 11 to 20 of 79

Thread: HOW TO Setup Fujitsu tablet PC bezel buttons

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

    Re: HOW TO Setup Fujitsu tablet PC bezel buttons

    Well shoot. So you have the right event number.

    So what output do you get when you enter?
    Code:
    sudo /lib/udev/keymap -i input/event4
    And if you haven't already be sure to run:
    Code:
    sudo /lib/udev/keymap input/event4 > ~/orig-map.txt
    so you have a record of the original udev keymap. And come to think of it, check the contents and make sure the stuff is in it.

  2. #12
    Join Date
    Apr 2010
    Beans
    78
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOW TO Setup Fujitsu tablet PC bezel buttons

    The terminal is going nuts and scrolling down endlessly until I press ESC. But I guess this is a good thing?

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

    Re: HOW TO Setup Fujitsu tablet PC bezel buttons

    YES!

    Ha, it is sounding like the problem is less isn't installed. I thought it was by default, but maybe I did it so long ago I forgot? So let's see what happens when you do:
    Code:
    sudo apt-get install less

  4. #14
    Join Date
    Apr 2010
    Beans
    78
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOW TO Setup Fujitsu tablet PC bezel buttons

    Hmm, I guess not:

    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    less is already the newest version.
    The following packages were automatically installed and are no longer required:
      libhsqldb-java libservlet2.5-java
    Use 'apt-get autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

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

    Re: HOW TO Setup Fujitsu tablet PC bezel buttons

    Darn.

    OK, it looks like because fujitsu-tablet.ko is assigning the button we can't get the scan code. So it is styming us even though the assignment it is making is useless to you.

    So I need to do a complete rethink on how to do this. Ouch.

    What we know so far is the two bezel scroll buttons are being assigned to:
    XF86ScrollDown
    and
    XF86ScrollUp

    The X Server reserves buttons 4 thru 7 for vertical and horizontal scroll.

    So I suspect we could get a reaction if we could change:
    XF86ScrollDown to Button4 (004)
    and
    XF86ScrollUp to Button5 (005)

    Don't know for sure those are the right ones but not many combinations. Which is a problem since subtracting 8 from the X keycodes there results in negative numbers for the kernel keycodes which aren't allowed. But even if we could but then we'd likely get the same problem as the HP Elitebooks. Since their buttons and not scroll wheels you'd get a keypress and keyrelease and it would only "scroll" one line. So instead it would be better to use:
    XF86ScrollDown to keycode 112 = Prior NoSymbol Prior
    and
    XF86ScrollUp to keycode 117 = Next NoSymbol Next

    Hmmm.

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

    Re: HOW TO Setup Fujitsu tablet PC bezel buttons

    Alright, the logical thing to do is uninstall the fujitsu-tablet.ko from MagickExtras. The uninstall instructions are in the fujitsu readme.

    Then try running the:
    Code:
    sudo /lib/udev/keymap -i input/event4 | less
    command and see if we can get them. Don't forget to restart once you've cleared it out.

    We already know fujitsu-tablet.ko works because Magick works with it. If that works then in the HOW TO you'll tell folks to do that before they install fujitsu-tablet.

    I'm looking at the fujitsu-tablet.c code and it doesn't have the scan codes in it. The old ones used to (check the dell-wmi.c code in MagickExtras) so I guess when they switched to the short keymap method that changed how they do things. Making it harder to figure out what's going on.

    Edit: By the way the Rotate bezel button may give a result now before you remove fujitsu-tablet.ko. You may want to check that.
    Last edited by Favux; July 2nd, 2012 at 06:19 PM.

  7. #17
    Join Date
    Apr 2010
    Beans
    78
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOW TO Setup Fujitsu tablet PC bezel buttons

    Hey Favux, I think you lost me with #15 - is there something I should have done in it?

    I uninstalled fujitsu-tablet.ko according to Fujitsu readme but /usr/src/MagickExtras/fujitsu-tablet-20120404-gerlach remains?

    None of the buttons gives me any response in xev now and MagickRotation no longer works?

    Running
    sudo /lib/udev/keymap -i input/event4 | less
    is not doing anything I can see in the terminal, but when I leave it open and go to other applications it seems to scroll down or do something in the background - then when I tried to close the terminal it reopened several terminals and was scrolling down within one of them. When I repeated the command after a restart it was similar with a Nautilus window. In both cases it stopped when I managed to close the original terminal window...?

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

    Re: HOW TO Setup Fujitsu tablet PC bezel buttons

    No, I was just thinking out loud in post #15.

    Well that bites. What am I missing?

    What happens if you press one of the bezel keys now and run?
    Code:
    sudo dmesg | grep atkbd
    or
    Code:
    sudo dmesg | grep [Uu]nkown
    Last edited by Favux; July 2nd, 2012 at 11:34 PM.

  9. #19
    Join Date
    Apr 2010
    Beans
    78
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOW TO Setup Fujitsu tablet PC bezel buttons

    I suppose it is also dmesg and not demesg in the second command? With both nothing happens.

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

    Re: HOW TO Setup Fujitsu tablet PC bezel buttons

    Yep, a typo.

    See anything in /var/log/kern.log? Say with:
    Code:
    cat /var/log/kern.log
    after you press a bezel button?

Page 2 of 8 FirstFirst 1234 ... 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
  •