eklem / dlt-one-draw

Damn Linux Tablet one-inspired tablet. To be better at drawing and syncing than reMarkable.
Creative Commons Attribution Share Alike 4.0 International
1 stars 0 forks source link

Testing the idea - Software #6

Open eklem opened 10 months ago

eklem commented 10 months ago
eklem commented 10 months ago

username: pi hostname: dltonedraw

eklem commented 10 months ago

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

eklem commented 10 months ago

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
eklem commented 10 months ago

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

eklem commented 10 months ago

reboot and...

startx
eklem commented 10 months ago

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

apt install xserver-xorg-video-fbturbo gldriver-test
eklem commented 10 months ago

To check screen:

kmsprint
eklem commented 10 months ago

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)]
eklem commented 10 months ago

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
eklem commented 9 months ago

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.