You are not logged in.

#1 2015-06-19 00:04:20

Herodotus
Member
Registered: 2015-06-16
Posts: 24

where to submit bugs for wiki instructions (scancodes to keycodes)

Hello!

I have been working on implementing the instructions in the Wiki article "Map scancodes to keycodes":

https://wiki.archlinux.org/index.php/Ma … o_keycodes

because I want to have my control key in a place (just left of Space) which is more convenient than the default (far lower left corner of keyboard), and I want this to be in effect on the console and in X.

At first, none of the examples in the article worked. After some searching I found that it was necessary to use "evtest" instead of "showkey" to get scancodes for USB keyboards, per this page:

https://ask.fedoraproject.org/en/questi … -keycodes/

I updated this Wiki article, referenced by "Map scancodes to keycodes", to reflect this:

https://wiki.archlinux.org/index.php/Ex … #Scancodes

I also updated "Map scancodes to keycodes" to reflect the fact that "setkeycodes" doesn't work for me, on kernels 3.14.44-1-lts or 4.0.5-1-ARCH, to remap USB keyboard keys:

https://wiki.archlinux.org/index.php/Ma … etkeycodes

I'm not sure if this was the right thing to do. I could also have submitted a bug report to either the Linux Kernel or to Arch, either reporting broken functionality or broken documentation. In any case, it seems that if the instructions on the Wiki don't work for a recent kernel and a popular (USB) keyboard protocol, then this should be noted. Is that correct?

The second question I have is what to do about the instructions for running "udevadm trigger":

https://wiki.archlinux.org/index.php/Ma … base_Index

For me, when I reboot after rebuilding the hardware database, the keyboard changes I made are reflected on the console. However, when I start X, they are no longer in effect. However, if I run "sudo udevadm trigger" in X, then the keyboard reflects the changes again. Is this a bug, that I have to run 'trigger' again after starting X? If so, where should I submit it? Should the Wiki be updated with my workaround (to add "sudo udevadm trigger" to .xinitrc)? Should I check that others can reproduce this before updating the Wiki? (can you reproduce?) I have seen some comments to the effect that the Wiki is not for reporting bugs, so I'm not sure what to do. Should there even be an article on the Wiki with instructions that cause users to run up against bugs? Anyway, I don't see that other people are very interested in this topic, and Arch Wiki seems to have the best documentation, flawed as it is, so it would be nice to keep the article, and also to make it reflect the current reality.

Offline

#2 2015-06-19 00:42:25

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: where to submit bugs for wiki instructions (scancodes to keycodes)

The wiki is meant to be editable - so yes submitting the changes there is the right place.  I can say the existing/previous form of that wiki page worked perfectly for me.  So the limitations you faced may have been specific to your keyboard model and/or to usb keyboards (I've used the instructions for keyboards integrated on laptops).  So as long as the edits are caveats to the existing information that would be good.

I don't see evidence of there being a 'bug' anywhere in the kernel nor in documentation.  The wiki doesn't really have 'bugs' to be reported, just places where it is incomplete and users can expand or elaborate on it.

As for the udevadm issue, you might want to open a separate thread for that.  Having more than one issue in a thread is discouraged and confusing.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2015-06-19 01:52:54

Herodotus
Member
Registered: 2015-06-16
Posts: 24

Re: where to submit bugs for wiki instructions (scancodes to keycodes)

Thanks for the sound advice. Opened a separate thread here:

https://bbs.archlinux.org/viewtopic.php … 7#p1538017

Offline

Board footer

Powered by FluxBB