Joshua Ye

Software Engineer | Drone Enthusiast | Linux Expert

Linux configuration solutions

Resizing Partition Process
  • Start and end causing issue for increasing partition side in the middle
  • New partition after sda3, copy sda3 data to sda4 (new) by mounting to new directories of disk and home and using cp command
  • Delete sda3 partition using cfdisk and reboot computer (to detect deleted partition)
  • Resize sda2 (root partition) into the now deleted sda3 space. Run sudo resize2fs /dev/sda2 to refresh system understanding of partition size
  • Match sda2 listed partition of df -H and lsblk
  • Mount sda4 and move files of /home/josh to /disk/home
  • Refresh permissions using chown -R josh:josh /home/josh
  • Do this while mounted to /mnt, using arch-chroot /mnt, run in sudo command
  • Unmount sda4 and delete using cfdisk
  • Unmount sda2 disks and reboot
Lenovo Not Activating After Sleep
  1. Open ‘Registry editor’
  2. Add the following to the directory HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power:
    • CsEnabled
    • PlatformAoAcOverride
  3. Reboot
Personal Recommendations
  • Recommend downloading Chrome over Chromium. Download from AUR using yay -S google-chrome
  • If Chrome is blurry, either:
    • Go to chrome:/flags and set ozone platform to ‘auto’ or ‘Wayland’
    • OR change display resolution in hyprland.conf
Additional Notes (Personal Preferences)
  • If modifying config file is not reflected in Hyprland (cd ./.<insert path here>). Often syntax issue. Try to refresh (). If cannot find issue, reinstall the config files. Download initial git repo in home/<user_name> and run ./set-hypr.
  • Make sure to edit the first hyprland.conf file, not the second.
  • If mess anything up, delete recently created partitions of EFI and ROOT. Start from scratch. Order matters, names different from videos.
  • Check for errors using <>
  • Mostly your fault, not hardware.
  • Scaling on Chrome. Don’t modify .desktop file (not super easy/might mess Chrome up). Instead, change resolution through .config file. Uncomment the eDBI file and comment the display = auto file (line 3 or).