Skip to content

Instantly share code, notes, and snippets.

@selfawaresoup
Last active October 28, 2024 01:40
Show Gist options
  • Save selfawaresoup/b296f3b82167484a96e4502e74ed3602 to your computer and use it in GitHub Desktop.
Save selfawaresoup/b296f3b82167484a96e4502e74ed3602 to your computer and use it in GitHub Desktop.
Notes for Clockwork uConsole setup

uConsole Notes

Batteries

I use two XTAR 16850-3500 cells and I get about 8h of active usage out of them.

Get GNOME Shell and GDM3

sudo apt install gnome-shell gdm3
sudo dpkg-reconfigure gdm3
# set GDM3 as display manager in the interative menu

GNOME taskbar at the bottom

https://askubuntu.com/questions/1162884/can-i-move-the-gnome-top-bar-and-status-icons-to-the-side

  1. Make sure you have GNOME Shell: sudo apt install chrome-gnome-shell
  2. Make sure you have GNOME Tweaks: sudo apt install gnome-tweaks
  3. Install Firefox or Chrome GNOME extension
  4. Install Dash-to-Panel extension: https://extensions.gnome.org/extension/1160/dash-to-panel/
  5. Configure it to taste using Tweaks (set auto-hide for more vertical screen space)

assign extra characters to keys

https://askubuntu.com/questions/19558/what-are-the-meta-super-and-hyper-keys

Fix battery charging speed

The default charging speed of the uConsole is way too slow. Run this to fixt hat:

echo 'KERNEL=="axp20x-battery", ATTR{constant_charge_current_max}="2200000", ATTR{constant_charge_current}="2000000"' | sudo tee /etc/udev/rules.d/99-uconsole-charging.rules

Trackball scrolling

uConsole Trackball as Scrolling wheel [temporary] Solution - uConsole - clockworkpi>

  1. Make sure you have xinput: sudo apt install xinput
  2. Copy this to ~/.xsessionrc:
# Enable scrolling emulation by using middle mouse button and moving the wheel.
xinput --set-prop 'ClockworkPI uConsole Mouse' 'libinput Scroll Method Enabled' 0 0 1
# Enable middle mouse button emulation by hold the left and right mouse button at the same time.
xinput --set-prop 'ClockworkPI uConsole Mouse' 'libinput Middle Emulation Enabled' 1
  1. Enable "natural scrolling" in GNOME Settings if you like

Command line Signal client

(Since Signal doesn't provide packages of the desktop app for ARM)

  1. Install dependencies for libsignal:
apt-get install clang libclang-dev cmake make protobuf-compiler git
  1. Install Rust and Cargo if you haven't already: https://rustup.rs/
  2. Install gurk-rs:
cargo install --git https://github.com/boxdot/gurk-rs gurk

RStudio

sudo apt install r-base r-base-dev r-cran-tidyverse r-cran-reshape-2
# plus other CRAN packages you might want

Find the latest build for Ubuntu on arm65 here: https://dailies.rstudio.com

sudo gdebi rstudio-2024.04.0-daily-531-arm64.deb # replace with the actual filename

Other applications

sudo apt install firefox-esr gedit nautilus gnome-terminal
@jdkruzr
Copy link

jdkruzr commented Mar 7, 2024

thanks for posting this. what's the fastest SD card you've found to work well? I have a Lexan 1TB I found online which is reasonably OK, but it's a little more than half as fast as the eMMC on my other CM4 with the 32GB eMMC built in. could also just be limited by the speed of the SD interface, idk.

@selfawaresoup
Copy link
Author

I'm using a Sandisk 32GB SDHC card and it's fine. I haven't really done much testing for speed though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment