I have written a python script to set the screen brightness of the pi-top on standard Raspbian. It is based on the concepts and some code snippets of pi-topOS (thanks to the programmers at pi-top!), but works without any pi-top software. A link to the github repository is attached. Your feedback is welcome. It can be used with the latest and greatest Raspbian.
A link to the repository is attached.
Thanks to Norman Lawrence we have now a detailed procedure for the installation of the pi-top speaker in Raspbian Jessie. See github.com/rricharz/pi-top-install
Good news for all users of the newest Raspbian on the pi-top! I have been able to write the necessary modules to optimize the newest Raspian with systemd for the pi-top.
The github repository (see link above) contains now 3 tested modules:
1. The battery status display for the desktop
2. A program to adjust the screen brightness. Command line and keyboard brightness buttons
3. A module which powers the pi-top-hub-controller down at the end of a shut down of the Raspberry Pi. This does not only provide convenience, but protects your battery pack as well as possible together with the battery status display.
Your feedback is appreciated. Module 2 and 3 are only for Standard Raspbian. Do not install them on a pi-topOS SD card!
works fine on pi-topCEED as well!
Here's a quick script I created for my pi-top CEED to toggle the monitor/backlight on and off on Raspbian PIXEL.
#!/bin/bash # This simply turns the pi-top CEED's monitor on or off. if /usr/bin/tvservice/tvservice -s | grep -q "progressive" ; then /usr/bin/tvservice -o ~/bin/brightness off else /usr/bin/tvservice -p ~/bin/brightness on ~/bin/brightness 8 /usr/bin/sudo /bin/chvt 9 /usr/bin/sudo /bin/chvt 7 fi
The chvt program needs to run with root permissions, so add teh following line to your sudoers file to allow it to be run using sudo without a password prompt:
%sudo ALL=NOPASSWD: /bin/chvt
Now the script can be run as a cron job, setup as a keybind, executed via GPIO, or whatever clever method you'd like to use.
I'm using an Amazon Basics keyboard that has a "Computer" key on the keyboard. This key would typically launch Explorer to browse the file system on a Windows computer. For my pi-top CEED, I thought it would be the perfect monitor toggle button. Easy to do in LXDE.
<!-- Monitor Toggle --> <keybind key="XF86Explorer"> <action name="Execute"> <command>/usr/local/bin/mon-toggle.sh</command> </action> </keybind>
Now when I tap my Computer key the monitor goes to sleep or wakes up. Slick.
I Rene, in the next days I will try that on pi-topCEED and I'll let you know ;)
The Raspbian programs (link above) have been tested with the latest Raspbian Jessie and they work properly.
Dear Pi-Top Users,
I have now installed all three of your modules onto my Pi-Top (with standard Raspbian) and they work very well. I also copied my own set of keybinds, and then added them after update/upgrade and dist-upgrade, and so managed to keep my own keyboard shortcuts.
Thanks for your time and effort, Rene. This is really helpful. The screen brightness keys work great, the Pi-Top shuts down completely, and the battery monitor will help to save our batteries from dying.
Thank you for this most useful and important work, Rene. I installed the battery widget (I never saw one under Pi-Top!) and the auto shutdown. This will make working on the Pi Top easier for me, no question!!!
Thanks to Trevor Baxter I have added a new solution on how to set up the pi-top speaker, which can be found in section 4 at
Good to see you are still aroound, Rene.
I am about to give up on my pi-top due to the continued battery/hub issue. it gets tiresome to have kickstart the battery by running the patch. My second battery has shudown at odd percentages lets (I've seen it shutdown with 30% charge remaining at one point, but mostly it will discharge fully) after it has fully recharged I have found i have to run the patch to be able to use the battery.
this is getting tiresome. I am beginning to wonder if I wasted my time and money on this pi-top.
It has been an adventure, but with no permanent fixes in sight,. I am beginning to wonder "was it worth it?"
I'll try and keep the pi-top together as long as I am able to but right now something just doesn't seem right about this...
Jesse you are lucky at the least the patchworks for you. I tend to agree the unreliability of PiTop means i will not buy again. I may try and remove the hub and battery at some stage in the future..