Great, thanks Ralphy.  Looking forward to trying this out, and the
earlier default skin tool.  I'll also see if I can figure out how to do
a pull request for the skin, once I've satisfied myself that the
screensaver graphics work properly.  This evening's tasks.

In the meantime I've been through the process of installing everything
that's needed to get the display and buttons working on a fresh pCP6-b7
install, so that you pCP folks can see if there's anything else that can
be streamlined.  Obviously some of it is already out of date, thanks to
your updates!

Here goes:

1) JIVELITE SETUP

Install Jivelite from Tweaks

Add these commands to /opt/bootlocal.sh

Code:
--------------------
    
  modprobe flexfb setaddrwin=0 width=240 height=240 
init=-1,0x11,-2,120,-1,0x36,0x00,-1,0x3A,0x05,-1,0xB2,0x0C,0x0C,0x00,0x33,0x33,-1,0xB7,0x35,-1,0xBB,0x1A,-1,0xC0,0x2C,-1,0xC2,0x01,-1,0xC3,0x0B,-1,0xC4,0x20,-1,0xC6,0x0F,-1,0xD0,0xA4,0xA1,-1,0x21,-1,0xE0,0x00,0x19,0x1E,0x0A,0x09,0x15,0x3D,0x44,0x51,0x12,0x03,0x00,0x3F,0x3F,-1,0xE1,0x00,0x18,0x1E,0x0A,0x09,0x25,0x3F,0x43,0x52,0x33,0x03,0x00,0x3F,0x3F,-1,0x29,-3
  modprobe fbtft_device name=flexfb speed=32000000 cs=1 gpios=dc:9
  
--------------------


Set framebuffer size in config.txt

Code:
--------------------
    
  # uncomment to force a console size. By default it will be display's size 
minus
  # overscan.
  #framebuffer_width=1280
  #framebuffer_height=720
  framebuffer_width=240
  framebuffer_height=240
  
--------------------


Add the following text to the end of cmdline.txt

Code:
--------------------
    
  fbcon=map:10 fbcon=font:PEARL8x8
  
--------------------


Backup and reboot.  pCP should reboot with boot messages on the screen

copy /opt/jivelite/bin/jivelite.sh to /mnt/mmcblk0p2/tce/jivelite.sh
Edit /mnt/mmcblk0p2/tce/jivelite.sh to include:

Code:
--------------------
    
  export SDL_FBDEV=/dev/fb1
  
--------------------


Change permissions to /home/tc/.jivelite/userpath

Code:
--------------------
    
  cd ~/.jivelite
  chmod -R 777 ./userpath
  
--------------------


Copy QVGA240squareSkin folder to /home/tc/.jivelite/userpath/applets/

copy /opt/jivelite/share/jive/applets/DesktopJive folder to
/home/tc/.jivelite/userpath/applets/
then modify line 110 of
/home/tc/.jivelite/userpath/applets/DesktopJiveMeta.lua from

Code:
--------------------
    
        jiveMain:setDefaultSkin("JogglerSkin")
  
--------------------

to

Code:
--------------------
    
        jiveMain:setDefaultSkin("QVGA240squareSkin")
  
--------------------


Install pcp-jivelite_qvgaskins.tcz extension

copy resized splash.png (240 pixels wide - height not important) to
/home/tc/.jivelite/userpath/jive

Backup and reboot - pCP should reboot with boot messages to screen,
followed by the piCorePlayer splash screen and then Jivelite


2) BUTTONS

Install pcp-sbpd.tcz extension
Install pigpio.tcz extension

Define some button commands in /home/tc/sbpd_commands.cfg

Code:
--------------------
    
  MIX+=["mixer","volume","+5"]
  MIX-=["mixer","volume","-5"]
  VMAX=["mixer","volume","100"]
  VMIN=["mixer","volume","0"]  
  
--------------------


Make a script file to start sbpd, e.g. /home/tc/sbpd-script.sh

Code:
--------------------
    
  #!/bin/sh
  
  # start pigpiod deamon
  pigpiod -t 0
  sleep 1
  
  # load uinput module - required to be able to send keystrokes
  # then set the permission to group writable, so you don't need to run sbpd 
with root permissions
  sudo modprobe uinput
  sudo chmod g+w /dev/uinput
  
  # button A
  SW1=5                                                         # GPIO pin 
number
  SH1=MIX+                                              # command for SHORT 
press
  LO1=VMAX                                              # command for LONG press
  LMS1=250                                              # milliseconds for long 
press
  
  # button B
  SW2=6
  SH2=MIX-
  LO2=VMIN
  LMS2=250
  
  # button X
  SW3=16
  SH3=KEY:KEY_UP
  LO3=KEY:KEY_RIGHT
  LMS3=250
  
  # button Y
  SW4=20
  SH4=KEY:KEY_DOWN
  LO4=KEY:KEY_LEFT
  LMS4=250
  
  CMD="sbpd -v -f /home/tc/sbpd_commands.cfg \
  b,$SW1,$SH1,2,0,$LO1,$LMS1 \
  b,$SW2,$SH2,2,0,$LO2,$LMS2 \
  b,$SW3,$SH3,2,0,$LO3,$LMS3 \
  b,$SW4,$SH4,2,0,$LO4,$LMS4"
  
  echo $CMD
  $CMD
  
--------------------


Add Execute permission to /home/tc/sbpd-script.sh

Code:
--------------------
    
  cd
  chmod +x ./sbpd-script.sh
  
--------------------

Add /home/tc/sbpd-script.sh as a User Command under Tweaks.  Backup and
reboot.

The X and Y buttons should now allow navigation in Jivelite.  A short
click (<250ms, quarter of a second) will move up and down in a menu, and
anything longer than that will make X and Y do RIGHT and LEFT
respectively.


------------------------------------------------------------------------
chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111502

_______________________________________________
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to