yellowdog-general digest, Vol 1 #633 - 5 msgs

Jonathan Walton yellowdog-general@lists.terrasoftsolutions.com
Sun Jan 26 16:17:01 2003


>Neben Kabon says:
> (EE) xf86OpenSerial: Cannot open device /dev/mouse
> 	No such file or directory.
> (EE) Mouse0: cannot open input device
> (EE) PreInit failed for input device "Mouse0"

>Jim Potter says:
> I've run into that with my TiBook;  plug in a mouse and it'll work.  I
> haven't taken the time to figure out how to reconfigure things to work
> without the mouse... anyone done this?

If you get desperate, just run /usr/lib/yi/mouse.py and exit.  That seemed
to initialize the mouse for me (and therefore let X run).

For a more permanent solution, you can set up a soft-link for /dev/mouse:
 % ln -s /dev/input/mice /dev/mouse
I doubt that's the proper way to fix it, but it works for me.

I actually put the following 9 lines at the end of my /etc/sysconfig/mouse
file, but it really doesn't belong there.  And I think the softlink
survives fine across a reboot, meaning that there's probably no reason to
add it anyway.  But I haven't tried removing it:

    # Probably doesn't belong here, but it'll work.  On powerbook without
    # mouse plugged in on boot, we don't get a /dev/mouse... but X and a
    # few others expect it.  Just hack it the same way /usr/lib/yi/mouse.py
    # does it
    if grep -i "PowerBook" /proc/cpuinfo >/dev/null; then
     if [ ! -e /dev/mouse ]; then
      ln -s /dev/input/mice /dev/mouse
     fi
    fi

Jonathan