# PostmarketOS - uConsole CM4

**URL:** <https://forum.clockworkpi.com/t/postmarketos-uconsole-cm4/12458>\
**Category:** uConsole\
**Tags:** uconsole, distro\
**Created:** [February 15, 2024, 12:50pm UTC](https://forum.clockworkpi.com/t/postmarketos-uconsole-cm4/12458 "2024-02-15T12:50:06Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![mikeschnier](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/mikeschnier/32/9697_2.png) [@mikeschnier](https://forum.clockworkpi.com/u/mikeschnier)\
**Post date:** [May 19, 2024, 5:43pm UTC](https://forum.clockworkpi.com/t/postmarketos-uconsole-cm4/12458/41 "2024-05-19T17:43:04Z")

</div>

The CM4 doesn’t have a realtime clock, so it needs to pull the time from your router. You might want to check to see if your router is providing time to network devices.

---

<div class="post-metadata">

**Author:** ![mterencelao](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/mterencelao/32/9066_2.png) [@mterencelao](https://forum.clockworkpi.com/u/mterencelao)\
**Post date:** [May 22, 2024, 3:14pm UTC](https://forum.clockworkpi.com/t/postmarketos-uconsole-cm4/12458/42 "2024-05-22T15:14:01Z")

</div>

Now I want to enable the 4G module. I wonder where to begin. Can any ClockworkOS user clue us in on how the module is enabled? The wiki only suggests keying in either one of two shell commands, but it does not go into detail what are the contents of those.

---

<div class="post-metadata">

**Author:** ![Rex](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/rex/32/16852_2.png) [@Rex](https://forum.clockworkpi.com/u/Rex)\
**Post date:** [May 22, 2024, 3:38pm UTC](https://forum.clockworkpi.com/t/postmarketos-uconsole-cm4/12458/43 "2024-05-22T15:38:30Z")

</div>

In this mega folder along side the kernel I have a script for the 4g card.

> **[10.06 GB folder on MEGA](https://mega.nz/folder/LSInGD6J#0YezWX8xC4PkbyForgl1Hw)**
>
> 28 files and 5 subfolders

You’ll have to make it executable.  
Let me know how it works for you.

---

<div class="post-metadata">

**Author:** ![mterencelao](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/mterencelao/32/9066_2.png) [@mterencelao](https://forum.clockworkpi.com/u/mterencelao)\
**Post date:** [May 23, 2024, 1:39am UTC](https://forum.clockworkpi.com/t/postmarketos-uconsole-cm4/12458/44 "2024-05-23T01:39:42Z")

</div>

Great Scott, it actually worked!

To anybody else trying this out, here are a few notes:

- You will need to install `raspberrypi-utils` from the package manager. Or at least `raspberrypi-utils-pinctrl`.
- Additionally, you may also need to install `libqmi` and `qmi-utils` to recognize the modem.
- Use the ~~same shell script from ClockworkOS. Or the~~ text file from above link.
- The module will not appear immediately after executing the script. _Don’t panic_ if `mmcli -L` returns nothing. Wait at least a minute before entering the command.  
For GNOME Shell, you should see a “Mobile Network” entry on the left panel.  
 ![image](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/9/9da7c24f89c4c4914ed455f1f070654963d8f768.png)

---

<div class="post-metadata">

**Author:** ![Rex](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/rex/32/16852_2.png) [@Rex](https://forum.clockworkpi.com/u/Rex)\
**Post date:** [May 23, 2024, 3:22am UTC](https://forum.clockworkpi.com/t/postmarketos-uconsole-cm4/12458/45 "2024-05-23T03:22:49Z")

</div>

Thank you for the feed back! Raspberry pi Debian includes pinctrl out the box with kernel 6.6 give or take I didn’t look into it. The GPIO command/package has been deprecated. So I helped another user by adapting the old script. I don’t have my uConsole yet (just a DevTerm) and i didn’t order a 4G card. If you have any input on it let me know so I can change/improve it.

---

<div class="post-metadata">

**Author:** ![mterencelao](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/mterencelao/32/9066_2.png) [@mterencelao](https://forum.clockworkpi.com/u/mterencelao)\
**Post date:** [May 23, 2024, 10:28am UTC](https://forum.clockworkpi.com/t/postmarketos-uconsole-cm4/12458/46 "2024-05-23T10:28:18Z")

</div>

Thanks for your help. I’ve used the script to enable the module a couple times now, and it’s consistently worked wonderfully. You should consider sharing the script on GitHub.  
And as an update, the module does connect to the SIM’s mobile network, and even receives incoming calls. ~~I’ve yet to test for mobile data, as well as SMS~~. But I’m sure those are shoo-ins. 🤞  
**UPDATE** : SMS tested, and **working**. Wow, I think I have a daily driver in my hands now…, if only I can figure why the unit dies at 30%.  
**FINAL UPDATE** (for this post): _Cellular just works._ Calls, texts, mobile data confirmed. I’ve even used the unit as a hotspot. My uConsole is a certified keeper.

---

<div class="post-metadata">

**Author:** ![mikeschnier](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/mikeschnier/32/9697_2.png) [@mikeschnier](https://forum.clockworkpi.com/u/mikeschnier)\
**Post date:** [May 23, 2024, 1:37pm UTC](https://forum.clockworkpi.com/t/postmarketos-uconsole-cm4/12458/47 "2024-05-23T13:37:44Z")

</div>

Glad to hear that the LTE module works!

I might be able to answer your problem with the power cutting out at 30%. That happened to me when the batteries I was using couldn’t keep up with the current drawn by the uConsole.

Switching to a pair of Samsung 35Es solved the problem and gave me a much longer runtime (7-8 hours, up from 2-3). I know that the LTE module will significantly add to the load, so maybe playing the battery lottery is not something that would help but at $5 per cell it might be worth a try.

---

<div class="post-metadata">

**Author:** ![mterencelao](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/mterencelao/32/9066_2.png) [@mterencelao](https://forum.clockworkpi.com/u/mterencelao)\
**Post date:** [May 24, 2024, 3:28am UTC](https://forum.clockworkpi.com/t/postmarketos-uconsole-cm4/12458/48 "2024-05-24T03:28:12Z")

</div>

Impressive. I also think I won’t be able to reach those figures anyway, given I’m hopelessly accustomed to GNOME. But I will keep the model in mind on my next battery change. 3 hours is just about par with my laptop on light duty.

---

<div class="post-metadata">

**Author:** ![mikeschnier](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/mikeschnier/32/9697_2.png) [@mikeschnier](https://forum.clockworkpi.com/u/mikeschnier)\
**Post date:** [May 24, 2024, 1:44pm UTC](https://forum.clockworkpi.com/t/postmarketos-uconsole-cm4/12458/49 "2024-05-24T13:44:24Z")

</div>

Eh, if I’m getting over 6 hours in performance mode playing Balatro I think you should be fine running GNOME.

For me, going from 2 hours to 7 hours moved it from a desk toy with a battery backup to a device I’d throw in a backpack and carry with me.

---

<div class="post-metadata">

**Author:** ![Jovial](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/jovial/32/9431_2.png) [@Jovial](https://forum.clockworkpi.com/u/Jovial)\
**Post date:** [May 24, 2024, 5:15pm UTC](https://forum.clockworkpi.com/t/postmarketos-uconsole-cm4/12458/50 "2024-05-24T17:15:00Z")

</div>

ArchlinuxARM from Yatli work well. I’ll try to build an Alpine linux kernel it’ll be more lightweight then an arch based system

---

<div class="post-metadata">

**Author:** ![mterencelao](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/mterencelao/32/9066_2.png) [@mterencelao](https://forum.clockworkpi.com/u/mterencelao)\
**Post date:** [May 26, 2024, 2:42pm UTC](https://forum.clockworkpi.com/t/postmarketos-uconsole-cm4/12458/51 "2024-05-26T14:42:14Z")

</div>

Next activity for me is to update the keyboard firmware using pmOS. Of course, it means getting down and dirty with the scripts provided [here](https://github.com/clockworkpi/uConsole/raw/master/Bin/uconsole_keyboard_flash.tar.gz). So far, I replaced all mentions of `dpkg` to the equivalent commands in `apk`; but now I’m stumped with the correct location of the keyboard. In pmOS, `/dev/ttyACM0` is assigned to the 4G module.

Mind you, I shall not be bothered to setup a ClockworkOS or Ubuntu instance to pull this off.

---

<div class="post-metadata">

**Author:** ![mterencelao](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/mterencelao/32/9066_2.png) [@mterencelao](https://forum.clockworkpi.com/u/mterencelao)\
**Post date:** [May 28, 2024, 12:36pm UTC](https://forum.clockworkpi.com/t/postmarketos-uconsole-cm4/12458/52 "2024-05-28T12:36:37Z")

</div>

I’m now also trying to troubleshoot the mystery of the poor Wi-Fi reception. I was getting quite frustrated as to why my Wi-Fi signal is still bad, despite:

1. Having setup a spacer between the supplied Wi-Fi antenna and the chassis.
2. Plugging `dtparam=ant2` into `/boot/usercfg.txt`.

I was about to condemn the antenna, when I went ahead and installed the `dtparam` utility. I also double-checked using the old-fashioned `ls /boot/overlays` command. I found out that `ant2` isn’t among the DT’s listed. Could this mean I’m still using the CM4’s internal antenna?

---

<div class="post-metadata">

**Author:** ![mikeschnier](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/mikeschnier/32/9697_2.png) [@mikeschnier](https://forum.clockworkpi.com/u/mikeschnier)\
**Post date:** [May 28, 2024, 1:47pm UTC](https://forum.clockworkpi.com/t/postmarketos-uconsole-cm4/12458/53 "2024-05-28T13:47:46Z")

</div>

I don’t _think_ you need to use dtparam=ant2 on PostmarketOS, it should just work with the external antenna. It works on my device, and the developers have wifi listed as working.

Did you get it working in the ClockworkPi distro? If not, you might have a faulty antenna, antenna connector, or CM4.

---

<div class="post-metadata">

**Author:** ![mterencelao](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/mterencelao/32/9066_2.png) [@mterencelao](https://forum.clockworkpi.com/u/mterencelao)\
**Post date:** [May 28, 2024, 2:03pm UTC](https://forum.clockworkpi.com/t/postmarketos-uconsole-cm4/12458/54 "2024-05-28T14:03:35Z")

</div>

[I tried positioning the antenna this way](https://forum.clockworkpi.com/t/replacement-wifi-antenna/10576/33), and I guess it’s a suitable patch for the moment. At worst, I may have to replace my antenna for [this one](https://forum.clockworkpi.com/t/replacement-wifi-antenna/10576/34). I shudder to think my CM4’s antenna is compromised. 😟

And if ever I’m looking forward to replace my CM4, it is to upgrade to a theoretical CM5.

---

<div class="post-metadata">

**Author:** ![mikeschnier](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/mikeschnier/32/9697_2.png) [@mikeschnier](https://forum.clockworkpi.com/u/mikeschnier)\
**Post date:** [May 28, 2024, 3:03pm UTC](https://forum.clockworkpi.com/t/postmarketos-uconsole-cm4/12458/55 "2024-05-28T15:03:57Z")

</div>

If you’re not slowly turning your uConsole into the Ship of Theseus what are you even doing?

Anyway, always best to troubleshoot in order of least expensive intervention first.

Edit: Another thing you can try is reflow the solder on the antenna PCB. Those joints could be another failure point.

---

<div class="post-metadata">

**Author:** ![mterencelao](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/mterencelao/32/9066_2.png) [@mterencelao](https://forum.clockworkpi.com/u/mterencelao)\
**Post date:** [May 28, 2024, 4:04pm UTC](https://forum.clockworkpi.com/t/postmarketos-uconsole-cm4/12458/56 "2024-05-28T16:04:36Z")

</div>

Good call! I pressed hard against the solder point and saw the signal shoot up. I’ll have to work on that soon.

**UPDATE:** Thank the lucky stars, it isn’t my CM4 that’s borked. But in my frustration, I hammered the solder point in the hope that it fixes the problem. And it worked. _(For a while. 🤣)_ If there’s no saving the antenna, I’m heading to the hobby shop for a replacement.

---

<div class="post-metadata">

**Author:** ![mikeschnier](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/mikeschnier/32/9697_2.png) [@mikeschnier](https://forum.clockworkpi.com/u/mikeschnier)\
**Post date:** [May 28, 2024, 5:35pm UTC](https://forum.clockworkpi.com/t/postmarketos-uconsole-cm4/12458/57 "2024-05-28T17:35:38Z")

</div>

Yeah, I looked at mine and thought “that doesn’t look like a great solder joint and it’s on a piece of flexible material.”

---

<div class="post-metadata">

**Author:** ![mterencelao](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/mterencelao/32/9066_2.png) [@mterencelao](https://forum.clockworkpi.com/u/mterencelao)\
**Post date:** [June 2, 2024, 3:53am UTC](https://forum.clockworkpi.com/t/postmarketos-uconsole-cm4/12458/58 "2024-06-02T03:53:40Z")

</div>

I feel it’s been a week since I loaded postmarketOS on my uConsole. Sadly, I have to write it off as a disappointing experience.

Sure; I got calls, texts, and cellular data to work with it. But for some reason (and I can’t believe I’m saying this, but), the Wi-Fi reception is worse, and so is the general performance. I can barely get a smooth Discord experience. (And now you guys know why I chose to purchase a CM4 with 8GB RAM.) The OS chokes when I plug in a second screen in 4K. [None of the downsides I mentioned are that much of a big deal when I hopped to Arch Linux ARM.](https://forum.clockworkpi.com/t/cm4s-tested-for-uconsole-archlinux-minimal-os-image-with-rpi-6-6-y-kernel-for-cm3-cm4-cm4s-uc/13190/31) In exchange, I have to put a little extra elbow grease to replicate the functions that worked with postmarketOS (i.e. calls and texts).

I do have hope, however, that these cons I listed can be addressed down the line. And I have much more faith in community-supported distros like this one, than the distros officially supplied by Clockwork. Nevertheless, therein lies the best feature of running a core without built-in storage. I can _distro hop_.

So, for now, I’m going to main my Arch Linux install. But I want to see what I can do to one day make my pmOS install run better. And my two bets are on the Wi-Fi firmware and the GPU driver.

---

<div class="post-metadata">

**Author:** ![mikeschnier](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/mikeschnier/32/9697_2.png) [@mikeschnier](https://forum.clockworkpi.com/u/mikeschnier)\
**Post date:** [June 2, 2024, 4:36am UTC](https://forum.clockworkpi.com/t/postmarketos-uconsole-cm4/12458/59 "2024-06-02T04:36:46Z")

</div>

Heh, I had a similar experience when I was trying to recreate my setup in Debian Bookworm today. The trackball behaved weird and erratic and for some reason Chromium was all flickery in Sway. I’m sure there are workarounds.

One thing I would recommend is setting the CPU governor to performance mode. It makes a _significant_ difference.

---

<div class="post-metadata">

**Author:** ![Docbroke](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/docbroke/32/10169_2.png) [@Docbroke](https://forum.clockworkpi.com/u/Docbroke)\
**Post date:** [September 8, 2024, 6:00pm UTC](https://forum.clockworkpi.com/t/postmarketos-uconsole-cm4/12458/60 "2024-09-08T18:00:31Z")

</div>

I have noticed that trackball behaves weird when hands are little sweaty. Keeping a clean cloth between finger and trackball for a while during use cleans both finger and trackball. Btw., has anyone got alpine working ?

[Previous page](https://forum.clockworkpi.com/t/postmarketos-uconsole-cm4/12458.md?page=2)

[Next page](https://forum.clockworkpi.com/t/postmarketos-uconsole-cm4/12458.md?page=4)
