Monthly Archives: May 2017

OrangePi Power button

on orangepi it works as below

orangepi@orangepi:/dev/input$ sudo cat event1
�{Vt��V��/
t��/
�1t�1^
orangepi@orangepi:/sys/devices/virtual/input/input1$ cat uevent
PRODUCT=19/1/1/100
NAME=”sunxi-gpiokey”
PHYS=”sunxikbd/input0″
PROP=0
EV=3
KEY=100000 0 0 0
MODALIAS=input:b0019v0001p0001e0100-e0,1,k74,ramlsfw

Advertisements

Disable driver signature enforcement in Windows

Not sure why it is not working now .. bcedit should disable it permanently

http://www.drivethelife.com/windows-drivers/how-to-disable-driver-signature-enforcement-on-windows-10-8-7-xp-vista.html

bcdedit /set testsigning on
https://search.thawte.com/support/ssl-digital-certificates/index?page=content&id=SO5565&actp=search&viewlocale=en_US&searchid=1381952841942#

http://stackoverflow.com/questions/7258613/driver-install-fails-because-cross-signing-chain-doesnt-contain-microsoft
https://support.globalsign.com/customer/portal/articles/1698751-ev-code-signing-for-windows-7-and-8

https://github.com/pbatard/libwdi/wiki/Signed-Driver-Walkthrough#Globalsign

https://msdn.microsoft.com/en-us/windows/hardware/drivers/develop/signing-a-driver-for-public-release

https://www.digicert.com/code-signing/driver-signing-in-windows-using-signtool.htm

Taking screenshot on just vanilla X11 system

scrot

scrot 1.png

error

Can’t open X display. It *is* running, yeah?

mine was

startx ./application — :0 vt8 &

So it was not coming

Then I started with simple

startx ./application
and scrot worked as a charm

I didn’t find a way to specify display and virtual terminal in scrot that is why it didn’t work out in the first try. I didn’t experiment a lot on this.

 

 

Another way is by using xwd command

 

xwd -root -display :0 > good_image.xwd

Then you need to convert xwd image to png or jpeg

OS in sdcard boots but file system is read-only

The problem occurs sometime when image get corrupted. I think only inode structure become incorrect.

If the reason is only this you can easily correct it via

After copying the image to sdcard you will need to correct the file checksum which somehow is failing and results in root partition mounted as read-only mode.
Use any linux machine and run below command
sudo fsck -y /dev/sdb2

where /dev/sdb2 is the linux partition