Sun Type 7 USB keyboard misdetected by X

Bug #299727 reported by River Tarnell on 2008-11-19
36
This bug affects 6 people
Affects Status Importance Assigned to Milestone
xkeyboard-config
Unknown
Medium
xkeyboard-config (Ubuntu)
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.

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.

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

affects: ubuntu → xserver-xorg-input-evdev (Ubuntu)
Bryce Harrington (bryce) on 2009-10-15
affects: xserver-xorg-input-evdev (Ubuntu) → xkeyboard-config (Ubuntu)

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"

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
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

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.

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?

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

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

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

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?)

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.

> 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?

(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

-- 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  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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