Skip to contentSkip to conversation

sun mouse on 2.6.x

Q carbonated beverage 3 participants 6 messages Feb 15, 2004 – Feb 16, 2004

lore
Share & tools
lore
#0 lore raw

Hi all,

I'm unable to get the mouse recognized by gpm or X under 2.6.x bk pulls although the kernel recognizes it. I'm using the input layer and tried specifying /dev/input/{mice,mouse0} to both gpm and X. /dev/psaux (I have the legacy option turned on) doesn't work either.

The kernel seems to find it fine:

mice: PS/2 mouse device common for all mice
input: Sun Mouse on su/serio0

And everything's enabled in .config:

CONFIG_INPUT_MOUSEDEV=m
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X24
CONFIG_INPUT_MOUSEDEV_SCREEN_Yv8
CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=m
CONFIG_MOUSE_SERIAL=m

But nothing from gpm or X.

I'm using a debian/testing setup on an Ultra 5.

Anyone have a suggestion on how to go about debugging this?

-- DN
Daniel

#1 lore raw

Okay, tried adding this to drivers/input/mousedev.c:

=== mousedev.c 1.33 vs edited ==--- 1.33/drivers/input/mousedev.c Thu Jan 15 03:06:00 2004
+++ edited/mousedev.c Sat Feb 14 21:49:01 2004
@@ -428,6 +428,9 @@

list->buffer -= count;

+ printk(KERN_INFO "list->ps2:%x%x%x%x%x%x\n", (char)list->ps2[0], (char)(list->ps2[1]),
+ (char)(list->ps2[2]), (char)(list->ps2[3]), (char)(list->ps2[4]), (char)(list->ps2[5]));
+
if (copy_to_user(buffer, list->ps2 + list->bufsiz - list->buffer - count, count))
return -EFAULT;

I see:

list->ps2:fffffffa00000
list->ps2:fffffffa00000
list->ps2:fffffffa00000
list->ps2:fffffffa00000
list->ps2:fffffffa00000
list->ps2:fffffffa00000
list->ps2:fffffffa00000
list->ps2:fffffffa00000

Shortly after the module loads. I move the mouse. Nothing. Doesn't look like it's getting anything at all, ever.

But it works under Solaris... :-/

Ideas?

-- DN
Daniel

#2 lore raw
In reply to carbonated beverage
Quoted 23 lines · carbonated beverage

Hi all,

I'm unable to get the mouse recognized by gpm or X under 2.6.x bk pulls although the kernel recognizes it. I'm using the input layer and tried specifying /dev/input/{mice,mouse0} to both gpm and X. /dev/psaux (I have the legacy option turned on) doesn't work either.

The kernel seems to find it fine:

mice: PS/2 mouse device common for all mice
input: Sun Mouse on su/serio0

And everything's enabled in .config:

CONFIG_INPUT_MOUSEDEV=m
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X24
CONFIG_INPUT_MOUSEDEV_SCREEN_Yv8
CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=m
CONFIG_MOUSE_SERIAL=m

Quoted 5 lines

But nothing from gpm or X.

I'm using a debian/testing setup on an Ultra 5.

Anyone have a suggestion on how to go about debugging this?

As comment, (already reported on list) on U10 is the same phenomena,
with the same case/experiment.

But one interesting thing:

If i power on from standby it happens that always not work, but if I boot in 2.4 kernel than reboot
in 2.6 it always works !!
So 2.4 has someting that 2.6 miss at one point, it initialize someting that 2.6 not, ant that init is reboot independent.

cristian,

Quoted 8 lines

-- DN
Daniel
-
To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
In reply to carbonated beverage
Quoted 5 lines · Balint Cristian

If i power on from standby it happens that always not work,
but if I boot in 2.4 kernel than reboot in 2.6 it always works !!

So 2.4 has someting that 2.6 miss at one point, it initialize
someting that 2.6 not, ant that init is reboot independent.

Hmm... tried this, and whaddya know. It works. So somehow, 2.4.x is initializing the hardware state in a way 2.6.x isn't. Thanks, I'll go and see what's different between the two...

-- DN
Daniel

#4 lore raw
In reply to carbonated beverage
Quoted 10 lines · carbonated beverage
Quoted 5 lines · Balint Cristian

If i power on from standby it happens that always not work,
but if I boot in 2.4 kernel than reboot in 2.6 it always works !!

So 2.4 has someting that 2.6 miss at one point, it initialize
someting that 2.6 not, ant that init is reboot independent.

Hmm... tried this, and whaddya know. It works. So somehow, 2.4.x is initializing the hardware state in a way 2.6.x isn't. Thanks, I'll go and see what's different between the two...

What happens if you power down and cold boot rather than doing a warm reboot.

I have a similar issue here on a triple boot Linux/Windoze/Solaris laptop, rebooting from windows and selecting solaris always goofs up, it seems that some hardware is left in an odd state which gets correctly initialised by the bios only if I do a cold boot.

#5 lore raw
In reply to carbonated beverage
Quoted 2 lines · C.Newport

What happens if you power down and cold boot rather than doing a warm reboot.

I can figure out 3 cases to let no doubt of the problem:

If power down and machine halt its ATX power and than power on in 2.6
will never work the mouse, even i reboot lot of times in 2.6 after that !

If power down completly, than power on machine in 2.4 of course will work well
can reboot in 2.4 anytimes I want and will work.

If power down, than power on machine in 2.4 than any time I reboot
In 2.6 will work well.

Quoted 5 lines

I have a similar issue here on a triple boot Linux/Windoze/Solaris laptop, rebooting from windows and selecting solaris always goofs up, it seems that some hardware is left in an odd state which gets correctly initialised by the bios only if I do a cold boot.

?!? i think is not the case of this, the fact is that 2.4 was worked well and
now latest 2.6.x series has an clear issue of this mouse init problem on U10/U5.

Quoted 5 lines

-
To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html