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