- Installing NVIDIA Drivers ❗❗
ubuntu-drivers devices
sudo ubuntu-drivers autoinstall
- From last command see nvidia-driver-number and use it in the command below and then reboot 📺 ✔️
# Cleanup old alternatives | |
update-alternatives --remove-all cc | |
update-alternatives --remove-all c++ | |
update-alternatives --remove-all gcc | |
update-alternatives --remove-all g++ | |
update-alternatives --remove-all clang | |
update-alternatives --remove-all clang++ | |
update-alternatives --remove-all icc | |
update-alternatives --remove-all icc++ |
Encoder h264_nvenc [NVIDIA NVENC H.264 encoder]: | |
General capabilities: delay hardware | |
Threading capabilities: none | |
Supported pixel formats: yuv420p nv12 p010le yuv444p p016le yuv444p16le bgr0 rgb0 cuda d3d11 | |
h264_nvenc AVOptions: | |
-preset <int> E..V..... Set the encoding preset (from 0 to 11) (default medium) | |
default E..V..... | |
slow E..V..... hq 2 passes | |
medium E..V..... hq 1 pass | |
fast E..V..... hp 1 pass |
#!/usr/bin/env php | |
<?php | |
declare(strict_types = 1); | |
if (posix_geteuid () !== 0) { | |
die ( "error: this script requires root privileges, re-run it as root." ); | |
} | |
$amdgpu_dir = '/sys/bus/pci/drivers/amdgpu'; | |
$dirs = array_filter ( array_map ( 'trim', glob ( $amdgpu_dir.DIRECTORY_SEPARATOR.'*', GLOB_NOSORT | GLOB_ONLYDIR | GLOB_MARK ) ), function (string $str) { | |
return (is_writable ( $str."power_dpm_force_performance_level" ) && is_writable ( $str.'pp_compute_power_profile' )); | |
} ); |
the_ROM_image: | |
{ | |
[fsbl_config] a53_x64 | |
[bootloader] <fsbl.elf> | |
[pmufw_image] <pmufw.elf> | |
[destination_device=pl] <bitstream> | |
[destination_cpu=a53-0, exception_level=el-3, trustzone] <bl31.elf> | |
[destination_cpu=a53-0, exception_level=el-2] <u-boot.elf> | |
} |
ubuntu-drivers devices
sudo ubuntu-drivers autoinstall
#!/bin/bash | |
# tested on Ubuntu 16.04 | |
apt-get install -y \ | |
gstreamer1.0-libav \ | |
gstreamer1.0-plugins-bad \ | |
gstreamer1.0-plugins-base \ | |
gstreamer1.0-plugins-good \ | |
gstreamer1.0-tools |
#!/usr/bin/env bash | |
# Require root to run | |
if [ "$EUID" -ne 0 ]; then | |
echo "Please run as root" | |
exit 0 | |
fi | |
# [PlayOnLinux] - disables protection against the usage of Ptrace | |
# https://www.playonlinux.com/en/topic-10534-Regarding_ptrace_scope_fatal_error.html |
ffmpeg -ss <start_time> -i video.mp4 -t <duration> -q:v 2 -vf select="eq(pict_type\,PICT_TYPE_I)" -vsync 0 frame%03d.jpg |
@echo on | |
REM checked for Windows 10 | |
REM fork from https://gist.github.com/theultramage/cbdfdbb733d4a5b7d2669a6255b4b94b | |
REM you may want full list https://gist.github.com/raspi/203aef3694e34fefebf772c78c37ec2c | |
REM SET attrib=+ATTRIB_HIDE | |
SET attrib=-ATTRIB_HIDE | |
REM Hard disk burst ignore time | |
powercfg -attributes 0012ee47-9041-4b5d-9b77-535fba8b1442 80e3c60e-bb94-4ad8-bbe0-0d3195efc663 %attrib% |
silly gist hack, why do we need you? :( |