eklem / dlt-one-draw

Damn Linux Tablet one-inspired tablet. To be better at drawing and syncing than reMarkable.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Testing the idea - Software

eklem opened this issue · comments

  • Raspberry Pi imager - to install rasbian
  • choose `Raspberry Pi OS (Legacy 32 bit) Lite (no desktop environment)
  • Install X11 - use it to run the browser
  • Firefox

username: pi
hostname: dltonedraw

How to set up the screen and touch properly:
https://wiki.iagent.no/wiki/Manga_Screen_2

Need to have keyboard connected the first time to allow ssh through raspbi-config. Do the full-upgrade first.

sudo apt update
sudo apt full-upgrade
sudo raspi-config

sudo apt install xserver-xorg xinit x11-xserver-utils xterm firefox-esr

Not sure if I need

sudo useradd -G tty pi

Add to the bottom of /boot/config.txt

hdmi_group=2
hdmi_mode=87
hdmi_timings=1080 1 100 10 60 1920 1 4 2 4 0 0 0 60 0 144000000 3

max_framebuffer_width=1920
max_framebuffer_height=1920

display_rotate=1

Add to /root/.xinitrc

#!/bin/sh

xinput --list
xrandr

exec firefox --kiosk "https://tldraw.com/"

Add to /etc/X11/Xwrapper.config

allowed_users=anybody

comment out allowed_users=console

reboot and...

startx

GL + Glamor-stuff enabled in raspi-config/advanced, need to install drivers:

apt install xserver-xorg-video-fbturbo gldriver-test

To check screen:

kmsprint

input devices:

⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ vc4-hdmi                                	id=6	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ vc4-hdmi                                	id=7	[slave  keyboard (3)]

And output devices:

Screen 0: minimum 320 x 200, current 1080 x 1920, maximum 2048 x 2048
HDMI-1 connected primary 1080x1920+0+0 (normal left inverted right x axis y axis) 93mm x 56mm
   1080x1920     60.48*+  50.41    32.30    30.24    25.20    24.19
   1088x1920     33.01
   1024x768      60.00

Got it working with Raspberry Pi OS - Desktop on RPi4 and installed these packages:

sudo apt install libts-bin evtest

... and sudo ts_calibrate to calibrate the touch screen.