| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 30,094
» Latest member: minseow22
» Forum threads: 16,358
» Forum posts: 117,524
Full Statistics
|
| Latest Threads |
Manjaro affected by Arch ...
Forum: General
Last Post: tantamount
06-28-2026, 10:45 AM
» Replies: 0
» Views: 127
|
Fix Bricked SPI Flash, Pi...
Forum: PinePhone Pro Hardware
Last Post: FR_IV
06-27-2026, 05:00 PM
» Replies: 0
» Views: 85
|
irradium (based on crux l...
Forum: Linux on RockPro64
Last Post: mara
06-27-2026, 04:09 PM
» Replies: 12
» Views: 19,555
|
irradium (based on crux l...
Forum: Linux on Rock64
Last Post: mara
06-27-2026, 02:43 PM
» Replies: 13
» Views: 18,698
|
Android Gaming Image
Forum: Game Station Emulation
Last Post: Jacobgilbert
06-26-2026, 07:06 AM
» Replies: 52
» Views: 110,903
|
rAudio for Rock64 V2/Pine...
Forum: Linux on Rock64
Last Post: shinzuka
06-25-2026, 03:16 PM
» Replies: 11
» Views: 1,865
|
Big thanks for the docume...
Forum: General Discussion on Pinebook Pro
Last Post: alchemist
06-25-2026, 12:58 PM
» Replies: 0
» Views: 190
|
Mobian MMS/SMS text probl...
Forum: Mobian on PinePhone
Last Post: mehdy
06-23-2026, 06:53 AM
» Replies: 16
» Views: 34,469
|
OpenTTD game - Error: no ...
Forum: Mobian on PinePhone
Last Post: Mary_Davis
06-23-2026, 01:12 AM
» Replies: 3
» Views: 5,583
|
Libby - ebook reader that...
Forum: PineNote Software
Last Post: Mary_Davis
06-23-2026, 01:04 AM
» Replies: 5
» Views: 3,902
|
|
|
How to set Keybindings for LCD Brightness in i3wm |
|
Posted by: MarkHaysHarris777 - 09-01-2017, 03:21 AM - Forum: Linux on Pinebook
- Replies (2)
|
 |
Greetings,
The purpose of this tutorial blog post is to describe how to setup LCD brightness keybindings in the i3wm tiling window manager , on your Pinebook.
Below I am providing a script which will be placed in /usr/local/sbin/lcd_bright.sh , which may be used to set the brightness of the LCD display in increments of +10 or -10. I will describe the step(s) necessary to activate the script via /etc/sudoers.d so that the keybindings ( bindsym ) in the i3 config can run as sudo without needing to prompt for the password !
First, the scripts... the first one is the lcd_bright.sh ( which does the work ) and the second one is the source file for /etc/sudoers.d which allows the bindsym to call lcd_bright.sh without a password.
lcd_bright.sh
Code: #!/bin/bash
#
# lcd_bright.sh v0.1a
#
# Mark H. Harris
# 08/31/2017
#
# Usage: lcd_bright.sh <U|D> <value>
#
MODE=`echo $1 |tr '[a-z]' '[A-Z]'`
LCDVALUE=`cat /sys/class/backlight/lcd0/brightness`
if [ "$MODE" = "U" ]
then
NEWVALUE=$(( $LCDVALUE + $2 ))
if [ $NEWVALUE -le 100 ]
then
echo $NEWVALUE > /sys/class/backlight/lcd0/brightness
echo $NEWVALUE
else
echo $LCDVALUE
fi
else
NEWVALUE=$(( $LCDVALUE - $2 ))
if [ $NEWVALUE -gt 30 ]
then
echo $NEWVALUE > /sys/class/backlight/lcd0/brightness
echo $NEWVALUE
else
echo $LCDVALUE
fi
fi
lcd_bright_rules
Code: # lcd bright rules
Cmnd_Alias LCDBRIGHT=/usr/local/sbin/lcd_bright.sh
ALL ALL=NOPASSWD: LCDBRIGHT
Procedure:
Open a terminal and access root with :
sudo -i
Place the lcd_bright.sh script in the /usr/local/sbin/ directory.
Set the owner and group with :
cd /usr/local/sbin/
chown root lcd_bright.sh
chgrp root lcd_bright.sh
Make the script executable with :
chmod 0754 lcd_bright.sh
Place the lcd_bright_rules file in the /etc/sudoers.d/ directory.
Set the owner and group with :
cd /etc/sudoers.d
chown root lcd_bright_rules
chgrp root lcd_bright_rules
Set special read permissions with :
chmod 0440 lcd_bright_rules
At this point the system is setup to use the lcd_bright.sh script. The last step(s) necessary is to set the keybindings in the i3wm config file.
You do not need root permissions to do the following; if you're still in root# please exit.
exit
Change into the i3wm config directory for your default pine64 i3 user with :
cd ~/.config/i3/
Use your favorite editor to edit the config file.
Somewhere near the end of the other bindsym entries , add these two definitions :
Code: bindsym $mod+Shift+u exec sudo /usr/local/sbin/lcd_bright.sh u 10
bindsym $mod+Shift+d exec sudo /usr/local/sbin/lcd_bright.sh d 10
Save the file.
Re-read the config file with :
mod + Shift + c
Restart the i3wm tiling window manager with :
mod + Shift + r
Congratulations! Your brightness keybindings are set for i3wm.
To use the keybindings use :
mod + Shift + u (turns up the LCD backlight by 10)
mod + Shift + d (turns down the LCD backlight by 10)
|
|
|
|
| Bad EMMC |
|
Posted by: s69arky - 08-31-2017, 05:11 PM - Forum: Pinebook Hardware and Accessories
- Replies (29)
|
 |
Just got my new pinebook and played with it but ran out of system memory really quick. Now knowing I would I purchased the 64GB EMMC at the same time. My problem is that I followed all instructions and it says that there is no EMMC detected. The only info I can find on this in the forum is that not all are supported. I purchase mine when I ordered the pinebook. I opened a case about this a week ago and still haven't heard anything. Just wondering if there is a tip or trick I can use to get it up and running.
Sent from my SM-G955W using Tapatalk
|
|
|
|
| ANDROID NOT BOOTING |
|
Posted by: Bluesman - 08-31-2017, 02:58 PM - Forum: Android on Rock64
- Replies (4)
|
 |
Used etcher to flash Micro SD card with latest android from pine64 version for Rock64. Will not boot.
SD Card is good. Can flash debian jessie and it works fine. Any solutions? USING 1080P MONITOR.
Tried differenty HDMI ports on the TV.
All ports are working.
I have a 64gb emmc ordered.
|
|
|
|
Z-Wave and openzwave+node-openzwave-shared |
|
Posted by: saro - 08-31-2017, 08:39 AM - Forum: POT modules
- Replies (2)
|
 |
Hi,
I've installed the Ubuntu 16.04 Longsleep image and then I use the Z-wave EU pot module on euler bus.
Installing openzwave library (at openzwave) and node wrapper (at openzwave-shared).
It works correctly with the ZW090 Z-Stick Gen5 EU USB device (accessed on /dev/ttyACM0)
but with official pine64 z-wave pot module, on discovery, I don't found any device (the access setting in on the correct /dev/ttyS2).
The pine64 module is well found on /dev/ttyS2 interface but the at scan complete it show 0 device.
Here the 2 logs:
USB Stick on /dev/ttyACM0:
Code: Initialising OpenZWave 1.4.0 binary addon for Node.JS.
OpenZWave Security API is ENABLED
ZWave device db : /usr/local/etc/openzwave
User settings path : /home/ubuntu/Morpheos.Momo.NodeJS/lib/_providers/discovery/openzwave/openzwave-lib/build/Release/../../
Option Overrides : --ConsoleOutput false
connecting to /dev/ttyACM0
Could Not Open OZW Log File.
scanning homeid=0xc85baf68...
node6: nop
node6: node sleep
node1: Aeotec, ZW090 Z-Stick Gen5 EU
node1: name="", type="Static PC Controller", location=""
node1: class 32
node1: Basic=0
node8: nop
in which there are found 2 nodes (node6 and node8)
Pine64 Z-wave pot module:
Code: initialising OpenZWave addon (/home/ubuntu/OZW_Test/ozws_anto/node_modules/openzwave-shared/lib/../build/Release/openzwave_shared.node)
Initialising OpenZWave 1.4.0 binary addon for Node.JS.
OpenZWave Security API is ENABLED
ZWave device db : /usr/local/etc/openzwave
User settings path : /home/ubuntu/OZW_Test/ozws_anto/node_modules/openzwave-shared/build/Release/../../
Option Overrides : --ConsoleOutput false
connecting to /dev/ttyS2
scanning homeid=0xf6b92336...
node1: Sigma Designs, UZB Z-Wave USB Adapter
node1: name="", type="Static PC Controller", location=""
node1: class 32
node1: Basic=0
====> scan complete
in which there isn't found any node.
Somebody help me, please?
Thanks in advance.
PS. I would avoid to use OpenHAB.
|
|
|
|
| What are the differences between the A64+, 64-LTS (and Rock) versions? |
|
Posted by: WhiskerBiscuit - 08-31-2017, 08:28 AM - Forum: General Discussion on PINE A64(+)
- Replies (12)
|
 |
I'm currently using an ODROID to provide OpenVPN services, however I also want to start to allow streaming media to clients. The media server I want to use (AirVideo server, for iOS clients) doesn't come in a 32 bit package so I need to switch to a 64bit SBC.
First question. What is the difference between the A64+ and the 64-LTS? For the 2GB A64+ the only difference that I can detect is the LTS has an EMC slot and costs 3$ more. Am I missing something else?
The new ROCK version looks intriguing. But is it worth the extra money? As I said, I want to use this to stream media to clients, but the specs look compatible with the Air Video Server for Linux.
Your guidance is appreciated.
|
|
|
|
|