Coder Social home page Coder Social logo

pitop-shortcutkeys's People

Contributors

o355 avatar

Watchers

 avatar  avatar  avatar  avatar

pitop-shortcutkeys's Issues

Brightness key on pi-top version 2

The brightness keys on the pi-top version 2 are implemented directly in the firmware of the hub. They are not connected to the Raspberry Pi usb input for the keyboard. That‘s a nice solution because it means that the brightness keys work on all operating systems out of the box.

Shortcut keys reimplementation not necessary; temporary solutions for scaling issues; discussion to fix brightness issues

Hi there - Mike from pi-top here.

I would like to address a few things here, but essentially my point is a simple one: pt-input is a package that already exists on the Raspbian servers to do this.
Install as you would normally:

sudo apt install pt-input

Commands can then be set in /etc/pi-top/pt-input/keyboard-commands.
Here is an example entry in this configuration file:

{
    "id": {
        "keycode": 190,
        "name": "KEY_F20",
        "notes": ""
    },
    "commands": ["pt-brightness -d"]
},

This is not clear, I realise, and this visibility is something that we are working on (amongst other things). My goal is to get all of the code for hardware interaction to be open sourced; however, my time is limited and this is largely an endeavour of free time, so I apologise for the speed in getting this implemented.

Regarding your scaling issues (which I am taking to mean display scaling), is arising from pt-desktop, which is recommended by pt-device-manager to allow for messages such as low battery warnings to reach the desktop.
However, this also includes a systemd service to scale the desktop UI - this is something that I am happy to look into, as I can appreciate that this is not necessarily desirable alongside a desktop messaging service.

The simplest solution is to install the hub support with the following command:

sudo apt install --no-install-recommends pt-hub

If you would like to install the desktop message service, but not have scaling, a short term fix would be to disable the service immediately after installing the software:

sudo apt install pt-hub
sudo systemctl disable pt-display

Regarding your inability to modify brightness (which thinks that it's stuck at 0), I would like to work to resolve this with you as this is not something that we have seen.

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.