Bug 34366 - Sun Type 7 USB keyboard misdetected by X
Summary: Sun Type 7 USB keyboard misdetected by X
Status: RESOLVED MOVED
Alias: None
Product: xkeyboard-config
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: xkb
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2011-02-16 17:50 UTC by Bryce Harrington
Modified: 2018-12-28 00:44 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Bryce Harrington 2011-02-16 17:50:54 UTC
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.
Comment 1 Bryce Harrington 2011-02-16 17:54:34 UTC
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?
Comment 2 Alan Coopersmith 2011-02-16 17:59:37 UTC
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).
Comment 3 Sergey V. Udaltsov 2011-02-17 16:20:22 UTC
So, should we create some kind of "alias model" sun7 for sun6?
Comment 4 Daniël van Eeden 2013-06-21 06:38:56 UTC
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?)
Comment 5 Daniël van Eeden 2013-06-21 06:58:26 UTC
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.
Comment 6 Sergey V. Udaltsov 2013-06-24 23:46:24 UTC
> 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?
Comment 7 Alan Coopersmith 2013-06-24 23:56:25 UTC
(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
Comment 8 GitLab Migration User 2018-12-28 00:44:47 UTC
-- 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.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.