You may try to use our setup script (attached) -- resulting x.org config
file XConfig.test will be placed in /tmp. We include this script in our
kickstart for for ancient computers.
--Oleg
04/01/2009 21:13 -0500, Kin Yip wrote:
> Hi,
>
> > So I think, it should still be treated as PS/2, right ?
>
> I've realized that this is certainly NOT right .... because the mouse
> after the interface is connected to a serial port.
> But still no solution....
>
> Kin
>
>
> From: Kin Yip
> Date: Sunday, January 04, 2009 4:27 PM
> To: Mark Stodola
> Cc: [email protected]
> Subject: Re: PS/2 mouse doesn't work after installing SL 5.1 ---
> included Xorg.0.log
>
>
> Hi Mark,
>
> Thanks for the comment. There is an intermediate interface (like 9
> cm long) between the mouse and the serial port
> which has the following printed:
>
> "Mouse Interface"
> "For Serial and IBM PS/2 Mouse Ports".
>
> So I think, it should still be treated as PS/2, right ? ( It used
> to work in SL 3.x. )
>
> How do I "modprobe" with ?? "modprobe" what ??
>
> I've already googled but haven't got a clue yet ...
>
> Kin
>
>
> From: Mark Stodola
> Date: Sunday, January 04, 2009 4:02 PM
> To: Kin Yip
> Cc: [email protected]
> Subject: Re: PS/2 mouse doesn't work after installing SL 5.1 ---
> included Xorg.0.log
>
>
> Kin,
>
> An "InPort Mouse" isn't really PS/2. It is a very old Microsoft Bus
> Mouse from the early 1980s. I believe they used to use /dev/inportbm
> or
> similar. They are still supported in the 2.6 kernel, but I haven't
> dealt with one to be honest.
>
> File location:
> <kernel-src>/drivers/input/mouse/inport.c
> Description:
> Inport (ATI XL and Microsoft) busmouse driver
>
> I'd start with modprobing it and seeing what device nodes it uses and
> go
> from there. Google might be your best bet, as I doubt many people
> have
> access to this kind of old hardware.
>
> Cheers,
> Mark
>
> Kin Yip wrote:
> > Hi,
> >
> > To have better chance of being helped, I include Xorg.0.log
> file .
> > There is /dev/input/mice (which is my
> > guess where the mouse device is ). Any help will be greatly
> appreciated.
> >
> > Kin
> >
> > *From:* Kin Yip <mailto:[email protected]>
> > *Date:* Sunday, January 04, 2009 3:28 PM
> > *To:* [email protected]
> > <mailto:[email protected]>
> > *Subject:* PS/2 mouse doesn't work after installing SL 5.1
> >
> > Hi,
> >
> > I have an old computer box which has an old PS/2 mouse interface
> (with a
> > mouse called InPort Mouse) and I've been using SL 3.x.
> > So today, I've finally taken the gut to upgrade it SL5.1 (with
> SL5.1).
> > I've chosen the "base" only so that I need only 1 CD and then
> > I've added to it from network using "yum install....".
> >
> > The X display didn't work at first when the system chose
> automatically :
> > Section "Device"
> > Identifier "Videocard0"
> > Driver "cirrus"
> > EndSection
> >
> > in /etc/X11/xorg.conf
> >
> > I've made it work by changing "cirrus" to "vesa".
> >
> > But so far, the mouse just doesn't work. ( It used to work in SL
> 3.x. )
> > I regretted that I didn't save any files before formatting the
> harddisk
> > (as I didn't expect any problem).
> >
> > Is there anything which I should install or any tool that I can
> > "configure" the mouse ? Long time ago, there used to be
> mouseconfig or
> > something like that, but not any more ?
> >
> > Can somebody advise ??? I'll greatly appreciate (as I'm running out
> of
> > ideas now).
> >
> > Kin
> >
>
#!/usr/bin/python
import rhpxl.xhwstate
import rhpxl.xserver
import rhpl.keyboard as keyboard
import xf86config
def get_option(device, optionname):
res = filter (lambda o: o.name == optionname, device.options)
if len (res) > 0:
return res[0]
else:
option = xf86config.XF86Option(optionname)
device.options.insert(option)
return option
def setup_mouse(xserver, xconfig):
xserver.mousehw.probe()
xconfig = xserver.config
#print `xconfig`
mouse = xserver.mousehw
mouse_x = xf86config.XF86ConfInput()
xconfig.input.insert(mouse_x)
mouse_x.identifier = mouse.info["FULLNAME"]
mouse_x.driver = "mouse"
get_option(mouse_x, "Device").val = "/dev/" + mouse.getDevice()
get_option(mouse_x, "Protocol").val = mouse.info["XMOUSETYPE"]
get_option(mouse_x, "Emulate3Buttons").val = "yes"
inputs = xconfig.layout[0].inputs
for input_idx,i in enumerate(inputs):
for o in i.options:
print o.name
if o.name == "CorePointer":
inputs.remove(input_idx)
mouse_x_ref = xf86config.XF86ConfInputref(mouse.info["FULLNAME"], "CorePointer")
inputs.insert(mouse_x_ref)
xserver = rhpxl.xserver.XServer()
#xserver.probeHW(forceDriver="vesa")
xserver.probeHW()
(xconfig, xconfigpath) = xf86config.readConfigFile()
xserver.setHWState(confFile=xconfig)
xserver.keyboard = keyboard.Keyboard()
#xserver.keyboard.set("ru")
xserver.generateConfig()
setup_mouse(xserver, xconfig)
xserver.writeConfig()