Package Details: switcheroo-control 2.6-1

Git Clone URL: https://aur.archlinux.org/switcheroo-control.git (read-only, click to copy)
Package Base: switcheroo-control
Description: D-Bus service to check the availability of dual-GPU
Upstream URL: https://gitlab.freedesktop.org/hadess/switcheroo-control
Keywords: gnome gnome-shell
Licenses: GPL3
Submitter: grawity
Maintainer: grawity
Last Packager: grawity
Votes: 42
Popularity: 2.36
First Submitted: 2016-10-22 16:58 (UTC)
Last Updated: 2022-07-02 20:10 (UTC)

Latest Comments

yochananmarqos commented on 2022-07-02 20:59 (UTC) (edited on 2022-07-02 21:01 (UTC) by yochananmarqos)

@grawity: The tests are working again with no extra effort.

depends=('libgudev' 'python')
makedepends=('git' 'meson')
checkdepends=('python-dbusmock' 'umockdev')
check() {
  meson test -C build --print-errorlogs
}

Where are you getting the libxslt dependency from?

everyx commented on 2022-06-06 13:55 (UTC)

build failed

[6/6] Linking target src/switcheroo-control
==> Starting check()...
ninja: Entering directory `/home/everyx/.cache/yay/switcheroo-control/src/build'
ninja: no work to do.
1/6 Tests.test_dual_open_source                 FAIL            0.52s   exit status 1
>>> MALLOC_PERTURB_=186 top_builddir=/home/everyx/.cache/yay/switcheroo-control/src/build /usr/bin/python3 /home/everyx/.cache/yay/switcheroo-control/src/build/../switcheroo-control/tests/integration-test.py Tests.test_dual_open_source

2/6 Tests.test_dual_hotplug                     FAIL            0.54s   exit status 1
>>> top_builddir=/home/everyx/.cache/yay/switcheroo-control/src/build MALLOC_PERTURB_=25 /usr/bin/python3 /home/everyx/.cache/yay/switcheroo-control/src/build/../switcheroo-control/tests/integration-test.py Tests.test_dual_hotplug

3/6 Tests.test_dual_open_source_with_ttm        FAIL            0.54s   exit status 1
>>> top_builddir=/home/everyx/.cache/yay/switcheroo-control/src/build MALLOC_PERTURB_=106 /usr/bin/python3 /home/everyx/.cache/yay/switcheroo-control/src/build/../switcheroo-control/tests/integration-test.py Tests.test_dual_open_source_with_ttm

4/6 Tests.test_cmdline_tool                     FAIL            0.64s   exit status 1
>>> top_builddir=/home/everyx/.cache/yay/switcheroo-control/src/build MALLOC_PERTURB_=80 /usr/bin/python3 /home/everyx/.cache/yay/switcheroo-control/src/build/../switcheroo-control/tests/integration-test.py Tests.test_cmdline_tool

5/6 Tests.test_single_device                    FAIL            0.39s   exit status 1
>>> top_builddir=/home/everyx/.cache/yay/switcheroo-control/src/build MALLOC_PERTURB_=242 /usr/bin/python3 /home/everyx/.cache/yay/switcheroo-control/src/build/../switcheroo-control/tests/integration-test.py Tests.test_single_device

6/6 Tests.test_dual_proprietary                 FAIL            0.42s   exit status 1
>>> top_builddir=/home/everyx/.cache/yay/switcheroo-control/src/build MALLOC_PERTURB_=175 /usr/bin/python3 /home/everyx/.cache/yay/switcheroo-control/src/build/../switcheroo-control/tests/integration-test.py Tests.test_dual_proprietary



Ok:                 0   
Expected Fail:      0   
Fail:               6   
Unexpected Pass:    0   
Skipped:            0   
Timeout:            0   

Full log written to /home/everyx/.cache/yay/switcheroo-control/src/build/meson-logs/testlog.txt
==> ERROR: A failure occurred in check().
    Aborting...
 -> error making: switcheroo-control

yochananmarqos commented on 2022-05-22 17:19 (UTC)

@grawity: Just disable the tests, they fail anyway. Then you don't need any of the dbus packages to build.

Add this to prepare():

  # Disable tests
  sed -i '/subdir..test/d' meson.build

yochananmarqos commented on 2022-05-20 15:10 (UTC)

@grawity: It's actually python-dbusmock that's needed for the tests, see tests/integration-test.py.

abdulocracy commented on 2022-05-20 12:02 (UTC)

Please add dbus-python as a dependency. On a fresh system it fails to build otherwise.

Mr.Y commented on 2022-05-12 19:28 (UTC)

Hi, today I tried installing this package using yay but it returned this build error:

switcheroo-control/meson.build:1:0: ERROR: Unknown linker(s): [['gcc-ar'], ['ar'], ['gar']]
The following exception(s) were encountered:
Running "gar --version" gave "[Errno 2] No such file or directory: 'gar'"

Is it something related to the package, or just to my laptop? And, in the latter case, how can I fix it?

4censord commented on 2020-11-08 10:43 (UTC)

Hi, its missing systemd as a (build)dependency, it doesn't build in a clean changeroot otherwise.

dapolinario commented on 2020-05-02 08:24 (UTC) (edited on 2020-05-02 08:25 (UTC) by dapolinario)

@brunelli: According to documentation, packages from the base-devel group should not be added as dependencies. We must install them.

https://wiki.archlinux.org/index.php/PKGBUILD#makedepends

https://wiki.archlinux.org/index.php/PKGBUILD#checkdepends

brunelli commented on 2020-04-14 14:18 (UTC)

automake should also be added to makedepends (it's required by autogen.sh).

Unb0rn commented on 2020-03-08 18:59 (UTC)

I think git and libgudev should be added to makedepends. Otherwise it fails.

jmogens commented on 2018-04-16 18:04 (UTC)

@snqlby I see this issue when using the lightdm display manager, but not on GDM.

snqlby commented on 2018-03-18 22:04 (UTC)

Looks like it doesn't work correctly. I used sudo systemctl enable switcheroo-control but I need to activate this manually every boot.

switcheroo-control.service - Switcheroo Control Proxy service Loaded: loaded (/usr/lib/systemd/system/switcheroo-control.service; enabled; vendor preset: disabled) Active: inactive (dead) since Mon 2018-03-19 00:58:19 +03; 2min 54s ago Process: 503 ExecStart=/usr/bin/switcheroo-control (code=exited, status=0/SUCCESS) Main PID: 503 (code=exited, status=0/SUCCESS)

damian01w commented on 2018-01-09 21:10 (UTC) (edited on 2018-01-09 21:11 (UTC) by damian01w)

With this package installed on systems with dual-GPU, you can right-click on apps (while it's not running) in GNOME Shell's Activities Overview and choose "Launch using Dedicated Graphics Card" option.

Fedora 25 and later installs switcheroo-control by default.

Please, vote +1 to push this package into official repository.

Thanks

damian01w commented on 2018-01-09 21:10 (UTC)

With this package installed, you can right-click on apps (while it's not running) in GNOME Shell's Activities Overview and choose "Launch using Dedicated Graphics Card" option.

Fedora 25 and laterinstalls switcheroo-control by default.

Please, vote +1 to push this package into official repository.

Thanks

grawity commented on 2017-06-21 13:02 (UTC)

Installing base-devel, as https://wiki.archlinux.org/index.php/Arch_User_Repository#Getting_started recommends, will also get rid of that error.

commented on 2017-06-21 12:19 (UTC)

2017-06-21 Arch Linux If anyone have this error A failure occurred in prepare(). Aborting... sudo pacman -S pkg-config Will get rid of this error Thanks

ganlu commented on 2016-10-23 09:42 (UTC) (edited on 2016-10-23 09:46 (UTC) by ganlu)

I don't know how to test it, but it should be pushed into official repository since Gnome shell 3.24 will depend (partially?) on this for the feature: [url=https://bugzilla.gnome.org/show_bug.cgi?id=773117]Add a way to launch an app on the discrete GPU[/url]