Skip to content

Instantly share code, notes, and snippets.

View kimmoli's full-sized avatar

Kimmo Lindholm kimmoli

View GitHub Profile

Setup your SDK

.hadk.env

export MER_ROOT="$HOME/mer"
export ANDROID_ROOT="$MER_ROOT/android/droid"
export VENDOR="OnePlus"
export DEVICE="onyx"
export PORT_ARCH="armv7hl"
Apply this to /usr/share/jolla-camera/pages/capture/CaptureView.qml
EDIT: Setting this to 0, backend makes optimal selection for framerate
http://doc.qt.io/qt-5/qcameraviewfindersettings.html#setMaximumFrameRate
diff --git a/CaptureView.qml b/CaptureView.qml
index 3ee90bb..df03e68 100644
--- a/CaptureView.qml
+++ b/CaptureView.qml
@kimmoli
kimmoli / jolladump.txt
Last active January 10, 2016 22:00
Jolla kmap dumped
keymaps 0-2,4-5,8,12
keycode 1 = Escape Escape
alt keycode 1 = Meta_Escape
keycode 2 = one exclam
alt keycode 2 = Meta_one
keycode 3 = two at at nul nul Meta_two
keycode 4 = three numbersign
control keycode 4 = Escape
alt keycode 4 = Meta_three
keycode 5 = four dollar dollar Control_backslash
Column {
property var raw: ["apples", "oranges", "pears", "kissa", "koira", "ei", "vain", "hedelmiä", "ananas"]
Component.onCompleted:
{
for (var i=0 ; i<Math.min(3, raw.length) ; i++)
lm.append({ name: raw[i] })
}
ListModel
{
import QtQuick 2.0
import Sailfish.Silica 1.0
Timer
{
id: thistimer
property var callback
property var delay
@kimmoli
kimmoli / project.pro
Created December 19, 2015 14:13
noarch version from spec to QML
...
system(echo "\\\{\\\"version\\\":\\\"$${SPECVERSION}\\\"\\\}" > qml/version.json)
...
@kimmoli
kimmoli / config.txt
Last active October 21, 2015 05:18 — forked from locusf/config.txt
cma_lwm=128
cma_hwm=384
cma_offline_start=64
lcd_rotate=2
dtoverlay=rpi-ft5406
@kimmoli
kimmoli / tohid
Created June 10, 2015 18:19
Tohid
dbus-monitor --system "type=signal, interface=org.freedesktop.DBus.Properties, member=PropertiesChanged" |
while read -r line;
do
if echo $line | grep "TOHID" > /dev/null
then
read -r idline
if echo $idline | grep "string" > /dev/null
then
echo $idline | cut -d "\"" -f 2
fi
@kimmoli
kimmoli / vkb.qml
Last active August 29, 2015 14:22
VKB visible
Page
{
property bool inputVisible: Qt.inputMethod.visible
onInputVisibleChanged: console.log("vis changed " + inputVisible);
TextArea
{
anchors.centerIn: parent
width: parent.width
focus: true
@kimmoli
kimmoli / webview.qml
Created June 8, 2015 07:41
[SailfishDevel] SilicaWebView
Page {
id: page
SilicaWebView {
url: "https://www.messenger.com/login"
width: parent.width
height: parent.height / 2
}
}