User Tools

Site Tools


distros:fedora_workstation_gnome

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
distros:fedora_workstation_gnome [2019/09/23 13:13] Sean Rhonedistros:fedora_workstation_gnome [2020/02/16 04:12] – [systemd] Sean Rhone
Line 2: Line 2:
  
   * Fedora Workstation ((https://getfedora.org/en/workstation))   * Fedora Workstation ((https://getfedora.org/en/workstation))
-  * 31 Beta+  * 31
  
-====== TODO ======+====== Issues ======
  
-  * https://blog.tingping.se/2018/12/01/amdgpu-fullrgb.html+  * KeePassXC loads databases slower specifically on Fedora vs other distros ((https://bugzilla.redhat.com/show_bug.cgi?id=1653435))
  
 ====== Download ====== ====== Download ======
Line 28: Line 28:
   * Using ''Unified hosts + fakenews + gambling''   * Using ''Unified hosts + fakenews + gambling''
  
-  sudo wget -O '/etc/hosts' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts' && sync+  wget -O '/tmp/hosts-tmp' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts' && sudo cp '/etc/hosts' '/etc/hosts-bak' && sudo mv '/tmp/hosts-tmp' '/etc/hosts' && sync
  
   cat '/etc/hosts' | grep 'Date:'   cat '/etc/hosts' | grep 'Date:'
Line 37: Line 37:
  
   * This adds RoE sites to HOSTS file and allows resources to be grabbed over LAN   * This adds RoE sites to HOSTS file and allows resources to be grabbed over LAN
-  * Useful for doing large configurations with sites on local LAN+  * Useful for doing significant configurations with sites on LAN
  
   echo -e '\n# RoE LAN\n192.168.1.153 realmofespionage.xyz\n192.168.1.153 social.realmofespionage.xyz\n192.168.1.153 blog.realmofespionage.xyz\n192.168.1.153 media.realmofespionage.xyz\n192.168.1.153 wiki.realmofespionage.xyz' | sudo tee --append '/etc/hosts' > '/dev/null' && cat '/etc/hosts' | grep 'realmofespionage.xyz'   echo -e '\n# RoE LAN\n192.168.1.153 realmofespionage.xyz\n192.168.1.153 social.realmofespionage.xyz\n192.168.1.153 blog.realmofespionage.xyz\n192.168.1.153 media.realmofespionage.xyz\n192.168.1.153 wiki.realmofespionage.xyz' | sudo tee --append '/etc/hosts' > '/dev/null' && cat '/etc/hosts' | grep 'realmofespionage.xyz'
Line 85: Line 85:
  
   * The initial ''dnf clean all'' was removed from here since on a fresh install, there's nothing to remove, and fresh repo data is pulled-in   * The initial ''dnf clean all'' was removed from here since on a fresh install, there's nothing to remove, and fresh repo data is pulled-in
-  * ''dnf autoremove'' as of 2019/08/29 is broken 
  
   sudo dnf distro-sync -y && sync   sudo dnf distro-sync -y && sync
  
-  sudo dnf autoremove -y+  sudo dnf autoremove 
 + 
 +=== Autoremove Fix === 
 + 
 +  * Removes the initially-installed kernel in order to fix ``dnf autoremove`` 
 +  * :!: This will vary depending on the Fedora image version used 
 + 
 +  sudo dnf list --installed 'kernel'
 + 
 +  sudo dnf remove *5.3.7* && sync
  
 ==== Firmware ==== ==== Firmware ====
Line 95: Line 103:
 **** ****
  
-  sudo fwupdmgr refresh && sudo fwupdmgr update --verbose+  sudo fwupdmgr refresh --force && sudo fwupdmgr update --verbose
  
 ==== Flatpaks ==== ==== Flatpaks ====
Line 122: Line 130:
   * ''p7zip-plugins'' provides ''7z'' which can be used for extracting ISOs and other formats   * ''p7zip-plugins'' provides ''7z'' which can be used for extracting ISOs and other formats
  
-  sudo dnf install filezilla keepassxc p7zip p7zip-plugins unar aria2 gimp transmission-gtk hdparm nano htop wget irqbalance evolution flashrom+  sudo dnf install filezilla keepassxc p7zip p7zip-plugins unar aria2 gimp transmission-gtk hdparm nano htop wget irqbalance evolution flashrom lm_sensors 
  
 ===== RPM Fusion ===== ===== RPM Fusion =====
Line 133: Line 141:
  
 ==== nonfree ==== ==== nonfree ====
- 
-  * :!: Spinesnap needs ''broadcom-wl'', and for ''akmods --force'' to be ran after installation 
  
   steam   steam
  
-  broadcom-wl+  akmod-nvidia
  
 ===== Game Controllers ===== ===== Game Controllers =====
Line 187: Line 193:
  
 ===== Keyboard Shortcuts ===== ===== Keyboard Shortcuts =====
- 
-  * As of 2019/08/29, ''dnf autoremove -y'' is removed from the update command since it's been broken on F30 for over a week or two now... 
  
   gnome-terminal   gnome-terminal
Line 194: Line 198:
   bash -c "secret-tool lookup 'keepass' 'default' | keepassxc --pw-stdin ~/'Documents/keepass.kdbx'"   bash -c "secret-tool lookup 'keepass' 'default' | keepassxc --pw-stdin ~/'Documents/keepass.kdbx'"
  
-  gnome-terminal --command "sudo sh -c 'dnf clean 'all' && dnf distro-sync -y && sync && fwupdmgr refresh && fwupdmgr update --verbose && flatpak update && rm -Rfv '/usr/lib64/firefox/browser/features' '/home/'*'/.mozilla/firefox/'*'/features' && wget -O '/etc/hosts' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts' && sync && fstrim --all --verbose && sync && read -n '1' -s -r -p 'Done' && sleep '2''"+  gnome-terminal --command "sudo sh -c 'dnf clean 'all' && dnf distro-sync -y && sync && flatpak update && rm -Rfv '/usr/lib64/firefox/browser/features' '/home/'*'/.mozilla/firefox/'*'/features' && wget -O '/etc/hosts' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts' && sync && fstrim --all --verbose && sync && read -n '1' -s -r -p 'Done' && sleep '2''"
  
 ==== Keys ==== ==== Keys ====
Line 223: Line 227:
  
 ==== DNS ==== ==== DNS ====
 +
 +=== Cloudflare ===
 +
 +  * https://1.1.1.1/dns/
 +
 +  1.1.1.1,1.0.0.1
 +
 +  2606:4700:4700::1111,2606:4700:4700::1001
  
 === UncensoredDNS === === UncensoredDNS ===
Line 252: Line 264:
 ===== Rhythmbox ===== ===== Rhythmbox =====
  
-  * See [[Information:Internet Radio]]+  * See [[Information:Internet Radio|Internet Radio]]
  
 ===== Terminal ===== ===== Terminal =====
Line 264: Line 276:
   http://john.bitsurge.net/public/biglist.p2p.gz   http://john.bitsurge.net/public/biglist.p2p.gz
  
-===== GRUB =====+===== Kernel Options =====
  
-==== grubby ====+==== Magic SysRq key ====
  
-  * Add commands within ''args'' +  * https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html
-  * :!: As of 2019/09/23, ''grubby'' doesn't exist on Fedora 31 beta by-default+
  
-  sudo grubby --update-kernel='ALL' --args=''+  echo 'kernel.sysrq 1| sudo tee '/etc/sysctl.d/99-sysrq.conf> '/dev/null' && cat '/etc/sysctl.d/99-sysrq.conf'
  
-=== Error Fix ===+==== Swap ====
  
-  * https://bugzilla.redhat.com/show_bug.cgi?id=1688643#c16 +  * https://www.kernel.org/doc/html/latest/admin-guide/sysctl/vm.htm
-  * :!: This only applies to Legacy/MBR installs+
  
-  sudo grub2-install '/dev/sda'+  echo -e 'vm.swappiness = 1\nvm.vfs_cache_pressure = 50' | sudo tee '/etc/sysctl.d/99-swap.conf''/dev/null' && cat '/etc/sysctl.d/99-swap.conf'
  
-==== GRUB ====+=== Verify ===
  
-****+  ''swappiness'' should be ''1'' 
 +  ''vfs_cache_pressure'' should be ''50''
  
-  sudo -e '/etc/default/grub'+  sysctl 'vm.swappiness'vm.vfs_cache_pressure' 
 + 
 +===== GRUB ===== 
 + 
 +==== Config ====
  
 === UEFI === === UEFI ===
Line 290: Line 305:
 **** ****
  
-  sudo grub2-mkconfig -o '/boot/efi/EFI/fedora/grub.cfg'+  sudo -e '/etc/default/grub' && sudo grub2-mkconfig -o '/boot/efi/EFI/fedora/grub.cfg'
  
 === Legacy === === Legacy ===
Line 296: Line 311:
 **** ****
  
-  sudo grub2-mkconfig -o '/boot/grub2/grub.cfg'+  sudo -e '/etc/default/grub' && sudo grub2-mkconfig -o '/boot/grub2/grub.cfg'
  
-==== Other Parameters ====+=== grubby ===
  
-  * See [[notes:kernel_parameters|Kernel Parameters]] for other options+  * Add commands within ''args'' 
 +  * :!: For whatever reason, ''grubby'' sometimes exists on F31, where other times it doesn't
  
-==== AIO ====+  sudo grubby --update-kernel='ALL' --args=''
  
-=== Spinesnap ===+==== Kernel Parameters ====
  
-  * Last updated: 2019/09/23+=== Other Parameters ===
  
-  i915.enable_fbc=1 i915.fastboot=1 intel_iommu=on pci=nocrs,pcie_bus_perf+  * See [[notes:kernel_parameters|Kernel Parameters]] for other options
  
-==== i915 ====+=== Spinesnap ===
  
-  i915.enable_fbc=1 i915.fastboot=1+  * Last updated: 2020/01/19 
 +  * :!: With ''i915.enable_guc=3'', HuC submission requires PAVP to be enabled in firmware settings or else the firmware can't be loaded or authenticated
  
-  i915.enable_psr=1+  i915.enable_fbc=1 i915.fastboot=1 modprobe.blacklist=iTCO_wdt,sp5100_tco nowatchdog
  
-==== amdgpu ====+  i915.enable_guc=3
  
-  * Allows use of Overdrive options for overclocking+== NVIDIA ==
  
-  amdgpu.ppfeaturemask=0xffffffff+  * Last updated: 2020/02/16 
 +  * ''rd.driver.blacklist=nouveau'' and ''modprobe.blacklist=nouveau'' are automatically added to ''GRUB_CMDLINE_LINUX='', and the Watchdog modules need appended to that
  
-=== Verify ===+  ,iTCO_wdt,sp5100_tco
  
-****+  i915.enable_fbc=1 i915.fastboot=1 nowatchdog
  
-  cat '/sys/module/amdgpu/parameters/ppfeaturemask' | grep '4294967295'+===== GNOME =====
  
-==== PCI ====+==== Extensions ====
  
-****+=== Top Panel Workspace Scroll ===
  
-  pci=nocrs,pcie_bus_perf+  * https://github.com/timbertson/gnome-shell-scroll-workspaces
  
-==== IOMMU ====+  rm -Rf ~/'.local/share/gnome-shell/extensions/scroll-workspaces@gfxmonk.net' '/tmp/gnome-shell-scroll-workspaces-master.zip' '/tmp/gnome-shell-scroll-workspaces-master' && wget -O '/tmp/gnome-shell-scroll-workspaces-master.zip' 'https://github.com/timbertson/gnome-shell-scroll-workspaces/archive/master.zip' && unzip '/tmp/gnome-shell-scroll-workspaces-master.zip'  -d '/tmp' && mkdir -p ~/'.local/share/gnome-shell/extensions' && mv '/tmp/gnome-shell-scroll-workspaces-master/scroll-workspaces' ~/'.local/share/gnome-shell/extensions/scroll-workspaces@gfxmonk.net' && gnome-extensions enable 'scroll-workspaces@gfxmonk.net' && sync 
 + 
 +== Uninstall ==
  
 **** ****
  
-  intel_iommu=on +  gnome-extensions disable 'scroll-workspaces@gfxmonk.net' && rm -Rf ~/'.local/share/gnome-shell/extensions/scroll-workspaces@gfxmonk.net' && sync
- +
-===== GNOME =====+
  
 ==== Disable Wayland ==== ==== Disable Wayland ====
Line 352: Line 370:
   * Run this before running GUI applications requiring root   * Run this before running GUI applications requiring root
   * This needs re-ran after session restart   * This needs re-ran after session restart
 +  * TODO: Is this even needed anymore?
  
   xhost +LOCAL:   xhost +LOCAL:
Line 359: Line 378:
 === All-in-one === === All-in-one ===
  
-  * Last updated: 2019/09/05+  * Last updated: 2019/12/23
  
-  gsettings set 'org.gnome.desktop.interface' 'enable-animations' 'false' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'send-events' 'disabled-on-external-mouse' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'natural-scroll' 'false' && gsettings set 'org.gnome.desktop.peripherals.mouse' 'accel-profile' 'flat' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'tap-to-click' 'true' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'tap-and-drag' 'false' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'disable-while-typing' 'false' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'click-method' 'areas' && gsettings set 'org.gnome.desktop.interface' 'clock-show-date' 'true' && gsettings set 'org.gnome.software' 'download-updates' 'false'+  gsettings set 'org.gnome.desktop.interface' 'enable-animations' 'false' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'send-events' 'disabled-on-external-mouse' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'natural-scroll' 'false' && gsettings set 'org.gnome.desktop.peripherals.mouse' 'accel-profile' 'flat' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'tap-to-click' 'false' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'tap-and-drag' 'false' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'disable-while-typing' 'false' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'click-method' 'areas' && gsettings set 'org.gnome.desktop.interface' 'clock-show-date' 'true' && gsettings set 'org.gnome.software' 'download-updates' 'false' && gsettings set 'org.gnome.desktop.interface' 'clock-show-weekday' 'true'
  
 === Individual === === Individual ===
  
-  * Last updated: 2019/08/29+  * Last updated: 2019/12/23
  
   gsettings set 'org.gnome.desktop.interface' 'enable-animations' 'false'   gsettings set 'org.gnome.desktop.interface' 'enable-animations' 'false'
Line 375: Line 394:
   gsettings set 'org.gnome.desktop.peripherals.mouse' 'accel-profile' 'flat'   gsettings set 'org.gnome.desktop.peripherals.mouse' 'accel-profile' 'flat'
  
-  gsettings set 'org.gnome.desktop.peripherals.touchpad' 'tap-to-click' 'true'+  gsettings set 'org.gnome.desktop.peripherals.touchpad' 'tap-to-click' 'false'
  
   gsettings set 'org.gnome.desktop.peripherals.touchpad' 'tap-and-drag' 'false'   gsettings set 'org.gnome.desktop.peripherals.touchpad' 'tap-and-drag' 'false'
Line 386: Line 405:
  
   gsettings set 'org.gnome.software' 'download-updates' 'false'   gsettings set 'org.gnome.software' 'download-updates' 'false'
 +
 +  gsettings set 'org.gnome.desktop.interface' 'clock-show-weekday' 'true'
  
 ===== Hostname ===== ===== Hostname =====
Line 404: Line 425:
  
   secret-tool store --label='KeePass' 'keepass' 'default'   secret-tool store --label='KeePass' 'keepass' 'default'
 +
 +===== lm_sensors =====
 +
 +****
 +
 +  sudo sensors-detect --auto
  
 ===== mpv ===== ===== mpv =====
  
-  https://wiki.archlinux.org/index.php/mpv#High_quality_configurations+****
  
-  mkdir -p ~/'.config/mpv' && echo -e "profile=gpu-hq\nscale=ewa_lanczossharp\ncscale=ewa_lanczossharp\nvideo-sync=display-resample\ninterpolation\ntscale=oversample" | tee ~/'.config/mpv/mpv.conf' > '/dev/null' && cat ~/'.config/mpv/mpv.conf'+  mkdir -p ~/'.config/mpv' && echo -e "vo=gpu\nprofile=gpu-hq\nhwdec=vaapi" | tee ~/'.config/mpv/mpv.conf' > '/dev/null' && cat ~/'.config/mpv/mpv.conf'
  
 ===== NetworkManager ===== ===== NetworkManager =====
Line 423: Line 450:
  
 [connection-mac-randomization] [connection-mac-randomization]
-ethernet.cloned-mac-address=random 
 wifi.cloned-mac-address=random wifi.cloned-mac-address=random
  
 [connection] [connection]
 wifi.powersave=2</code> wifi.powersave=2</code>
- 
-==== Spinesnap ==== 
- 
-  * https://fedoraproject.org/wiki/Common_F30_bugs#broadcom-wl-mesh 
-  * https://bugzilla.redhat.com/show_bug.cgi?id=1703745#c56 
-  * Requires ''broadcom-wl'' to be installed 
- 
-  sudo -e '/etc/NetworkManager/conf.d/99-custom.conf' 
  
 <code> <code>
-[device+[connection-mac-randomization
-match-device=driver:wl +ethernet.cloned-mac-address=random</code>
-wifi.scan-rand-mac-address=no +
- +
-[connection] +
-wifi.powersave=2</code>+
  
 ===== Laptop Power Management ===== ===== Laptop Power Management =====
Line 451: Line 465:
 ===== Secure Shell ===== ===== Secure Shell =====
  
-  * See [[Clients:Secure Shell]]+  * See [[Clients:Secure Shell|Secure Shell]]
  
-===== Solo Key =====+===== systemd =====
  
-==== Information ====+  * Disable suspend on laptop lid-close if "docked" or more than one external screen exists 
 +  * :!: This is necessary on Spinesnap when using NVIDIA's proprietary graphics driver and an external HDMI screen primarily
  
-  * https://solokeys.com/ +  sudo mkdir -p '/etc/systemd/logind.conf.d&& sudo -e '/etc/systemd/logind.conf.d/custom.conf'
-  * Usable as authentication for GDM and ''sudo''+
  
-==== PAM ==== +<code
- +[Login] 
-=== Dependencies === +HandleLidSwitchDocked=ignore</code>
- +
-**** +
- +
-  sudo dnf install pamu2fcfg pam-u2f +
- +
-=== Centralized Key === +
- +
-**** +
- +
-  pamu2fcfg ~/'u2f_keys' && sudo mv ~/'u2f_keys' '/etc/u2f_mappings' +
- +
-=== GDM === +
- +
-  * Add to line 2, under the ''pam_selinux_permit.so'' entry +
- +
-  sudo -e '/etc/pam.d/gdm-password' +
- +
-  auth sufficient pam_u2f.so authfile=/etc/u2f_mappings cue +
- +
-=== sudo === +
- +
-  * Add to line 2, under the ''#%PAM-1.0'' line +
- +
-  sudo -e '/etc/pam.d/sudo' +
- +
-  auth sufficient pam_u2f.so authfile=/etc/u2f_mappings cue +
- +
-===== Swappiness ===== +
- +
-  echo "vm.swappiness=10" | sudo tee '/etc/sysctl.d/99-swappiness.conf' > '/dev/null' && cat '/etc/sysctl.d/99-swappiness.conf' +
- +
-  cat '/sys/fs/cgroup/memory/memory.swappiness' +
- +
-===== systemd ===== +
- +
-  * Log data is stored in volatile storage +
-  * Max log file sizes of ''50MB'' +
- +
-  sudo mkdir -p '/etc/systemd/journald.conf.d' && echo -e "[Journal]\nStorage=volatile\nSystemMaxUse=50M\nRuntimeMaxUse=50M" | sudo tee '/etc/systemd/journald.conf.d/logging.conf' '/dev/null' && cat '/etc/systemd/journald.conf.d/logging.conf'+
  
 ===== TRIM ===== ===== TRIM =====
Line 524: Line 499:
   * See [[notes:wine|Wine]]   * See [[notes:wine|Wine]]
  
-====== Computer-specific ======+====== Xorg ======
  
-===== Nightwane =====+  * See [[notes:xorg.conf_snippets|xorg.conf Snippets]] for more configurations
  
-==== Volume ==== +===== Spinesnap =====
- +
-**** +
- +
-  alsamixer +
- +
-==== Fan Control ==== +
- +
-  * Expects an ASUS KCMA-D8 motherboard +
-  * If OpenBMC is figured out, this may be superseded +
-  * :!: Answer ''yes'' to all ''sensors-detect'' prompts and reboot for ''fancontrol'' to run +
- +
-  sudo dnf install 'lm_sensors' && sudo sensors-detect && sudo -e '/etc/fancontrol' && sudo systemctl enable 'fancontrol' +
- +
-<code> +
-INTERVAL=10 +
-DEVNAME=/sys/class/hwmon/hwmon6=w83795g +
- +
-FCTEMPS=/sys/class/hwmon/hwmon6/device/pwm2=/sys/class/hwmon/hwmon6/device/temp8_input +
-FCFANS=/sys/class/hwmon/hwmon6/device/fan1_input+/sys/class/hwmon/hwmon6/device/fan2_input +
- +
-MINTEMP=/sys/class/hwmon/hwmon6/device/pwm2=50 +
-MAXTEMP=/sys/class/hwmon/hwmon6/device/pwm2=60 +
- +
-MINSTART=/sys/class/hwmon/hwmon6/device/pwm2=4000 +
-MINSTOP=/sys/class/hwmon/hwmon6/device/pwm2=0</code> +
- +
-==== Custom Resolution ====+
  
-=== Generate Modeline ===+==== NVIDIA ====
  
-  * 4k@60Hz CVT-RB +  * Sets pre-rendered frames from the default to 1 
-  * Fixes unstable HDMI at 4K@60Hz, and overly-bright colors on DisplayPort +  * Apparently reduces CPU usage for desktop environments rendered with the NVIDIA GPU 
-  * :!: The ''grep'' here confirms the expected Modeline ((if grep reports nothing, use whatever is reported instead)) +  * May smooth-out framerates when turning the camera in FFXIV
-  * :!: This cannot be used on Wayland currently +
-  * :!: This expects ''amdgpu'' DDX driver to be used ((''modesetting'' has a 4K RB resolution without any settings on Xorg))+
  
-  cvt --verbose --reduced '3840' '2160' '60| grep 'Modeline "3840x2160R"  533.00  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync'+  echo 'export __GL_MaxFramesAllowed=1| sudo tee '/etc/profile.d/nvidia-custom.sh'/dev/null&& cat '/etc/profile.d/nvidia-custom.sh'
  
-=== xorg.conf Snippet ===+  sudo -e '/etc/profile.d/nvidia-custom.sh'
  
-  * :!: ''HDMI-A-0'' is used for the ''Identifier'' with the HDMI port on ''amdgpu''+==== intel + nouveau ====
  
-  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'+  sudo dnf install xorg-x11-drv-intel xorg-x11-drv-nouveau -y && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'
  
 <code> <code>
-Section "Monitor" 
-    Identifier      "HDMI-A-0" 
-    Modeline "3840x2160R"  533.00  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync 
-    Option          "PreferredMode" "3840x2160R" 
-EndSection</code> 
- 
-===== Spinesnap ===== 
- 
-  * :!: Using an AMD eGPU with a display attached doesn't seem to work reliably if the ''intel'' driver is being used ((for a very specific scenario, the Intel iGPU has to be active, manually set to use the ''intel'' Xorg DDX driver, an AMD GPU plugged into a Thunderbolt eGPU using the ''amdgpu'' Xorg DDX driver, with a 4K display plugged into it via HDMI)) 
-  * TODO: If ''intel'' offers no obvious benefit, remove the ''OutputClass'' section for it and let it default to ''modesetting'' 
- 
-  sudo dnf install xorg-x11-drv-intel xorg-x11-drv-amdgpu -y && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf' 
- 
-<code> 
-Section "Monitor" 
-    Identifier      "HDMI-A-0" 
-    Modeline "3840x2160R"  533.00  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync 
-    Option          "PreferredMode" "3840x2160R" 
-EndSection 
- 
 Section "OutputClass" Section "OutputClass"
     Identifier  "Intel Graphics"     Identifier  "Intel Graphics"
     MatchDriver "i915"     MatchDriver "i915"
-    Driver      "intel" +    Driver "intel" 
-    Option      "DRI"       "3" +    Option "DRI"       "3" 
-    Option      "TearFree"  "0"+    Option "TearFree"  "0"
 EndSection EndSection
  
 Section "OutputClass" Section "OutputClass"
-    Identifier  "AMD Graphics" +    Identifier  "NVIDIA Graphics" 
-    MatchDriver "amdgpu+    MatchDriver "nouveau
-    Driver      "amdgpu+    Driver "nouveau
-    Option      "DRI"       "3+    Option "DRI"       "3"
-    Option      "TearFree"  "0" +
-EndSection</code> +
- +
-===== Deep Color ===== +
- +
-  * The lack-of quotes around ''30'' is intentional and required syntax +
-  * :!: This may cause minor issues with programs not expecting 30-bit color ((GpuTest's fur ring doesn't render right, RS's NXT client's splash screen is gray)) +
-  * :!: This can cause games in Wine to not start under some circumstances ((FFXIV crashes on start-up due to a DirectX error)) +
- +
-  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf' +
- +
-<code> +
-Section "Screen" +
-    Identifier      "Deep Color Screen" +
-    DefaultDepth    30 +
-EndSection</code> +
- +
-===== Graphics xorg.conf ===== +
- +
-==== intel ==== +
- +
-  sudo dnf install 'xorg-x11-drv-intel' -y && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf' +
- +
-<code> +
-Section "OutputClass" +
-    Identifier  "Intel Graphics" +
-    MatchDriver "i915" +
-    Driver      "intel" +
-    Option      "DRI"       "3" +
-    Option      "TearFree"  "0" +
-EndSection</code> +
- +
-==== amdgpu ==== +
- +
-  * :!: ''ShadowPrimary'' set to ''on'' caused GNOME not to log-in +
- +
-  sudo dnf install 'xorg-x11-drv-amdgpu' -y && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf' +
- +
-<code> +
-Section "OutputClass" +
-    Identifier  "AMD Graphics" +
-    MatchDriver "amdgpu" +
-    Driver      "amdgpu" +
-    Option      "DRI"       "3" +
-    Option      "TearFree"  "0" +
-EndSection</code> +
- +
-==== radeon ==== +
- +
-  * Expects pre-SI GPUs ((HD6000 series and lower, and non-SI HD7000 series)) +
-  * For SI, CIK, and newer GPUs, use ''amdgpu'', along with enabling ''si_support'' and ''cik_support'' respectively for the ''amdgpu'' kernel module ((see ''modinfo -p amdgpu'')) +
-  * :!: This was changed to a new syntax and untested as of 2019/08/23 +
- +
-  sudo dnf install 'xorg-x11-drv-ati' -y && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf' +
- +
-<code> +
-Section "OutputClass" +
-    Identifier  "AMD Graphics" +
-    MatchDriver "radeon" +
-    Driver      "radeon" +
-    Option      "DRI"               "3" +
-    Option      "SwapbuffersWait"   "0" +
-    Option      "TearFree"          "0" +
-    Option      "AccelMethod"       "EXA"+
 EndSection</code> EndSection</code>
  
Line 679: Line 541:
 ==== Environment Variables ==== ==== Environment Variables ====
  
-  * Enables hardware acceleration and use of WebRenderer+  * Enables hardware accelerationuse of WebRenderer, and smooth-scrolling
   * :!: WebRenderer requires the previous ''MOZ_ACCELERATED'' variable as well   * :!: WebRenderer requires the previous ''MOZ_ACCELERATED'' variable as well
  
-  echo -e 'export MOZ_ACCELERATED=1\nexport MOZ_WEBRENDER=1' | sudo tee '/etc/profile.d/firefox-hwaccel.sh' > '/dev/null' && cat '/etc/profile.d/firefox-hwaccel.sh'+  echo -e 'export MOZ_ACCELERATED=1\nexport MOZ_WEBRENDER=1\nexport MOZ_USE_XINPUT2=1' | sudo tee '/etc/profile.d/firefox-hwaccel.sh' > '/dev/null' && cat '/etc/profile.d/firefox-hwaccel.sh' 
 + 
 +  sudo -e '/etc/profile.d/firefox-hwaccel.sh'
  
 ==== Default Profile ==== ==== Default Profile ====
Line 700: Line 564:
 ==== user.js ==== ==== user.js ====
  
-  * Last updated: 2019/04/05 +  * Last updated: 2019/11/30
-  * :!: IPv6 is disabled in order to prevent WebRTC from grabbing an IPv6 address even though NetworkManager has it disabled... +
-  * :!: ''media.peerconnection.enabled'' disables WebRTC+
  
   rm -fv '/tmp/user.js' && nano '/tmp/user.js'   rm -fv '/tmp/user.js' && nano '/tmp/user.js'
  
 <code> <code>
 +/*********************
 + * Hardware-specific *
 + *********************/
 +
 +user_pref("layout.frame_rate", 144);
 +
 /*********** /***********
  * General *  * General *
Line 723: Line 591:
 user_pref("mousewheel.min_line_scroll_amount", 40); user_pref("mousewheel.min_line_scroll_amount", 40);
 user_pref("browser.tabs.drawInTitlebar", true); user_pref("browser.tabs.drawInTitlebar", true);
 +user_pref("network.standard-url.escape-utf8", false);
 +
 +/***********
 + * Privacy *
 + ***********/
 +
 +user_pref("security.tls.version.min", 2);
 +user_pref("security.ssl.require_safe_negotiation", true);
 +user_pref("security.ssl.treat_unsafe_negotiation_as_broken", true);
 +user_pref("security.OCSP.require", true);
 +user_pref("security.cert_pinning.enforcement_level", 2);
 +user_pref("security.ssl3.rsa_des_ede3_sha", false);
 +user_pref("security.ssl.enable_false_start", false);
  
 /******* /*******
Line 730: Line 611:
 user_pref("security.webauth.u2f", true); user_pref("security.webauth.u2f", true);
  
 +/*******
 + * END *
 + *******/</code>
 +
 +=== VPN ===
 +
 +  * :!: Add if using a VPN in order to prevent local IP address leaking
 +  * :!: IPv6 is disabled in order to prevent WebRTC from grabbing an IPv6 address even though NetworkManager has it disabled...
 +  * :!: ''media.peerconnection.enabled'' disables WebRTC
 +
 +<code>
 /*********** /***********
  * Privacy *  * Privacy *
Line 735: Line 627:
  
 user_pref("network.dns.disableIPv6", true); user_pref("network.dns.disableIPv6", true);
-user_pref("media.peerconnection.enabled", false); +user_pref("media.peerconnection.enabled", false);</code>
- +
-/******* +
- * END * +
- *******/</code>+
  
 ==== Apply Settings ==== ==== Apply Settings ====
Line 937: Line 825:
  
   sudo touch '/.autorelabel'   sudo touch '/.autorelabel'
- 
  
 ===== GNOME Monitors Reset ===== ===== GNOME Monitors Reset =====
Line 978: Line 865:
  
   /fullscreen /benchmark /benchmark_duration_ms='15000'   /fullscreen /benchmark /benchmark_duration_ms='15000'
 +
 +== NVIDIA Optimus ==
 +
 +****
 +
 +  wget -O '/tmp/GpuTest_Linux_x64.zip' 'http://www.ozone3d.net/gputest/dl/GpuTest_Linux_x64_0.7.0.zip' && unzip '/tmp/GpuTest_Linux_x64.zip' -d '/tmp' && cd '/tmp/GpuTest_Linux_x64_'* && __NV_PRIME_RENDER_OFFLOAD='1' __GLX_VENDOR_LIBRARY_NAME='nvidia' ./GpuTest /test='fur' /width='1280' /height='720'
  
 === FHD === === FHD ===
/var/www/wiki/data/pages/distros/fedora_workstation_gnome.txt · Last modified: 2024/04/07 15:21 by Sean Rhone