Skip to content

Instantly share code, notes, and snippets.

View madanadam's full-sized avatar

Mehmet Akif madanadam

View GitHub Profile
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
mount --bind /run /mnt/run
@madanadam
madanadam / vtab_goodix
Last active February 21, 2022 06:22
Vestel VTAB 1041 Goodix Dokunmatik Ayarları
nano /usr/lib/udev/hwdb.d/61-evdev.hwdb
# Goodix Touchscreen and Pen
evdev:name:*Goodix*
EVDEV_ABS_00=::2178
EVDEV_ABS_01=::1364
EVDEV_ABS_35=::2178
EVDEV_ABS_36=::1364
@madanadam
madanadam / vtab_rotation
Last active May 25, 2021 13:42
vtab 1041 rotation sensor
/etc/udev/hwdb.d/61-sensor-local.hwdb
udevadm info -n /dev/iio:device0
In your case: KIOX000A
dmidecode | grep Manufacturer
dmidecode | grep Product
cat /sys/class/dmi/id/modalias
sensor:modalias:acpi:[driver name]*:dmi:*:svn[Manufacturer]*:pn[Product Name]:*
based on https://linuxappfinder.com/blog/auto_screen_rotation_in_ubuntu
sudo apt install iio-sensor-proxy inotify-tools
nano /opt/autorotate.sh
#!/bin/bash
# https://github.com/julienw/config-files/blob/master/yoga/rotate-screen.sh
# October 2016 - Tested and worked on Toshiba Radius 11 Convertible Laptop with Debian 8.5 Sid and XFCE 4.12
# This is a bash script to make screen autorotation possible based on device orientation.
@madanadam
madanadam / conkyrc
Created May 25, 2021 11:26
Conky ACPI battery for axp288_fuel_gauge - Vestel VTAB 1041
# Use Xft?
use_xft yes
xftfont DejaVuSans:size=12
xftalpha 0.8
text_buffer_size 2048
# Update interval in seconds
update_interval 5
# This is the number of times Conky will update before quitting.
@madanadam
madanadam / nm-tray-icons
Created August 10, 2021 06:45
nm-tray missing icons
To summarize, the following icons (other than a cursor icon which seems perhaps to have been found) were searched for:
- /usr/share/pixmaps/preferences-system-network.(png|xpm|svg)
- /usr/share/pixmaps/network-transmit.(png|xpm|svg)
- /usr/share/pixmaps/network-wireless-signal-good-symbolic.(png|xpm|svg)
- /usr/share/pixmaps/network-wireless-connected-75-symbolic.(png|xpm|svg)
A run of `apt-file find preferences-system-network.png`, just the first one, yields a lot of icon themes - all of them in `/usr/share/icons` (as they should be!)
adb shell settings put system accelerometer_rotation 0 #disable auto-rotate
adb shell settings put system user_rotation 3 #270° clockwise
accelerometer_rotation: auto-rotation, 0 disable, 1 enable
user_rotation: actual rotation, clockwise, 0 0°, 1 90°, 2 180°, 3 270°
wm help
set-user-rotation [free|lock] [-d DISPLAY_ID] [rotation]
Set user rotation mode and user rotation.
wm set-user-rotation lock 0
@madanadam
madanadam / n410
Created September 20, 2021 12:00
N410 Boot to Linux
EFI\Microsoft\Boot\bootmgfw.efi rename to EFI\Microsoft\Boot\bootmgfw10.efi
custom.cfg
menuentry 'Windows Boot Manager (on /dev/mmcblk1p1)' {
insmod part_gpt
insmod fat
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root B2A3-BBDC
@madanadam
madanadam / gist:8aa9c1e4439accab03796f3e2513f62f
Created January 20, 2022 07:52 — forked from francesco-carrella/gist:9916979
Ubuntu - Fix splash screen with proprietary drivers
This is soultion how to fix no splash screen in Ubuntu after nvidia proprietary driver installation. It's no matter what Ubuntu version you use, it should work anyway.
Open your terminal and type
sudo apt-get install v86d
Then
sudo gedit /etc/default/grub
Find this line
@madanadam
madanadam / void_linux_snippets
Last active June 10, 2022 14:24
Void Linux Snippets
HEDEF=/mnt
mount /dev/sda4 $HEDEF
cd $HEDEF
wget -c https://repo-default.voidlinux.org/live/current/void-x86_64-musl-ROOTFS-20210930.tar.xz
tar xvf void-x86_64-musl-ROOTFS-20210930.tar.xz -C $HEDEF
wget -c https://repo-default.voidlinux.org/live/current/void-x86_64-ROOTFS-20210930.tar.xz