Bug 116406

Summary: ps2 mouse is not found on Pegasos
Product: [openSUSE] SUSE LINUX 10.0 Reporter: peter czanik <peter>
Component: InstallationAssignee: Jiri Srain <jsrain>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: RC 1   
Target Milestone: SUSE Linux 10.1   
Hardware: PowerPC   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: YaST2 log

Description peter czanik 2005-09-11 17:52:36 UTC
I guess, it's kernel, but probably else. PS2 mouse does not seem to work with
Pegasos. hwinfo and this way sax2 finds talks only about an Apple mouse, and the
mouse does not work even if I set the correct type in sax2. I tried 3 different
PS2 mice. PS2 mice work fine on Debian and Gentoo on the same machine.
If I plug in an USB mouse, it works fine.
Comment 1 peter czanik 2005-09-11 19:12:07 UTC
The second mouse (#11) is always found, even if no mouse is plugged in, or a
working USB mouse is found. Actually, I don't have any Apple mouse. PS2 mice is
never found. This USB mouse (#10) is found, and works fine.

linux:~ # hwinfo --mouse
10: USB 00.0: 10503 USB Mouse
  [Created at usb.122]
  UDI:
/org/freedesktop/Hal/devices/usb_device_46d_c00e_noserial_if0_logicaldev_input
  Unique ID: rXe7.hBvPTbkvHW6
  Parent ID: zGOo.4GnYUCJ5yQA
  SysFS ID: /devices/pci0000:00/0000:00:0c.3/usb2/2-2/2-2:1.0
  SysFS BusID: 2-2:1.0
  Hardware Class: mouse
  Model: "Logitech Optical Mouse"
  Hotplug: USB
  Vendor: usb 0x046d "Logitech Inc."
  Device: usb 0xc00e "Optical Mouse"
  Revision: "11.10"
  Compatible to: int 0x0210 0x0013
  Driver: "usbhid"
  Device File: /dev/input/mice (/dev/input/mouse1)
  Device Files: /dev/input/mice, /dev/input/mouse1, /dev/input/event2
  Device Number: char 13:63 (char 13:33)
  Speed: 1.5 Mbps
  Module Alias: "usb:v046DpC00Ed1110dc00dsc00dp00ic03isc01ip02"
  Driver Info #0:
    Buttons: 3
    Wheels: 1
    XFree86 Protocol: explorerps/2
    GPM Protocol: exps2
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #9 (Hub)

11: ADB 00.0: 10502 Bus Mouse
  [Created at input.157]
  Unique ID: iOm7.nCDa6GzQ9zF
  Hardware Class: mouse
  Model: "Apple Macintosh mouse button emulation"
  Vendor: int 0x0100 "Apple"
  Device: int 0x0300 "Macintosh mouse button emulation"
  Compatible to: int 0x0210 0x0003
  Device File: /dev/input/mice (/dev/input/mouse0)
  Device Files: /dev/input/mice, /dev/input/mouse0, /dev/input/event0
  Device Number: char 13:63 (char 13:32)
  Driver Info #0:
    Buttons: 3
    Wheels: 0
    XFree86 Protocol: explorerps/2
    GPM Protocol: exps2
  Config Status: cfg=new, avail=yes, need=no, active=unknown
Comment 2 Olaf Hering 2005-09-12 11:57:19 UTC
you have to run 'modprobe psmouse' as we found today. Patrick will document it.
Comment 3 Patrick Kirsch 2005-09-12 12:07:00 UTC
There is now a opensuse entry,
http://www.opensuse.org/PPC:X11_config
Comment 4 Vojtech Pavlik 2005-09-12 12:23:22 UTC
You probably can just enable psmouse as a built-in module in the Pegasos kernel,
that's the way it's done on x86.
Comment 5 Vojtech Pavlik 2005-09-12 12:24:46 UTC
The Apple mouse hack probably shouldn't be built in for the Pegasos. Or
are the configs shared with Apple hw?
Comment 6 Olaf Hering 2005-09-12 12:27:53 UTC
what apple mouse hack?
the kerne for pegasos is kernel-default.
Comment 7 Vojtech Pavlik 2005-09-12 13:18:54 UTC
Mouse #11 in the above config. It's an emulation of extra buttons for Powerbooks,
which only have one button next to the touchpad, using keyboard modifier keys
(ctrl, etc.). It's probably counterproductive on non-apple systems.
Comment 8 Olaf Hering 2005-09-12 13:22:33 UTC
ah, this is for CONFIG_ADB.
Comment 9 Olaf Hering 2005-09-14 11:05:01 UTC
psmouse is now part of initrd and autoloaded, will be in RC4.  
Comment 10 Michael Stather 2005-09-26 11:12:46 UTC
Created attachment 50815 [details]
YaST2 log

Since SAX2 doesn´t acceft SHIFT-F8 I saves the log from the cdrom module
Comment 11 Olaf Hering 2005-10-23 12:39:05 UTC
Any idea why device_type is empty, instead of containing "i8042"?

/proc/device-tree/pci@80000000/isa@C/8042@i60:
name             "8042"
device_type      ""
reg              00000001 00000060 00000005
clock-frequency  00000000
interrupt-controller ""
#address-cells   00000001
#size-cells      00000000
#interrupt-cells 00000002
linux,phandle    0fc5b248 (264614472)
Comment 12 Olaf Hering 2005-10-24 12:24:43 UTC
need help from yast team.
Check if there is a ps2 controller, not a connected mouse.
where should this go? Something writes hwcfg-static-printer already.
Oddly, it even does that for systems without parallel port ...

The device node name for a printer port is 'parallel'
The device node name for a legacy floppy is 'fdc'

#!/bin/sh
set -e
if test -f /etc/sysconfig/hardware/hwcfg-static-psmouse
then
 exit 0
fi
cd /proc/device-tree
if find * -name name -print0 | xargs -0 grep -qw 8042
then
cat > /etc/sysconfig/hardware/hwcfg-static-psmouse <<EOF
MODULE='psmouse'
EOF
fi
Comment 13 Steffen Winterfeldt 2005-10-24 14:32:44 UTC
What should I do here???
Comment 14 Olaf Hering 2005-10-24 14:54:59 UTC
you? I have no idea. I need someone who knows the code location that procduces /etc/sysconfig/hardware/hwcfg-static-printer during a fresh install or system upgrade.
Comment 15 Michael Radziej 2005-10-24 21:43:26 UTC
Hmm, I honestly don't know who is doing this. If it's not Steffen, perhaps the yast2-printer maintainer.
Comment 18 Olaf Hering 2005-10-25 09:51:05 UTC
I doubt its written by yast2-printer. I never configured a printer here, and I have no parallel port.

Johannes, the point is, who writes a hwcfg-static-$foobar file for harware that doesnt exist? We have to find that place and replace it with something sane. And cover more hardware while we messing with the code in question.
Comment 19 Michal Zugec 2005-11-07 13:36:34 UTC
No, it's not written by yast2-printer
Comment 20 Jiri Srain 2005-11-11 07:21:58 UTC
It's written during installation before finishing the first stage (so that the module - if needed - is loaded when printers are configured during second stage).

Fixed so that it is written only if there is at least one parallel port.
Comment 21 Olaf Hering 2005-11-11 14:17:42 UTC
what about ps2 mouse, and other drivers to add?
Did you implement that already?
Comment 22 Jiri Srain 2005-11-11 14:25:35 UTC
Oops, sorry, not yet. Thanks!

What is /proc/device-tree? I don't have it in my /proc...
Comment 23 Olaf Hering 2005-11-11 20:46:19 UTC
This is the openfirmware device-tree. 
We need something like the script in comment #12 , for psmouse and the powerbook fan drivers. hwinfo reports only a mouse if there is one connected, but not if there is a i8042 port. The fan drivers have no real userinterface, hwinfo doesnt really need to know about them.
Should this be done in a shell script?
Comment 24 Olaf Hering 2006-01-07 15:12:55 UTC
we need an update here, Jiri!