journalctl -u micro
93 subscribers
2.18K photos
210 videos
287 files
1.45K links
Esperienze e consigli di uno sviluppatore tech−unenthusiast

creation — 2021-04-29
owner — @Microeinstein

networks
@sigma_hub Σ
@ageiroumena
Download Telegram
RAGA

MULTI CURSORE
CON ALT SHIFT ↓↑ e ALT CLICK
SU KWRITE & KATE
• Intel i3 330m ~ Intel HD Graphics
[2010 — 1° gen]
xf86-video-intel 1:2.99.917+916+g31486f40-2
mesa 22.0.2
• kernel mode setting
X11 device options
i915 module options
chromium/electron flags
yt-dlp
mpv options
no desktop widgets 👀
irqbalance
script vsync after fullscreen

no compositor needed
zero delay
zero effects
no lag spikes
vsync
60fps
hardware acceleration
local youtube videos
🤷🏻‍♂️ opengl 2.1
🤷🏻‍♂️ rare glitches
/etc/X11/xorg.conf.d/99-intel-ok-fragile.conf

# see man intel
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "sna"
Option "TearFree" "true"

Option "TripleBuffer" "true"
Option "Throttle" "false"

Option "XvMC" "true"
Option "XvMCSurfaces" "6"
EndSection
/etc/modprobe.d/i915.conf

# list: modinfo i915
# check: systool -m i915 -av


options drm_kms_helper poll=0

# Use kernel modesetting
options i915 modeset=1

# Backlight
options i915 enable_dpcd_backlight=1

# Full-speed
options i915 mitigations=off

# Keep uefi/BIOS provided screen on loading
options i915 fastboot=1

# Panel self refresh
options i915 enable_psr=0

# Enable power saving features
options i915 enable_fbc=1
options i915 enable_dc=4 # Display c-states
options i915 disable_power_well=0

# Force loading firmware
#options i915 enable_guc=3 # (no effect in latest kernels)
options i915 enable_guc=2

# ?
# Try this if you have issues with TearFree Xorg option and SNA aceel method
options i915 semaphores=1
options i915 enable_rc6=7
options i915 lvds_downclock=1
~/.config/mpv/mpv.conf

keep-open
# Broken with radios
#save-position-on-quit
fullscreen=no
use-filedir-conf

volume=80
volume-max=200

screenshot-format=png
screenshot-directory=/mnt/files/Video/Frames
screenshot-jpeg-quality=100
osd-font='Inter'
osd-on-seek=msg
# ytdl_hook-ytdl_path=/usr/bin/yt-dlp,
script-opts=ytdl_hook-ytdl_path=/usr/bin/yt-dlp,osc-seekbarstyle=knob,osc-seekrangestyle=bar,osc-scalewindowed=1.2,osc-scalefullscreen=1.2,osc-fadeduration=0,osc-hidetimeout=1000,osc-visibility=auto

vo=gpu
# hwdec=vaapi
hwdec-codecs=all
hls-bitrate=max

# scale=ewa_lanczossharp
# cscale=ewa_lanczossharp
# video-sync=display-resample
# tscale=oversample

# Note for scaletempo: if (search >= stride * overlap) distortions will come.
#af=scaletempo=stride=60:overlap=.20:search=14
#af=scaletempo=stride=20:overlap=.40:search=22
#af=scaletempo=stride=30:overlap=.50:search=10
#af=scaletempo=stride=22:overlap=.55:search=12
#af=scaletempo=stride=28:overlap=.9:search=25
#af=rubberband=transients=crisp:smoothing=on:pitch=quality:channels=together
af=scaletempo2


[default]

sub-auto=fuzzy # external subs don't have to match the file name exactly to autoload
sub-file-paths-append=ass # search for external subs in these relative subdirectories
sub-file-paths-append=srt
sub-file-paths-append=sub
sub-file-paths-append=subs
sub-file-paths-append=subtitles

demuxer-mkv-subtitle-preroll # try to correctly show embedded subs when seeking
embeddedfonts=yes # use embedded fonts for SSA/ASS subs
sub-fix-timing=no # do not try to fix gaps (which might make it worse in some cases)
sub-ass-force-style=Kerning=yes # allows you to override style parameters of ASS scripts
sub-use-margins
sub-ass-force-margins

ytdl-format=bestvideo[height<=1080][fps<=60]+bestaudio/bestvideo[height<1080]+bestaudio/best[height<=1080][fps<60]
This media is not supported in your browser
VIEW IN TELEGRAM
Video registrato prima della creazione del canale, che quindi non ho mai mandato

Il widget dell'orologio analogico consuma troppa GPU
This media is not supported in your browser
VIEW IN TELEGRAM
Altro video — implementazione interessante che nessuno si cagherà mai
vsync_reapply.sh
2.3 KB
Script daemon per riapplicare il vsync all'uscita delle finestre dal fullscreen, tramite spegnimento e riaccensione del monitor
(sì, funziona così sul mio pc...)
Trovato un problema di dipendenze su Arch nei pacchetti ufficiali aggiornati [dal 2019]

lm_sensors (sensord) dipende da rrdtool — pacchetto segnato opzionale che quindi non viene installato
Comandi utili che mi dimentico sempre pt.83
paru -Ps — mostra statistiche dei pacchetti installati
journalctl -u micro
/etc/X11/xorg.conf.d/99-intel-ok-fragile.conf # see man intel Section "Device" Identifier "Intel Graphics" Driver "intel" Option "AccelMethod" "sna" Option "TearFree" "true" Option "TripleBuffer"…
Ho controllato /var/log/Xorg.0.log per capire quali driver vengono usati sull'altro portatile;
con man amdgpu ho scoperto che anche questo driver supporta TearFree

Un'altra installazione senza compositor ma con vsync
USB 3 station
& HBCD Win 10 PE chkdsk
Per fortuna questo HBCD si copia in ramdisk così è possibile scorgere la chiavetta e racimolare un'altra porta USB
Gente che usa regolarmente NTFS3 (nuovo driver Paragon) da mainline e non moduli esterni,
avete mai riscontrato problemi?
Final Results
9%
No, e sembra funzionare meglio del driver vecchio
18%
No
0%
Sì (specificare)
73%
(guest answer)
Ok comunque dopo chkdsk di sicuro ho perso dei dump ISO di vecchi giochi, per fortuna ho i CD;

sono gli stessi files che ho toccato ieri sera, spero che la perdita sia confinata a tale evento