Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Type 5 mouse, doesnt work in X until disconnect/reconnect
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
marky9074
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 196
Location: UK

PostPosted: Tue Nov 02, 2004 9:06 am    Post subject: Type 5 mouse, doesnt work in X until disconnect/reconnect Reply with quote

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
View user's profile Send private message
labrador
Guru
Guru


Joined: 04 Oct 2003
Posts: 316

PostPosted: Tue Nov 02, 2004 2:18 pm    Post subject: Many combinations exist Reply with quote

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 :

Code:
KEYMAP="us"
Back to top
View user's profile Send private message
marky9074
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 196
Location: UK

PostPosted: Tue Nov 02, 2004 3:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ferris
Retired Dev
Retired Dev


Joined: 13 Jan 2003
Posts: 426
Location: N. Virginia (USA)

PostPosted: Tue Nov 02, 2004 5:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
marky9074
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 196
Location: UK

PostPosted: Wed Nov 03, 2004 11:19 am    Post subject: Reply with quote

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
View user's profile Send private message
Mark Clegg
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 270
Location: ZZ9 Plural Z Alpha

PostPosted: Wed Nov 03, 2004 5:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
marky9074
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 196
Location: UK

PostPosted: Sat Nov 06, 2004 9:38 am    Post subject: Reply with quote

Thanks Mark, sounds like a plan, will try and post my results.
Back to top
View user's profile Send private message
Ferris
Retired Dev
Retired Dev


Joined: 13 Jan 2003
Posts: 426
Location: N. Virginia (USA)

PostPosted: Sat Nov 06, 2004 3:25 pm    Post subject: Reply with quote

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. :wink: ).

Thanks for the information,
Back to top
View user's profile Send private message
Mark Clegg
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 270
Location: ZZ9 Plural Z Alpha

PostPosted: Sun Nov 07, 2004 12:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
marky9074
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 196
Location: UK

PostPosted: Tue Nov 09, 2004 2:25 pm    Post subject: Reply with quote

IT WORKS, IT WORKS, IT WORKS.........

......oh it works


:lol:

Took about three seconds to detect.

Mark
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum