If kernel starting and boot screen black then change kernel grub boot options i915.modeset=1 to i915.modeset=0
From boot grub menu enter āeā key and edit kernel boot line and press F10 for boot.
It is strongly recommended to use the driver only from the PPA Linux WIP-Kernel team:
$ sudo add-apt-repository ppa:wip-kernel/nvidia-340
$ sudo apt-get update
$ sudo apt-get install nvidia-340
Driver version - nvidia-graphics-drivers-340 (340.107-0ubuntu3)
Fixes long start system if used nvidia drivers
If the system starts for a long time and there is an entry in the system log:
systemd-udevd[533]: Process '/bin/systemctl stop --no-block nvidia-persistenced' failed with exit code 5
Complete the following steps:
Go to /lib/udev/rules.d/
Open as root the config file 71-nvidia.rules
Comment as posted here below the lines:
# Start and stop nvidia-persistenced on power on and power off
# respectively
#ACTION=="add" DEVPATH=="/bus/acpi/drivers/NVIDIA ACPI Video Driver" SUBSYSTEM=="drivers" RUN+="/bin/systemctl start --no-block nvidia-persistenced.service"
#ACTION=="remove" DEVPATH=="/bus/acpi/drivers/NVIDIA ACPI Video Driver" SUBSYSTEM=="drivers" RUN+="/bin/systemctl stop --no-block nvidia-persistenced"
# Start and stop nvidia-persistenced when loading and unloading
# the driver
#ACTION=="add" DEVPATH=="/module/nvidia" SUBSYSTEM=="module" RUN+="/bin/systemctl start --no-block nvidia-persistenced.service"
#ACTION=="remove" DEVPATH=="/module/nvidia" SUBSYSTEM=="module" RUN+="/bin/systemctl stop --no-block nvidia-persistenced"
Now you can restart and check dmesg log file.
It is strongly recommended to use the packeges only from the PPA Linux WIP-Kernel team:
$ sudo add-apt-repository ppa:wip-kernel/alsa-lib
$ sudo apt update
$ sudo apt dist-upgrade -y
It is strongly recommended to use the packeges only from the PPA Linux WIP-Kernel team:
$ sudo add-apt-repository ppa:wip-kernel/virtualbox
$ sudo apt-get update
$ sudo apt-get install virtualbox
Package version - VirtualBox-5.2.22 (5.2.22-dfsg-3)
Fixes work and build modules for kernel 4.20
When you start the kernel phy enables full duplex and flow control rx / tx for r8169 module. Turn off flow control in use ethtool no possibility.
[ +6,268667] libphy: r8169: probed
[ +0,000464] r8169 0000:13:00.0 eth0: RTL8102e, f0:4d:a2:cb:b8:f3, XID
24e, IRQ 30
[ +0,023024] RTL8201CP Ethernet r8169-1300:00: attached PHY driver
[RTL8201CP Ethernet] (mii_bus:phy_addr=r8169-1300:00, irq=IGNORE)
[ +1,673582] r8169 0000:13:00.0 eth0: Link is Up - 100Mbps/Full - flow
control rx/tx
If you turn off and turn on the ethernet cable, the driver disables the flow control and fullduplex.
[ +5,143360] r8169 0000:13:00.0 eth0: Link is Down
[ +2,530738] libphy: r8169: probed
[ +0,000480] r8169 0000:13:00.0 eth0: RTL8102e, f0:4d:a2:cb:b8:f3, XID
24e, IRQ 30
[ +0,023594] RTL8201CP Ethernet r8169-1300:00: attached PHY driver
[RTL8201CP Ethernet] (mii_bus:phy_addr=r8169-1300:00, irq=IGNORE)
[ +1,705550] r8169 0000:13:00.0 eth0: Link is Up - 100Mbps/Half - flow
control off
This behavior of the driver does not allow the network card to operate at full speed after a restart or first start of the system.
Use module parameter rtl8201_half=1
Add to /etc/modprobe.d/realtek.conf
options realtek rtl8201_half=1
GRUB_CMDLINE_LINUX_DEFAULT="noresume psi=1 acpi_osi=Linux acpi_backlight=vendor intel_iommu=on swiotlb=32768 apparmor=0 net.ifnames=0 biosdevname=0"
GRUB_CMDLINE_LINUX="systemd.gpt_auto=0 zswap.enabled=1 zswap.compressor=lz4 zswap.max_pool_percent=15 pcie_acs_override=downstream"
Zswap is a kernel feature that provides a compressed RAM cache for swap pages
Add to grub.cfg:
GRUB_CMDLINE_LINUX="zswap.compressor=lz4 zswap.max_pool_percent=15"
Add to /etc/initramfs-tools/modules:
lz4
lz4_compress
and run command:
$ sudo update-grub && update-initramfs -u
vm.laptop_mode = 0
vm.overcommit_ratio = 200
vm.overcommit_memory = 2
# System open file limit
fs.file-max = 243968
# Core dump suidsafe
kernel.core_uses_pid = 1
kernel.core_pattern = /tmp/core-%e-%s-%u-%g-%p-%t
fs.suid_dumpable = 2
kernel.printk = 4 4 1 7
kernel.sysrq = 0
# Network
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.all.secure_redirects = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.tcp_max_orphans = 65536
net.ipv4.tcp_fin_timeout = 10
net.ipv4.tcp_keepalive_time = 1800
net.ipv4.tcp_keepalive_intvl = 15
net.ipv4.tcp_keepalive_probes = 5
net.ipv4.tcp_max_syn_backlog = 4096
net.ipv4.tcp_syn_retries = 3
net.ipv4.tcp_synack_retries = 1
net.ipv4.tcp_mem = 50576 64768 98152
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
net.ipv4.tcp_orphan_retries = 0
net.ipv4.tcp_syncookies = 1
net.netfilter.nf_conntrack_max = 16777216
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_sack = 1
net.ipv4.tcp_congestion_control = yeah
net.ipv4.tcp_no_metrics_save = 1
net.ipv4.route.flush = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.lo.rp_filter = 1
net.ipv4.conf.eth0.rp_filter = 1
net.ipv4.conf.wlan0.rp_filter = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.lo.accept_source_route = 0
net.ipv4.conf.eth0.accept_source_route = 0
net.ipv4.conf.wlan0.accept_source_route = 0
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.ip_local_port_range = 1024 65535
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_rfc1337 = 1
net.ipv4.ip_forward = 0
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.icmp_echo_ignore_all = 1
net.ipv4.icmp_ignore_bogus_error_responses = 1
net.core.somaxconn = 65535
net.core.netdev_max_backlog = 4096
net.core.rmem_default = 65536
net.core.wmem_default = 65536
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
fs.inotify.max_user_watches = 16777216
#
net.ipv4.tcp_slow_start_after_idle = 0
net.ipv4.ip_default_ttl = 63
#
net.ipv4.tcp_ecn = 1
net.core.default_qdisc = cake
#
kernel.perf_cpu_time_max_percent = 100
#
# IO shedulers
vm.dirty_background_bytes = 67108864
vm.dirty_bytes = 134217728
#
# Huge Page
vm.nr_hugepages = 16
vm.nr_overcommit_hugepages = 16
vm.hugetlb_shm_group = 1001
#
kernel.yama.ptrace_scope = 2
#
net.netfilter.nf_conntrack_helper = 1
#
# LKRG
lkrg.clean_message = 0
lkrg.log_level = 3
#
# For Chromium sandbox use!
kernel.unprivileged_userns_clone = 0
wireless-power off
[connection]
wifi.powersave = 2
[connection]
wifi.powersave = 2
[device]
wifi.scan-rand-mac-address=no
Copyright © 1966-2019 AndyLavr All rights reserved.