Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Kiriririn

Pages: [1]
1
Gemini PDA - Linux / Linux phone or mini laptop?
« on: January 30, 2019, 06:00:24 am »
I'm curious how people are using (or plan to use) Linux on the Gemini.

My question mostly lies around power management and interaction, as follows:

Linux phone:
  • Touch-optimised large UI
  • Supports calls/texts
  • 'Always-on' - think mobile phones where they're not truly 'off' like a laptop when sleeping/locked
Mini laptop:
  • Mouse cursor UI intended for use with mice or something like this, with full fat Linux GUI software
  • Lid closed = full sleep, no exceptions - same behaviour as a laptop.
  • No networking while asleep, battery should last weeks in sleep mode.

2
Gemini PDA - Linux / Annoying dynamic contrast effect
« on: June 30, 2018, 11:09:01 am »
There seems to be some sort of dynamic contrast baked into the kernel/display, similar to what Intel GPUs do by default on laptops

See here: https://www.youtube.com/watch?v=cys7tbrVlNw (it's not the camera)

It's particularly noticeable in the shade of black/grey on the LXQT menu button and clock when focusing and unfocusing a terminal window

Unless I'm mistaken this is Miravision, which seems to live in /drivers/misc/mediatek/video/common/color20, but I've had no luck disabling it via the obvious config flags (CONFIG_MTK_PQ_COLOR_MODE etc)

Has anyone else noticed this/tried to disable it?

3
Gemini PDA - Linux / Disable logd
« on: June 23, 2018, 08:18:49 am »
/system/bin/logd seems to be a bit of a CPU/battery hog, and cannot be killed or paused, so here is how to disable it:

Either in twrp or rooted android, connect to adb shell. Then:

[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']
cd /mnt
mkdir linux
mount /dev/block/mmcblk0p29 linux
mkdir system
mount linux/data/system.img system
mv system/bin/logd system/bin/logd.bak
[/div]

(Tried and failed to mount system.img as rw under debian, if anyone knows how to do that it would make the process much easier!)

4
Gemini PDA - Linux / Touchscreen as touchpad - relative mouse input
« on: June 16, 2018, 03:28:30 pm »
A video is worth 1000 words:

https://www.youtube.com/watch?v=bsJn3eMvG7w

tl;dw this technique changes the touchscreen from an absolute mode touchscreen (which is too fiddly for full linux desktop use) into a relative mode touchpad like on most laptops


Easy mode:
  • sudo apt install xserver-xorg-input-mtrack
  • Edit /usr/share/X11/xorg.conf.d/40-libinput.conf, find:
    Code: [Select]
    Section "InputClass"
            Identifier "libinput touchscreen catchall"
            MatchIsTouchscreen "on"
            MatchDevicePath "/dev/input/event*"
            Driver "libinput"
    EndSection
    Replace with:
    Code: [Select]
    Section "InputClass"
            Identifier "libinput touchscreen catchall"
            MatchIsTouchscreen "on"
            MatchDevicePath "/dev/input/event*"
            Driver "mtrack"
            Option "ScrollDistance" "40"
            Option "FingerLow" "1"
            Option "FingerHigh" "2"
            Option "Sensitivity" "1.8"
            Option "BottomEdge" "0"
            Option "SwipeDistance" "100"
            Option "ScaleDistance" "40"
            Option "ButtonMoveEmulate" "false"
            Option "ClickTime" "25"
            Option "MaxTapMove" "55"
            Option "EdgeBottomSize" "0"
    EndSection
  • sudo systemctl restart sddm or reboot
  • Recommended to disable acceleration in the LXQT mouse settings GUI
Hard mode:

(Instead of installing mtrack from debian repos, there is an improved version that must be built from source...)
  • Config edit as above
  • Enter a suitable empty directory
  • Install the standard debian build tools
  • sudo apt install xserver-xorg-dev libmtdev-dev xutils-dev
  • git clone https://github.com/p2rkw/xf86-input-mtrack
  • cd into the downloaded folder
  • ./configure --prefix=/usr
  • dpkg-buildpackage -uc -us
  • cd ..
  • sudo dpkg -i xserver-xorg-input-mtrack_0.5.0_arm64.deb
  • sudo systemctl restart sddm or reboot
  • Recommended to disable acceleration in the LXQT mouse settings GUI

Pages: [1]