Git Product home page Git Product logo

thinkpad-p51-linux's Introduction

Thinkpad-P51-Linux

Scripts that I made for getting some functions of the Thinkpad P51 working under Linux. I use Arch Linux btw, but the scripts should work on other distros as well. I use KDE, so you may need to change a few things for other DEs (mostly things like 'konsole' to your own terminal software of choice, etc.)

File Structure

I will upload the scripts according to the directories I have them installed in. I don't use relative file paths, but I will add a comment on the end of the lines that need to be changed for your file path.

Scripts

  1. ~/Desktop/StartExtDP.sh & ~/Scripts/ExternalDisplay/* - Used for allowing the laptop to use it's external video outputs while using Bumblebee (An NVIDIA Hybrid Graphics Manager Program). Operating steps:

    1. First plug in the external display into the laptop (either with HDMI or DP)
    2. Run the StartExtDP.sh script after that's done
    3. Using Fn+F7 you can select the way the external screen will function. (If using Arch with KDE, you will need the kscreen package for it, most other distros have their DE's screen manager installed by default).
    4. If you want to exit, you can just go into the terminal it opened, and press Ctrl+C.
  2. ~/Script/Thunderbolt.sh & /lib/systemd/system/startthunderbolt.service - Used for enabling Thunderbolt capability on the laptop. This script will need to run at every startup, so we will add a service to manage it. Installation steps:

    1. Copy the /lib/systemd/system/startthunderbolt.service into the same (/lib/systemd/system/) directory on your laptop.
    2. Use the following command to set the right permissions: sudo chmod 644 /lib/systemd/system/startthunderbolt.service
    3. Use the following command to start the service: sudo systemctl start startthunderbolt.service
    4. Restart the laptop and run sudo systemctl status startthunderbolt.service to check if it works.

    Reminder: Thunderbolt being enabled may result in a bit lower battery life even if it isn't used, that's how force power works.

thinkpad-p51-linux's People

Stargazers

 avatar  avatar

Watchers

 avatar  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.