guides:keyboard
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
guides:keyboard [2023/12/14 19:13] – Update pictures admin | guides:keyboard [2024/01/31 18:06] (current) – osnr | ||
---|---|---|---|
Line 11: | Line 11: | ||
---- | ---- | ||
- | In a virtual program paste this program: | + | Go to the Keyboards page on your Folk's web server: |
- | < | + | http:// |
- | proc udevadmProperties {device} { | + | |
- | return [exec udevadm info --query=property --name=$device] | + | |
- | } | + | |
- | proc findEventPath | + | {{: |
- | set pattern {DEVNAME=(/ | + | |
- | set capturedMatch "" | + | |
- | if {[regexp | + | ---- |
- | return true | + | |
- | } else { | + | |
- | return false | + | |
- | } | + | |
- | } | + | |
- | proc isKeyboard {device} { | + | :!: **If no keyboards appear in the list** |
- | set properties [udevadmProperties $device] | + | |
- | if {$properties eq "" | + | |
- | return false | + | |
- | } | + | |
- | set hasEventPath [findEventPath $properties] | + | |
- | # Check if device is a keyboard and not a mouse | + | |
- | set isKeyboard [string match *ID_INPUT_KEYBOARD=1* $properties] | + | |
- | set isMouse [string match *ID_INPUT_MOUSE=1* $properties] | + | |
- | set isPCI [string match *pci-* $device] | + | |
- | return [expr {$isPCI && $isKeyboard && $hasEventPath}] | + | |
- | # return [expr {$isPCI && $isKeyboard && !$isMouse}] | + | |
- | } | + | |
- | set allDevices [glob -nocomplain | + | This is known to happen with Bluetooth keyboards. You can put it into '' |
- | set keyboards [list] | + | |
- | + | ||
- | foreach device $allDevices { | + | |
- | set keyboardCheck [isKeyboard $device] | + | |
- | set notInList | + | |
- | if {$keyboardCheck && $notInList} { | + | |
- | lappend keyboards $device | + | |
- | } | + | |
- | } | + | |
- | + | ||
- | Wish $this is outlined white | + | |
- | foreach kb $keyboards { | + | |
- | Wish $this is labelled " | + | |
- | puts " | + | |
- | } | + | |
- | </ | + | |
- | + | ||
- | When you hit save this will display the connected keyboard' | + | |
- | + | ||
- | {{guides: | + | |
- | + | ||
- | and in the journal ('' | + | |
- | + | ||
- | < | + | |
- | Dec 14 19:00:24 folk0 make[30201]: | + | |
- | Dec 14 19:00:24 folk0 make[30201]: | + | |
- | Dec 14 19:00:24 folk0 make[30201]: | + | |
- | </ | + | |
---- | ---- | ||
+ | With the page open on your computer, type some stuff on your keyboard and see which keyboard entry it appears on. | ||
- | Put this claim into a new virtual program and the following editor claim: | + | If you can, put card stock or thick paper into your printer (so the keyboard |
- | + | ||
- | < | + | |
- | Claim $this is a keyboard | + | |
- | Claim $this is an editor | + | |
- | </ | + | |
- | Print this out onto card stock or thick paper so it will resist crumpling over time. Tape this to the bottom of your keyboard and you now have a keyboard | + | Tape the printed program |
{{guides: | {{guides: |
guides/keyboard.1702581211.txt.gz · Last modified: 2023/12/14 19:13 by admin