Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145617 - x11-misc/mkxf86config-0.9.7 doesn't recognize mouse
Summary: x11-misc/mkxf86config-0.9.7 doesn't recognize mouse
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo LiveCD Package Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-30 09:09 UTC by Luca
Modified: 2007-01-04 15:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
here is another .conf (my.config2,48.27 KB, text/plain)
2006-12-14 13:52 UTC, Dan Coats
Details
here is another .config (my.config2,48.27 KB, text/plain)
2006-12-14 13:52 UTC, Dan Coats
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luca 2006-08-30 09:09:41 UTC
Hi!
mkxf86config-0.9.7 doesn't recognize mouse, instead 0.9.3 works fine.

This is the section at line 159 from 0.9.3 (mouse working fine):

# PS/2 bug: Some keyboards are incorrectly used as mice in XFree. :-(
PSMOUSE="$(ls -l1 /dev/mouse* 2>/dev/null | awk '/input/{print $NF ; exit 
0}')"
if [ -n "$PSMOUSE" ];

And this is the same section in the 0.9.7 (mouse not working):

# PS/2 bug: Some keyboards are incorrectly used as mice in XFree. :-(
PSMOUSE="$(ls -l1 /dev/mouse* 2>/dev/null | awk '/psaux/{print $NF ; exit 
0}')"
if [ -n "$PSMOUSE" ];

As you can notice, the differences is between  input and psaux.

Luca
Comment 1 Marek Wróbel 2006-11-25 13:48:10 UTC
/dev/input/mice is handled *almost* correctly few lines later:

# Kernel 2.6 reports psaux via /dev/input/mice like USB
case "$KVER" in
        2.6.*)
                if [ -z "$PSMOUSE" ]; then
                        PSMOUSE='s|^.*InputDevice.*"PS/2 Mouse".*$|# PS/2 Mouse using /dev/input/mice in Kernel 2.6|g;'
                        USBMOUSE=""
                fi
        ;;
esac

There are 2 problems:
1. I haven't found anything that set $KVER, I changed it to $(uname -r)
2. When PS/2 mouse is not detected, $PSMOUSE is set to ugly sed command, so it isn't empty: changed
    if [ -z "$PSMOUSE" ];
to
    if [ -n "$PSMOUSE" ];

Working section:

# Kernel 2.6 reports psaux via /dev/input/mice like USB
case "$(uname -r)" in
        2.6.*)
                if [ -n "$PSMOUSE" ]; then
                        PSMOUSE='s|^.*InputDevice.*"PS/2 Mouse".*$|# PS/2 Mouse using /dev/input/mice in Kernel 2.6|g;'
                        USBMOUSE=""
                fi
        ;;
esac


Marek Wr
Comment 2 Marek Wróbel 2006-11-25 13:48:10 UTC
/dev/input/mice is handled *almost* correctly few lines later:

# Kernel 2.6 reports psaux via /dev/input/mice like USB
case "$KVER" in
        2.6.*)
                if [ -z "$PSMOUSE" ]; then
                        PSMOUSE='s|^.*InputDevice.*"PS/2 Mouse".*$|# PS/2 Mouse using /dev/input/mice in Kernel 2.6|g;'
                        USBMOUSE=""
                fi
        ;;
esac

There are 2 problems:
1. I haven't found anything that set $KVER, I changed it to $(uname -r)
2. When PS/2 mouse is not detected, $PSMOUSE is set to ugly sed command, so it isn't empty: changed
    if [ -z "$PSMOUSE" ];
to
    if [ -n "$PSMOUSE" ];

Working section:

# Kernel 2.6 reports psaux via /dev/input/mice like USB
case "$(uname -r)" in
        2.6.*)
                if [ -n "$PSMOUSE" ]; then
                        PSMOUSE='s|^.*InputDevice.*"PS/2 Mouse".*$|# PS/2 Mouse using /dev/input/mice in Kernel 2.6|g;'
                        USBMOUSE=""
                fi
        ;;
esac


Marek Wróbel

Comment 3 Dan Coats 2006-12-14 13:52:09 UTC
Created attachment 104065 [details]
here is another .conf

Just another .config that ps/2 mouse doesn't work.
Comment 4 Dan Coats 2006-12-14 13:52:48 UTC
Created attachment 104066 [details]
here is another .config

Just another .config that ps/2 mouse doesn't work.
Comment 5 Dan Coats 2006-12-14 14:07:33 UTC
sorry those were posted to wrong bug supposed to go to 157493 , not sure what happened.
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2006-12-14 15:09:11 UTC
Can you try out the new version of mkxf86config... it's in my dev overlay...

svn co http://overlays.gentoo.org/svn/dev/wolf31o2

If this works for you, it'll become "official" and go into the tree.
Comment 7 Chris Gianelloni (RETIRED) gentoo-dev 2007-01-04 15:16:47 UTC
0.9.8 is in the tree now