Skip to content

Validating

The validate subcommand of lsfg-vk-cli checks the configuration file for errors and checks your installation of lsfg-vk. This can be useful for debugging issues with lsfg-vk or ensuring that your configuration is set up correctly.

Validating the configuration file

Simply run the validate command without any arguments:

$ lsfg-vk-cli validate
Validating configuration file: "/home/pancake/.config/lsfg-vk/conf.toml"
The configuration file is valid.

Your configuration:
  DLL override: (none)
  Allow half precision: true
  Log level: Info
  Profiles:
  - Name: 4x FG / 85% [Performance]
    Active in: vkcube vkcubepp
    Pacing mode: Vsync
    Multiplier: 4
    Flow scale: 0.85
    Performance mode: true
  - Name: 2x FG / 100%
    Active in: GenshinImpact.exe 620
    Pacing mode: Vsync
    Multiplier: 20
    Flow scale: 0.5
    Performance mode: true

Should there be any errors in the configuration file, they will be displayed in the output:

$ lsfg-vk-cli validate
Validating configuration file: "/home/pancake/.config/lsfg-vk/conf.toml"
Unknown key in profile section: acbbtive_in

Legacy, duplicate and missing files

The validate command will also check for legacy, duplicate and missing files on your system.

Legacy files are files left over from a previous installation of lsfg-vk. These files should be deleted to ensure no conflicts with the main installation:

$ lsfg-vk-cli validate
It looks like you have files from older versions of lsfg-vk on your system. You should probably delete them:
- /home/pancake/.local/lib/liblsfg-vk.so

Should you have accidentally installed lsfg-vk in multiplie locations, the validate command will also warn you about duplicate files:

It looks like you have lsfg-vk installed in multiple locations. You should probably delete them and reinstall lsfg-vk properly:
- /home/pancake/.local/lib/liblsfg-vk-layer.so
  - /usr/lib/liblsfg-vk-layer.so
- /home/pancake/.local/share/vulkan/implicit_layer.d/VkLayer_LSFGVK_frame_generation.json
  - /usr/share/vulkan/implicit_layer.d/VkLayer_LSFGVK_frame_generation.json

And finally, should any files be missing from your installation, the validate command will also warn you about that:

$ lsfg-vk-cli validate
It looks like you are missing some files from lsfg-vk v2. You should probably reinstall lsfg-vk properly:
- liblsfg-vk-layer.so

Listing installed files

If you want to uninstall lsfg-vk, you can append -l to the command to list all manually installed files. This will allow you to delete them manually:

$ lsfg-vk-cli validate -l
Installed files:
- /home/pancake/.local/lib/liblsfg-vk-layer.so
- /home/pancake/.local/lib/liblsfg-vk-layer.x86.so
- /home/pancake/.local/share/vulkan/implicit_layer.d/VkLayer_LSFGVK_frame_generation.json
- /home/pancake/.local/share/vulkan/implicit_layer.d/VkLayer_LSFGVK_frame_generation.x86.json
- /home/pancake/.local/share/applications/gay.pancake.lsfg-vk-ui.desktop
- /home/pancake/.local/share/icons/hicolor/256x256/apps/gay.pancake.lsfg-vk-ui.png
- /home/pancake/.local/bin/lsfg-vk-cli
- /home/pancake/.local/bin/lsfg-vk-ui

If you wish to uninstall lsfg-vk, delete these files

Please note the -l command does nothing when a package manager was used to install lsfg-vk. In that case, you should use your package manager to uninstall lsfg-vk instead of deleting the files manually.