Skip to content

zty199/dde-dock-switch_graphics_card

 
 

Repository files navigation

dde-dock-graphics-plugin (forked from mywhat/DDESwitchCard)

en-US zh-Hans

Original BBS Post:切换显卡插件

Introduction

This dde-dock plugin is originally written by chanforever, designed for quick access from dde-dock to switch between different graphics cards to run X11 server.

For now only support Intel IGPU + NVIDIA DGPU laptops with internal display connected to IGPU.

Laptops with internal display connected to DGPU, or those with DDG(Dual-Direct GFX) technology won't need this plugin.

  • AMD APU + NVIDIA DGPU laptops are theortically supported(?)

    Ofcourse it only shows Intel graphics in dde-dock, but since using modesetting module in xorg.conf, APU should work......

    If you switch to Intel graphics and xserver failed to start, you can run /opt/apps/dde-dock-graphics-plugin/files/bin/Rescue.sh in tty2 to revert modifications in /etc/X11/xorg.conf and /etc/lightdm/lightdm.conf.

Dependencies

build-deps

  • cmake
  • debhelper
  • qtchooser
  • qtbase5-dev
  • qttools5-dev
  • libqt5svg5-dev
  • libdtkcore-dev
  • libdtkwidget-dev
  • dde-tray-loader-dev

Use the following command to install required dependencies:

$ sudo apt build-dep .

runtime-deps

  • libqt5svg5
  • dde-tray-loader
  • dde-application-manager
  • mesa-utils
  • pkexec
  • zenity

Installation

Make sure you have installed all dependencies.

Use the following command to build binary package:

$ dpkg-buildpackage -Zxz -rfakeroot -uc -us -b -j$(nproc)

The binary package will be generated in parent directory.

Credits


References

About

A simple dde-dock plugin for switching graphics card

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 61.4%
  • Shell 24.8%
  • CMake 13.8%