Commit graph

49 commits

Author SHA1 Message Date
Sicelo A. Mhlongo
27523989d9
device-nokia-n900: modernize acpid scripts (MR 4988)
1. Reduce keypad brightness. Full brightness is unnecessary
2. Correct the camera cover states. It is 1 when closed, i.e. covered [1]
3. Drop proximity sensor handling, in favor of supporting it in
   iio-sensor-proxy [2]
4. Drop power button handling. This is handled by the WM [3]
5. Drop handling for volume keys. These will be handled via WM later (when PA
   is integrated)
6. Drop duplicate KP_SLIDE_* entries in handler script

[1] https://elixir.bootlin.com/linux/v6.9-rc1/source/include/uapi/linux/input-event-codes.h#L917
[2] https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/-/merge_requests/375
[3] 9bb205e18c/device/community/device-nokia-n900/i3wm/i3wm.conf (L67)
2024-04-03 07:57:48 +02:00
Sicelo A. Mhlongo
fd49591adf
device-nokia-n900: provide feedbackd haptics support (MR 4997)
[ci:skip-build]: already built successfully in CI
2024-04-02 21:26:25 +02:00
Sicelo A. Mhlongo
bd8dfd304f
device-nokia-n900: do not load gpio_leds automatically (MR 4996)
6c30cb42a4 ("linux-postmarketos-omap: enable new community kconfig options")
set CONFIG_LEDS_TRIGGER_DEFAULT_ON builtin. The consequence is that the debug
LEDs are now always turned on, which interferes with the keyboard backlight.
Since pmOS requires it to be builtin now, let us workaround the issue by not
loading leds_gpio at boot.

[ci:skip-build]: already built successfully in CI
2024-04-02 19:48:14 +02:00
Ferass El Hafidi
44b9db8247
device/{main,community}: be consistent with $pkgver (MR 4992)
See: pmaports#2610

Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
2024-04-02 12:55:46 +02:00
Sicelo A. Mhlongo
fb01ee1bf9
device-nokia-n900: drop custom wallpaper config (MR 4810)
Wallpaper is now configured globally from the main `postmarketos-ui-i3wm`
package.
2024-02-12 20:17:41 +02:00
Pablo Correa Gómez
cf69326222
device/*: rebuild all devices (MR 4551)
[ci:ignore-count]
2024-01-22 19:32:30 +01:00
Lux Aliaga
c5ba3d5c2b
device-nokia-n900: Add Portugese/Spanish keymap (MR 4379)
Add the Portugese/Spanish keymap. Similarly to the Finnish/Swedish
keymap, it's compatible with both Portugese and Spanish keyboards.

Also, modify x11-keymap so that the Portugese/Spanish map will use
Alt+Shift to enter an underscore in the F key and a backslash in the C
key, which was done to avoid redundancy with the "Ñ" key.

Signed-off-by: Lux Aliaga <lux@nixgoat.me

[ci:skip-build] already built successfully in CI
2023-12-22 21:25:22 -08:00
Pablo Correa Gómez
ea93a6d07f
device/*: rebuild all devices to relocate deviceinfo (MR 4283)
[ci:ignore-count]
[ci:skip-build]: already built successfully in CI
2023-09-25 09:21:03 +02:00
Oliver Smith
d947491fb7
device-nokia-n900: fix install_if variables (MR 4397) 2023-09-15 09:05:36 +02:00
Sicelo A. Mhlongo
e12d937c6b
device-nokia-n900: i3wm: use upower for battery status (MR 4397) 2023-09-15 09:05:25 +02:00
Sicelo A. Mhlongo
170189393b
device-nokia-n900: add upower support and config (MR 4397)
- Add support for upower, in order to enable automatic shutdown when battery is
  critically low
- Set UPower PercentageLow threshold to 10% so it triggers even when fuel gauge
  is not calibrated (see estimations provided in 4b54fc7f83:
  "linux-postmarketos-omap: add N900 battery capacity estimation")
2023-09-15 09:05:25 +02:00
Sicelo A. Mhlongo
2e3cd005a4
device-nokia-n900: increase terminal and i3 font sizes (MR 4363)
[ci:skip-build]: already built successfully in CI
2023-08-30 22:55:51 +02:00
Sicelo A. Mhlongo
5d8dd4d145
device-nokia-n900: fix hwkbd on unl0kr (MR 4320)
- add keyboard driver to initramfs (twl4030_keypad & matrix_keymap)
- order modules in alphabetical order

[ci:skip-build]: Already built successfully in CI
2023-08-12 17:01:15 +02:00
Sicelo A. Mhlongo
9c0e8fcc10
device-nokia-n900: do not open terminal for nagbar actions (MR 4320) 2023-08-12 17:01:14 +02:00
Sicelo A. Mhlongo
b117742459
device-nokia-n900: restore modem (MR 4320) 2023-08-12 17:01:06 +02:00
Sicelo A. Mhlongo
dbbd4e46ec
device-nokia-n900: let user choose power button action (MR 4312)
Offer user a choice between suspend, shutdown, and reboot when power button
pressed.

[ci:skip-build]: already built successfully in CI
2023-08-08 09:27:16 +02:00
Sicelo A. Mhlongo
61951f08e7
device-nokia-n900: use elogind for suspend (MR 4312)
Since 80ab66cd2a (MR 4179), suspend using `loginctl` works, so drop pm-utils
and the associated sudo rule.
2023-08-08 09:27:16 +02:00
Sicelo A. Mhlongo
e702458223
device-nokia-n900: switch to urxvt terminal (MR 4312)
Switch to urxvt terminal in order to provide a scrollable terminal. Scrolling
is convoluted in st [1], especially when used on a mobile device.

Scrolling is a basic need, e.g. to page through `dmesg` output.

[1] https://git.suckless.org/st/file/FAQ.html#l21
2023-08-08 09:27:10 +02:00
Sicelo A. Mhlongo
7992f29cf9
device-nokia-n900: drop conky (MR 4309)
Save a few CPU cycles by dropping conky. Additionally, the existing config has
not been working for a long time now, and no one missed it.

For completeness, it was no longer displaying on the desktop. Manually starting
it showed:

```
conky: X Error: type 0 Display b5e73620 XID 1302 serial 97 error_code 10 request_code 2 minor_code 0 other Display: b5e73620
```

There are instructions [1] to resolve/workaround it, but we clearly do not have
a pressing need for conky to begin with.

[1] https://github.com/brndnmtthws/conky/issues/1443#issuecomment-1557793718
[ci:skip-build]: already built successfully in CI
2023-08-06 19:38:51 +02:00
Pablo Correa Gómez
4914067590
device/*: transform deviceinfo_modules_initfs into a file (MR 4169)
The file is automatically packed by devicepkg-dev utils

Relates #1836
2023-08-04 08:27:44 +02:00
Sicelo A. Mhlongo
73a033328e
device-nokia-n900: set uniprocessor mode for kernel (MR 4299)
The OMAP 3430 in the Nokia N900 is a uniprocessor SoC, so disable SMP via
kernel command line. This appears to alleviate the ongoing kernel crashes
affecting the Nokia N900 in pmOS.

[ci:skip-build]: already built successfully in CI
2023-08-01 21:50:57 +02:00
Sicelo A. Mhlongo
7495be948b
device-nokia-n900: block non-critical modules (MR 4227)
* modem-related modules seem partly responsible for recent l3 firewall
     timeouts and kernel crashes.
 * rx51-battery can be used to get battery design capacity, but not required
    for general running of the system blacklist other
 * modules that can impact power consumption on the N900

Completely disabling the modules in kernel config is unnecessary, since they
are all useful for some users

[ci:skip-build]: already built successfully in CI
2023-07-06 07:30:03 +02:00
Sicelo A. Mhlongo
d0a12d9c48
ui-i3wm: Depend on wallpaper and polkit (MR 4179)
Wallpaper and polkit dependency are device-agnostic, so remove from N900
package to i3wm

[ci:skip-build]: already built successfully in CI
2023-06-15 22:28:17 +02:00
Sicelo A. Mhlongo
80ab66cd2a
device-nokia-n900: improve user experience on i3 (MR 4157)
- fix wifi signal quality display, since /proc/net/wireless is no longer
  available in omap kernel
  Suggested-by: DvaMishkiLapa <thesame.personal@gmail.com>

- add `polkit-elogind` so tools like `loginctl poweroff` and `nmtui` do not
  require sudo under i3wm

[ci:skip-build]: already built successfully in CI
2023-06-05 23:50:57 +02:00
Sicelo A. Mhlongo
8f8a85412f
device-nokia-n900: use shared omap kernel (MR 3964) 2023-03-19 15:24:36 -07:00
Clayton Craft
ee2f4db541
device-nokia-n900: support new mkintifs paths (MR 3895) 2023-03-08 21:30:22 -08:00
Sicelo A. Mhlongo
a787222aeb
postmarketos-ui-i3wm: use tinydm and relocate device-specific file (MR 3769)
* lock.sh is specific to Nokia N900, so move to device-nokia-n900
* use tinydm instead of lightdm

Signed-off-by: Sicelo A. Mhlongo <absicsz@gmail.com>
[ci:skip-build]: already built successfully in CI
2022-12-29 17:57:38 +01:00
Sicelo A. Mhlongo
e3154dd055
nokia-n900: use updated serial console name (MR 3662)
Since 00648d0282dcca1da453c0b20d27e24bf901a854, the correct serial console name
is ttySx instead of the older ttyOx. Reflect this in cmdline passed to kernel
via u-boot

[ci:skip-build]: already built successfully in CI
2022-11-23 09:07:39 +01:00
Sicelo A. Mhlongo
930d8ecad2
device-nokia-n900: fix Fn key in latest xkb-config (MR 3596)
Explicitly set Fn key as Mod5. In xkeyboard-config up to 2.36, this was somehow
set implicitly, since it was working, although I am not sure where/how. In 2.37
it only works when specified.

[ci:skip-build]: already built successfully in CI
2022-10-31 12:34:01 +01:00
Sicelo A. Mhlongo
789343b8c7
device-nokia-n900: enable use of rtc time at boot (MR 3586)
Since N900 rtc works fine, remove swclock from boot as it causes time to be set
wrong. Additionally, rtc device is set correctly in kernel, so remove old,
adjusted hwclock config.

Partially reverts pmaports 0e502a5139
[ci:skip-build]: already built successfully in CI
2022-10-28 08:37:16 +02:00
Anjandev Momi
7270f472e3
treewide: fix tabs, final newline, trailing whitespace (MR 3530) 2022-10-16 16:27:22 +02:00
Dang Huynh
ae252a05a4
device-nokia-n900: use wl1251-cal for calibration data (MR 3386) 2022-10-12 21:39:13 +02:00
Newbyte
270e5e28ad
device: drop depend on mesa-dri-gallium (MR 3478)
This is now installed by postmarketos-base when appropriate.
2022-10-11 11:19:43 +02:00
Sicelo A. Mhlongo
f18afd9145
device-nokia-n900: remove duplicates in deviceinfo (MR 3455)
Remove duplicated keyboard/keymap definitions in deviceinfo
2022-09-25 16:05:14 +02:00
Sicelo A. Mhlongo
5da6060cd9
device-nokia-n900: Add x11 keymap (MR 3430)
Add rx-51 x11 keymap to device package in response to #1521

[ci:skip-build]: already built successfully in CI
2022-09-13 09:10:47 +02:00
Sicelo A. Mhlongo
ba3731956d
nokia-n900: drop weston subpackage (MR 3174)
Drop the weston config, as it was for fbdev which has not been supported
in weston anymore for a while.

Remove Martijn as Co-Maintainer, as both previous maintainers of the
Nokia N900 stopped maintaining it when the device was briefly dropped
from community.

Co-Authored-By: Oliver Smith <ollieparanoid@postamrketos.org>
[ci:skip-build]: already built successfully in CI
2022-06-03 09:58:08 +02:00
Newbyte
0e9be207dd
device-*: replace mesa-dri-swrast with mesa-dri-gallium (MR 3059)
mesa-dri-swrast no longer exists and just installs,
mesa-dri-gallium. However, this might not always be the case, so
let's change it before it causes any issues.

[ci:ignore-count]
[ci:skip-build]
2022-04-05 23:23:03 +03:00
Oliver Smith
eb21ed5472
device/*/device-*: rebuild for new splash screens (MR 2222)
[ci:ignore-count]
2022-01-22 13:40:33 +01:00
Sicelo
96b2dfc3c9
nokia-n900: update maintainers (MR 2817)
[ci:skip-build]: already built successfully in CI
2022-01-07 12:00:59 +01:00
Danct12
7ffeea5cb7
device-nokia-n900: fix u-boot script typo (MR 2708) 2021-11-26 20:08:50 +00:00
Jakob Hauser
b0cdf66653
main/postmarketos-ui-xfce4: further improvements (MR 2506)
Improvements from xfce4-phone source:
- Add screenshot to README.md
- Enable screen locking
- Disable Desktop icons "Home", "File System", "Trash"
- Enable single-click on Desktop
- Enable single-click in Thunar
- Change clock format
- Set postmarketos wallpaper

Additional changes in postmarketos-ui-xfce4:
- Installing greybird-themes (which is already set as default theme in
  /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml).
- Changing /etc/skel/.config/autostart/onboard-autostart.desktop to
  slightly speed up keysboard startup (overriding startup-delay of
  /etc/xdg/autostart/onboard-autostart.desktop).
- Enabling scrollbars by /etc/profile.d/enable-scrollbars.sh, this is
  helpful where touch-scrolling doesn't work like e.g. in whiskermenu.

(And re-ordered network-manager-applet in APKBUILD _pmb_recommends
section.)

Also removing xfce4 subpackages of device-qemu-amd64,
device-qemu-aarch64 and device-nokia-n900. The device specific monitor
to set the wallpaper will now be automatically derived from "monitor0"
in file xfce4-desktop.xml.

Additionally taking maintainership as discussed in merge request
(!2506).
2021-09-29 18:29:54 +03:00
Dave Young
b7cc62d0c4
n900 kernel cmdline: s/tty02/ttyO2 (MR 2531)
Signed-off-by: Dave Young <dyoung@redhat.com>
2021-09-19 17:30:25 +02:00
Bart Ribbers
27b8ef368f
*/*: replace uboot-tools dependency for u-boot-tools (MR 2141)
uboot-tools is provided by u-boot-tools but sometimes apk still gets
confused. This change prevents errors such as

pine64-pinephone:~$ sudo apk upgrade --verbose
WARNING: Failed to perform initial self-upgrade, continuing with full upgrade.
ERROR: unable to select packages:
  uboot-tools (virtual):
	    provided by: u-boot-tools
			    required by: device-pine64-pinephone-0.25-r1[uboot-tools]
[ci:ignore-count]
[ci:skip-build]: already built in CI successfully
2021-04-27 22:01:06 +02:00
Oliver Smith
caae6d5405
treewide: bump pkgrel to generate new splashes (MR 1996) 2021-04-11 19:52:37 +02:00
Oliver Smith
a909e543f3
nokia-n900: add PMOS_FORCE_PARTITION_RESIZE (MR 2076)
Resize the partition when using a pre-built image. We didn't notice that
this was missing, because N900 images are new and we only tested from
pmbootstrap install --sdcard, which already uses the full SD card size.
2021-03-30 23:03:49 +02:00
Luca Weiss
959bbaaffe
treewide: remove unused files (MR 1731)
These files aren't references by any APKBUILD, delete them.
2020-11-18 11:24:01 +01:00
Linus Walleij
eb8a6b0cd0
device-nokia-n900: Add Finnish/Swedish keymap (MR 1519)
This adds a Finnish/Swedish key map for the Nokia n900.
The same keymap is used for Finnish and Swedish.

This makes the keyboard work in the console. To fix the
XkbLayout other changes are needed to pmbootstrap.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2020-09-07 18:24:07 +02: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: dd4cd9d606
[ci:skip-build] [ci:skip-vercheck]
2020-08-08 22:07:20 +02:00
Martijn Braam
057fa02f90
nokia-n900: move to community (MR 1177) 2020-06-11 14:41:26 +02:00