~mil/sxmo-tickets#579: 
Testing SXMO (and checking two possible bugs)

Dear developers,

I've been using SWMO on the PinePhone (v1.2) and almost everything works out of the box (congrats!). I want to check on a couple of lines of code I had to change after upgrading to sxmo-utils 14.2 in pmos edge (I think they also have to be changed in the master branch, https://git.sr.ht/~mil/sxmo-utils/tree/master).

  1. sxmo-utils/scripts/core/sxmo_led.sh ; Line 59 - LEDs not working; printf "%0.f\n" "$brightness" > "/sys/class/leds/$color:$type/brightness" gives a "permission denied" error. To fix it just change the line to printf "%0.f\n" "$brightness" | doas tee "/sys/class/leds/$color:$type/brightness" Please, note that sxmo-utils/configs/doas/sxmo.conf may need to be changed accordingly

  2. sxmo-utils/scripts/modem/sxmo_modemcall.sh ; Lines 197,198 - Contact name not displayed in incoming calls In line 152 of sxmo_modem.sh the function "sxmo_modemcall.sh $VOICECALLID" is invoked. Then, we reach line 197 of sxmo_modemcall.sh and get the NUMBER (without prefix) from the $VOICECALLID This is the moment to load the DEFAULT_COUNTRY prefix, so the incoming number can be recognized in contacts.tsv The following line must be included between line 197 and 198, NUMBER="$(cleanupnumber "$NUMBER")" Please, note that the cleanupnumber function needs to be imported from sxmo_modem.sh

Not sure if I am helping or the latter was already known. I have no experience testing projects or submitting bugs, so I was planning just to fix things for myself. However, if you consider I can help the project please let me know. I am not sure which best way to contribute (IRC Channel, sr.ht bug tickets or just emailing as I did). In case it helps I am testing the PinePhone in Spain with the keyboard add-on (I use it as my regular phone). I also have a Kobo ClaraHD which can run pmos edge.

Keep up the great work. Best regards,

Juan

Status
RESOLVED CLOSED
Submitter
Juan de Vicente
Assigned to
No-one
Submitted
2 years ago
Updated
2 years ago
Labels
No labels applied.

~mr_growl 2 years ago

I had the same two issues on PMOS both with upgrading to the latest stable release as well as a fresh build of latest stable via pmbootstrap.

Your fixes also solved the problem for me, so thanks for posting this!

~stacyharper REPORTED CLOSED 2 years ago

The first issue should be solved with the switch to brightnessctl, and the second one with the line you recommend to add. I close this now, feels free to re-open if those aren't fixed with the next release.

Register here or Log in to comment, or comment via email.