View previous topic :: View next topic |
Author |
Message |
marky9074 Apprentice
Joined: 24 Sep 2004 Posts: 196 Location: UK
|
Posted: Tue Nov 02, 2004 9:06 am Post subject: Type 5 mouse, doesnt work in X until disconnect/reconnect |
|
|
Hello again.....
One thing I have notice with my Type 5 keyboard and mouse is that straight after a boot, and after starting X the mouse is not responding. If I disconnect from the keyboard and plug back in it fires up OK. This is using the 2.6.6. kernel, I am sure it was OK with 2.4.* .....
Any ideas?
Thanks,
Mark |
|
Back to top |
|
|
labrador Guru
Joined: 04 Oct 2003 Posts: 316
|
Posted: Tue Nov 02, 2004 2:18 pm Post subject: Many combinations exist |
|
|
What many people apparently don't realize, is that there are
several variables that impact what settings are correct for
your mouse, keyboard, and video to work in X.
There are 4 basic configurations:
2.4 kernel, Xfree86
2.4 kernel, Xorg
2.6 kernel, Xfree86
2.6 kernel, Xorg
And then after that there are variables on what keyboard, mouse and
video are being used.
Assuming you are using Xorg with Kernel 2.6, you'd need the mouse set up
like so:
Code: | Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "IMPS/2"
Option "Emulate3Buttons" "false"
EndSection
|
Keyboard like so:
Code: | Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "type5"
Option "XkbLayout" "en_US"
Option "XkbGeometry" "sun(type5)"
Option "XkbOptions" "ctrl:swapcaps"
EndSection
|
(the XkbOptions is only needed if you want to swap the use of Ctrl and
Caps Lock on the sun keyboard)
Also, if you are running 2.6 with Xorg you want this in your /etc/rc.conf :
|
|
Back to top |
|
|
marky9074 Apprentice
Joined: 24 Sep 2004 Posts: 196 Location: UK
|
Posted: Tue Nov 02, 2004 3:10 pm Post subject: |
|
|
Nope, didnt fix it....
Did sort out my support for UK keyboard in xorg though, thanks just substituted US for UK.
Any ideas?
Mark |
|
Back to top |
|
|
Ferris Retired Dev
Joined: 13 Jan 2003 Posts: 426 Location: N. Virginia (USA)
|
Posted: Tue Nov 02, 2004 5:48 pm Post subject: |
|
|
This seems to be a common problem with kernel-2.6.x (x >= 6). It is not related to X11, however. You can duplicate the problem just by starting gpm after a reboot.
Regards, |
|
Back to top |
|
|
marky9074 Apprentice
Joined: 24 Sep 2004 Posts: 196 Location: UK
|
Posted: Wed Nov 03, 2004 11:19 am Post subject: |
|
|
Thanks Ferris,
I thought it was strange that it was affecting both my U30 and U60, and assumed it was kernel related.
Mark |
|
Back to top |
|
|
Mark Clegg Apprentice
Joined: 05 Jan 2004 Posts: 270 Location: ZZ9 Plural Z Alpha
|
Posted: Wed Nov 03, 2004 5:31 pm Post subject: |
|
|
Woohoo! at last it's not just me that gets this problem.!!!
As far as I can tell it's related to how the sunsu code autodetects the baudrate of the mouse. Sun mice seem to run at either 4800 or 1200 depending on the model)
I have a partially working patch that gets the mouse going after a minute of frantic shaking rather then disconnect/reconnecting.. You'll also find that once the mouse is working, it keeps working even after a warm boot.
Try this thread (patch is near the end).
https://forums.gentoo.org/viewtopic.php?t=149437&highlight=mouse |
|
Back to top |
|
|
marky9074 Apprentice
Joined: 24 Sep 2004 Posts: 196 Location: UK
|
Posted: Sat Nov 06, 2004 9:38 am Post subject: |
|
|
Thanks Mark, sounds like a plan, will try and post my results. |
|
Back to top |
|
|
Ferris Retired Dev
Joined: 13 Jan 2003 Posts: 426 Location: N. Virginia (USA)
|
Posted: Sat Nov 06, 2004 3:25 pm Post subject: |
|
|
If the patch works, please pass it on. E.g., mail it to gentoo-sparc@gentoo.org or to anyone on the
sparc developer list (look at the developer list link at the Gentoo home page,
and pick one with "sparc" in the projects list. ).
Thanks for the information, |
|
Back to top |
|
|
Mark Clegg Apprentice
Joined: 05 Jan 2004 Posts: 270 Location: ZZ9 Plural Z Alpha
|
Posted: Sun Nov 07, 2004 12:30 pm Post subject: |
|
|
The patch only party works. ie it gets the mouse going after a minute of shaking it. It isn't perfect by a long way, but is better than keep unplugging and reconnecting it.
What we need is somebody who understands the sunsu code / hardware better than I do, and the differences between the 2.4 and 2.6 code.
I sent the patch to David S.Miller some time ago, and he wanted to think further about it before icorporating it, - which is fair enough since it doesn't fully solve the problem. |
|
Back to top |
|
|
marky9074 Apprentice
Joined: 24 Sep 2004 Posts: 196 Location: UK
|
Posted: Tue Nov 09, 2004 2:25 pm Post subject: |
|
|
IT WORKS, IT WORKS, IT WORKS.........
......oh it works
Took about three seconds to detect.
Mark |
|
Back to top |
|
|
|