Commit Graph
49 Commits
Author SHA1 Message Date
Aster Boese 5f836d5b2c treewide: add ending newline to files missing it
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8197>
2026-07-18 11:51:57 +02:00
Sicelo A. Mhlongo b495aa576b device-*: switch to UPower config fragments
As of upower 1.91.0, UPower supports config fragments, thus there is no longer
a need to ship a full UPower.conf.

Signed-off-By: Sicelo A. Mhlongo <absicsz@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8794>
2026-06-11 17:25:47 +00:00
Aster Boese adb832c1ee device/community/*: /etc/X11/xorg.conf.d -> /usr/share/X11/xorg.conf.d
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7805>
2026-03-27 13:42:53 +00:00
Clayton Craft 6975af2fe9 device-pine64-pinephone: remove MM config
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7840>
2026-02-01 13:15:28 -08:00
Clayton Craft 1ca5a1ad58 device/*: update pmos-base-ui-backend-audio-* dependency pkg names
These were changed in 3c2af74036

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7786>
2026-01-18 12:20:33 +00:00
Achill Gilgenast ecd710af96 */*: move to maintainer= variables
* Also move right above pkgname=
* Move Co-Maintainer lines above maintainer=
* Remove empty lines in the header

pmbootstrap 3.7+ & abuild supports maintainer= variables.

See also https://gitlab.alpinelinux.org/alpine/tsc/-/issues/88

[ci:skip-build]: no pkgver/pkgrel changes
[ci:ignore-count]: intended
[ci:skip-vercheck]: no functional changes
[skip ci]: false positives

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7723>
2026-01-12 17:01:35 +01:00
Luca Weiss 8624b297e6 device/*: Resolve deviceinfo errors highlighted by dint
A large scripted cleanup to fix the errors, each with the sed command
used.

**Renamed variables**

[Error!!!] deviceinfo_gpu_accelerated: gpu_accelerated was renamed to drm: More accurately describes its function; see pmaports#1481 for the reasoning.
sed -i 's/^deviceinfo_gpu_accelerated=/deviceinfo_drm=/' device/*/*/deviceinfo

[Error!!!] deviceinfo_flash_heimdall_partition_system: flash_heimdall_partition_system was renamed to flash_heimdall_partition_rootfs: Renamed to avoid confusion
sed -i 's/^deviceinfo_flash_heimdall_partition_system=/deviceinfo_flash_heimdall_partition_rootfs=/' device/*/*/deviceinfo

[Error!!!] deviceinfo_flash_fastboot_partition_system: flash_fastboot_partition_system was renamed to flash_fastboot_partition_rootfs: Renamed to avoid confusion
sed -i 's/^deviceinfo_flash_fastboot_partition_system=/deviceinfo_flash_fastboot_partition_rootfs=/' device/*/*/deviceinfo

**Obsolete variables**

[Error!!!] deviceinfo_keyboard: This property is obsolete: Programs should automatically detect if the device currently has a keyboard or not (often it can be hotplugged anyway).
sed -i '/^deviceinfo_keyboard=/d' device/*/*/deviceinfo

[Error!!!] deviceinfo_framebuffer_landscape: This property is obsolete: Removed by the switch to pbsplash with no apparent replacement
sed -i '/^deviceinfo_framebuffer_landscape=/d' device/*/*/deviceinfo

[Error!!!] deviceinfo_mesa_driver: This property is obsolete: This was used by osk-sdl, which has been replaced by unl0kr.
sed -i '/^deviceinfo_mesa_driver=/d' device/*/*/deviceinfo

**Default values**

[Warning!] deviceinfo_flash_method: Property is set to its default value ("none") and can be removed.
sed -i '/^deviceinfo_flash_method="none"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_drm: Property is set to its default value (false) and can be removed.
sed -i '/^deviceinfo_drm="false"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_bootimg_dtb_second: Property is set to its default value (false) and can be removed.
sed -i '/^deviceinfo_bootimg_dtb_second="false"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_generate_bootimg: Property is set to its default value (false) and can be removed.
sed -i '/^deviceinfo_generate_bootimg="false"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_flash_heimdall_partition_rootfs: Property is set to its default value ("SYSTEM") and can be removed.
sed -i '/^deviceinfo_flash_heimdall_partition_rootfs="SYSTEM"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_flash_heimdall_partition_kernel: Property is set to its default value ("KERNEL") and can be removed.
sed -i '/^deviceinfo_flash_heimdall_partition_kernel="KERNEL"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_flash_heimdall_partition_initfs: Property is set to its default value ("RECOVERY") and can be removed.
sed -i '/^deviceinfo_flash_heimdall_partition_initfs="RECOVERY"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_flash_offset_base: Property is set to its default value ("0x10000000") and can be removed.
sed -i '/^deviceinfo_flash_offset_base="0x10000000"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_flash_kernel_on_update: Property is set to its default value (false) and can be removed.
sed -i '/^deviceinfo_flash_kernel_on_update="false"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_flash_fastboot_partition_rootfs: Property is set to its default value ("userdata") and can be removed.
sed -i '/^deviceinfo_flash_fastboot_partition_rootfs="userdata"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_flash_fastboot_partition_kernel: Property is set to its default value ("boot") and can be removed.
sed -i '/^deviceinfo_flash_fastboot_partition_kernel="boot"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_partition_type: Property is set to its default value ("gpt") and can be removed.
sed -i '/^deviceinfo_partition_type="gpt"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_sd_embed_firmware_step_size: Property is set to its default value (1024) and can be removed.
sed -i '/^deviceinfo_sd_embed_firmware_step_size="1024"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_boot_part_start: Property is set to its default value (2048) and can be removed.
sed -i '/^deviceinfo_boot_part_start="2048"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_generate_legacy_uboot_initfs: Property is set to its default value (false) and can be removed.
sed -i '/^deviceinfo_generate_legacy_uboot_initfs="false"/d' device/*/*/deviceinfo

All were bumped using "pmbootstrap pkgver_bump".

[ci:ignore-count]

[ci:skip-build]: already built successfully in CI

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7403>
2025-12-05 16:57:35 +00:00
Stefan Hansson a324a84519 device: move local install to global install for some devices
This doesn't cover all devices, but I intend to do more of them in the
future.

See https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/4032

Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>

[ci:ignore-count]: Intentionally changes a lot of packages.

Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7384>
2025-11-26 12:13:25 +00:00
Arnav Singh 993592fe3c firmware-pine64-rtl8723bt: drop
This was being kept around because linux-firmware's rtl8723cs_xx_config.bin
was broken. This was fixed upstream in
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=e39831b1a9d75eb91af5c1711082edea5e259d3f
to carry the same file that we were carrying, so we don't need to any more.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7262>
2025-10-28 10:12:21 -07:00
Aster Boese 24a7035676 pine64-pinephone: move alsa config under /usr
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6913
2025-08-13 19:38:07 +09:00
Henrik Grimler 9550de18ec device-*: drop deprecated deviceinfo_mesa_driver var
It was used by osk-sdl, which has now been dropped.  See
https://wiki.postmarketos.org/wiki/Deviceinfo_reference#Obsolete_options.

[ci:ignore-count]

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6635
[ci:skip-build]: already built successfully in CI
2025-06-11 22:55:02 +02:00
Pablo Correa Gómez 29c5cea80f device-pine64-pinephone: depend on openrc when enabling services
Relates https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2585

Relates https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/2097

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6474
[ci:skip-build]: already built successfully in CI
2025-05-05 14:02:20 -07:00
Clayton Craft 01deb2b288 device-pine64-pinephone: add audio subpkg to install pw
This also relocates some audio-related config into the new audio subpkg
so that it's only installed in cases where a UI requires audio.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6408
2025-04-17 20:50:01 +02:00
Oliver Smith ff6810f821 device-pine64-pinephone: u-boot-tools in makedeps
Put u-boot-tools into makedepends to fix building the package with
current pmbootstrap master, which has stricter dependency handling.

Related: https://postmarketos.org/blog/2025/03/04/pmOS-update-2025-02/#pmbootstrap

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6407
2025-04-13 19:58:17 +02:00
Oliver Smith f48c8c34f0 device-pine64-pinephone: drop dep on openrc subpkg (MR 6042) 2025-01-14 09:42:29 -08:00
Johannes Krampf 8e0a56fd1d pine64-pinephone: fix u-boot user script load address (MR 5980)
Fixes #3414.

The package `device-pine64-pinephone-vccq-mod` installs a u-boot user script.
The user script was loaded at address 0x50700000 partially overwriting
the initramfs (0x4FF00000-0x50883fd1), and causing a boot loop.

The user script load address was increased to 0x50f00000, leaving 16MB
of free space for the initramfs, the current initramfs size is 9.52MB.

Tested: Build and install package on Pinephone 1.2a running PMOS 24.12.
[ci:skip-build]: already built successfully in CI
2025-01-05 13:46:07 +01:00
Arnav Singh 0bcce70122 device-pine64-pinephone: drop modem autorecovery udev rule (MR 5935)
eg25-manager 0.5.2 seems to be able to bring back the modem on its own again,
so this hack is no longer necessary.

[ci:skip-build]: already built successfully in CI
2024-12-24 14:35:37 +01:00
Clayton Craft 3d1f84a2c8 device-pine64-pinephone: fix hw keys in the initramfs (MR 5931)
fixes #3384

[ci:skip-build]: already built successfully in CI
2024-12-20 16:26:10 -08:00
Oliver Smith ad0d82fbec device-pine64-pinephone: set partition_type=msdos (MR 5928)
Current pinephone images built pmbootstrap >= 3.0.0 don't boot on the
pinephone anymore. At least part of this must be the switch from GPT to
MBR that has been done by default in pmbootstrap. Set msdos explicitly
to revert this for the pinephone.

With Tow-Boot we could probably use GPT instead, but this should be a
well-tested, concious decision. Let's fix this regression first.

[ci:skip-build]: already built successfully in CI
2024-12-20 10:47:05 +01:00
Oliver Smith 230d684eee pine64-pinephone: move from main to community (MR 5911) 2024-12-16 23:23:44 +01:00
Bart Ribbers c981d35ce6 pine64-pinephone: move from community to main (MR 1752)
First actual phone in main 🎉
Fits the requirements for main devices as listed on
https://wiki.postmarketos.org/wiki/Device_categorization.
2020-12-02 02:30:13 +01:00
clayton craft 15a07ac74c device-pine64-pinephone: add craftyguy as co-maintainer (MR 1765)
I have been working a lot with this device lately, and own one, so it
seems appropriate right‽

[ci:skip-build]: already built successfully in CI
2020-11-27 22:20:03 -08:00
clayton craft 4915578771 device-pine64-pinephone: fix audio after pulseaudio upgrade (MR 1765)
After pulseaudio 14.0 was released, audio on the pinephone was broken.
This applies the relevant config from here to fix it:
https://gitlab.manjaro.org/manjaro-arm/packages/community/phosh/alsa-ucm-pinephone/-/commit/c23f92aa4621f04f6ad028201371383d834b2a09

[ci:skip-build]: already built successfully in CI
2020-11-27 22:19:52 -08:00
Dylan Van Assche 9d0c1b48d8 Set voice call playback rate to 8000 Hz, closes #864 (MR 1711) 2020-11-14 00:46:37 -08:00
Bart Ribbers bb41f53879 pine64-pinephone: clean setup-modem.sh script (MR 1701)
Since we now use the in-kernel modem driver of Megi's 5.9 kernel, the
majority of the setup script has become unnecessary. Remove all the now
unnecessary commands and keep it just for enabling VoLTE auto profile
selecting

https://megous.com/git/linux/tree/drivers/misc/modem-power.c?h=orange-pi-5.10#n531
https://megous.com/git/linux/tree/drivers/misc/modem-power.c?h=orange-pi-5.10#n580
https://megous.com/git/linux/tree/drivers/misc/modem-power.c?h=orange-pi-5.10#n610
2020-11-13 01:08:58 -08:00
Luca Weiss 870db09b50 pine64-pinephone: set deviceinfo_mesa_driver to get fast osk-sdl (MR 1625) 2020-11-12 23:41:29 -08:00
clayton craft 737f33e561 pine64-pinephone: add workaround for purging the -elogind subpackage (MR 1660)
This subpackage was removed when a proper fix for suspend was merged,
however apk doesn't know to purge this subpackage, so the old elogind
hook workaround stuck around. This workaround could probably be removed
once we're sure all folks on edge have installed this upgraded package
with the 'provides'...
2020-10-28 22:34:56 -07:00
Martijn Braam 07a7853b50 device-pine64-pinephone: add autofocus firmware (MR 1656)
[ci:skip-build]: already built successfully in CI
2020-10-28 11:57:32 -07:00
Pedro Moreno e4366d5f8a Pinephone: Fix excessive mic noise on call (MR 1652)
Fix ucm2 settings to lower mic boost and increase mic volume.

Fixes: #720
2020-10-28 11:45:02 -07:00
Bhushan Shah 378904d076 device-pine64-pinephone: remove the elogind hook (MR 1651)
musb_hrdc bug is fixed properly with kernel patch, so we do not need to
do this bind/unbind dance anymore.

This partially reverts commit f7d743a213.
2020-10-27 13:58:34 +05:30
clayton craft f7d743a213 device-pine64-pinephone: fix suspend with elogind (MR 1636)
- re-enable console suspend, which seems to be broken with elogind when
  suspending (kernel gets hung up indefinitely in vt_waitactive)

- add a suspend hook to work around the musb driver not allowing the
  device to suspend

Based on my testing, this option seems to prevent suspending via
elogind (using `loginctl suspend`). When console suspend is disabled,
the kernel gets hung up in the call to vt_waitactive, and elogind times
out trying to suspend.
2020-10-25 11:17:34 -07:00
Oliver SmithandMartijn Braam 517f905b84 pine64-pinephone: update devicepkg for 5.9 kernel (MR 1614)
* update modem init for modem_power
* adjust alsa configs
* remove obsolete megapixels config file

Related: https://xnux.eu/log/#020
Co-Authored-By: Martijn Braam <martijn@brixit.nl>
2020-10-20 18:02:24 +02:00
Martijn Braam 879bd336b7 device/pine64-pinephone: remove megapixels config (MR 1587)
(cherry picked from commit 2ac5e8f90a9f491520b880a98d16a7a4fe0a5c43)
2020-10-07 12:55:20 +02:00
Oliver Smith 1acf66c8bf pine64-pinephone: add megapixels config (MR 1537)
Copy of https://git.sr.ht/~martijnbraam/megapixels/tree/master/pinephone.ini
Let's do it like with other device specific configs, and put them into
the device package. It's a short file and it looks like it won't change
often.
2020-09-14 22:29:49 +02:00
Ralf Rachinger 583d433d85 device/device-pine64-pinephone: swaps L/R at Headset (MR 1556)
This Patch is needed, because in the kernel the audio from the cpu to the headset gets turned around. We need to turn this around again.
Please revert this if there is a fixed kernel.
2020-09-13 15:00:20 -07:00
Luca Weiss 3720293639 pine64-pinephone: add anx7688 module to initramfs for usb keyboards (MR 1555)
The anx7688 module is needed for any USB devices to probe which we want
in the initramfs for unlocking osk-sdl using a USB-connected keyboard.
2020-09-07 21:19:59 +02:00
Danct12 11c6587dca device/*: switch to Alpine Mesa (MR 1496)
[ci:ignore-count]

Signed-off-by: Danct12 <danct12@disroot.org>
2020-08-18 14:53:31 +07:00
Oliver Smith dbf4d13907 treewide: avoid "More than one maintainer" error (MR 1480)
Alpine's abuild is soon going to complain if an APKBUILD has more than
one "Maintainer:" listed. Work around it by renaming the additional
maintainers to "Co-Maintainer:". While at it, move the devicepkg reference
link to the top in device-xiaomi-santoni for consistency.

In postmarketOS, we require at least two maintainers for devices in
main, therefore it does not make sense to drop additional maintainers
from the file.

In Alpine, this change was made because pkgs.alpinelinux.org apparently
can't handle more than one maintainer. I looked into it, and it would
require a database change to add it there, so it does not seem worth the
effort. I also thought about extending abuild to add an environment
variable to skip the check, but then the package would not build with
plain abuild without using the env var.

Related: https://gitlab.alpinelinux.org/alpine/abuild/-/commit/dd4cd9d606f5e28f382414e258af562e346c6ab5
[ci:skip-build] [ci:skip-vercheck]
2020-08-08 22:07:20 +02:00
Bart Ribbers 15acd86d60 pine64-pinephone: enable VoLTE (MR 1434)
Also fix configuring device sleep wakeup when modem receives a call
2020-08-04 12:19:36 +02:00
Danct12 76cade06e1 device-pine64-pinephone: make the proximity sensor usable within iio-sensor-proxy (MR 1416)
Signed-off-by: Danct12 <danct12@disroot.org>
2020-07-31 18:03:12 +02:00
Oliver Smith 802add79d4 pine64-pinephone: use PMOS_FORCE_PARTITION_RESIZE (MR 1428)
Automatically resize the root partition, if it is followed by
unallocated space.
2020-07-21 22:53:03 +02:00
Oliver Smith c19d5dfc26 pine64-pinephone: fix setup-modem.initd (MR 1427)
The OpenRC service failed with the following error, as shown on serial:
	command_background option used but no pidfile specified
2020-07-20 20:17:59 +02:00
Martijn Braam 957dc9356a pine64-pinephone: add multiple dtbs (MR 1163) 2020-07-16 23:16:17 +02:00
Bart Ribbers dff419cf10 pine64-pinephone: setup modem to wake device (MR 1163) 2020-07-16 23:14:54 +02:00
Martijn Braam 7743b4a25d pine64-pinephone: use wys-pinephone (MR 1406) 2020-07-11 12:12:23 +02:00
Minecrell 1eff900dcb firmware/firmware-pine64-rtl8723bt: add -pine64-, cleanup, install license (MR 1362)
For most firmware packages we use a vendor- prefix to make it clear
who has provided the firmware. The firmware-rtl8723bt package is only
used for Pine64 devices and actually contains configs that are specific
to Pine64 hardware (e.g. rtl8723bs_config-pine64.bin).

Let's rename it to firmware-pine64-rtl8723bt to make this more clear.
Also cleanup the APKBUILD a bit and provide the LICENSE file in a -doc
subpackage so we can legally redistribute that firmware.
2020-07-07 15:48:52 +02:00
Antoine Fontaine 1d2b62a109 pine64-pinephone: unbreak audio (MR 1323)
Fixes #633.
2020-06-17 11:13:58 +02:00
Luca Weiss a17a931026 device/*: Add deviceinfo_chassis variable (MR 1246)
[ci:ignore-count], [ci:skip-build]
2020-05-24 06:35:30 +02:00
Bart Ribbers 557a83d1ca pine64-pinephone: move to community (MR 1175)
[ci:skip-build]: already built successfully in CI
2020-05-17 15:00:12 +02:00