my dell latitude e6410 is amazing. first of all, it has very convenient keyboard. it is a pleasure to use its keyboard. i don’t like the keyboard on my dell latitude 7400.i don’t enjoy island type keyboards, made popular by apple, as i understand. not convenient to type.
secondly, e6410 can see and connect to hotspots no other device is able to connect. the hotspots located far away. i don’t know why is this, if it has a longer antennae, or something else. but that’s also enjoyable.
it is not slim, doesn’t look cool, probably, but i like the way it looks. it has an old cpu - nehalem, but may be that’s an advantage, it has no known critical vulnerabilities, and patches don’t impact its performance.
#dell #keyboard #e6410 #latitude #wifi #antennae #cpu #nehalem #usability
these are my adventures on connecting bluetooth keyboard to jolla sailfish device.
first of all, the keyboard would not connect. manual says just ‘press the connect button and let them pair’, but devices were not able to connect. i have tried to type ‘1234’ on a keyboard and press enter, then sailfish asked me for a password, i typed ‘1234’ and again got the message indicating that device is not paired. then i repeated the same with ‘0000’ and somehow, the device works.
now, how would i use my favourite programmers dvorak layout, and armenian typewriter?
it turned out i need to
so there is an utility called ckbcomp
that can convert xkb layouts to kmap files:
emerge ckbcomp
…
ckbcomp -keycodes evdev -layout us -variant dvp > /tmp/usdvp.kmap
ckbcomp -keycodes evdev -layout am > /tmp/am.kmap
now, i was searching for kmap2qmap utility, but apparently it absent in all linux distributions. so, my qt version on my laptop is 5.9.4, so i went to qt site, and downloaded version of qttools source for that version.
https://download.qt.io/archive/qt/5.9/5.9.4/submodules/qttools-opensource-src-5.9.4.tar.xz
well, these was not as easy, it took me a lot of time to understand that i need to compile the source, where to get it, etc. i also tried to install it on sailfish, but there was a problem:
[root@Sailfish keymaps]# pkcon --allow-downgrade install qt5-qttools-kmap2qmap
Resolving
Testing changes
Finished [ ] (0%)
The following packages have to be installed:
qt5-qttools-5.6.3+git1-1.4.3.armv7hl Development tools for Qt
qt5-qttools-kmap2qmap-5.6.3+git1-1.4.3.armv7hl The kmap2qmap tool
Proceed with changes? [N/y] y
Installing
Starting
Refreshing software list
Querying
Resolving dependencies
Downloading packages
Finished
Fatal error: File './qt/armv7hl/qt5-qttools-5.6.3+git1-1.4.3.armv7hl.rpm' not found on medium 'https://releases.jolla.com/releases/2.2.1.18/jolla/armv7hl/'
[root@Sailfish keymaps]#
but from this output i guessed that i need the package called qttools to find the utility.
so, i have got the package, then:
tar Jxvf qttools-opensource-src-5.9.4.tar.xz
found the source directory with find, and went there:
cd src/kmap2qmap/
now there is a .pro file, and .cpp file, how do i compile them?
i just tried qmake and make, and it worked!
noch@aygepar /tmp/qttools-opensource-src-5.9.4/src/kmap2qmap $ qmake
Info: creating stash file /tmp/qttools-opensource-src-5.9.4/.qmake.stash
noch@aygepar /tmp/qttools-opensource-src-5.9.4/src/kmap2qmap $ ls
kmap2qmap.pro main.cpp Makefile target_wrapper.sh
noch@aygepar /tmp/qttools-opensource-src-5.9.4/src/kmap2qmap $ make
x86_64-pc-linux-gnu-g++ -c -O2 -march=native -pipe -std=c++1z -fno-exceptions -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -D_REENTRANT -fPIC -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_INPUT_SUPPORT_LIB -DQT_DEVICEDISCOVERY_SUPPORT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtInputSupport -isystem /usr/include/qt5/QtInputSupport/5.9.4 -isystem /usr/include/qt5/QtInputSupport/5.9.4/QtInputSupport -isystem /usr/include/qt5/QtGui/5.9.4 -isystem /usr/include/qt5/QtGui/5.9.4/QtGui -isystem /usr/include/qt5/QtDeviceDiscoverySupport -isystem /usr/include/qt5/QtDeviceDiscoverySupport/5.9.4 -isystem /usr/include/qt5/QtDeviceDiscoverySupport/5.9.4/QtDeviceDiscoverySupport -isystem /usr/include/qt5/QtCore/5.9.4 -isystem /usr/include/qt5/QtCore/5.9.4/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -I.moc -isystem /usr/include/libdrm -I/usr/lib64/qt5/mkspecs/linux-g++ -o .obj/main.o main.cpp
x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,--gc-sections -Wl,--enable-new-dtags -o ../../bin/kmap2qmap .obj/main.o -lQt5InputSupport -lmtdev -linput -lxkbcommon -lQt5DeviceDiscoverySupport -ludev -lQt5Gui -lQt5Core -lGL -lpthread
now, ls does not show the compiled binary
noch@aygepar /tmp/qttools-opensource-src-5.9.4/src/kmap2qmap $ ls
kmap2qmap.pro main.cpp Makefile target_wrapper.sh
where do i find it? what if i try to install it?
/usr/lib64/qt5/bin/qmake -install qinstall -exe ../../bin/kmap2qmap /usr/lib64/qt5/bin/kmap2qmap
Error copying ../../bin/kmap2qmap to /usr/lib64/qt5/bin/kmap2qmap: Cannot create /usr/lib64/qt5/bin/kmap2qmap for output
Makefile:348: recipe for target 'install_target' failed
make: [install_target] Error 3 (ignored)
(reverse-i-search)`wget': ^Cet https://download.qt.io/archive/qt/5.9/5.9.4/submodules/qttools-opensource-src-5.9.4.tar.xz
this failed, but aha, there it is.
at ../../bin
directory.
cd ../../bin
cp kmap2qmap /home/noch/test
I also put my usdvp.kmap and am.kmap files there. now generating qmap file
./kmap2qmap usdvp.kmap am.kmap noch.qmap
copy it to jolla device:
scp noch.qmap root@10.23.23.5:/usr/share/qt5/keymaps/
now on jolla i had to backup the existing boston.qmap file, and replace it with my file.
cd /usr/share/qt5/keymaps/
cp boston.qmap boston_.qmap
cp noch.qmap boston.qmap
how do i now change the settings menu to indicate the change?
apparently, by editing /usr/share/jolla-settings/pages/text_input/textinput.qml
file.
I have added there
ListElement {
layout: "am"
name: "Armenian"
}
ListElement {
layout: "us(dvp)"
name: "Dvorak"
}
reboot, and now it works!
well, there is a problem, that if the bt keyboard is on, then the login screen of jolla requires you to use hardware keyboard to login, not the screen keyboard. so i turn off the bt keyboard during restart.
also, make sure you have wifi connection via ssh to the device in case something goes wrong, you would need to login to device and change things. #jolla #sailfish #keyboard #bluetooth #layout #dvorak #armenian
aaa, i succeeded in connecting my midi keyboard to bristol synth.
when i connect it, /dev/midi1
file is created.
qjackctl does not work in my windowmaker — when i start it, whole windowmaker hungs unless i don’t kill the process from pure terminal or via ssh.
so without jack, just alsa:
startBristol -mini -audio alsa -midi alsa -channel 1 -mididev /dev/midi1
now it is necessary to connect midi keyboard’s output to bristol’s input:
aconnect -l
shows:
client 20: 'Impulse' [type=kernel,card=1]
0 'Impulse MIDI 1 '
Connecting To: 128:0
1 'Impulse MIDI 2 '
client 128: '/dev/midi1' [type=user,pid=11247]
0 '/dev/midi1 input'
connecting:
aconnect 20:0 128:0
works:
noch@hactar ~ $ aconnect -l
client 0: 'System' [type=kernel]
0 'Timer '
1 'Announce '
client 14: 'Midi Through' [type=kernel]
0 'Midi Through Port-0'
client 20: 'Impulse' [type=kernel,card=1]
0 'Impulse MIDI 1 '
Connecting To: 128:0
1 'Impulse MIDI 2 '
client 128: '/dev/midi1' [type=user,pid=11247]
0 '/dev/midi1 input'
Connected From: 20:0
noch@hactar ~ $
now i can play on midi keyboard and get sounds of moog mini. aaa.
#midi #linux #bristol #alsa #midi_keyboard #keyboard #console #sound #audio
wow. xkb? doesn’t xkb work only for X? wayland has it’s own keyboard mappings.
#jolla #xkb #wayland #x11 #keyboard
my typematrix keyboard. it supports dvorak by hardware. i like it. (: #typematrix #keyboard #dvorak #layout
extremely easy. just copy fonts to ~/.fonts and edit two files right on device. this is linux, not android. i enjoy it indeed. though n900 was better.
@{ Փրչրթան✱ Թանաքեան ; norayr@spyurk.am} 30.08.2014, 17:01:32
այսպէս։ ու ինձ դուր է գալիս չորս շարքը։ ու այսքան պարզ՝ https://github.com/norayr/sailfish-armenian-layout #հայերէն #յոլլա #սեյլֆիշ #գրամեքենայ #շարուաթք #էկրանահան #բարեւ #######
#jolla #sailfish #sailfishos #armenian #keyboard #layout #fonts #screenshot #screenshots #freedom
#messagease #qwerty #keyboard #layout #dvorak