is it already a well known fact, that default sailfish camera on xa2 gives a choice of 16mpx (16:9) or 13mpx (4:3), while piggz’ camera: 5984x3392 (187x106) max, which is 19 mpx? at the same time lineage os default camera gives: 22.9mpx (4:3) and 20.2 mpx (when using 16:9 resolution), strange.

#sailfish #camera #xa2 #sony #lineageos #photo

բնօրինակ սփիւռքում(եւ մեկնաբանութիւննե՞ր)

today i connected my #xa2 with #sailfish to the docking station of dell 7400 laptop at work, then got a jabber message, and… i was unable to answer, the onscreen keyboard did not appear. hmmm, i thought, and disconnected it fro usb type c. then the onscreen keyboard appeared. then i thought - may it be, it recognized the keyboard connected to the dock?

and tried to write something with keyboard, - and yes, letters on the screen of xperia appeared.

so sailfish works now almost like a real computer.

before i already created hardware keyboard layouts - i used those with bluetooth keyboards.

i have converted xkb layouts to special qt format.

the only drawback now is that i cannot change the input language with alt+shift or something like that, i need to go to sailfish settings, and change the input language every time. but well, that’s less an issue when i write english, because i have all the symbols at hand, but when i write armenian and need to use the hashtag symbol, i need to switch the keyboard. (:

բնօրինակ սփիւռքում(եւ մեկնաբանութիւննե՞ր)

in 2014, after getting a #jolla phone, i started a thread on #tmo, which stated what i miss in #maemo, and what is not yet available in #sailfish.

http://talk.maemo.org/showthread.php?t=94283

i forgot about the post, and the search engine brought me as a result, when i was searching for something.

so, almost nothing changed.

the only things that changed so far are

has Mappero, I did not find comparable program for Sailfish.

we have maep and pure maps. that’s a relief.

external bluetooth keyboard cannot be used with non qwerty layouts. I use dvorak or programmer’s dvorak for Latin, and I also use Armenian typewriter layout. It’s not possible with Sailfish yet.

i did this https://github.com/norayr/sailfish_h...yboard_layouts but it only works for me on jolla device. which died.

and sony xperia xa2 doesn’t recognize my bluetooth keyboards.

բնօրինակ սփիւռքում(եւ մեկնաբանութիւննե՞ր)

may i rant a little about sailfish 3.0 ?

omg, why this android like top menu? is it the urge to not, accidentally stand out? i really don’t understand.

my gesture to close programs was to swipe top down. and people were amazed by that. now to close the program we need to minimize it first, then close. aaah, dull? in order to close minimized app one needs to press on it, then leave and press the ‘x’ button. so three steps to just close the app.

why? sailfish was supposed to be convenient, geeky, other.

i also dislike recent gallery changes, where we lost going back by left gesture, and need now to use an icon ‘x’ to close the photo and get a gallery view.

ok and if you wanted to know, i guess my favourite sailfish is sailfish 1.

p. s. i think i appear in my english stream moarmore.

#jolla #sailfish

բնօրինակ սփիւռքում(եւ մեկնաբանութիւննե՞ր)

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

  • convert xkb layout to kmap file. to be precise create one kmap file for each variant of the layout.
  • convert kmap files to qmap file
  • replace qmap file on a device
  • add necessary layouts to the sailfish menu

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

բնօրինակ սփիւռքում(եւ մեկնաբանութիւննե՞ր)