Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

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 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 Sad


  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?


  Linux app Manuskript on Pinebook
Posted by: Siliconserf - 08-30-2017, 12:12 AM - Forum: Linux on Pinebook - Replies (6)

I'd like to install this application, but my first attempt gave an error concerning not being a correct binary image. What considerations do you need to take in looking for applications that run on Linux?


Information Brushless Fan (5v) for Rock64 Clear Case Soft PWM Drive 2N2222
Posted by: MarkHaysHarris777 - 08-30-2017, 12:08 AM - Forum: Rock64 Hardware and Accessories - Replies (7)

See full update on post #2 below:


         


I plan to mount this 5v brushless fan under the clear Rock64 shipping case using very tiny machine screws set directly into the soft plastic ( for a little later ).  The motor leads ( red +5v,  black grnd ) are plugged into the PI-2 bus voltage pins with a 2N2222 transistor in the power lead ( collector emitter ) and with the base lead plugged into the GPIO2_C2 (82) via biasing resistor.  

The theory is that a driver script ( fan_motor.sh ) will generate a soft-pwm signal to the base of the driver transistor allowing current to flow from collector to emitter;  with greatly reduced current, heat, and noise.  I have wrapped the 2N2222 transistor in an aluminum clip ( heatsink ) to help extend the life of the transistor;  the heatsink gets warm but does it's job quite well.

The simple driver script is listed below, and is also visible in the terminal pics below:

fan_motor.sh

Code:
#!/bin/sh
#        sudo ./fan_motor.sh pwm_pin# ctrl_pin# time_ON time_OFF &

while [ `cat /sys/class/gpio/gpio$2/value` -gt 0 ]; do
  echo 1 > /sys/class/gpio/gpio$1/value
  sleep $3
  echo 0 > /sys/class/gpio/gpio$1/value
  sleep $4
done
echo 0 > /sys/class/gpio/gpio$1/value


                     



The pic at the far right-hand is the fan happily spinning away !  The other two pics are views of the control terminal and the commands used to control the 2N2222 transistor bias.  The code sets up a loop that monitors the control pin ( in this case gpio83 ).  gpio83 must be set HIGH to run the loop, which runs in the background.  Momentarily pulling the control pin (83) LOW causes the loop to break and the motor will stop ( the control pin is on parm $2 ).

The control loop turns gpio(82) ON|OFF using parms $3 and $4 with a slow duty cycle in this case of 75% ON, and a frequency of about 6cps;  for a brushless fan this is perfect for keeping the fan running ( very nice airflow ) but with greatly reduced current and far less noise !

The stopled.sh script is simply a three line script that pulls the control pin low for 1.5 seconds and then releases it.  This breaks the control loop effectively stopping the motor. 

Shy


  uSD Breakout
Posted by: machinehum - 08-29-2017, 06:59 PM - Forum: Pinebook Hardware and Accessories - Replies (32)

Originally inspired by this thread I've decided to make a simple open source breakout PCB with some additional peripherals, essentially it's in the same form factor as a micro sd card, so it will be able to slot into the side of the pinebook giving the user access to some low level GPIO.

I'm just getting started now, I'll be posting updates in this thread as well it's possible to track the commits here.

Check out the github readme for the initial conception + peripherals list.

If you're interested in the project or have ideas/suggestions/feedback I would love to hear them!

-wlkr


Question Power Related Problem Questions
Posted by: p3p1 - 08-29-2017, 05:56 PM - Forum: Pinebook Hardware and Accessories - Replies (1)

I have different problem now with power plugged the power led blinks. If I unplug battery connector and then replug it, pinebook boot. If I remove power supply pinebook will turned off.


Information i3wm xenial-i3 introduction -- mate terminal & battery monitor
Posted by: MarkHaysHarris777 - 08-29-2017, 05:54 PM - Forum: Linux on Pinebook - Replies (4)

Greetings,

The purpose of this blog post is to introduce the  i3  window manager , as well the ayufan xenial-i3 pine community image.  I am a completely sold out i3wm convert ;  never going back--  i3 for me !

The i3 Window Manager Tutorials and Introductory Videos

       Tutorial Introduction from i3wm.org

       On-line Tutorial Video Part (1/3)

       On-line Tutorial Video Part (2/3)

       On-line Tutorial Video Part (3/3)

       i3wm User's Guide from i3wm.org

The above tutorials are well worth the time and effort, are fast--and fun--and will get you up and running with this super tiling windows manager on your new Pinebook !

I am currently running the 0.4.16 xenial-i3 on my Pinebook with the mate-terminal;  you may quickly want to replace the terminal on i3 because the font is so small, and because the dafault is a minimalist terminal;  the mate-terminal is fully equipped and ready to roll with nice fonts and a rich tool-bar:

       sudo apt install mate-terminal

Below I am going to show the interface of this excellent tiling window manager, and provide a batt_status.sh script which can be used to monitor your battery status more effectively than the i3 status bar.

         


The pic above is my first ( #1 ) virtual work space;  I have three terminals open--  it is clearly obvious why its called a tiling window manager.  Not to worry , floating windows are configurable too!

I'm doing some Python work in the left terminal, and in the right terminal I'm displaying the code ( also included here ) for displaying the battery status in a loop-- running in the bottom right-hand terminal of work-space #1.

I removed the battery block of my  .i3status.conf  file.  The script below ( batt_status.sh ) goes in your ~/bin/  folder and runs in a forever loop in a small terminal showing the battery current status ( charging | discharging ) the voltage in micro volts, and the percent capacity. 

Note:  the battery status bar component is broken on this image.  The script below is a simple elegant solution for battery monitoring in a tiling terminal environment.

batt_status.sh

Code:
#!/bin/bash
   
while [ 1 == 1 ]
do
   echo " capacity : " `cat /sys/class/power_supply/battery/capacity`
   echo "  voltage : " `cat /sys/class/power_supply/battery/voltage_now`
   echo "   status : " `cat /sys/class/power_supply/battery/status`
   sleep 7
done

Note:  the little quote-like characters above ARE NOT quotes-- they are back-ticks;  the little character under the tilde ( to the left of the 1 key on most keyboards ).


Remember,  i3  is a tiling window manager NOT an OS;  the operating system under the covers is ubuntu which is a debian derivative.  

Enjoy !

Shy


  Kodi/LibreELEC on a 1Gb board
Posted by: smp - 08-29-2017, 05:08 PM - Forum: Linux on Rock64 - Replies (1)

Will 1 Gb board be enough for Kodi?


  Dual Boot on eMMC?
Posted by: d97 - 08-29-2017, 04:35 PM - Forum: General Discussion on Pinebook - Replies (1)

Hi all - I just received my Pinebook yesterday and I have really enjoyed the couple of hours that I have had to mess around with it.  (Definitely pleased that I have not experienced any of the DHL cracked screen / dead pixel / wonky keyboard issues that people have been writing about.)  

I am still trying to get comfortable with the different OSes that are available to us and, after installing Android 6 and then flipping the machine back to Mate, I started wondering if anybody had given any thought to dual-booting the machine.  Would something like this be possible? 

Yeah, I suppose I could keep an SD card around and have one OS on it but, well, dual booting would be convenient.  

I have enjoyed reading the forum over the last couple of days as I waited for my machine to arrive.

D.