Hardware Accel issues: Vainfo: libva info: va_getDriverName() returns -1

When I try and get the output of vainfo well running under X I get an error

 dbd@MServer:$   vainfo     libva info: VA-API version 1.2.0     libva info: va_getDriverName() returns -1     libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)     vaInitialize failed with error code -1 (unknown libva error),exit 

I do have the i965 drivers installed currently

dbd@MServer:$   ll /usr/lib/x86_64-linux-gnu/dri/*_drv_video.so     -rw-r--r-- 1 root root 8131928 Sep 24 08:13 /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so     -rw-r--r-- 1 root root 5966920 Oct  8 07:23 /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so     -rw-r--r-- 1 root root 5966920 Oct  8 07:23 /usr/lib/x86_64-linux-gnu/dri/r600_drv_video.so     -rw-r--r-- 1 root root 5966920 Oct  8 07:23 /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so 

However it does work when not under X:

dbd@MServer:~/intel-hybrid-driver$   vainfo error: can't connect to X server! libva info: VA-API version 1.2.0 libva info: va_getDriverName() returns 0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so libva info: Found init function __vaDriverInit_1_2 libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.2 (libva 2.2.0) vainfo: Driver version: Intel i965 driver for Intel(R) Haswell - 2.2.0 vainfo: Supported profile and entrypoints       VAProfileMPEG2Simple            : VAEntrypointVLD       VAProfileMPEG2Simple            : VAEntrypointEncSlice       VAProfileMPEG2Main              : VAEntrypointVLD       VAProfileMPEG2Main              : VAEntrypointEncSlice       VAProfileH264ConstrainedBaseline: VAEntrypointVLD       VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice       VAProfileH264Main               : VAEntrypointVLD       VAProfileH264Main               : VAEntrypointEncSlice       VAProfileH264High               : VAEntrypointVLD       VAProfileH264High               : VAEntrypointEncSlice       VAProfileH264MultiviewHigh      : VAEntrypointVLD       VAProfileH264MultiviewHigh      : VAEntrypointEncSlice       VAProfileH264StereoHigh         : VAEntrypointVLD       VAProfileH264StereoHigh         : VAEntrypointEncSlice       VAProfileVC1Simple              : VAEntrypointVLD       VAProfileVC1Main                : VAEntrypointVLD       VAProfileVC1Advanced            : VAEntrypointVLD       VAProfileNone                   : VAEntrypointVideoProc       VAProfileJPEGBaseline           : VAEntrypointVLD 

I’m having issue with hardware accel in a few applications and I get the feeling this might be related. Any idea how to get vainfo to output the right info in X?

Android hardware Keypair Info

Basically I would like to use Android Keystore to sign requests going to a server from an Android phone. My goal is to have a way of verifying the origin of the request.

Does Android Keystore offer anyway for the receiver of the request to verify that a specific key came from Android Keystore with a specific hardware/device ID rather than a keypair generated from OpenSSL, for example.

Is there any way to record live input from my camera without any other hardware?

I have a Nikon Coolpix 510 and I was hoping to use a live feed from it without getting any more external hardware than the cable. Do you know of any way to do this? iMovie detects it and opens up its previously taken photos and videos but doesn’t allow live input like with the built in camera.

Ant+ hardware support broken in Android 9?

Recently, my Xiaomi Mi A1 received an update to Android 9, and since that I figured out that Ant+ is not working anymore (which did work pefectly using Android 8).

Ant Radio tester from the Google playstore says that no built-in ANT was found, the services are all installed correctly however.

First I thought this is a problem only related to this Xiaomi model, but in the meantime I am convinced this must be something related to Android 9, since also users of other brands (including Nokia and other Xiaomi phones) report the same after updating their phones to Android 9.

So the questions simply are:

1.) did Google break Ant+ support in Android 9?

2.) How can this be fixed?

The role of depth of a circuit in its hardware implementation

The depth of a circuit is the maximal length of a path from an input gate to the output gate of the circuit [Reference]

Question: What is the relation between the depth of a circuit and hardware implementation of the circuit. In fact, I want to ask this question, why the low depth of a circuit results in the circuit has a suitable hardware implementation?

Thanks for all suggestions

Android hardware data from kernel [on hold]

How do I write device driver for Android devices(SoC)? I want to write a GPS or camera driver(or get output of GPS hardware) from the kernel.

Essentially, I would like to understand the device driver development process for SoC devices that run Linux kernel. What bus is used? How exactly the data is passed to userspace HAL?

I’ve tried reading about HAL but it doesn’t specify how HAL interacts with the hardware through kernel. Can anyone help me understand this?

onboard hardware raid 1 resyncs everytime on shutdown

onboard hardware raid 1 re-syncs every time on shutdown. i have 2 western digital red nas 2.5 inch hard drives on a raid 1 setup that uses the motherboard rain controller. on shutdown it re-syncs but over time only the one drive light shows activity. it is hard ware raid. also is this normal? both drives work fine. do you know if there is a windows software utility for fixing this issue and making sure the drive stays in sync all the time 24/7 and no re-sync needed on shutdown? also another question is do you think a ssd for a server boot os drive is better than the above setup or is this setup ok? should i keep using the motherboard raid 1 setup or use software raid with windows server? last should i use a raid controller for the os raid setup as opposed to using the motherboard raid? i do have a pci raid card for the non os drives. they will be 10tb x4 with raid 10. 

Safe way to backup Bitcoin hardware wallet

On official site they (Trezor) emphasize that you should never store your recovery seed digitally. But this seems to me absolutely strange. First of all we live in 21st century. And paper (or even steel) backup is easy to lose and you cannot easily password-protect them.

So I was thinking about using a separate keepass database that is stored on multiple devices and clouds, BUT is decrypted only in safe environment. For safe environment I choose live Tails system. I believe such approach is good because:

  1. Much harder to loose my seed

  2. Much easier to store

  3. Still cannot be hacked, decrypted not by me, keyloggers won’t work
  4. This db is supposed to be used only in emergency case, so it is feasible to spend like 30-60 minutes just to recover my seed, because it won’t happen often

The only risk is to forget encryption password since I am not going to use it often – so I will create some schedule to recall & check it like once a week.

Are there any drawbacks I don’t see?

The main things a cloud data center could inject into its hardware

So some cloud service providers like Amazon use custom hardware to improve different characteristics of their servers. This also means they can control the security better, because there is nothing hidden inside their silicon since they made it. But as a consumer, you don’t know if AWS itself could have hardware or firmware on these custom servers for doing stuff with your application/processes.

What I’m wondering is what you can do purely from the motherboard or server / hardware level. The types of things that can be injected directly into the circuit design or the design of some other random hardware component that you would never be able to tell from an application-layer perspective. Wondering what can be done from here.

For clarification on the types of things I am looking for, here is an example. I don’t know too much about the electronics of how networking and wifi work, but maybe there is a way to add some chunk of invisible hardware that sends every instruction and 1 and 0 out to a specific local ip address or something, and then from there you could simply build applications around that to log all traffic to every server. Basically, you could know how every program is run. Wondering if this type of stuff is possible at the hardware level, or if you need more operating-system level stuff to accomplish this.