Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Making X cooperate with fsc-btns/fscd
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message

Joined: 01 Dec 2007
Posts: 20

PostPosted: Wed Apr 23, 2008 6:25 pm    Post subject: Making X cooperate with fsc-btns/fscd Reply with quote

Hello world,

I’m using an FSC Lifebook T4215 machine, which is a convertible notebook, i. e. the display can be rotated to make it a tablet. Rotation functionality for X and several keys along the screen are supported by fscd, which comprises a userspace daemon (fscd) and a kernel module (fsc-btns). The module represents the hardware as a keyboard via the kernel input infrastructure and provides /dev/input/input8 and /dev/input/event6 (numbers vary). This is what I see in /proc/bus/input/devices:

I: Bus=0019 Vendor=1734 Product=0001 Version=0101
N: Name="fsc tablet buttons"
P: Phys=fsc/input0
S: Sysfs=/devices/platform/fsc_btns/input/input8
U: Uniq=
H: Handlers=kbd event6
B: EV=100033
B: KEY=10000 0 0 0 10000300000c00 6000002301040 0 100000010000000
B: MSC=10
B: SW=2

So far, so good. All fscd functionality is dependent on X, so I’ve put it in my .xinitrc. It is supposed to open the module’s /dev/input/event... file, read keystrokes (or rotation events) and do things like rotate the display and the tablet pointer or pass scrolling events when I press the relevant keys. However, fscd never receives any input from the device; its select() call times out even if I press buttons. evtest never reports any input, either.

On the other hand, I see the button events in xev and /var/log/Xorg.0.log contains

(**) fsc tablet buttons: always reports core events
[xkb chatter]
(II) XINPUT: Adding extended input device "fsc tablet buttons" (type: KEYBOARD)
evdev: leds are 0x0 for device 8
(II) fsc tablet buttons: Init
(II) fsc tablet buttons: On

When X is not running, evtest correctly reports button events from the device.

My hypothesis is that X opens the device and eats all input before other applications can get to it. I see no need for X to read from this device, so I’d like to tell it not to touch it. Can somebody please tell me how to do that?

Miscellaneous data: ~amd64 system, 2.6.24-hardened kernel, xorg-server-
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum