egpu-switcher

🖥🐧 Setup script for eGPUs in Linux (X.Org)

GPL-3.0 License

Stars
569

Bot releases are visible (Hide)

egpu-switcher - 0.19.0 Latest Release

Published by github-actions[bot] over 1 year ago

✨ Features

  • Option to disable modesetting via --nomodesetting flag or egpu.nomodesetting configuration (#95)

🐞 Fixes

  • Don't print debug outputs without --verbose flag (#100)
  • Fix directory mode for /etc/egpu-switcher, its contents could not be listed w/o root (#102)
  • Re-generate X.Org config on switch even if it already exists

Full Changelog: https://github.com/hertg/egpu-switcher/compare/0.18.2...0.19.0

egpu-switcher - 0.18.2

Published by github-actions[bot] over 1 year ago

🐞 Fixes

  • Updated dependencies for good measure

Note This theoretically fixes CVE-2022-32149, please note that egpu-switcher was not affected by this DoS vulnerability as it neither interacts with the network, nor does it parse any HTTP Accept-Language headers.

egpu-switcher - 0.18.1

Published by hertg about 2 years ago

🐞 Fixes

  • Fix issue with PCI devices that are connected on a >16bit PCI domain (#91)
egpu-switcher - 0.18.0

Published by github-actions[bot] about 2 years ago

✨ What's changed

The whole script has been rewritten in golang (#85) to allow for easier maintainability than the previous bash script. Not only has egpu-switcher been rewritten, but also some internal concept changes were made and additional features have been added.

💥 Breaking Changes

  • The config file format has changed in a non backwards-compatible way and it can't be migrated automatically. Please re-run egpu-switcher config if you are updating from an earlier version.
  • The egpu-switcher remove command has been dropped for now.

🎉 Features

  • The detection interval and timeout can now be configured in the configuration file (#79)
  • Allow switch hook scripts to be configured (#73)

🐞 Fixes

  • GPUs are now identified by Vendor/Product instead of the PCI Id they were assigned (#48)
  • GPUs on non-zero PCI domains are working now (#69)
  • The graphics driver used is now directly taken from what sysfs reports instead of the buggy driver assumptions made in the old script (#81)

📓 Technical Changes

  • The X.org config is now in /etc/X11/xorg.conf.d/99-egpu-switcher.conf instead of /etc/X11/xorg.conf (#72)
  • Additionally to the egpu-switcher-git AUR package, more stable alternatives pointing to the latest release are now available: egpu-switcher and egpu-switcher-bin
  • Requirements for bash and pciutils have been dropped
egpu-switcher - 0.17.0

Published by hertg over 3 years ago

Fixes

  • Fix some timing issues: if egpu is not connected on bootup, probe again every 500ms and give up after a few seconds instead of immediately (PR #52)
  • Fix "unbound variable" error when trying to switch to disconnected egpu (PR #53)
  • Remove previously installed egpu-switcher manpages on "make install" to prevent unnecessary user prompt (PR #54)
  • Fix issue in "if" statement when a user has customized their "Driver" part in xorg.conf.egpu (PR #57)
egpu-switcher - 0.16.0

Published by hertg about 4 years ago

Fixes

  • egpu-switcher no longer recognizes non-graphics devices as an eGPU (#49, thanks to @toumorokoshi)
    This fixes a problem where devices like Thunderbolt Docks were recognized as the eGPU if they get connected to the same PCI Bus.
egpu-switcher - 0.15.0

Published by hertg about 4 years ago

Features

  • Add egpu-switcher remove method to remove eGPU without a reboot (experimental) (see PR #44, thanks to @ewagner12)
  • Updated manpages

Fixes

  • Update systemd-service, hopefully fixing some timing issues on bootup
    • Changed WantedBy=multi-user.target to WantedBy=graphical.target
    • Add After=bolt.service
  • Remove artificial delay from switch method
egpu-switcher - 0.14.0

Published by hertg over 4 years ago

No Code Changes

  • This release has no code changes since 0.13.1, the version had to be increased due to a publishing error on launchpad
egpu-switcher - 0.13.1

Published by hertg over 4 years ago

Fixes

  • Fix bug in display detection which prevented to switch to the eGPU with AMD cards (thanks to ewagner12 for the fix) (closes #34, closes #38)
  • Add "not recommended" hint to the "define a specific internal GPU" setup step
egpu-switcher - 0.13.0

Published by hertg over 4 years ago

Fixes

  • Prevent error on cleanup if setup hasn't been executed (see #25)
  • Remove unnecessary console print that may confuse users (see #29)
egpu-switcher - 0.12.0

Published by hertg almost 5 years ago

Features

  • Better GPU detection with lspci -d (see #23)

Fixes

  • Prevent error on egpu-switcher clean command (see #24)
egpu-switcher - 0.11.1

Published by hertg almost 5 years ago

Breaking changes

  • Removal of nvidia-xconfig method for detection of GPUs. lspci is now used everywhere as it works for NVIDIA and AMD GPUs (see #18).
    This only affects you if you explicitely use it in one of your own scripts, lspci was already the default option for all methods.

Features

  • It's no longer required to specify the internal GPU (but still possible), because that caused trouble in some situations. It's overall preferred to let X-Server figure it out themselves what GPU to use, if no EGPU is connected. (see #9)
  • Save the user configuration (internal/external GPU) to a config-file at /etc/egpu-switcher/egpu-switcher.conf. This prevents the need to re-run the setup after every upgrade in the future. (see #5)
  • Introduction of the egpu-switcher config command to reconfigure which GPUs to use (This is needed because the setup command does no longer prompt the user if a configuration already exists).
  • Added manpages: man egpu-switcher finally returns something :)

Fixes

  • Changed egpu.service from Type=Simple to Type=oneshot as it fits better for its purpose. (see #16)
  • Refactored a lot of code in order to conform to bash scripting best-practices
  • Updated README
egpu-switcher - 0.11.0

Published by hertg almost 5 years ago

Do not install this version, the build failed because of a small error. Use 0.11.1 instead.

egpu-switcher - 0.10.2

Published by hertg about 5 years ago

egpu-switcher - 0.10.1

Published by hertg over 5 years ago

egpu-switcher - 0.9.0

Published by hertg over 5 years ago

egpu-switcher - 0.8.0

Published by hertg over 5 years ago

Package Rankings
Top 8.17% on Proxy.golang.org