SteamDeck_rEFInd/GUI/README.md

87 lines
6.8 KiB
Markdown
Raw Normal View History

2023-02-08 12:24:31 +08:00
## **GUI README**
2023-02-08 12:24:00 +08:00
# **Installation**
2023-01-24 02:22:45 +08:00
2023-02-08 12:21:54 +08:00
To install the GUI, make sure that you've already set your `sudo` password and ensure that you are connected to the internet, then perform these steps.
2023-01-24 02:22:45 +08:00
2023-02-08 00:32:30 +08:00
```
git clone https://github.com/jlobue10/SteamDeck_rEFInd/
cd SteamDeck_rEFInd
chmod +x install-GUI.sh
./install-GUI.sh
```
2023-02-08 03:21:24 +08:00
This GUI installation will take care of installing all of the necessary dependencies to successfully compile the GUI from source, then compile the GUI and ask whether or not to place a shortcut on the desktop. If the GUI compile fails for some reason, you will get a pop-up notifying you of that error. Something in your installation did not finish correctly if you get this error pop-up. Common errors include a dependency failing to install, or your `pacman` repositories from your config file are pointing to something other than `*-rel`. This installation method has been extensively tested on the Stable branch of SteamOS. Many installation errors can be solved by just re-running the `install-GUI.sh` script. For more in-depth troubleshooting, if it's required, feel free to post an issue.
2023-01-24 02:23:24 +08:00
2023-02-08 03:21:24 +08:00
The dependencies that are installed by `pacman` are `base-devel glibc linux-api-headers qt5-base`. Additionally, the `hwinfo` package is installed because it is required by the code for the autodetecting of the SD card and/ or USB Windows installation options (`hwinfo` obtains this partition UUID information without `sudo` permissions).
2023-01-24 02:22:45 +08:00
2023-02-08 00:32:30 +08:00
A successful GUI installation will look similar to this from your Konsole output.
2023-01-24 02:22:45 +08:00
2023-02-08 00:32:30 +08:00
![GUI_compile_success](https://user-images.githubusercontent.com/9971433/217302271-5192bae7-3fea-4ee1-86f0-12bb9e91797b.png)
The GUI setup installs all of the necessary files to the `/home/deck/.SteamDeck_rEFInd/GUI/` folder. Inside this folder, you will also find the `background.png, os_icon1.png, os_icon2.png, os_icon3.png, and os_icon4.png` files. These 5 files will also be copied to the `/esp` partition when the 'Install Config' button is pressed (in addition to the `refind.conf` file).
2023-02-08 03:21:24 +08:00
If this is your first time installing rEFInd on your Steam Deck, you will want to press the 'Install rEFInd' button. I recommend leaving `Pacman` selected from the drop down for this installation, as `pacman` is the preferred installation source. A Sourceforge installation source script is also provided, in case there is a `pacman` repository issue, or if someone just prefers to not use `pacman` for the rEFInd installation portion. If you already have a functional rEFInd setup, you can safely skip this step (in most instances).
2023-02-08 00:32:30 +08:00
2023-02-08 03:21:24 +08:00
The Line edit text boxes are read-only and you must use the combo box file dialogs (browse buttons) to change background and icon PNG files (at least for now). This simplifies the code, as it requires minimal to no error checking when selecting the PNG files for the background or OS icons.
2023-02-08 00:32:30 +08:00
2023-02-08 03:21:24 +08:00
The background should be a 1,280x800 PNG file. Please use a program like GIMP to size appropriately and export as a PNG file. The icons should be 128x128 PNGs. Other resolutions may also be unofficially supported, but I do not recommend it, and results may vary. The images are restricted to PNG format because those tend to play nicely with rEFInd, whereas other formats tend to be hit and miss.
2023-02-08 00:32:30 +08:00
The four boot options (3 and 4 are optional) represent the icons as they will appear on the bootloader screen from left to right.
2023-02-08 03:21:24 +08:00
Once the boot options, background and OS icons are chosen (can be left blank for default background and icons) click 'Create Config.' You can manually check (and edit) the config file if you want located at `/home/deck/.SteamDeck_rEFInd/GUI/refind.conf` . If you change the background or OS icons, please click the 'Create Config' button again, as it copies those files to the 'staging area' for when 'Install Config' is clicked and run (requires `sudo` password to install files to the `/esp` partition).
2023-02-08 00:32:30 +08:00
The 'Use Firmware_bootnum' option is a SteamOS only option that requires the SteamOS EFI entry to be present when the config file is created. This can be checked with `efibootmgr`. This option was added so that the SteamOS icon is visible between the handoff of rEFInd to SteamOS loading (otherwise it's a blank screen).
2023-01-24 05:50:28 +08:00
2023-01-24 02:22:45 +08:00
Feedback is welcome. I have tested this thoroughly enough to release it. Enjoy!
2023-01-25 23:28:40 +08:00
![rEFInd_GUI](https://user-images.githubusercontent.com/9971433/214604232-f97f9b91-9736-4cfb-95b2-cb2b78546760.png)
GUI configuration example (my default config for my personal Steam Deck)
2023-02-08 00:32:30 +08:00
2023-02-08 12:21:54 +08:00
# **Installation issues**
One common installation issue revolves around an error with your Steam Deck's `pacman` repositories. I did not personally encounter this error in any of my testing, but here is a screenshot provided to me by a user who experienced a `pacman` error with the GUI installation. In this case, the `pacman` for this particular Steam Deck was trying to access the beta repositories and resulted in an error (as seen below).
![GUI_pacman_install_error](https://user-images.githubusercontent.com/9971433/217431768-4ef817eb-b41e-47c7-a61e-69409f8e37ed.jpg)
There is a fairly simple fix for this if anyone else is experiencing this. Basically fix your `pacman` config file. You can do this by opening up a Konsole command line and performing:
```
sudo steamos-readonly disable
sudo nano /etc/pacman.conf
```
The `/etc/pacman.conf` file in the Steam Deck from the example screenshot will have these following entries.
```
[jupiter-beta]
[holo-beta]
[core-beta]
[extra-beta]
[community-beta]
[multilib-beta]
```
These lines should be changed from beta to release like this:
```
[jupiter-rel]
[holo-rel]
[core-rel]
[extra-rel]
[community-rel]
[multilib-rel]
```
2023-02-08 12:24:00 +08:00
then press `Ctrl+x` followed by `y` and then `Enter` to save your changes and exit. Retry the GUI installer after this change and it **_SHOULD_** be successful, if this was your only issue.
2023-02-08 12:21:54 +08:00
2023-02-08 01:22:17 +08:00
# **Optional**
2023-02-08 03:21:24 +08:00
If you want a quick way to make changes to your rEFInd configuration from SteamOS' Game mode, I'd recommend setting up the Plasma Nested Session and adding its shortcut to Steam. Please see this [website](https://gist.github.com/davidedmundson/8e1732b2c8b539fd3e6ab41a65bcab74) for details. Once you've launched the nested Plasma session, open the rEFInd GUI, make changes, install those config changes and then make sure to click the 'Return to Gaming Mode' shortcut from the desktop to properly leave the nested Plasma session. I've tested this, and it works well.
2023-02-08 01:22:17 +08:00
# **Links and Recognition**
2023-02-08 00:32:30 +08:00
Please review this [video tutorial by Deck Wizard](https://www.youtube.com/watch?v=zEpcBWX9K_o) to see if it answers any questions that you may have before posting an issue.
2023-02-08 00:37:18 +08:00
Also, thanks again to the [original rEFInd developer](https://www.rodsbooks.com/refind/), who this GUI customization software would not be possible without. My script and GUI just make rEFInd installation and customization easy for the Steam Deck; rEFInd itself performs the complicated bootloader tasks.