Commit graph

2802 commits

Author SHA1 Message Date
Carl Schwan
0c774e1133 Port intial start module to declarative qml type registration 2024-01-24 15:01:20 +00:00
l10n daemon script
d467c0e0ed GIT_SILENT Sync po/docbooks with svn 2024-01-24 01:20:10 +00:00
Jonathan Esk-Riddell
d06342735f add a version for dependencies so it does not break CI https://invent.kde.org/plasma/bluedevil/-/merge_requests/156 2024-01-23 14:14:17 +00:00
l10n daemon script
7c94bfa552 GIT_SILENT Sync po/docbooks with svn 2024-01-23 01:21:51 +00:00
Carl Schwan
d63e5e04f5
envmanager: Fix some for-loop
Avoid detaching
2024-01-22 16:33:41 +01:00
Devin Lin
037f24833c kcms/mobileshell: Remove gesture only navigation option for now
The KWin gesture currently does not work at all, so turning off the navigation panel makes it so the user cannot navigate.

See https://invent.kde.org/plasma/plasma-mobile/-/issues/300
2024-01-22 15:13:21 +00:00
Fushan Wen
d375914a8c StatusBar: remove excessive space 2024-01-22 10:52:02 +00:00
Fushan Wen
843977059b StatusBar: port away from statusnotifieritem dataengine
Task: https://phabricator.kde.org/T13319
2024-01-22 10:52:02 +00:00
l10n daemon script
c004467db3 GIT_SILENT Sync po/docbooks with svn 2024-01-22 01:37:15 +00:00
Carl Schwan
d9330ad10d Fix crash in envmanager
To delete an entry, we need to ensure the KConfigGroup and none of its
parent config group is not const otherwise we it an assert in KConfig.
2024-01-21 22:11:08 +00:00
l10n daemon script
e0a4614c25 GIT_SILENT Sync po/docbooks with svn 2024-01-19 01:23:13 +00:00
Florian RICHER
d162f96a63 Find white torch 2024-01-18 19:20:45 +00:00
Carl Schwan
fc6b83d50f intialstart: Correctly init command line parser
Link the QCommandLine parse to the KAboutData to show the license and authorship
info.
2024-01-18 00:51:14 +00:00
Carl Schwan
d161292426
Use new Qt6 QStringLiteral operator
Shorter than typing QStringLiteral all the time
2024-01-17 01:07:31 +01:00
Carl Schwan
b070f6e3f7
Use a reference for the singleton
This is a bit nicer to work with than a pointer and doesn't require a
heap allocation.
2024-01-17 01:02:51 +01:00
l10n daemon script
6fc90ca25e GIT_SILENT Sync po/docbooks with svn 2024-01-14 01:38:15 +00:00
l10n daemon script
78a6aed0da GIT_SILENT Sync po/docbooks with svn 2024-01-13 01:28:06 +00:00
Jonathan Esk-Riddell
65cfa50a76 Update version number for 6.0.80
GIT_SILENT
2024-01-10 14:06:13 +00:00
Jonathan Esk-Riddell
8d98566dc2 Update version number for 5.92.0
GIT_SILENT
2024-01-10 12:31:18 +00:00
l10n daemon script
71047cca3d GIT_SILENT Sync po/docbooks with svn 2024-01-09 02:13:11 +00:00
l10n daemon script
896134c2d2 GIT_SILENT Sync po/docbooks with svn 2024-01-08 02:18:44 +00:00
l10n daemon script
89df4268e8 GIT_SILENT Sync po/docbooks with svn 2024-01-07 02:50:21 +00:00
l10n daemon script
a8989d0a3d GIT_SILENT Sync po/docbooks with svn 2024-01-06 02:14:37 +00:00
l10n daemon script
edbb762ded GIT_SILENT Sync po/docbooks with svn 2024-01-05 02:16:22 +00:00
l10n daemon script
bba776a5fb SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-01-05 02:08:21 +00:00
l10n daemon script
d2b0ff050c GIT_SILENT Sync po/docbooks with svn 2024-01-04 02:21:21 +00:00
Emir SARI
f927e2631b Simplify the battery charge representation 2024-01-03 13:01:38 +00:00
l10n daemon script
d084c04fa8 GIT_SILENT Sync po/docbooks with svn 2024-01-03 02:18:29 +00:00
Devin Lin
b895e8a203 kcms/powermanagement: Update to new powerdevil config
Fixes https://invent.kde.org/plasma/plasma-mobile/-/issues/295
2024-01-02 14:17:41 -05:00
Devin Lin
1dbd1505dc shell: Move wallpaper selector to homescreens directly 2024-01-02 03:32:15 +00:00
Devin Lin
77e59801d0 wallpaperimageplugin: Add plugin to allow for wallpaper editing in the shell 2024-01-02 03:32:15 +00:00
l10n daemon script
2b1b2d6a02 GIT_SILENT Sync po/docbooks with svn 2024-01-02 02:11:19 +00:00
Luis Büchi
cb2f857a4c increase size of grid items in halcyon homescreen 2024-01-01 23:17:08 +00:00
Florian RICHER
c43c5ce8c3 CMakeLists.txt : Add find_package(Libudev REQUIRED) 2024-01-01 13:51:58 +00:00
l10n daemon script
4ce31f44ec GIT_SILENT Sync po/docbooks with svn 2024-01-01 02:16:31 +00:00
Florian RICHER
5c6a97caa5 Flashlight : Use udev instead of hardcoded pinephone device file
# Goal of this patch

Use udev to change or detect flash device instead of hardcoded pinephone device file.
Inspired by phosh flash manager because it works in many devices. https://gitlab.gnome.org/World/Phosh/phosh/-/blob/main/src/torch-manager.c?ref_type=heads#L168-198

# Remaining work

- [x] Minimal project for testing
- [x] Try to build for pmOS to test in my device (OP6)
- [x] Need udev rules to work (Require write permission in brightness)

# Stabilization

- [x] read permission removed in max_brightness to check if no crash
> "Failed to read max_brightness from udev device" in log
- [x] read permission removed in brightness to check if no crash
> "Failed to read brightness from udev device" in log
- [x] "Break" match in my side to check if no crash occured when no device found
> "No flashlight found" in log

# Minimal project

It run in my device perfectly, it find device, get current value and max value and toggle flashlight. It require **root** permissions to write in device file.

```cpp
#include <iostream>
#include <cstring>
#include <libudev.h>

#define TORCH_SUBSYSTEM "leds"

int main() {
    struct udev* udev = udev_new();
    struct udev_enumerate* enumerate = udev_enumerate_new(udev);

    // Use to find all devices in subsystem "leds"
    // And use match sysname to filter only flash or torch
    // Example:
    //  - /sys/devices/platform/soc@0/c440000.spmi/spmi-0/0-03/c440000.spmi:pmic@3:led-controller@d300/leds/white:flash On OP6
    //  - /sys/devices/platform/soc@0/c440000.spmi/spmi-0/0-03/c440000.spmi:pmic@3:led-controller@d300/leds/yellow:flash On OP6
    //  - /sys/devices/platform/led-controller/leds/white:flash/brightness On pinephone
    udev_enumerate_add_match_subsystem(enumerate, TORCH_SUBSYSTEM);
    udev_enumerate_add_match_sysname(enumerate, "*:torch");
    udev_enumerate_add_match_sysname(enumerate, "*:flash");
    udev_enumerate_scan_devices(enumerate);

    struct udev_list_entry *devices = udev_enumerate_get_list_entry(enumerate);
    struct udev_list_entry *entry = udev_list_entry_get_next(devices);

    if (entry == nullptr) {
        std::cout << "No flashlight found" << std::endl;
        return 1;
    }

    const char *path = udev_list_entry_get_name(entry);
    struct udev_device *torch = udev_device_new_from_syspath(udev, path);

    const char *max_brightness = udev_device_get_sysattr_value(torch, "max_brightness");

    const char *brightness = udev_device_get_sysattr_value(torch, "brightness");

    bool enabled = std::strcmp(brightness, "0") != 0;
    udev_device_set_sysattr_value(torch, "brightness", const_cast<char*>(enabled ? "0" : max_brightness));

    udev_device_unref(torch);
    udev_enumerate_unref(enumerate);
    udev_unref(udev);
    return 0;
}
```

Build with `g++ torch.cpp -ludev -o torch`
Run with `sudo ./torch`

# Important info

- **udev** dependencies added
- destructor for flashlightutil added to unref udev_device

# Require udev rules

Files `/etc/udev/rules.d/99-flashlight.rules`
```bash
# Allow everyone to set brightness of flashlight (Required for plasma-mobile flashlightplugin)
SUBSYSTEMS=="leds", KERNEL=="*:flash|*:torch", RUN+="/bin/chmod 666 %S%p/brightness"
```

pmOS : See to add depends `eudev` and makedepends `eudev-dev`
2023-12-31 17:11:28 +00:00
l10n daemon script
f970aa7acf GIT_SILENT Sync po/docbooks with svn 2023-12-31 02:51:15 +00:00
Jonah Brüchert
d919403366 kcms: time: Avoid calling waitForFinished 2023-12-30 17:53:34 +00:00
l10n daemon script
48dd3ce33e GIT_SILENT Sync po/docbooks with svn 2023-12-30 02:23:00 +00:00
Devin Lin
0b45b5ed69 envmanager: Explicitly enable kdecoration plugin
Upgrading on pmOS from Plasma 5, where we used to ship custom configs seems to have kwin get stuck having the kdecoration plugin disabled. Manually enable it.
2023-12-29 15:44:26 -05:00
Devin Lin
f4aec3f0fc shell: Fix WallpaperSelector 2023-12-29 12:13:52 -05:00
Devin Lin
1cf51ae694 shell: Fix containment and wallpaper switching from being broken
Fixes https://invent.kde.org/plasma/plasma-mobile/-/issues/290
2023-12-28 15:55:23 -05:00
Devin Lin
bc18b29ce3 kwin/mobiletaskswitcher: Ensure that touch borders are registered 2023-12-28 15:24:35 -05:00
l10n daemon script
fc2b70170f GIT_SILENT Sync po/docbooks with svn 2023-12-28 02:18:11 +00:00
Nicolas Fella
42a0af5d7b Remove unnecessary id declaration from plugin metadata 2023-12-28 02:04:08 +01:00
Devin Lin
6b067b4a97 kcms/wifi: Don't show available card if there are no connections 2023-12-27 18:19:04 -05:00
Devin Lin
a41d567743 initialstart/wifi: Update to card based design 2023-12-27 18:17:16 -05:00
Devin Lin
975443045b kcms/wifi: Only show saved networks section when there is an entry 2023-12-27 17:40:09 -05:00
Devin Lin
fc10a6fe10 kcms/wifi: Add checked icon to connected Wi-Fi network 2023-12-27 14:45:50 -05:00
l10n daemon script
2a2e1da757 GIT_SILENT Sync po/docbooks with svn 2023-12-27 02:14:33 +00:00