Giter Site home page Giter Site logo

digitalsanity / lenovo-p51-display-management Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rdoursenaud/lenovo-p51-display-management

0.0 1.0 0.0 8 KB

Personal scripts and configuration to manage Lenovo P51 workstation multiple display options

Shell 100.00%

lenovo-p51-display-management's Introduction

Lenovo P51 Display Management

Foreword

This configuration is my personal configuration for running an Arch Linux based worstation with i3 started via an xinitrc (no display manager), a french bepo keymap, the full HD laptop touch screen and 3 full HD screens connected via HDMI, DVI-D and VGA to the Lenovo worstation dock.

The provided .Xmodmap interverts page up/page down with home/end to match the configuration I'm used to on my TypeMatrix keyboard when in single laptop mode (ie. when I use the laptop's keyboard). You probably don't want it.

You will have to adapt this configuration to your needs!

The multiple monitors configuration uses nVidia PRIME, not Bumblebee.

Setup

Pre-requisites

  • Install the latest proprietary nVidia drivers.
  • Install bbswitch from the Bumblebee project.
  • Use Xorg server. Wayland not tested.

Installation

  • Copy the files in etc to your systems /etc directory.
  • Copy the files in home to your users ~ directory.
  • Copy the files in scripts to a convenient place for you to launch them. I keep mine in ~/bin.

Optional

For the best experience and power savings:

  • Add the modules i915, nvidia, nvidia_modeset, nvidia_uvm and nvidia_drm to your initcpio.
  • Add the files /etc/modprobe.d/i915.conf and /etc/modprobe.d/nvidia_drm.conf to your initcpio.

Customization

Edit all the files provided in home to fit your needs.

Usage

With the X server stopped. Use the setx.sh script to switch between configurations.

Configurations provided:

  • intel: nVidia GPU disabled. Laptop screen only.
  • nvidia-single: nVidia GPU enabled. Laptop screen only.
  • nvidia: nVidia GPU enabled. Laptop screen + 3 external screens connected to the Lenovo Workstation Dock.

lenovo-p51-display-management's People

Contributors

rdoursenaud avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.