o355 / pitop-shortcutkeys Goto Github PK
View Code? Open in Web Editor NEWA guide to enabling the brightness & shortcut keys on the Pi-Top v1/v2
License: GNU General Public License v3.0
A guide to enabling the brightness & shortcut keys on the Pi-Top v1/v2
License: GNU General Public License v3.0
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.