Solved Issues
- Graphics Issues
- Power Management Issues
- HandleLidSwitch status being ignored
- Closing laptop lid causes laptop to suspend (want it do nothing)
- fish issues
Graphics Issues
Weird green and blue artifacts after opening and closing laptop lid
OS: Fedora 40 (Gnome)
Hardware: Asus ROG Laptop, NVIDIA graphics
Issue:
Was trying to get my laptop to "ignore" on lid switch status. However, after editing the logind.conf, when I would close and open my laptop lid, the screen would go black and there were weird artifacts. The computer was unresponsive. No clicking or pressing of any keys would get it to go back to the login screen. Only a hard reset would work.
Solution:
Found on: https://discussion.fedoraproject.org/t/black-screen-after-fresh-install-of-f39/108675/2
- Change the boot setting
- Boot into boot menu
- Press the
ekey - On the line that begins with
linuxaddnomodesetat the end of the line
- Install NVIDIA drivers
sudo dnf install akmods
- Enroll the akmod
- Boot into the firmware menu
- Enable secure boot
- Read through
/usr/share/doc/akmods/README.secureboot- All
mokutilscalls need to be run assudo - Run
/usr/sbin/kmodgencato generate certificate- Should be in the directories
/etc/pki/akmods/certsand/etc/pki/akmods/private/
- Should be in the directories
- Run
sudo mokutil --import /etc/pki/akmods/certs/public_key.der - Reboot
- Enroll the MOK
- Confirm it was enrolled
sudo mokutil --test-key /etc/pki/akmods/certs/public_key.der
- All
Power Management Issues
HandleLidSwitch status being ignored
OS: Fedora 40 (GNOME)
Hardware: Asus ROG, NVIDIA graphics
Issue:
I edited logind.conf to ignore HandleLidSwitch but every time, closing the lid would log me out of the session.
Solution:
See Weird green and blue artifacts after opening and closing laptop lid
Closing laptop lid causes laptop to suspend (want it do nothing)
OS: Fedora 40 (GNOME)
Hardware: Asus ROG, NVIDIA graphics
Issue:
When I close the laptop lid, I don't want anything to happen. When I open it, the screen should be the same as when I closed it.
Solution:
Edit /etc/systemd/logind.conf so that it contains the following:
LidSwitchIgnoreInhibited=yes
HandleLidSwitch=ignore
HandleLidSwitchDocked=ignore
HandleLidSwitchExternalPower=ignore
fish issues
Add environment variable in fish
Inside ~/.config/fish/config.fish add the following:
set -gx <ENV_VAR_NAME> <VALUE>
Add to PATH in fish
Run the command:
fish_add_path -p <PATH>
Check the path: