xorg

OpenCl: Minimal configuration to work with AMD GPU

 ̄綄美尐妖づ 提交于 2019-12-13 06:12:41
问题 Suppose we have AMD GPU (for example Radeon HD 7970) and minimal linux system without X and etc. What should be installed and what should be launched and how it should be launched to have proper OpenCL environment? In best case it should be headless environment. Requirements to environment: GPU visible by OpenCL programs ( clinfo for example) It is possible to monitor temperature and set fan speed (for example using aticonfig ). P.S. Simple install Xserver, catalyst and run X :0 won't work

XChangeProperty to change icon in unity bar and alt tab menu and window of running app?

别来无恙 提交于 2019-12-11 07:09:16
问题 For X11 systems I was trying to change the icon of the application during run time. This means that the window icon should change, the icon showed in alt+tab menu, and the icon in the unity bar. This is preview of ubuntu: ubuntu doesnt have a window icon, but other operating systems like metacity do. So I was thinking of using XChangeProperty like this: unsigned int buffer[] = {16, 16, 4294901760..............., 32, 32, 0............}; //ARGB 32bit packed array Display *d = XOpenDisplay(0);

Reading stdout from xinput test in python

被刻印的时光 ゝ 提交于 2019-12-11 06:51:51
问题 I am trying to stream the output of xinput into my python program, however my program just waits and stays blank. I think it may have something to do with buffering but I cannot say. Running xinput test 15 gives me my mouse movements, but doing this will not print it. By the way, to find out your mouseid just type xinput and it will list your devices. #!/usr/bin/env python import sys import subprocess # connect to mouse g = subprocess.Popen(["xinput", "test", str(mouse_id)], stdout=subprocess

How to change _NET_WM_NAME (X Library)

别来无恙 提交于 2019-12-10 19:49:52
问题 This question was migrated from Unix & Linux Stack Exchange because it can be answered on Stack Overflow. Migrated 5 years ago . I try use http://xkbind.sourceforge.net/ (useful for displaying keyboard state in window title) on my Mint Maya (based on Ubuntu 12.04) But xkbind change only WM_NAME property Here is xkbind.c code fragment if(XGetWindowAttributes(dpy, window, &wa)) { XSelectInput(dpy, window, wa.your_event_mask&~PropertyChangeMask); XSync(dpy, False); XSetWMName(dpy, window, p_tp);

Xlib: XGetWindowAttributes always returns 1x1?

随声附和 提交于 2019-12-10 17:11:39
问题 I'd like to have width and height of the currently focussed window. The selection of the window works like a charm whereas the height and width are always returning 1. #include <X11/Xlib.h> #include <stdio.h> int main(int argc, char *argv[]) { Display *display; Window focus; XWindowAttributes attr; int revert; display = XOpenDisplay(NULL); XGetInputFocus(display, &focus, &revert); XGetWindowAttributes(display, focus, &attr); printf("[0x%x] %d x %d\n", (unsigned)focus, attr.width, attr.height)

JavaFX crashes X Server

和自甴很熟 提交于 2019-12-10 14:52:50
问题 Background/Context: I'm currently developing a touch screen application which is aimed to run on Linux. As a development framework I chose JavaFX (jdk1.7.0_10) due to its rapid prototyping easiness. I'm using Arch Linux (kernel 3.6.10-1-ARCH) distribution and since JavaFX needs a head-full environment to run, I installed Xorg on top of the base configuration. Even thought I'm able to run my JavaFX application, I have some issues with popup windows that are being displayed in my application.

Black screen in QEmu for ARM-Ubuntu (how to get GUI?)

拟墨画扇 提交于 2019-12-10 14:32:11
问题 I am hosting Ubuntu 16.04 on Virtual Box from Windows 10. Inside that Ubuntu 16.04, there is QEmu emulating ARM processor, running Ubuntu Trusty (14.04). When I start QEmu as follows, it shows a window with title QEMU , but completely black client area: qemu-system-arm -smp 2 --drive format=raw,if=sd,file=vexpress-8G.img -kernel vmlinuz-3.13.0-24-generic-lpae -initrd initrd.img-3.13.0-24-generic-lpae -M vexpress-a15 -serial stdio -m 2048 -append 'root=/dev/mmcblk0 rw mem=2048M raid

Why are some setxkbmap options ignored?

ε祈祈猫儿з 提交于 2019-12-10 10:57:18
问题 in share/X11/xkb/rules/evdev/lst, I find this set of options for ctrl ctrl Ctrl key position ctrl:nocaps Caps Lock as Ctrl ctrl:lctrl_meta Left Ctrl as Meta ctrl:swapcaps Swap Ctrl and Caps Lock ctrl:ac_ctrl At left of 'A' ctrl:aa_ctrl At bottom left ctrl:rctrl_ralt Right Ctrl as Right Alt ctrl:menu_rctrl Menu as Right Ctrl ctrl:ctrl_ralt Right Alt as Right Ctrl ctrl:swap_lalt_lctl Swap Left Alt key with Left Ctrl key ctrl:swap_lwin_lctl Swap Left Win key with Left Ctrl key ctrl:swap_lalt

why does the file evdev in /usr/share/X11/xkb/rules not match with evdev.lst?

老子叫甜甜 提交于 2019-12-10 10:16:17
问题 it seems that some options to setxkbmap which are listed in evdev.lst are not actually supported by the accompanying evdev file. For example ctrl:nocaps is supported but ctrl:swap_lalt_lctl is not, as evidenced by $ grep 'ctrl:nocaps' /usr/share/X11/xkb/rules/evdev{,.lst} /usr/share/X11/xkb/rules/evdev: ctrl:nocaps = +ctrl(nocaps) /usr/share/X11/xkb/rules/evdev.lst: ctrl:nocaps Caps Lock as Ctrl $ grep 'ctrl:swap_lalt_lctl_lwin' /usr/share/X11/xkb/rules/evdev{,.lst} /usr/share/X11/xkb/rules