# Solved 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](https://discussion.fedoraproject.org/t/black-screen-after-fresh-install-of-f39/108675/2)

1. Change the boot setting  
    
    - Boot into boot menu
    - Press the `e` key
    - On the line that begins with `linux` add `nomodeset` at the end of the line
2. Install NVIDIA drivers 
    - `sudo dnf install akmods`
3. Enroll the akmod 
    - Boot into the firmware menu
    - Enable secure boot
    - Read through `/usr/share/doc/akmods/README.secureboot`
        - All `mokutils` calls need to be run as `sudo`
        - Run `/usr/sbin/kmodgenca` to generate certificate 
            - Should be in the directories `/etc/pki/akmods/certs` and `/etc/pki/akmods/private/`
        - 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`

# 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](https://log.citrus.garden/books/solved-issues/page/weird-green-and-blue-artifacts-after-opening-and-closing-laptop-lid "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: