Hi The linux_input module doesn't detect the keyboard on various PowerMacintosh'es, resulting in the failure of the call
directfb->GetInputDevice (directfb, DIDID_KEYBOARD, &keyboard) This issue coinstrained us to use linux_input on i386 and AMD and ps2mouse+keyboard on PowerPC machines [1], while we would like to rely on a single input handler module (linux_input) for all architectures. I did some experiments with a PowerMac whose relevant characteristics are reported below together with dfbinfo output: any idea how to address this issue? thanks Attilio [1] http://wiki.debian.org/DebianInstaller/GUIPowerPC macswell:/home/attilio/gtkdfb# cat /proc/cpuinfo ... platform : PowerMac machine : PowerMac3,4 motherboard : PowerMac3,4 MacRISC2 MacRISC Power Macintosh detected as : 69 (PowerMac G4 Silver) pmac flags : 00000010 L2 cache : 1024K unified pmac-generation : NewWorld macswell:/home/attilio/gtkdfb# uname -a Linux macswell 2.6.22-3-powerpc #1 Tue Nov 13 15:52:56 UTC 2007 ppc GNU/Linux macswell:/home/attilio/gtkdfb# m /proc/bus/input/devices I: Bus=0017 Vendor=0001 Product=0001 Version=0100 N: Name="Macintosh mouse button emulation" P: Phys= S: Sysfs=/class/input/input0 U: Uniq= H: Handlers=mouse0 ts0 event0 B: EV=7 B: KEY=70000 0 0 0 0 0 0 0 0 B: REL=3 I: Bus=0019 Vendor=0001 Product=0001 Version=0100 N: Name="PMU" P: Phys= S: Sysfs=/class/input/input1 U: Uniq= H: Handlers=kbd event1 B: EV=23 B: KEY=100000 0 0 0 B: SW=1 I: Bus=0017 Vendor=001f Product=0001 Version=0100 N: Name="PowerMac Beep" P: Phys=powermac/beep S: Sysfs=/class/input/input2 U: Uniq= H: Handlers=kbd event2 B: EV=40001 B: SND=6 /* dfbinfo output, ps2mouse and keyboard disabled, using linux_input */ macswell:/home/attilio/gtkdfb# ./bin/dfbinfo =======================| DirectFB 1.0.1 |======================= (c) 2001-2007 The DirectFB Organization (directfb.org) (c) 2000-2004 Convergence (integrated media) GmbH ------------------------------------------------------------ (*) DirectFB/Core: Single Application Core. (2007-12-02 09:36) [ DEBUG ][ TRACE ] (*) Direct/Memcpy: Using libc memcpy() (*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 11894)... (*) Direct/Modules: suppress module 'ps2mouse' (*) Direct/Modules: suppress module 'keyboard' (*) Direct/Thread: Running 'Linux Input' (INPUT, 11897)... (*) DirectFB/Input: Macintosh mouse button emulatio (1) 0.1 (directfb.org) (*) Direct/Thread: Running 'Linux Input' (INPUT, 11898)... (*) DirectFB/Input: PMU (2) 0.1 (directfb.org) (*) Direct/Thread: Running 'Linux Input' (INPUT, 11899)... (*) DirectFB/Input: PowerMac Beep (3) 0.1 (directfb.org) (*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (directfb.org) (*) DirectFB/Core/WM: Default 0.3 (directfb.org) Screen (00) FBDev Primary Screen (primary screen) Caps: VSYNC POWER_MANAGEMENT Layer (00) FBDev Primary Layer (primary layer) Type: GRAPHICS Caps: SURFACE BRIGHTNESS CONTRAST SATURATION Input (01) Macintosh mouse button emulatio (primary mouse) Type: MOUSE Caps: AXES BUTTONS Max. Axis: 1 Max. Button: 2 #disable-module=keyboard #disable-module=ps2mouse disable-module=linux_input /* dfbinfo output, linux_input disabled, using ps2mouse and keyboard */ macswell:/home/attilio/gtkdfb# ./bin/dfbinfo =======================| DirectFB 1.0.1 |======================= (c) 2001-2007 The DirectFB Organization (directfb.org) (c) 2000-2004 Convergence (integrated media) GmbH ------------------------------------------------------------ (*) DirectFB/Core: Single Application Core. (2007-12-02 09:36) [ DEBUG ][ TRACE ] (*) Direct/Memcpy: Using libc memcpy() (*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 11909)... (*) Direct/Modules: suppress module 'linux_input' (*) Direct/Thread: Running 'Keyboard Input' (INPUT, 11912)... (*) DirectFB/Input: Keyboard 0.9 (directfb.org) (*) Direct/Thread: Running 'PS/2 Input' (INPUT, 11913)... (*) DirectFB/Input: IMPS/2 Mouse 1.0 (directfb.org) (*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (directfb.org) (*) DirectFB/Core/WM: Default 0.3 (directfb.org) Screen (00) FBDev Primary Screen (primary screen) Caps: VSYNC POWER_MANAGEMENT Layer (00) FBDev Primary Layer (primary layer) Type: GRAPHICS Caps: SURFACE BRIGHTNESS CONTRAST SATURATION Input (00) Keyboard (primary keyboard) Type: KEYBOARD Caps: KEYS Input (01) IMPS/2 Mouse (primary mouse) Type: MOUSE Caps: AXES BUTTONS Max. Axis: 2 Max. Button: 2 _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev