xserver

How to change the Monitor brightness on Linux?

做~自己de王妃 提交于 2019-12-18 10:35:53
问题 How do I programmatically change the monitor brightness on Linux? I'm using SLES 11. 回答1: You can always use xrandr --output LVDS1 --brightness 0.9 回答2: You can try using xbacklight. xbacklight -set 100 回答3: For me it works perfectly with xbacklight . If you for example wish to set up a key binding, you can use bindsym $SUPER+Shift+plus exec xbacklight -inc 10 bindsym $SUPER+Shift+minus exec xbacklight -dec 10 in your window managers config (I use i3) to regulate your screen's brightness

How to check if X server is running?

怎甘沉沦 提交于 2019-12-18 10:32:37
问题 Is there any way to find out if the current session user is running an Xserver (under Linux) ? I'v started off with things like: ps -e | grep X but this doesn't work always and one more thing I tried is checking the $DISPLAY variable Are there any other ways to check this? EDIT: Some people suggested using the $DISPLAY variables but what if the user fiddles with this variable ? what if he tries to do something and changes this variable and then when I check it, it no longer reflects an

Java Jframe launch another JFrame to another X Server

房东的猫 提交于 2019-12-11 09:57:49
问题 I have java application which is runs on Xvnc (on Ubuntu) screen (DISPLAY :1), what I need to do is, to launch another JFrame to main screen DISPLAY :0 from one application, that is, the one running in DISPLAY :1. I have think about using Runtime.getRuntime().exec(), but the problem is, i need to control the second JFrame properties from the main application. Please help on how can I achieve that. Thank you. I don't need cross platform solution, just for ubuntu. UPDATE: i used code try{

how to parse customer message?

筅森魡賤 提交于 2019-12-11 02:57:59
问题 i use customer message and send it broadcast over radio channel, i use example 6 ( CounterSend ) from this link . when i build this project as micAz on mote 1, after this i use Xsniffer (TOSBase) on the mote that i will use it on the serial usb board (520). after that i open Xsniffer program to see the radio packet and they appeared as following : on other hand, to use Xserver i use XMeshBase then type on cygwin terminal : xserve -device=com4 i got this!! but i can't understand what it

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

How to avoid Eclipse leaks on XServer when editing Android XML files?

…衆ロ難τιáo~ 提交于 2019-12-10 02:58:30
问题 When I'm editing XML files in Eclipse (mainly, Android layouts and so), it causes leaks on XServer and it ends eating all my RAM (4GB), so I have to Ctrl+Alt+Backspace to continue. Do you know any remedy for that? 回答1: Eclipse Juno and ADT v20 seem to be working well. 回答2: It might help if you start eclipse off your java interpreter with a garbage collector enabled via the command line. Something like this could work: java /path/to/eclipse -XX:+UseParallelGC You could also add some swap space

Starting Xserver in Docker Ubuntu container

北慕城南 提交于 2019-12-07 11:33:34
问题 I have minimal Ubuntu installation in my container and I want to have Xserver running. I need XServer, because my app requires meshlabserver, which itself needs Xserver. I installed xserver-xorg and all other packages, but when I try to start X in container via /usr/bin/X :0 it says: Fatal server error: (EE) xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) What am I doing wrong? How do I start X server? UPDATE: related question: Host screen turns off when I start X server in

How to kill headless X server started via Python?

蹲街弑〆低调 提交于 2019-12-06 11:56:45
问题 I want to get screenshots of a webpage in Python. For this I am using http://github.com/AdamN/python-webkit2png/ . newArgs = ["xvfb-run", "--server-args=-screen 0, 640x480x24", sys.argv[0]] for i in range(1, len(sys.argv)): if sys.argv[i] not in ["-x", "--xvfb"]: newArgs.append(sys.argv[i]) logging.debug("Executing %s" % " ".join(newArgs)) os.execvp(newArgs[0], newArgs) Basically calls xvfb-run with the correct args. But man xvfb says: Note that the demo X clients used in the above examples

Host screen turns off when I start X server in docker container

拈花ヽ惹草 提交于 2019-12-06 04:28:12
问题 I created docker container with X server inside. I use it for some off-screen OpenGL rendering. This container should work on any system (with or without X server running) and it should use hardware GPU if it exists (so I cannot use xvfb). When I use this container on server-like system without GUI, everything works perfectly. But when I run the container on Ubuntu 14.04 Desktop, the screen turns off each time I start X server in my container. I start container with --priviliged so /dev

xhost command for docker GUI apps (Eclipse)

╄→尐↘猪︶ㄣ 提交于 2019-12-05 17:14:12
I'm looking at running a GUI app in docker. I've heard that this is incurs security problems due to the Xserver being exposed. I'd like to know what is being done in each of the following steps, specifically the xhost local:root : [ -d ~/workspace ] || mkdir ~/workspace xhost local:root docker run -i --net=host --rm -e DISPLAY -v $HOME/workspace/:/workspace/:z docbill/ubuntu-umake-eclipse [ -d ~/workspace ] || mkdir ~/workspace This creates a workspace directory in your home directory if it doesn't already exist. xhost local:root This permits the root user on the local machine to connect to X