Sun Type 7 USB keyboard misdetected by X

Bug #299727 reported by River Tarnell
36
This bug affects 6 people
Affects Status Importance Assigned to Milestone
xkeyboard-config
Unknown
Medium
xkeyboard-config (Ubuntu)
Triaged
Undecided
Unassigned
Nominated for Jaunty by Montel Edwards
Nominated for Karmic by Montel Edwards

Bug Description

I use a Sun Type 7 UNIX-layout USB keyboard. X detects the keyboard:

 (II) config/hal: Adding input device Sun USB Keyboard
 (**) Sun USB Keyboard: always reports core events
 (**) Sun USB Keyboard: Device: "/dev/input/event2"
 (II) Sun USB Keyboard: Found keys
 (II) Sun USB Keyboard: Configuring as keyboard
 (II) XINPUT: Adding extended input device "Sun USB Keyboard" (type: KEYBOARD)
 (**) Option "xkb_rules" "evdev"
 (**) Sun USB Keyboard: xkb_rules: "evdev"
 (**) Option "xkb_model" "pc105"
 (**) Sun USB Keyboard: xkb_model: "pc105"
 (**) Option "xkb_layout" "us"
 (**) Sun USB Keyboard: xkb_layout: "us"

But it wrongly detects it as a standard pc105 US keyboard. This means some keys don't work (e.g. Meta becomes Super, Compose becomes Menu, etc.). The correct layout for this keyboard is "us+sun_vndr/usb(sun_usb)". Setting this with "setxkbmap -layout" makes the keyboard behave as expected.

Revision history for this message
Montel Edwards (montel) wrote :

Yeah, i just bought the Sun Ultra 24 and i was really hoping that this would work
Now it seems useless.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Judging from the X log output excerpt, this would be a evdev-related bug.

affects: ubuntu → xserver-xorg-input-evdev (Ubuntu)
Bryce Harrington (bryce)
affects: xserver-xorg-input-evdev (Ubuntu) → xkeyboard-config (Ubuntu)
Revision history for this message
Mark Richardson (mark-richardson) wrote :

Same for me on an Ultra 24 - I have a Sun Type 7 USB PC Keyboard.
No Keyboard option for a Type 7 keyboard in the Keyborad options either.

My xorg.log
(II) config/hal: Adding input device Sun USB Keyboard
(II) LoadModule: "evdev"
(II) Loading /usr/lib/xorg/modules/input//evdev_drv.so
(II) Module evdev: vendor="X.Org Foundation"
        compiled for 1.6.0, module version = 2.1.1
        Module class: X.Org XInput Driver
        ABI class: X.Org XInput driver, version 4.0
(**) Sun USB Keyboard: always reports core events
(**) Sun USB Keyboard: Device: "/dev/input/event5"
(II) Sun USB Keyboard: Found keys
(II) Sun USB Keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "Sun USB Keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Sun USB Keyboard: xkb_rules: "evdev"
(**) Option "xkb_model" "pc105"
(**) Sun USB Keyboard: xkb_model: "pc105"
(**) Option "xkb_layout" "us"
(**) Sun USB Keyboard: xkb_layout: "us"

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. A new version of xkeyboard-config is available in both Lucid and Maverick and we are wondering if this is still reproducible in any of those versions, May you please test and give us of feedback about it? Thanks in advance.

Changed in xkeyboard-config (Ubuntu):
status: New → Incomplete
Revision history for this message
Amy Wilson (awils-1) wrote :

Unfortunately, this is still unfixed. Super is still meta, compose is still menu, etc. The log reports:

(II) config/udev: Adding input device HID 0430:0005 (/dev/input/event4)
(**) HID 0430:0005: Applying InputClass "evdev keyboard catchall"
(**) HID 0430:0005: always reports core events
(**) HID 0430:0005: Device: "/dev/input/event4"
(II) HID 0430:0005: Found keys
(II) HID 0430:0005: Configuring as keyboard
(II) XINPUT: Adding extended input device "HID 0430:0005" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "pc105"
(**) Option "xkb_layout" "us"

Changed in xkeyboard-config (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
In , Bryce Harrington (bryce) wrote :

Forwarding this bug from Ubuntu reporter River Tarnell:
http://bugs.launchpad.net/ubuntu/+source/xkeyboard-config/+bug/299727

(Looks like maybe xkb_keycodes has types 4, 5, and 6 but not 7?)

I use a Sun Type 7 UNIX-layout USB keyboard. X detects the keyboard:

 (II) config/hal: Adding input device Sun USB Keyboard
 (**) Sun USB Keyboard: always reports core events
 (**) Sun USB Keyboard: Device: "/dev/input/event2"
 (II) Sun USB Keyboard: Found keys
 (II) Sun USB Keyboard: Configuring as keyboard
 (II) XINPUT: Adding extended input device "Sun USB Keyboard" (type: KEYBOARD)
 (**) Option "xkb_rules" "evdev"
 (**) Sun USB Keyboard: xkb_rules: "evdev"
 (**) Option "xkb_model" "pc105"
 (**) Sun USB Keyboard: xkb_model: "pc105"
 (**) Option "xkb_layout" "us"
 (**) Sun USB Keyboard: xkb_layout: "us"

But it wrongly detects it as a standard pc105 US keyboard. This means some keys don't work (e.g. Meta becomes Super, Compose becomes Menu, etc.). The correct layout for this keyboard is "us+sun_vndr/usb(sun_usb)". Setting this with "setxkbmap -layout" makes the keyboard behave as expected.

Revision history for this message
In , Bryce Harrington (bryce) wrote :

I don't know what differences there are between type7 and type6, but offhand thought is could the type6 be used as a starting point for a layout?

Revision history for this message
In , Alan Coopersmith (alan-coopersmith) wrote :

If I recall correctly, there is no difference in the layouts of USB model
Type 6 & Type 7 keyboards, except for the Japanese layout, which was modified
to more closely match the pc105 layout. (Type 6 keyboards were made in versions
for both the traditional Sun/SPARC serial connector and USB, while only USB
versions of Type 7 are made, since they postdate the EOL of the machines that
used the older connectors.)

The main differences between Type 6 & 7 are physical (embedded USB hub to
plug in mice, flash drives, etc. ; RoHS-compliant materials ; updated
appearance).

Revision history for this message
Bryce Harrington (bryce) wrote :

I've forwarded this bug upstream to http://bugs.freedesktop.org/show_bug.cgi?id=34366 and subscribed you to it. Please follow up with them in case they need further information or wish you to test something.

Changed in xkeyboard-config (Ubuntu):
status: Confirmed → Triaged
Changed in xkeyboard-config:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
In , Sergey V. Udaltsov (svu) wrote :

So, should we create some kind of "alias model" sun7 for sun6?

Revision history for this message
In , Fdo-4 (fdo-4) wrote :

After connecting a Sun Type 7 USB keyboard to my Lenovo Thinkpad T410s:

[ 2412.383] (II) config/udev: Adding input device Sun USB Keyboard (/dev/input/event17)
[ 2412.384] (**) Sun USB Keyboard: Applying InputClass "evdev keyboard catchall"
[ 2412.384] (II) Using input driver 'evdev' for 'Sun USB Keyboard'
[ 2412.384] (**) Sun USB Keyboard: always reports core events
[ 2412.384] (**) evdev: Sun USB Keyboard: Device: "/dev/input/event17"
[ 2412.384] (--) evdev: Sun USB Keyboard: Vendor 0x430 Product 0xa2
[ 2412.384] (--) evdev: Sun USB Keyboard: Found keys
[ 2412.384] (II) evdev: Sun USB Keyboard: Configuring as keyboard
[ 2412.384] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.4/2-1.2.4:1.0/input/input17/event17"
[ 2412.384] (II) XINPUT: Adding extended input device "Sun USB Keyboard" (type: KEYBOARD, id 15)
[ 2412.384] (**) Option "xkb_rules" "evdev"
[ 2412.384] (**) Option "xkb_model" "thinkpad60"
[ 2412.384] (**) Option "xkb_layout" "us"
[ 2412.384] (**) Option "xkb_variant" "euro"
[ 2412.384] (**) Option "xkb_options" "compose:ralt"
[ 2523.288] (II) XKB: reuse xkmfile /var/lib/xkb/server-D76D36B641D671360DA6F1CC4EA58BED62249793.xkm

My Type 7 keyboard has a PC layout. For at least the Type 6 keyboard there are at least two layouts: PC layout and UNIX layout. The UNIX layout has the capslock and control keys switched and I believe the Escape key was also moved. Another difference is that the power key was changed to a standby key (same keycode, but different icon printed on the key?)

Revision history for this message
In , Fdo-4 (fdo-4) wrote :

Another detail of my Sun Type 7 USB keyboard: It has a euro sign on the 4, instead of on the 5 as is more usual for other keyboard vendors.

Revision history for this message
In , Sergey V. Udaltsov (svu) wrote :

> My Type 7 keyboard has a PC layout. For at least the Type 6 keyboard there
> are at least two layouts: PC layout and UNIX layout. The UNIX layout has the
> capslock and control keys switched and I believe the Escape key was also
> moved. Another difference is that the power key was changed to a standby key
> (same keycode, but different icon printed on the key?)
Well, these days all linuxes are using same keycodes from evdev driver. What keycode does that key generate?(In reply to comment #5)

> Another detail of my Sun Type 7 USB keyboard: It has a euro sign on the 4,
> instead of on the 5 as is more usual for other keyboard vendors.
You can you XKB option euro:4 if you like...

For a moment it looks there is no immediate need in separate model. Perhaps an alias for Sun Type 6. Alan?

Revision history for this message
In , Alan Coopersmith (alan-coopersmith) wrote :

(In reply to comment #6)
> For a moment it looks there is no immediate need in separate model. Perhaps
> an alias for Sun Type 6. Alan?

Yeah, an alias sounds more likely than a separate model, if people feel the
need to see the specific type name there.

BTW, the "Sun Type 7" keyboards are reaching end of life, and being phased out
and replaced by a new Oracle keyboard that's much more standard PC/USB like:
http://www.oracle.com/technetwork/server-storage/sunrayproducts/docs/peripheral-kit-faq-060413-1954565.pdf
http://www.oracle.com/us/products/servers-storage/desktop-workstations/oracle-peripheral-kit-ds-043013-1954188.pdf

Revision history for this message
In , Gitlab-migration (gitlab-migration) wrote :

-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/issues/114.

Changed in xkeyboard-config:
status: Confirmed → Unknown
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.