How to convert ZPixMap to BGRA reliably?

2017-08-21 Thread Sai Prasanna
I thought Zpixmap mapped directly to BGRA. But my assumption didn't turn out to be correct in some older X versions. I am using xcb_get_image and xcb_shm_get_image to grab screen pixels. I used Zpixmap option for image format. In new-ish Xorg versions it works perfectly. But in some machines with

(EE) Fatal server error: (EE) Could not write pid to lock file in /tmp/.tX0-lock(EE)

2017-08-21 Thread Lightning
Jus recently I tried to use the startx command in raspbian from the commande line and I got this error message: (EE) Fatal server error: (EE) Could not write pid to lock file in /tmp/.tX0-lock (EE) (EE) Please consult The X.Org Foundtion support at http://wiki.x.org for help. (EE) xinit: