From 9ef44446484976496a69410ab723488098dcc21f Mon Sep 17 00:00:00 2001 From: David Carley Date: Sat, 6 Mar 2021 09:16:48 -0800 Subject: [PATCH 1/3] Allow rPi to use full screen resolution --- scripts/install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/install.sh b/scripts/install.sh index 024b836..797a13e 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -36,6 +36,15 @@ fi #./scripts/edit-boot-config gpu_mem=16 #chmod ug+s /usr/lib/xorg/Xorg +# Use the full screen resolution +grep "^framebuffer_width=1280$" /boot/config.txt >/dev/null +if [ $? -ne 0 ]; then + mount -o remount,rw /boot && + sed -i 's/^\(framebuffer_.*\)$/#\1/g' /boot/config.txt + mount -o remount,ro /boot + REBOOT=true +fi + # Fix camera grep dwc_otg.fiq_fsm_mask /boot/cmdline.txt >/dev/null if [ $? -ne 0 ]; then From f49649b020cc7a263384b85e452d1f48d502d62e Mon Sep 17 00:00:00 2001 From: David Carley Date: Sat, 6 Mar 2021 09:25:14 -0800 Subject: [PATCH 2/3] Fixed a bug, added the ratpoison config file --- scripts/install.sh | 9 ++++++++- scripts/ratpoisonrc | 5 +++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index 797a13e..12d9b74 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -38,7 +38,7 @@ fi # Use the full screen resolution grep "^framebuffer_width=1280$" /boot/config.txt >/dev/null -if [ $? -ne 0 ]; then +if [ $? -eq 0 ]; then mount -o remount,rw /boot && sed -i 's/^\(framebuffer_.*\)$/#\1/g' /boot/config.txt mount -o remount,ro /boot @@ -98,6 +98,13 @@ cp scripts/xinitrc ~pi/.xinitrc chmod +x ~pi/.xinitrc chown pi:pi ~pi/.xinitrc +#Configure the "ratpoison" window manager +if [ ! -e ~pi/.ratpoisonrc ]; then + cp scripts/ratpoisonrc ~pi/.ratpoisonrc + chmod 644 ~pi/.ratpoisonrc + chown pi:pi ~pi/.ratpoisonrc +fi + # Install bbserial MODSRC=src/bbserial/bbserial.ko MODDST=/lib/modules/$(uname -r)/kernel/drivers/tty/serial/bbserial.ko diff --git a/scripts/ratpoisonrc b/scripts/ratpoisonrc index 3337674..98b5e1d 100644 --- a/scripts/ratpoisonrc +++ b/scripts/ratpoisonrc @@ -1 +1,6 @@ startup_message off +set bgcolor black +set fgcolor white + +unbind c +bind c exec x-terminal-emulator -fg white -bg black From c397ac390afd7f686c636ea47e27c09b3b3380b5 Mon Sep 17 00:00:00 2001 From: David Carley Date: Sat, 6 Mar 2021 09:32:26 -0800 Subject: [PATCH 3/3] Added ratpoisonrc to the manifest --- MANIFEST.in | 1 + 1 file changed, 1 insertion(+) diff --git a/MANIFEST.in b/MANIFEST.in index 6450ecf..156e1d8 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -5,6 +5,7 @@ include src/bbserial/bbserial.ko include scripts/avr109-flash.py include scripts/buildbotics.gc include scripts/xinitrc +include scripts/ratpoisonrc include scripts/rc.local include scripts/bbctrl.service include scripts/11-automount.rules