Showing posts with label buttons. Show all posts
Showing posts with label buttons. Show all posts

Saturday, 21 June 2008

U810 Tablet Buttons

I've settled on some keyboard events for the tablet buttons (Fn is Sticky):

Down/Left: KEY_PAGEDOWN (rewind in MythTV)
Fn-Down/Left: KEY_HOME (previous track in MythTV)
Up/Right: KEY_PAGEUP (ffwd in MythTV)
Fn-Up/Right: KEY_END (next track in MythTV)

C-Alt-D: KEY_ESC (previous screen in MythTV)
Fn-C-Alt-D: ?? Hibernate

/: ??
Fn-/: ?? Keyboard LED toggle
//: KEY_MEDIA (play/pause in MythTV?)
Fn-//: ?? (Menu in MuyhTV?)
Screen: ??
Fn-Screen: ?? Invert Screen toggle (since XRandR-Intel-compiz combo fails on rotate +/- 90)

There are a number of KEY_* events in the linux source but not all of them seem to make it though to keyboard mappings in console or X mode - some experimentation required, obviously.

Thursday, 12 June 2008

U810 Buttons and Touchscreen Part 2

Have done some hacking to the fsc_btns code and now it can detect a U-series system using DMI and locate the button controller which gives me access to the three buttons at the bottom of the screen, the dedicated Ctrl-Alt-Del button and the Up-Fn-Down triplet by the mouse nub. Now I just need to decide which keycodes to assign to them and work out how to make the Fn button a sticky modifier key. Then I'll feed the code back to the sourceforge project.

While testing for scancodes and events to work out which key is which, I've verified that the volume control rocker generates the correct scancodes but the Fn-A/S/D screen controls generate nothing (so more work required then).

As audio volume doesn't work, the Intel audio config is obviously stuffed. There's a longish page in the OpenSuSE support database on this subject to be worked through

Editing code on the U810 has been quite a good exercise in getting used to the keyboard - to the extent that I find myself reaching for Alt-Space on a regular keyboard instead of Tab and trying to use shifted cursor keys. I do think the A-row could be moved over a few mm though (make the :; skinny and you have room for a slightly displaced skinny Tab too). Yes, I have seen the U2010 keyboard.

Tuesday, 10 June 2008

U810 Buttons and Touchscreen Part 1

The Fujitsu touchscreen Lifebooks are Novell/SuSE certified so where are the drivers? They're not in the released mainstream OpenSuSE distro (10.3) but they have to be somewhere. A bit of digging gets me to the OpenSuSE Tablet PC pages which look rather promising - there's an evtouch package for the touchscreen and a Fujitsu button driver too. The T/P series tablets are mentioned but I'm hoping the U series will be covered too as I doubt Fujitsu would re-engineer a different mechanism unless they really had to. These drivers are currently listed as unsupported but I hope they make it into the mainstream 11.0 release or soon after.

Adding the OpenSuSE Tablet PC Repository to YAST allows us to pull down fsc_btns which looks like a good shot for a button driver (there's also a fair bit of Fujitsu-related activity in the Linux ACPI Project itself so this may be a stopgap). So I attempt to download it and discover it has a dependency on an earlier kernel than the one I have.

Okay, install the basic development packages and kernel source from the main repository and get the fsc_btns source from the SRPMS. Then proceed as follows...
  1. cd /usr/src/linux
  2. make cloneconfig
  3. make modules prepare
  4. make coffee, eat lunch :)
  5. cd /usr/src/packages/SOURCES/fsc_btns
  6. make
  7. make install
  8. modprobe fsc_btns
  9. "No such device" :(
Okay, time to look at the source code then...