VariousNVIDIA / UDEV ProblemSometimes udevd hangs with 100% CPU on one core and Xorg can not use the native NVIDIA driver. A simple fix is to blacklist the NVIDIA driver and load it with 'modprobe' from 'rc.local'. File: /etc/modprobe.d/blacklist.conf blacklist nvidia blacklist nvidia_drm blacklist nvidia_modeset /etc/rc.local modprobe nvidia_drm See also at Gentoo's Bugzilla: Bug 667362 - x11-drivers/nvidia-drivers-410.57 - timeouts when loading modules Disable PC SpeakerFile: /etc/modprobe.d/blacklist.conf blacklist pcspkr ALSAList sound cards: aplay -L Play audio file: aplay test.wav Record from second card: arecord -D hw:1 -f cd test.wav Open mixer: alsamixer Init cards: alsactl init Store mixer settings: alsactl store Load mixer settings: alsactl restore Example: Set second sound card as default card.
For system-wide configuration create/use the file '/etc/asound.conf', for user only create/use the file '.asoundrc' in the user home directory. defaults.pcm.card 1 ALSA - No audio over HDMI, shared outputHow to find the correct device: List the devices, try the devices. List devices: aplay -l Sample output: **** List of PLAYBACK Hardware Devices **** card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [T27C350] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: PCH [HDA Intel PCH], device 0: CS4208 Analog [CS4208 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: PCH [HDA Intel PCH], device 1: CS4208 Digital [CS4208 Digital] Subdevices: 1/1 Subdevice #0: subdevice #0Here we have 3 HDMI devices. Now find the correct device.
speaker-test -D plughw:0,3 -c 2 Lets try a video file: mplayer -ao alsa:device=hw=0.3 video.mp4 When we hear the audio of the video through HDMI, we want to make it as default ALSA device. For system-wide configuration create/use the file '/etc/asound.conf', for user only create/use the file '.asoundrc' in the user home directory. pcm.!default { type hw card 0 device 3 } Try the default device using mplayer without output parameters: mplayer video.mp4 More complex configuration with dmix for shared output. pcm.card0 { type hw card 0 device 3 } pcm.dmix0 { type dmix ipc_key 34521 slave { pcm "card0" } } pcm.dsnoop0 { type dsnoop ipc_key 34523 slave { pcm "card0" } } pcm.asym0 { type asym playback.pcm "dmix0" capture.pcm "dsnoop0" } pcm.pasym0 { type plug slave.pcm "asym0" } # 'dsp0' is espected by OSS emulation etc. pcm.dsp0 { type plug slave.pcm "asym0" } ctl.dsp0 { type hw card 0 } pcm.!default { type plug slave.pcm "asym0" } ctl.!default { type hw card 0 }See https://alsa.opensrc.org/AlsaSharing ASUS PRIME X370-PRO - SensorsTo get the sensor data (temperature, fan speed) of the motherboard download the IT87 driver, compile and install it. Download: https://github.com/bbqlinux/it87/releases Compile and install: make && make install Module loading: modprobe it87 Add 'modprobe it87' to /etc/rc.local to load the module during boot. ASUS PRIME X370-PRO - Aura RGBUse OpenRGB (former OpenAuraSDK) to control the Asus Aura RGB. You have to install i2c tools and Qt to use OpenRGB. For AMD you also have to patch the Linux Kernel. TODO
Get the latest OpenRGB version: git clone https://gitlab.com/CalcProgrammer1/OpenRGB.git Get additional sub modules for OpenRGB. Run the command in the OpenRGB directory: git submodule update --init --recursive Create the Makefile: qmake OpenRGB.pro Compile OpenRGB: Now you should have the program 'OpenRGB' in your current directory. For AMD, you have to patch the Linux Kernel and recompile the modules. You find the patch file in the OpenRGB directory. At the moment, the file name is 'OpenRGB.patch'. Mail me if you need help. If needed, I will write a simple walkthrough. Next, create an udev rule file for the permissions:
File: /etc/udev/rules.d/90-i2c.rules KERNEL=="i2c-[0-7]",MODE="0666" Load the i2c module: modprobe i2c-dev When everything worked fine, then run './OpenRGB' in the OpenRGB directory and control the leds of you board. Raspberry Pi - C64, MAMESummary without explanations. Configure RaspberryAvoid performance issues with forcing Raspberry Pi to a resolution of 800x600. File: /boot/config.txt framebuffer_width=800 framebuffer_height=600 temp_soft_limit=70 C64 - VICE 2Download: https://sourceforge.net/projects/vice-emu/files/releases/ Patch VICE with vice-2.4-giflib.patch Compile and install: ./configure --prefix=/opt --without-pulse --without-resid --enable-arch=no --disable-ffmpeg --enable-ethernet --enable-sdlui && make && make install Starting VICE: x64 [disk] Configure VICE: Press F12 to open the Settings Menu. C64 - VICE 3Additional packages required to install VICE 3: mpg123, xa Install mpg123: Extract mpg123 and run 'myxconfigure' Download VICE 3: https://vice-emu.sourceforge.io Compile and install: ./configure --prefix=/opt --enable-lame --enable-midi --enable-parsid --enable-ethernet --disable-pdf-docs --enable-gtk3ui --enable-desktop-files --with-fastsid --with-mpg123 --without-pulse --with-sdlsound --with-vorbis --with-gif && make && make install Starting VICE: x64sc MAME / RetroArchFor better performance use MAME based on the 2003 version. For simplicity use it with RetroArch. Download: https://github.com/libretro/RetroArch/releases Compile and install RetroArch: ./configure --prefix=/opt && make && make install Starting RetroArch: retroarch At first open the 'Online Updater'. Use 'Update Assets' to download/update the menu items. Use the 'Core Updater' to load machine cores. For MAME use MAME 2003 and fbalpha 2012 on the Raspberry Pi. Update the RetroArch config file for better performance on the Raspberry Pi.
File: ~/.config/retroarch/retroarch.cfg # Use threaded video driver video_threaded = true # Smoothens picture with bilinear filtering video_smooth = false # Audio driver backend. audio_driver = alsathread # Enable rewinding rewind_enable = false See https://retropie.org.uk/forum/topic/13332/audio-cracks-pops-glitches-in-retropie-4-3/10 Disable screen blankingIn Plop Linux, add 'xset -dpms ; xset s off' to your '~/xfce4' or '~/fluxbox' file. Qt error qt.qpa.plugin, xcbOn error qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.install 'libxkbcommon'. Download: https://xkbcommon.org/download/ Compile: meson -Dprefix=/opt -Denable-wayland=false -Denable-docs=false build/ && ninja -C build/ && ninja install -C build/. Unreal Editor - Install VulkanYou have to install the Vulkan API to run the Unreal Editor. Download: git clone https://github.com/KhronosGroup/Vulkan-Loader.git Compile and install: cd Vulkan-Loader mkdir build cd build ../scripts/update_deps.py cmake -DCMAKE_INSTALL_PREFIX:PATH=/opt -DBUILD_WSI_WAYLAND_SUPPORT=off -C helper.cmake .. cmake . make sudo make install Firmware upgrade problems DD-WRTNote: Related to DD-WRT and not Plop Linux. See also the official DD-WRT Website! If the uptdate from the Web GUI doesn't work then:
PHP/ImageMagick - imagickYou need imagick to use ImageMagick with PHP. Install imagick: pecl channel-update pecl.php.net pecl install imagick Add the line "extension=imagick.so" to your php.ini. This file is usually "/etc/php.ini". © 2023 by
Elmar Hanlhofer |