| 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,101
|
Window Maker Live for Pin...
Forum: Linux on Pinebook Pro
Last Post: vajak
12-24-2025, 06:00 AM
» Replies: 2
» Views: 385
|
Rrkisp issue with CSI cam...
Forum: Linux on Quartz64
Last Post: lystar
12-24-2025, 02:34 AM
» Replies: 1
» Views: 3,765
|
bookworm vs trixie discus...
Forum: Mobian on PinePhone
Last Post: Kevin Kofler
12-24-2025, 12:11 AM
» Replies: 80
» Views: 45,631
|
Fedora + Phosh for PinePh...
Forum: PinePhone Software
Last Post: shanehill@mail.com
12-23-2025, 09:12 PM
» Replies: 75
» Views: 201,009
|
Trixie - bring up the On ...
Forum: Mobian on PinePhone
Last Post: grump_fiddle_reinstall
12-23-2025, 04:34 AM
» Replies: 0
» Views: 82
|
On-Screen Keyboard Arrow ...
Forum: Mobian on PinePhone
Last Post: grump_fiddle_reinstall
12-23-2025, 04:25 AM
» Replies: 11
» Views: 6,082
|
Armbian has been released...
Forum: News
Last Post: ArmbianForSBCs
12-23-2025, 01:36 AM
» Replies: 21
» Views: 32,326
|
Alarm clock doesn’t work
Forum: Mobian on PinePhone
Last Post: biketool
12-23-2025, 12:12 AM
» Replies: 14
» Views: 24,448
|
Diagnosing and fixing fai...
Forum: PinePhone Pro Software
Last Post: biketool
12-22-2025, 11:59 PM
» Replies: 7
» Views: 626
|
|
|
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.
|
|
|
|
| How to Configure Screen Brightness in mate on pinebook via terinal? |
|
Posted by: shirman - 08-31-2017, 05:50 AM - Forum: Linux on Pinebook
- Replies (6)
|
 |
I'm trying to bind brightness change to buttons via terminal in i3, but I can't find a command that will doing that:
Code: pine64@pinebook:~$ sudo xrandr --listmonitors
Output is:
xrandr: Failed to get size of gamma for output default
Monitors: 1
0: +*default 1366/361x768/203+0+0 default
So, when I trying to change it like:
Code: pine64@pinebook:~$ sudo xrandr --output default --brightness 0.5
It isn't do anything.
Code: pine64@pinebook:~$ echo 240 > /sys/class/backlight/lcd0/brightness
Have not do anything too
|
|
|
|
| Install pygame in Ubuntu Mate |
|
Posted by: pkgAstronaut - 08-30-2017, 10:30 PM - Forum: Linux on Pinebook
- Replies (2)
|
 |
Hi all, I have been trying to install pygame using pip and have been unsuccessful so far. Has anyone had success. SO far I have installed build-dep python-pygame and libfreetype6-dev dependancies based on stack overflow searches.
My latest error is:
Code: "Exception:
Traceback (most recent call last):
File "/home/pine64/.local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/home/pine64/.local/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/home/pine64/.local/lib/python2.7/site-packages/pip/req/req_set.py", line 784, in install
**kwargs
File "/home/pine64/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/home/pine64/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "/home/pine64/.local/lib/python2.7/site-packages/pip/wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "/home/pine64/.local/lib/python2.7/site-packages/pip/wheel.py", line 316, in clobber
ensure_dir(destdir)
File "/home/pine64/.local/lib/python2.7/site-packages/pip/utils/__init__.py", line 83, in ensure_dir
os.makedirs(path)
File "/usr/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/pygame''".
|
|
|
|
| Wake on LAN (WOL) |
|
Posted by: MORIN-KHUUR - 08-30-2017, 09:09 AM - Forum: Rock64 Hardware and Accessories
- Replies (2)
|
 |
hi everyone. i tried WOL. working OMV on rock64. but not wake up from suspend.
It is shifting to suspend with this command
"pm-suspend"
Also, when shifting from this command to the suspended state, pressing "PWR Btn" will not wake it up.
what should i do?
|
|
|
|
|