Based on 2020.05.10-cobra-mk3-instalace.html 2020.05.15-cobra-mk3-TeachMePCB.html
- Updated 2022.02.03 03:04:26 - Uspávání
1 More settings
Po nějaké době používání jsem ponastavoval víc věcí, i obecnějšího charakteru
- občas mi nenaběhly Xka a klávesnice nereagovala, ssh ano, dmesg https://forum.manjaro.org/t/system-freezes-amdgpu-error-solved/132429
dmesg ...... [drm:amdgpu_job_timedout] *ERROR* ring gfx_0.0.0 timeout, signaled seq=6, emitted seq=8 [drm:amdgpu_job_timedout] *ERROR* Process information: process X pid 2121 thread X:cs0 pid 2124 [drm] GPU recovery disabled.
General setup ---> <*> Kernel .config support [*] Enable access to .config through /proc/config.gz Processor type and features ---> (root=/dev/nvme0n1p10 net.ifnames=0 vga=ask amdgpu.gpu_recovery=1 amdgpu.lockup_timeout=3000) Built-in kernel command string
2 Uspávání
- KERNEL
Processor type and features ---> (root=/dev/nvme0n1p10 net.ifnames=0 vga=ask amdgpu.gpu_recovery=1 amdgpu.lockup_timeout=3000 resume=/dev/nvme0n1p2) Built-in kernel command string
- ACPId
emerge -avq sys-power/acpid rc-update add acpid default /etc/init.d/acpid start
- /etc/acpi/default
# qfile: sys-power/acpid case "$group" in button) case "$action" in power) date '+%Y.%m.%d %H:%M:%S' >>/root/PBTN # echo " $0 $*" >>/root/PBTN # echo " device=>$device<" >>/root/PBTN if [ "$device" == "PBTN" ] ; then echo /dev/nvme0n1p2 > /sys/power/resume # nvme0n1p2 = swap echo disk > /sys/power/state fi # /etc/acpi/actions/powerbtn.sh ;; # .... \*) log_unhandled $* ;; esac ;; # ... \*) log_unhandled $* ;; esac
3 PrintScreen - scrot
emerge -avq media-gfx/scrot
4 Vim
pro zobrazování foldů v RST
/usr/share/vim/vim82/ftplugin/rst.vim -> .vim/ftplugin/rst.vim a zakomentovat vše okolo foldtext=RstFold#GetRstFoldText()
~/.vimrc .. code:
" preskakovani mezi okny z editacniho rezimu: opustim editacni rezim, zopakuji ^W imap ^W ^[^W " skoky po slovech pri editaci - Ctrl+sipka map ^[Od b map ^[Oc w imap ^[Od ^[bi imap ^[Oc ^[lwi " : commandline cnoremap <Esc>Od <S-Left> cnoremap <Esc>Oc <S-Right>
5 firefox
about:config
browser.sessionstore.interval 15000 ->600000 jak casto zapisovat taby na disk