Yaky's

blog | notes | apps

Asus Nexus 7 (Grouper)

Codename: grouper

Hardware rev: E1565

postmarkerOS wiki

TWRP (recovery)

Following the wiki, Installed postmarketOS with i3wm

Additional packages: micro,iwd,iio-sensor-proxy

Wireless

Wiki page recommends using iwd for wireless connections

rc-update del wpa_supplicant
rc-update add iwd
rc-service iwd start
iwctl station wlan0 get-networks
iwctl --passphrase  station wlan0 connect 

It seems that wireless disconnects often, and gets IP reassigned on subsequent connection, so I set static IP to address this:

micro /var/lib/iwd/.type
[IPv4] 
Address=192.168.1.10 
Netmask=255.255.255.0 
Gateway=192.168.1.1 
Broadcast=192.168.1.255 
DNS=192.168.1.1 

I ran into issues with DNS, which was fixed by adding a public DNS server

"echo 'nameserver 1.1.1.1' > /etc/resolv.conf"

SSH server

apk add openssh

Now I could SSH into the tablet to configure everything else

To execute keystrokes, mouse movements and clicks on the tablet through SSH (to reload i3 config, for example), use xdotool

apk add xdotool
xdotool 

Display

Nexus has a 1280x800 backlit LCD

By default, i3 does not have any scaling set, so everything looks very small

Scale the screen

micro .Xresources
Xft.dpi: 192

Some GTK apps use environment variables and not the .Xresources settings, so add them to the init script

TODO GDK scaling

Rotate screen

By default, the screen is vertical. If you want to set it to horizontal:

mkdir /etc/X11/xorg.conf.d
micro /etc/X11/xorg.conf.d/00-fbdev-rotate.conf
Section "Device"
Identifier "LCD"
Driver "fbdev"
Option "Rotate" "CW"
EndSection 
TODO rotate touchscreen

postmarketOS wiki on display

Battery

postmarketOS wiki on battery monitoring

i3wm and i3status config

micro ~/.config/i3status/config

Show correct battery

TODO

Remove window title and borders

TODO

GPS

The built-in GPS does not work yet (it did not work with SlimKat either), but I have a USB GPS receiver

apk add gpsd
TODO

Bluetooth

apk add bluez
service bluetooth start
bluetoothctl 
power on
scan on

Software

GNOME Maps

Great keyboard control

Shows as offline. This is due to it using a connectivity check that is absent when using iwd. Bypass by running with a parameter:

gnome-maps --force-online

StackExchange question about GNOME Maps detecting online state

Spotify

Spot (GTK4 Spotify client)

apk add spot

Kernel

Kernel for Tegra devices

Main instructions

Kernel I used

APKBUILD

Other stuff

USB OTG charging - I could not get it to work

Configure kernel using pmbootstrap tool

pmbootstrap kconfig edit postmarketos-grate

Kernel configuration

Kernel development for pmOS

How to edit kernel before pmbootstrap (Reddit)

Unfinished notes on cross-compiling

export ARCH=arm
export CARCH=armv7
export CROSS_COMPILE=armv7-alpine-linux-musleabihf-
export CC=armv7-alpine-linux-musleabihf-gcc