| Welcome, Guest |
You have to register before you can post on our site.
|
| Latest Threads |
Booting Issues
Forum: PineNote Software
Last Post: d2minik
Yesterday, 12:44 PM
» Replies: 22
» Views: 16,111
|
Window Maker Live for Pin...
Forum: Linux on Pinebook Pro
Last Post: vajak
12-24-2025, 06:00 AM
» Replies: 2
» Views: 388
|
Rrkisp issue with CSI cam...
Forum: Linux on Quartz64
Last Post: lystar
12-24-2025, 02:34 AM
» Replies: 1
» Views: 3,769
|
bookworm vs trixie discus...
Forum: Mobian on PinePhone
Last Post: Kevin Kofler
12-24-2025, 12:11 AM
» Replies: 80
» Views: 45,645
|
Fedora + Phosh for PinePh...
Forum: PinePhone Software
Last Post: shanehill@mail.com
12-23-2025, 09:12 PM
» Replies: 75
» Views: 201,016
|
Trixie - bring up the On ...
Forum: Mobian on PinePhone
Last Post: grump_fiddle_reinstall
12-23-2025, 04:34 AM
» Replies: 0
» Views: 83
|
On-Screen Keyboard Arrow ...
Forum: Mobian on PinePhone
Last Post: grump_fiddle_reinstall
12-23-2025, 04:25 AM
» Replies: 11
» Views: 6,088
|
Armbian has been released...
Forum: News
Last Post: ArmbianForSBCs
12-23-2025, 01:36 AM
» Replies: 21
» Views: 32,328
|
Alarm clock doesn’t work
Forum: Mobian on PinePhone
Last Post: biketool
12-23-2025, 12:12 AM
» Replies: 14
» Views: 24,452
|
Diagnosing and fixing fai...
Forum: PinePhone Pro Software
Last Post: biketool
12-22-2025, 11:59 PM
» Replies: 7
» Views: 631
|
|
|
| Pine64 lcd touche screen |
|
Posted by: Rigor_M - 09-18-2017, 10:15 AM - Forum: General
- No Replies
|
 |
Hi,
Is there a linux distro that support pine64 & the LCD touch screen that is sold with it ?
besides the Android images i mean.
a linux desktop that works with the LCD + touch.
Thank you,
J-F
|
|
|
|
How to set the Power Off key binding in i3wm for the Pinebook |
|
Posted by: MarkHaysHarris777 - 09-16-2017, 10:21 PM - Forum: Linux on Pinebook
- Replies (4)
|
 |
Greetings,
The purpose of this blog post is to detail the steps necessary to set the Power Off key-binding for the Pinebook in i3 window manager. We don't want the Pinebook to come crashing down if we accidentally touch the poweroff button -- so we'll set a key-binding that makes sense requiring at least two other keys , for instance the $mod key and the Shift key. The following key-binding should bring the system down cleanly ( and power off properly ) without prompting for a password:
$mod+Shift+XF86_PowerOff
The key-binding will be placed in the i3 config; but I'm getting ahead of myself. The first step is to build the poweroff script in /usr/local/sbin/
Pb_poweroff.sh
The simple script above should be placed in /usr/local/sbin/ and should be made active with the following commands:
sudo chown root:root Pb_poweroff.sh
sudo chmod 0754 Pb_poweroff.sh
The next step is to place a rule file in /etc/sudoers.d/ so that the command trigger will not prompt for the sudo password when the key-binding is pressed. Creat the following rule file in /etc/sudoers.d/ :
Pb_power_rule
Code: # Pb power rule
Cmnd_Alias PBPOWEROFF=/usr/local/sbin/Pb_poweroff.sh
ALL ALL=NOPASSWD: PBPOWEROFF
Place the above rule file in the /etc/sudoers.d/ directory and activate with the following commands :
sudo chown root:root Pb_power_rule
sudo chmod 0440 Pb_power_rule
The last step is to place the following bindsym entry in the i3 configuration ~/.config/i3/config , in your home directory:
bindsym $mod+Shift+XF86_PowerOff exec sudo /usr/local/sbin/Pb_poweroff.sh
Place the above bindsym entry somewhere near the end of your i3 config after the "resize" and before the "bar". The configuration file is ~/.config/i3/config
Activate the key-binding by either pressing $mod+Shift+c to re-read the config, or $mod+Shift+r to restart i3wm.
Theory
Pressing the Pinebook power button returns scancode 124; key-sym XF86_PowerOff. This by default does nothing in i3wm; unlike other OS window manager | desktops , which typically pulls up the shutdown dialogue.
With our keybinding in effect the Pb_poweroff.sh script will be called with sudo, and because the Pb_power_rule file exists in /etc/sudoers.d/ the command trigger will not prompt for the password, but the poweroff command will simply take effect: while holding down the mod key, and the Shift key together, press the power button and the i3 window manager will exit and the system will cleanly shutdown and power off.
|
|
|
|
| Octoprint |
|
Posted by: Cellarboy - 09-16-2017, 10:04 AM - Forum: General Discussion on ROCK64
- Replies (3)
|
 |
Sorry if this is a dumb or frequently asked question, but is there a working Octoprint build for the Rock64? I’m weighing up going the easy route and just just getting a Raspberry Pi, but I do like the idea of having a board with a bit more grunt or processing headrooom that the Rock64 seems to offer.
Many thanks in advance.
|
|
|
|
| Shutdown / Restarting Android Rock64 |
|
Posted by: Farley56 - 09-15-2017, 09:15 AM - Forum: Android on Rock64
- Replies (5)
|
 |
Wondered about the recommended method of powering down Rock64 running Android. Found a post in the Pine64 section from 2016. Here's what I experienced.
1. Short press of the power button on Rock64 = blanks the screen. Short press a second time brings up the screen.
2. Long press of the power button on Rock64 = displays power off / restart dialog box. Defaults to power off, press Enter, Rock64 powers off. Arrow down to Restart, then Enter, Rock64 says powering down, and then it restarts.
3. Restarting via the settings menu (Settings - About - Restart) also restarts but I couldn't find anything in settings about shutting down.
4. Pressing the reset button on Rock64 = resets (probably not recommended, doesn't correctly close first, just hard reset like pulling the power?).
5. If off - pressing the power button = powers it up, pressing the reset button = powers it up.
I assume my results are by design. If not, best method for powering down? Don't want to corrupt the eMMC. Thanks.
NOTE: base Android, not Android TV build. Not sure if the results would be the same.
|
|
|
|
|