Page 3 of 8 FirstFirst 12345 ... LastLast
Results 21 to 30 of 79

Thread: HOW TO Setup Fujitsu tablet PC bezel buttons

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

    Re: HOW TO Setup Fujitsu tablet PC bezel buttons

    I just discovered that /lib/udev/findkeyboards may not give you the correct event#. Apparently there can be two and the one you want may be one higher. So try running:
    Code:
    sudo /lib/udev/keymap -i input/event5
    You can check if there are two event numbers by running:
    Code:
    ls /dev/input/by-path
    and/or
    Code:
    ls /dev/input/by-id
    Also remember the event number can change with a reboot. So you should check again that you are using the correct one when you restart.


    Edit: Absolutely beautiful. I think I figured out how to make it behave without using less! Apparently the the reason it scrolls away is because the enter you use to enter keeps being seen as a repeating return. In other words there is no time for a key release of enter. So you just add a sleep:
    Code:
    sleep 1; sudo /lib/udev/keymap -i input/event5
    And ta da! Perfect behavior. Finally, it feels like we might be making some progress.
    Last edited by Favux; July 3rd, 2012 at 03:41 AM.

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

    Re: HOW TO Setup Fujitsu tablet PC bezel buttons

    No changes in kern.log after pressing the bezel buttons.

    Nothing happening but also no crazy stuff going on after:
    sudo /lib/udev/keymap -i input/event5

    Code:
    ls /dev/input/by-path
    pci-0000:00:1d.0-usb-0:1.3:1.0-event  platform-i8042-serio-4-event-mouse
    platform-i8042-serio-0-event-kbd      platform-i8042-serio-4-mouse
    Code:
    ls /dev/input/by-id
    usb-Chicony_Electronics_Co.__Ltd._CNF8248-event-if00
    No effect after:
    Code:
    sleep 1; sudo /lib/udev/keymap -i input/event5

    EDIT: I am not sure if this is what we are looking for, I guess this is still just entering a new line after the other all over again but with no additional crazy stuff going on:
    Code:
    sleep 1; sudo /lib/udev/keymap -i input/event4
    Last edited by Cobuntu; July 3rd, 2012 at 11:07 AM.

  3. #23
    Join Date
    Apr 2010
    Beans
    78
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOW TO Setup Fujitsu tablet PC bezel buttons

    I just noticed: I am no longer getting any output on xev from the bezel buttons!

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

    Re: HOW TO Setup Fujitsu tablet PC bezel buttons

    Right, that's because the fujitsu-table.ko isn't installed. What we want to do is change the X keycodes xev (X event) is showing, since they don't do anything for you. So we want to change the corresponding kernel keycodes.

    Let's move a step back up the chain and see what your results for the showkey commands are when you aren't in X <ctrl-alt-F1>. That's "a) kernel codes" in appendix 2 on the Rotation HOW TO. That'll give us a starting point, and hopefully something to work with.

    Next you'll check for other event numbers like I talked about above. And then you'll re-install the fujitsu-tablet.ko from Magick and see if you can get output with it installed. With both of these we're looking for the scan codes we can use for setkeycodes.

    Found a nice little summary of what we're trying to do: https://wiki.archlinux.org/index.php...es_to_keycodes Wish I had found it ages ago. Had to figure it out for myself.

  5. #25
    Join Date
    Apr 2010
    Beans
    78
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOW TO Setup Fujitsu tablet PC bezel buttons

    Ok, thanx for clearing that up to me.

    Unfortunately I am not getting anything from showkey -s or showkey -k after leaving X.
    Also my event number never changed so far, no matter when I checked, /lib/udev/findkeyboards always gave me AT keyboard: input/event4

    After reinstalling the fujitsu-tablet.ko from Magick I am getting an output on showkey -s and showkey -k:

    1=1___(in blue) A____(in white) scroll key down
    showkey -s:
    0xe0 0x0f
    0xe0 0x8f
    showkey -k:
    keycode 178 press
    keycode 178 release

    2=2___(in blue) B____(in white) scroll key up
    showkey -s:
    0x75
    0xf5
    showkey -k:
    keycode 177 press
    keycode 177 release

    3=3___(in white) screen rotation symbol
    showkey -s:
    0x6b
    0xeb
    showkey -k:
    keycode 153 press
    keycode 153 release

    4=4___(in blue) Fn
    showkey -s:
    0x1d
    0x9d
    showkey -k:
    keycode 29 press
    keycode 29 release

    5=ENT___ (in white) ALT
    showkey -s:
    0x38
    0xb8
    showkey -k:
    keycode 56 press
    keycode 56 release

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

    Re: HOW TO Setup Fujitsu tablet PC bezel buttons

    Nice job!

    OK, so nothing talks to the bezel keys but fujitsu-tablet.ko and it is mandatory to install if we want to communicate with them.

    Which hopefully means the reason we couldn't get anything with
    Code:
    sudo /lib/udev/keymap -i input/event4
    is /lib/udev/findkeyboards was giving us the wrong event number. With luck it is one number higher than listed but you can also check with the by-id or by-path commands. At worst we can just try each event# in /dev/input until we get something.

    Also apparently another possibility is the fujitsu-tablet module itself may have an event number. So run:
    Code:
    xinput list
    and post the output of that. Check if we see anything.
    Last edited by Favux; July 4th, 2012 at 01:19 AM.

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

    Re: HOW TO Setup Fujitsu tablet PC bezel buttons

    Favux, do you want me to deinstall fujitsu-tablet.ko again before trying all the numbers in /dev/input instead of sudo /lib/udev/keymap -i input/event4
    I see by-id or by-path in that folder as well, but how do I use those in what command?

    Code:
    xinput list
    Virtual core pointer                        id=2    [master pointer  (3)]
    ⎜   ↳ Virtual core XTEST pointer                  id=4    [slave  pointer  (2)]
    ⎜   ↳ ImPS/2 Generic Wheel Mouse                  id=15    [slave  pointer  (2)]
    ⎜   ↳ Serial Wacom Tablet stylus                  id=16    [slave  pointer  (2)]
    ⎜   ↳ Serial Wacom Tablet eraser                  id=17    [slave  pointer  (2)]
    ⎜   ↳ Serial Wacom Tablet touch                   id=18    [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)]
        ↳ Fujitsu FUJ02E3                             id=7    [slave  keyboard (3)]
        ↳ Video Bus                                   id=8    [slave  keyboard (3)]
        ↳ Fujitsu FUJ02B1                             id=9    [slave  keyboard (3)]
        ↳ Fujitsu FUJ02BF                             id=10    [slave  keyboard (3)]
        ↳ Power Button                                id=11    [slave  keyboard (3)]
        ↳ Sleep Button                                id=12    [slave  keyboard (3)]
        ↳ CNF8248                                     id=13    [slave  keyboard (3)]
        ↳ AT Translated Set 2 keyboard                id=14    [slave  keyboard (3)]

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

    Re: HOW TO Setup Fujitsu tablet PC bezel buttons

    No, leave it installed for now on.

    Ah hah. I'll bet we want the event number for:
    Code:
    ↳ Fujitsu FUJ02BF                             id=10    [slave  keyboard (3)]
    in your xinput list output! And that was the problem.

    Edit:
    Run the following command in a terminal:
    Code:
    cat /proc/bus/input/devices
    and post the output, especially for Fujitsu FUJ02BF. That will tell us the event number.
    Last edited by Favux; July 4th, 2012 at 01:58 AM.

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

    Re: HOW TO Setup Fujitsu tablet PC bezel buttons

    Code:
    cat /proc/bus/input/devices
    I: Bus=0019 Vendor=0000 Product=0005 Version=0000
    N: Name="Lid Switch"
    P: Phys=PNP0C0D/button/input0
    S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input0
    U: Uniq=
    H: Handlers=event0 
    B: PROP=0
    B: EV=21
    B: SW=1
    
    I: Bus=0019 Vendor=0000 Product=0001 Version=0000
    N: Name="Power Button"
    P: Phys=PNP0C0C/button/input0
    S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input1
    U: Uniq=
    H: Handlers=kbd event1 
    B: PROP=0
    B: EV=3
    B: KEY=10000000000000 0
    
    I: Bus=0019 Vendor=0000 Product=0003 Version=0000
    N: Name="Sleep Button"
    P: Phys=PNP0C0E/button/input0
    S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input2
    U: Uniq=
    H: Handlers=kbd event2 
    B: PROP=0
    B: EV=3
    B: KEY=4000 0 0
    
    I: Bus=0019 Vendor=0000 Product=0001 Version=0000
    N: Name="Power Button"
    P: Phys=LNXPWRBN/button/input0
    S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
    U: Uniq=
    H: Handlers=kbd event3 
    B: PROP=0
    B: EV=3
    B: KEY=10000000000000 0
    
    I: Bus=0011 Vendor=0001 Product=0001 Version=ab54
    N: Name="AT Translated Set 2 keyboard"
    P: Phys=isa0060/serio0/input0
    S: Sysfs=/devices/platform/i8042/serio0/input/input4
    U: Uniq=
    H: Handlers=sysrq kbd event4 
    B: PROP=0
    B: EV=120013
    B: KEY=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe
    B: MSC=10
    B: LED=7
    
    I: Bus=0019 Vendor=0000 Product=0006 Version=0000
    N: Name="Video Bus"
    P: Phys=LNXVIDEO/video/input0
    S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:00/input/input5
    U: Uniq=
    H: Handlers=kbd event5 
    B: PROP=0
    B: EV=3
    B: KEY=3e000b00000000 0 0 0
    
    I: Bus=0019 Vendor=0000 Product=0006 Version=0000
    N: Name="Fujitsu FUJ02B1"
    P: Phys=FUJ02B1/video/input0
    S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:09/FUJ02B1:00/input/input6
    U: Uniq=
    H: Handlers=kbd event6 
    B: PROP=0
    B: EV=3
    B: KEY=1000300000000 0 0 0
    
    I: Bus=0019 Vendor=0000 Product=0006 Version=0000
    N: Name="Fujitsu FUJ02E3"
    P: Phys=FUJ02E3/video/input0
    S: Sysfs=/devices/LNXSYSTM:00/device:00/FUJ02E3:00/input/input7
    U: Uniq=
    H: Handlers=kbd event7 
    B: PROP=0
    B: EV=3
    B: KEY=1000000000c00 300000 0 0
    
    I: Bus=0019 Vendor=1734 Product=0001 Version=0101
    N: Name="Fujitsu FUJ02BF"
    P: Phys=FUJ02BF/input0
    S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:09/FUJ02BF:00/input/input8
    U: Uniq=
    H: Handlers=sysrq kbd event8 
    B: PROP=0
    B: EV=100033
    B: KEY=10000300000000 6000002000000 0 100000020000000
    B: MSC=10
    B: SW=22
    
    I: Bus=0003 Vendor=04f2 Product=b169 Version=8911
    N: Name="CNF8248"
    P: Phys=usb-0000:00:1d.0-1.3/button
    S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/input/input9
    U: Uniq=
    H: Handlers=kbd event9 
    B: PROP=0
    B: EV=3
    B: KEY=100000 0 0 0
    
    I: Bus=0000 Vendor=0000 Product=0000 Version=0000
    N: Name="HDA Intel HDMI/DP,pcm=3"
    P: Phys=ALSA
    S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input10
    U: Uniq=
    H: Handlers=event10 
    B: PROP=0
    B: EV=21
    B: SW=140
    
    I: Bus=0000 Vendor=0000 Product=0000 Version=0000
    N: Name="HDA Intel Dock Mic"
    P: Phys=ALSA
    S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input11
    U: Uniq=
    H: Handlers=event11 
    B: PROP=0
    B: EV=21
    B: SW=10
    
    I: Bus=0000 Vendor=0000 Product=0000 Version=0000
    N: Name="HDA Intel Mic"
    P: Phys=ALSA
    S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input12
    U: Uniq=
    H: Handlers=event12 
    B: PROP=0
    B: EV=21
    B: SW=10
    
    I: Bus=0000 Vendor=0000 Product=0000 Version=0000
    N: Name="HDA Intel Front Headphone"
    P: Phys=ALSA
    S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input13
    U: Uniq=
    H: Handlers=event13 
    B: PROP=0
    B: EV=21
    B: SW=4
    
    I: Bus=0000 Vendor=0000 Product=0000 Version=0000
    N: Name="HDA Intel Dock Line-Out"
    P: Phys=ALSA
    S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input14
    U: Uniq=
    H: Handlers=event14 
    B: PROP=0
    B: EV=21
    B: SW=40
    
    I: Bus=0011 Vendor=0002 Product=0005 Version=0000
    N: Name="ImPS/2 Generic Wheel Mouse"
    P: Phys=isa0060/serio4/input0
    S: Sysfs=/devices/platform/i8042/serio4/input/input15
    U: Uniq=
    H: Handlers=mouse0 event15 
    B: PROP=0
    B: EV=7
    B: KEY=70000 0 0 0 0
    B: REL=103

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

    Re: HOW TO Setup Fujitsu tablet PC bezel buttons

    Looks promising. It says it's got keyboard input and it is on event8:
    Code:
    I: Bus=0019 Vendor=1734 Product=0001 Version=0101
    N: Name="Fujitsu FUJ02BF"
    P: Phys=FUJ02BF/input0
    S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:09/FUJ02BF:00/input/input8
    U: Uniq=
    H: Handlers=sysrq kbd event8 
    B: PROP=0
    B: EV=100033
    B: KEY=10000300000000 6000002000000 0 100000020000000
    B: MSC=10
    B: SW=22

Page 3 of 8 FirstFirst 12345 ... 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
  •