Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xorg-x11, kernel versions, and sun type5 keyboards, sun mice
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
Ferris
Retired Dev
Retired Dev


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

PostPosted: Sat Apr 16, 2005 2:45 pm    Post subject: xorg-x11, kernel versions, and sun type5 keyboards, sun mice Reply with quote

Every week or so there is a new post here, on Freenode IRC #gentoo-sparc, or in the #gentoo-sparc mailing list expressing frustration with configuring xorg-x11 to play nicely with a sun type5 (or type6, type5C, or so on) keyboard (or with a sun mouse). Part of the difficulties arise because xorg.conf is not compatible between kernels for keyboards and mice. First of all, before posting configuration difficulties, please keep the following points in mind:

  • With kernel 2.4, xorg-x11 must be built on a kernel 2.4 system.
  • With kernel-2.4:

    • Your keyboard driver must be 'keyboard';
    • Your keyboard looks like a sun keyboard to xorg;
    • Your mouse is /dev/sunmouse;
    • Your mouse's protocol is Mousesystems.

  • With kernel 2.6:

    • It's better to use the 'kbd' driver (although if you build on kernel-2.6, keyboard and kbd are the same);
    • Your keyboard uses 'Option "XkbRules" "xorg"';
    • Your mouse device is /dev/input/mice, and its protocol is IMPS/2.


Second, there are working xorg.conf files for both kernels at http://dev.gentoo.org/~fmccor/docs/xorg/xorg.conf/xorg.conf.html and if you don't like those, you can find samples at other dev/gentoo.org/~<some-sparc-developer> or by searching. (If you haven't tried it yet , use http://www.mooter.com and search on gentoo sparc xorg.conf for example. :wink: )

If after reviewing all of that you still have problems, go ahead and ask. But be aware that to get a meaningful response, you should indicate (1) your kernel version; (2) relevant portions of your xorg.conf file; (3) anything that looks interesting or unusual in your /var/log/Xorg.?.log (usually, '?' = 0).

Tip: Aborts (like Signal 11) in the log file are interesting. But the following, while alarming, is expected and normal if you have kernel-2.4:
Code:

(EE) LoadModule: Module keyboard does not have a keyboardModuleData data object.
(II) UnloadModule: "keyboard"
(II) Unloading /usr/lib/modules/input/keyboard_drv.so
(EE) Failed to load module "keyboard" (invalid module, 0)
    ......
(WW) *** WARNING the legacy keyboard driver "keyboard" is deprecated
(WW) *** and will be removed in the next release of the Xorg server.
(WW) *** Please consider using the the new "kbd" driver for "Keyboard0".

(Indeed, with kernel-2.4, the absence of such lines is interesting; please make sure you are not using kernel-2.4 + 'kbd' driver before doing anything else.)

Sorry to beat this to death, but keyboard/mouse xorg configutation continues to be a frustration on kernel-2.4. "Any day now" kernel-2.6 will become stable and default for sparc, and we can all forget about this sort of problem. :lol:
Regards,
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: Fri Apr 22, 2005 1:08 pm    Post subject: Reply with quote

A brief update: There have been several questions about type6 keyboards, etc. So: I currently have a U60-SMP Linux antaresia.inforead.com 2.4.29-sparc #3 SMP Fri Apr 22 12:30:22 UTC 2005 sparc64 sun4u TI UltraSparc II (BlackBird) GNU/Linux running xorg-x11-6.8.99.3 and using a Sun type(6) keyboard, Elite (afb) framebuffer. The xorg.conf file is unchanged: it calls the keyboard a type(5). Everything works as expected, which is to say, correctly.

If you have a similar setup but are experiencing difficulties, please review carefully your xorg.conf file and your kernel .config file. And make sure that xorg-x11 is using the configureation file you think it should be --- that information is at the top of your /var/log/Xorg.0.log, and if you keep variants of your xorg configuration file around, you might be surprised at which one xorg-x11 decides to use (hint: xorg.conf is not it's first choice; it prefers xorg.conf-6 and who knows what else).
Back to top
View user's profile Send private message
oldan
Tux's lil' helper
Tux's lil' helper


Joined: 11 Dec 2003
Posts: 137
Location: Atlanta, Georgia, USA

PostPosted: Sat Apr 23, 2005 3:27 am    Post subject: Re: xorg-x11, kernel versions, and sun type5 keyboards, sun Reply with quote

Ferris wrote:
"Any day now" kernel-2.6 will become stable and default for sparc, and we can all forget about this sort of problem. :lol:


I'm holding my breath... 8O can't wait!
--Oldan
Back to top
View user's profile Send private message
ThorstenHirsch
Tux's lil' helper
Tux's lil' helper


Joined: 25 Sep 2003
Posts: 111

PostPosted: Thu May 19, 2005 8:59 am    Post subject: Reply with quote

Could you please write something about the requirements concerning the kernel?

Because my mouse is not working anymore since my last portage upgrade. Kernel was 2.6.11-r4 and I had been using the sermouse module, device /dev/input/mouse0 and Protocol "Auto". Now I've tried to use the mouse as you described: Protocol "IMPS/2", device /dev/input/mice and I've loaded the psmouse module instead of sermouse. But it doesn't work either. :(

edit: hell, I don't know what's wrong with this stuff, but I've checked a lot of combinations of drivers/settings yesterday and today in the morning and at the end I gave up and set everything the way I had it before: sermouse, Protocol "Auto", device /dev/input/mouse0 - and then it worked. Now I'm so confused.
Back to top
View user's profile Send private message
kalisphoenix
Apprentice
Apprentice


Joined: 28 Sep 2003
Posts: 211
Location: Ohio

PostPosted: Sat Jun 18, 2005 11:58 pm    Post subject: Reply with quote

*whips out shotgun and murders Ultra 10*
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: Mon Jul 18, 2005 11:53 am    Post subject: Reply with quote

The 'deprecated keyboard' requirement is going away thanks to Matthias Muthmann of X.org. The official patch appears to be in CVS version 16. However, there is also available a Gentoo-specific patch at https://bugs.gentoo.org Bug 61940, patchid=63633. If you wish to try this out, please see that Bug and follow the instructions at Comment 24.

As you will notice, the patch is almost trivial, but it works fine. :D

And indeed, with xorg-x11-6.8.2-r6, xorg-x11-6.8.99.15-r3, the "fix kbd driver" patch is incorporated into the release itself, and if you run either of these versions of xorg-x11 (or newer versions), the deprecated driver comments are now irrelevant.

Regards,


Last edited by Ferris on Wed Oct 05, 2005 12:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
Turrican
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2003
Posts: 112
Location: Germany

PostPosted: Mon Aug 08, 2005 2:27 pm    Post subject: Reply with quote

Sorry, I have to correct this ;)
The patch is from Alan Hourihane of xorg - I just found it, tested it and posted it on bugzilla.

Bye
Matthias
_________________
Windows hates me!
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: Mon Aug 08, 2005 3:14 pm    Post subject: Reply with quote

Thanks; out of ignorance, I attributed the patch to the author of the comment announcing it.
Back to top
View user's profile Send private message
ThorstenHirsch
Tux's lil' helper
Tux's lil' helper


Joined: 25 Sep 2003
Posts: 111

PostPosted: Wed Oct 05, 2005 8:52 am    Post subject: Reply with quote

Just a little info: since upgrading to 2.6.13.2 my mouse problems are gone completely. Before I still had to unplug the mouse while X was starting and than replugged it when it was up. This was the only way to get the mouse working. But now everything's going perfect here.
Back to top
View user's profile Send private message
frankOnPPC
Apprentice
Apprentice


Joined: 26 May 2003
Posts: 169
Location: Fulda, Hessen, Germany, Europe, Earth

PostPosted: Wed Oct 19, 2005 8:51 am    Post subject: Reply with quote

well,

I hat a Kernel 2.4.21 running well on my Ultra 5 (512MB, sun5 kbd), a well
runing xorg 6.8.2-r1,
but then I made a mistake : I emerge the last 6.8.2-r6,
well, it needs kernel2.6 for use with a sun5 kbd, thats what I found at the forum.
OK. lets build a kernel 2.6.13...
then I got at boot :
https://forums.gentoo.org/viewtopic-t-175455-highlight-image+fit+destination.html

there are now 2 options for me :
I was happy with Kernel 2.4, can I get xorg 6.8.2-r1 back ?
Or
how big can a kernel become ? Well, I have no glue about this.
I thougt silo was first load an initial loader, which then loads the kernel, due to that a kernel
would be too big.

Any hint welcome,
Cheers,
Frank
_________________
always look at yellow site of Linux on the PPC.
Its PPCNUX.
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: Wed Oct 19, 2005 12:50 pm    Post subject: Reply with quote

A couple things:
First, x11-base/xorg-x11-6.8.2-r6 should run fine with this kernel: 2.4.31-sparc-r2 --- you just don't get the deprecated keyboard driver anymore, because problem with the kbd driver is fixed. I can verify that 6.8.2-r6+kernel 2.4.31-r2 work just fine on U2, U60 systems, and don't see why U5 should be a problem. Here's how I configure a sun type keyboard:
Code:

Section "InputDevice"
  Identifier  "Keyboard0"
  Driver      "kbd"
  Option      "Protocol"    "Standard"
  Option      "XkbKeycodes" "sun(type5)"
  Option      "XkbModel"    "type5"
  Option      "XkbRules"    "sun"
  Option      "XkbLayout"   "en_US"
  Option      "XkbTypes"     "types/complete"
  Option      "XkbCompat"   "compat/complete"
  Option      "XkbGeometry" "sun(type5unix)"
EndSection

Second: No, you can't get 6.8.2-r1 back unless you happened to have built a package from it (e.g., emerge -b ...)
Third: kernel-2.6.13 (or, at least 2.6.xx) is known to run fine on U5; quickest way to get datails is to ask on #gentoo-sparc freenode IRC channel.

Easiest solution is to keep whatever kernel you like, and adjust the keyboard InputDevice section for the keyboard as necessary.
Hope this helps,
Back to top
View user's profile Send private message
frankOnPPC
Apprentice
Apprentice


Joined: 26 May 2003
Posts: 169
Location: Fulda, Hessen, Germany, Europe, Earth

PostPosted: Fri Oct 21, 2005 9:31 am    Post subject: Reply with quote

thanks, runs well with 2.6.13. also xorg-6.2.8 runs well.

The quirks happend at the keymaps. well, without any value it runs...
with a value like sunt5... it won't.

Anyway,
the ultra runs and I experiment how much I can put again into the kernel, like USB.
(I have a usb 2.0 card, well, was for a mac, runs well in the pci - slots of the ultra 5. ;-D)

Cheers
Frank
_________________
always look at yellow site of Linux on the PPC.
Its PPCNUX.
Back to top
View user's profile Send private message
russofris
Apprentice
Apprentice


Joined: 14 Sep 2003
Posts: 163

PostPosted: Tue Mar 14, 2006 9:13 pm    Post subject: Reply with quote

Just wanted to add my device section for the PM2 in an E250.
Code:

Section "Device"
    Identifier  "TVP4020"
    Driver      "glint"
    VendorName  "Texas Instruments"
    BoardName   "TVP4020 [Permedia 2]"
    Chipset     "ti_pm2"
    Option      "UseFBDev"  "True"
    Option      "BlockWrite"  "True"
    VideoRam    8192
EndSection

Without the {Option "UseFBDev" "True"}, there seems to be a problem with the driver that wil turn fonts and icons yellow and leave mouse trails.

Also, on the E250/450 and the 2.6 kernel, the PCI domain patch needs to be applied. see This Thread for more info on obtaining and applying the patch.

Thanx Muchly,
Frank Russo

EDIT: Added "BlockWrite" as it appears to be safe. I do not notice a performance difference, although the GLINT driver doc says it 'should'.
Back to top
View user's profile Send private message
fajensen
n00b
n00b


Joined: 02 Mar 2006
Posts: 3
Location: Denmark

PostPosted: Wed Mar 29, 2006 2:14 pm    Post subject: Re: xorg-x11, kernel versions, and sun type5 keyboards, sun Reply with quote

[quote="Ferris"]

[*] With kernel 2.6:

  • It's better to use the 'kbd' driver (although if you build on kernel-2.6, keyboard and kbd are the same);
  • Your keyboard uses 'Option "XkbRules" "xorg"';
  • Your mouse device is /dev/input/mice, and its protocol is IMPS/2.


I also found that at least on SUN Ultra 10's the KEYMAP needs to be "us" for 2.6.xx instead of the "sunkeymap" used by 2.4.xx.
Back to top
View user's profile Send private message
frankOnPPC
Apprentice
Apprentice


Joined: 26 May 2003
Posts: 169
Location: Fulda, Hessen, Germany, Europe, Earth

PostPosted: Mon Sep 04, 2006 4:52 pm    Post subject: Anything new about ati mach Reply with quote

hi,

according to this https://bugs.freedesktop.org/show_bug.cgi?id=5825bug,
does somone got xorg 7.1 running on a ultra 5 with an ati mach64 ?



cheers,
Frank
_________________
always look at yellow site of Linux on the PPC.
Its PPCNUX.
Back to top
View user's profile Send private message
gust4voz
Retired Dev
Retired Dev


Joined: 09 Sep 2003
Posts: 373
Location: Buenos Aires, Argentina

PostPosted: Mon Sep 04, 2006 5:27 pm    Post subject: Reply with quote

Yes, works fine on my u5 after we got the altix patch out of the way for xorg-server-1.1.1.
_________________
Gustavo Zacarias
Gentoo/SPARC monkey
Back to top
View user's profile Send private message
alexbuell
Guru
Guru


Joined: 18 Jul 2002
Posts: 498
Location: "Hemp"shire, UK

PostPosted: Fri Oct 22, 2010 8:53 am    Post subject: Reply with quote

With the later xorg-server stuff, keyboard and mouse are no longer necessary. Simply emerge evdev and make sure you set up your keyboards in /etc/hal/fdi/policy/. It's amazing how easy it is to set up nowdays.
_________________
Cheers,
Alex.

Linux - the best text adventure game ever.
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