Skip to content

Instantly share code, notes, and snippets.

for the volume control of alerts and alarms, what you meant by "PA role-based volume control for alarm" , the signification of "PA" i mean. which repo should i look at ?,
https://gitlab.com/ubports/development/core/ubuntu-touch-session/-/blob/main/touch.pa?ref_type=heads#L28
https://gitlab.com/ubports/development/core/ubuntu-touch-session/-/blob/main/touch-stream-restore.table?ref_type=heads
https://github.com/AyatanaIndicators/ayatana-indicator-sound/blob/main/src/volume-control-pulse.vala#L788-L791
https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#module-stream-restore
@lduboeuf
lduboeuf / gist:ac322d48a7dc464cc602685e3d1c0178
Last active August 30, 2024 11:00
Ubuntu 24.04, Lomiri, QtCreator, Calendar app demo
#install Lomiri
# see launchpad.net/~lomiri/+archive/ubuntu/builds
sudo apt install ssh
# dev: https://askubuntu.com/a/1407604
sudo apt install build-essential cmake pkg-config
sudo apt install qtbase5-dev
sudo apt install libqt5qml5
sudo apt install qt5-qmake
syncevolution --print-databases backend=caldav username=<username> password=<pwd> syncURL=https://<url>
@lduboeuf
lduboeuf / contact-sync buteo & mkcal
Last active December 6, 2024 09:36
Contact sync
syncevolution:
syncevolution --print-databases
syncevolution --remove-database backend=evolution-calendar database=f2636fba81f637f5591563e57913ca38cdd306d3
Buteo debug:
systemctl --user set-environment QT_LOGGING_RULES="buteo.*.debug=true"
systemctl --user restart msyncd.service
Account service:
sudo systemctl restart accounts-daemon.service
db: /home/phablet/.config/libaccounts-glib/accounts.db
@lduboeuf
lduboeuf / lte-battery-saver.py
Created September 26, 2023 13:16
LTE to GSM switcher
import os
import dbus
from gi.repository import GLib
from dbus.mainloop.glib import DBusGMainLoop
best_connectivity="lte"
lowest_connectivity="gsm"
sim_slot="/ril_0"
#logs
journalctl --user -f -u lomiri-app-launch--application-click--terminal.ubports_terminal_2.0.1--.service
sudo journalctl --boot --identifier=NetworkManager
# mount rw
sudo mount -o remount,rw /
# restart lomiri
systemctl --user restart lomiri-full-greeter.service
#debug glogs:
systemctl --user set-environment G_MESSAGES_DEBUG=all
@lduboeuf
lduboeuf / get previous image
Last active April 17, 2023 09:34
UT install previous image
git clone https://git.launchpad.net/ubuntu/+source/goget-ubuntu-touch
build with crossbuilder
List of images ( channel is the path in system-image see https://system-image.ubports.com) :
goget-ubuntu-touch/obj-x86_64-linux-gnu/bin$ ./ubuntu-device-flash query --server=https://system-image.ubports.com --device=krillin --channel=ubports-touch/16.04/stable --list-images
Install:
goget-ubuntu-touch/obj-x86_64-linux-gnu/bin$ ./ubuntu-device-flash touch --server=https://system-image.ubports.com --device=krillin --revision 23 --channel=ubports-touch/16.04/stable
sudo click unregister --all-users calendar.ubports
sudo rm -rf /usr/share/click/preinstalled/calendar.ubports/
find . -name '*calendar*' -exec rm -rf {} +
sudo click install --allow-unauthenticated --all-users ./calendar.ubports_1.0.0_all.click
@lduboeuf
lduboeuf / nuntium test
Created February 28, 2023 14:24
nuntium test
crossbuilder --lxd-image="ubuntu:20.04" --architecture=amd64 shell
cd /nuntium/obj-x86_64-linux-gnu
export GOPATH=$GOPATH:/home/lionel/nuntium/obj-x86_64-linux-gnu
go test github.com/ubports/nuntium/mms
@lduboeuf
lduboeuf / debug UT
Last active November 22, 2024 06:20
dbus-update-activation-environment --systemd G_MESSAGES_DEBUG=all
dbus-update-activation-environment --systemd QT_LOGGING_RULES="*=true;qt.*=false;liblomirigestures.*=false;lomiri.components.*=false"
systemctl --user set-environment G_MESSAGES_DEBUG=all