Intel N3540 Hickup

force Performance Govenor Speed Settings by adding following line to your autostart.sh to fix system freeze. to force turbo

echo performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

CPU0: Intel(R) Pentium(R) CPU N3540 @ 2.16GHz (family: 0x6, model: 0x37, stepping: 0x8)

Bug 109051 – intel_idle.max_cstate=1 required to prevent crashes – Baytrail

didn’t work for me, so i disabled the intel_idle kernel extension via intel_idle.max_cstate=0

IBM Bug Description

dmesg |grep -i intel_idle

[ 0.000000] Command line: BOOT_IMAGE=/KERNEL boot=LABEL=System disk=LABEL=Storage quiet intel_idle.max_cstate=0
[ 0.000000] Kernel command line: root=/dev/ram0 rdinit=/init usbcore.autosuspend=-1 BOOT_IMAGE=/KERNEL boot=LABEL=System disk=LABEL=Storage quiet intel_idle.max_cstate=0
[ 0.918731] intel_idle: disabled

 

Advertisements

New System: Asus Aspire V11 N3530

Scraped a Netbook with a broken Touchscreen, so i took of the Screen, relocated the Webcam and WLAN Antennas, plugged in HDMI, made a Libreelec USB Stick and installed LibreELEC (official): 8.2.3 (Generic.x86_64) which worked right out of the box but i had some troubles installing hyperion, precisely starting hyperion. so here’s my autostart.sh:

set DISPLAY=0.0
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/storage/hyperion/bin
export PATH=$PATH:/storage/hyperion/bin
hyperiond /storage/.config/hyperion.config.json >/storage/logfiles/hyperion.z0mb1.log 2>&1 &
hyperiond /storage/.config/hyperion.espLight54.config.json > /storage/logfiles/hyperion.espLight54.log 2>&1 &
hyperion-x11 /storage/logfiles/hyperion-x11.log 2>&1 &

The sequence of hyperiond -> hyperion-x11 is relevant, else the x11 grabber wont connect to hyperiond via proto as in:

hyperion-x11:
version : V1.03.3 (brindosch-2fbbcff/2f01dfa-1495880388
build time: Jun 3 2017 02:06:03
PROTOCONNECTION INFO: Connecting to Hyperion: 127.0.0.1:19445
X11GRABBER INFO: Update of screen resolution: [0x0] => [1920×1200]
X11GRABBER INFO: Using XRender for grabbing
PROTOCONNECTION INFO: No connection to Hyperion: 127.0.0.1:19445

start hyperiond and the x11 grabber connects:

PROTOCONNECTION INFO: Connected to Hyperion: 127.0.0.1:19445

//i’m not sure about the set Display part, but it works in my case.

While moving, i realized, there’s no vcgencmd anymore, so my screensaver doesn’t work anymore. After 2 Days of researching i found the ToggleDPMS() builtin function.

change line 35 & 43 of the default.py

35:os.system('vcgencmd display_power 0')
43:os.system('vcgencmd display_power 1')

to

xbmc.executebuiltin('ToggleDPMS()')

doesnt work, line 43 won’t be executed, so no DPMS restore happens and i have to send a ToggleDPMS() manually…. Shell: kodi-send –action=”ToggleDPMS()” manually….

——————–XX WORk XX —————

… suspend:
grep . /sys/bus/usb/devices/*/power/wakeup

/sys/bus/usb/devices/1-2.1/power/wakeup:enabled
/sys/bus/usb/devices/1-2.2.1/power/wakeup:enabled
/sys/bus/usb/devices/1-2.2.2.4.3/power/wakeup:enabled
/sys/bus/usb/devices/1-2.2.2.4/power/wakeup:enabled
/sys/bus/usb/devices/1-2.2.2/power/wakeup:enabled
/sys/bus/usb/devices/1-2.2/power/wakeup:disabled
/sys/bus/usb/devices/1-2/power/wakeup:enabled
/sys/bus/usb/devices/usb1/power/wakeup:enabled
/sys/bus/usb/devices/usb2/power/wakeup:enabled

echo disabled |tee /sys/bus/usb/devices/*/power/wakeup
disables all wakeup caps from USB
echo enabled > /sys/bus/usb/devices/1-2.2.2.4.3/power/wakeup
enables just MY wireless Keyboard, to wakeup my System
add autostart.sh part and use suspend… but filesharing is offline too….

echo disabled |tee /sys/bus/usb/devices/*/power/wakeup 2>&1
echo enabled > /sys/bus/usb/devices/1-2.2.2.4.3/power/wakeup

OpenELEC (official) 8 LIRC dropped

You don’t need Lircmap.xml in your userdata or yout lirc.cfg anymore, but you need to create an other keytable via ir-keytable… have a look here
furthermore i had to change the config.txt via

mount -o remount,rw /flash && nano /flash/config.txt

from:

dtoverlay=lirc-rpi

to:

dtoverlay=gpio-ir

and change autostart

systemctl stop eventlircd.service
ir-keytable -a /storage/.config/rc_maps.cfg

where rc_maps.cfg consists of ” * * NAME” which is pointing to
“.config/rc_keymaps/NAME” which looks as follows:

# table NAME, type: NEC
0x813712 BTN_TRIGGER_HAPPY
0x813755 KEY_INFO
0x81370f KEY_UP #Up
0x81370b KEY_DOWN #Down
0x813728 KEY_RIGHT #right
0x813727 KEY_LEFT #left
0x81370a KEY_PLAY #play_pause
[…]
0x813759 KEY_MENU #menu

[SOURCE]

everything else, linke longpress feature works as in the old days with lircd. [SOURCE]

SPf3EVO & HC05

I managed to get the HC05 Bluetooth Module (on a ZS-040 Adapterboard) working on my  Seriously Pro Racing F3 Evolution flight Controller.

i had to pull PIN34 on the HC05 to HIGH to get into “Full AT+Mode” change the UART Baudrate to 115200 via

at+uart=115200,0,0

Then connect

(HC05) RXD-T1 (SPf3 UART1)
(HC05) TXD-R1 (SPf3 UART1)
(HC05) VCC-5V (SPf3 5V RAIL)
(HC05) GND-GND (SPf3 GND RAIL)

finally go into Cleanflight, Port tab and activate MSP on Port1 with 115200

Full AT+COMMAND List for HC05

[Sources: http://blog.dronetrest.com & http://www.martyncurrey.com]

Set your Monitor to Standby

Hi there,
wanted to have a Kodi Screensaver, that set’s your Monitor or Screen into Standby via Timer?
There you go:
-Download:
Github Dlinny

  • copy the zip to your Kodi Media Center (OpenElec, Raspbian or Xbian …)
  • Install the Script via Addon Manager
  • ssh into KODI
  • do:
    nano ~/.kodi/addons/script.screensaver.xbian-hdmi-off-master/defaulty.py
  • delete line 44 & change line 35 & 43
     --35:os.system('tvservice -o')
     ++35: os.system('vcgencmd display_power 0')
     --43:os.system('tvservice -p')
     ++43:os.system('vcgencmd display_power 1')
     --44:xbmc.executebuiltin(‘XBMC.RestartApp()’)
  • Activate Addon in Kodi

rpi Ambilight w. Arduino Uno & TM1829

IT IS ALIVE!!!

what:

Ambilight Clone with hyperion over Arduino Uno (Adalight) and TM1829 LED

to do:

  • Color Edit
  • color fix integrated in neobob.cpp line474:
    //(b == 0xFF) b = 0xFE;//

Install hyperion

wget -N https://raw.github.com/tvdzwan/hyperion/master/bin/install_hyperion.sh

Start hyperion:

sh /storage/hyperion/bin/hyperiond.sh /storage/.config/hyperion.config.json 0/dev/null 2>&1 &

hyperion debug:

sh /storage/hyperion/bin/hyperiond.sh /storage/.config/hyperion.config.json

get neobob library from GITHUB:

https://github.com/chriszero/neobob

rename:

Adafruit_NeoPixel.h to neobob.h
Adafruit_NeoPixel.cpp to neobob.cpp

Tools:

for Prefix Calc:
Boblight Config Maker 

for the rest:
Hyperion Config Tool

neohyp.ino (15x TM182 a 3RGB LEDs=45Channels)

//pastebin.com/embed_iframe/jU9Ux9g7

hyperion.config.json
//pastebin.com/K3abwGbX

Bildschirmfoto 2015-12-30 um 03.02.18

—— edit 2017 ——

after fiddelling around after nearly a year ago reveals my flaws:

for correct colormode, i had to change “NEO_GRB” in line 58 of neobob.ino to “NEO_RGB”

further in neobob.cpp deactivate line 495 with “// comments //” activate line 496

Egalax Touchscreen on Raspberry

“Hello World!”
I did it! *Party*

How? don’t really know! But first comes first; the Problem:

As I received a 16″ eGalax resistive Touchscreen and wanted it to use with my fhem Homeautomation System running on  RPIB+, when plugged in, the cursor moved across the screen and there was only ONE click event, which never released, as if your left click got stuck.

The Solution:

HID QUIRKS

echo 1040 > /sys/bus/hid/devices//quirks

my was 0003\:0EEF\:0001.0004, so:
echo 1040 > /sys/bus/hid/devices/0003\:0EEF\:0001.0004/quirks
did the Trick!
Unplug and Plugin again.

sudo -s
 root@pi:/home/pi# echo 1040 > /sys/bus/hid/devices/0003\:0EEF\:0001.000*/quirks
 root@pi:/home/pi# exit
 exit

now with Script! (not working)

sudo nano /etc/udev/fix_hid_multitouch.sh
 insert:
#!/bin/bash
DEVICE=$1
echo 1040 > "/sys/bus/hid/devices/${DEVICE}/quirks"
 EOF
######################
 /./etc/udev/fix_hid_multitouch.sh
 /./etc/udev/fix_hid_multitouch.sh: line 5: /sys/bus/hid/devices//quirks: Permission denied
 any ideas?
sudo nano /etc/udev/rules.d/65-hid_fix.rules
 insert:
 DRIVER=="hid-multitouch",
 ENV{MODALIAS}=="hid:b0003g0004v00000EEFp00000001", RUN+="/bin/sh
 /etc/udev/fix_hid_multitouch.sh %k"
 ######################
 

...some Infos: (OTB Settings)
 ~& lsmod
 Module Size Used by
 joydev 9766 0
 hid_multitouch 8969 0
 usbtouchscreen 13528 0
 evdev 11000 4
 cdc_acm 18406 2
 uio_pdrv_genirq 3666 0
 uio 9897 1 uio_pdrv_genirq
 hid_apple 5836 0 

~ $ xinput
 ⎡ Virtual core pointer id=2 [master pointer (3)]
 ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
 ⎜ ↳ eGalax Inc. USB TouchController Pen id=6 [slave pointer (2)]
 ⎜ ↳ eGalax Inc. USB TouchController id=7 [slave pointer (2)]
 ⎣ Virtual core keyboard id=3 [master keyboard (2)]
 ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
 ↳ Apple, Inc Apple Keyboard id=8 [slave keyboard (3)]
 ↳ Apple, Inc Apple Keyboard id=9 [slave keyboard (3)]

~& xinput list 9
 eGalax Inc. USB TouchController id=9 [slave pointer (2)]
 Reporting 7 classes:
 Class originated from: 9. Type: XIButtonClass
 Buttons supported: 5
 Button labels: "Button Unknown" "Button Unknown" "Button Unknown" "Button Wheel Up" "Button Wheel Down"
 Button state:
 Class originated from: 9. Type: XIValuatorClass
 Detail for Valuator 0:
 Label: Abs X
 Range: 0.000000 - 4095.000000
 Resolution: 0 units/m
 Mode: absolute
 Current value: 3521.000000
 Class originated from: 9. Type: XIValuatorClass
 Detail for Valuator 1:
 Label: Abs Y
 Range: 0.000000 - 4095.000000
 Resolution: 0 units/m
 Mode: absolute
 Current value: 116.000000
 Class originated from: 9. Type: XIValuatorClass
 Detail for Valuator 2:
 Label: Abs MT Position X
 Range: -1.000000 - -1.000000
 Resolution: 0 units/m
 Mode: absolute
 Current value: 0.000000
 Class originated from: 9. Type: XIValuatorClass
 Detail for Valuator 3:
 Label: Abs MT Position Y
 Range: -1.000000 - -1.000000
 Resolution: 0 units/m
 Mode: absolute
 Current value: 0.000000
 Class originated from: 9. Type: XIValuatorClass
 Detail for Valuator 4:
 Label: None
 Range: -1.000000 - -1.000000
 Resolution: 0 units/m
 Mode: absolute
 Current value: 0.000000
 Class originated from: 9. Type: XIValuatorClass
 Detail for Valuator 5:
 Label: None
 Range: -1.000000 - -1.000000
 Resolution: 0 units/m
 Mode: absolute
 Current value: 0.000000

~& uname -a
 Linux pi 3.18.8+ #763 PREEMPT Sat Feb 28 18:24:36 GMT 2015 armv6l GNU/Linux

eGalax – no click events

eGalax CVJU-E38-2GEN