User Tools

Site Tools


docs:tips_n_tricks:x11.html

X11

setting the title of my xterm

#!/bin/sh

if [ "$#" = 0 ]
then
  title="$HOSTNAME: "`pwd`
else
  title="$*"
fi

echo -en "\033]0;$title\007"
exit $?

see also xtermcontrol

Disabling Edge Tiling in Metacity (Windowmanager)

 ~ $ gsettings set org.gnome.metacity edge-tiling false
 ~ $ ps -ef |fgrep metacity         
user     4443  4431  1 Jan05 ?        00:42:00 metacity --sm-client-id 2ffd4990f-c0bb-4a4e-9d1c-233170dd59c2
user    29483  6578  0 14:17 pts/14   00:00:00 grep -F metacity
 ~ $ metacity --sm-client-id 2ffd4990f-c0bb-4a4e-9d1c-233170dd59c2 --replace

Create a dummy monitor for VNC

It turns out, having only the Device sections of both config files is sufficient, but the Device describing the real hardware needs to be first

Console

~$ xorg :1 -config
~$ mv xorg.conf.new /etc/X11/xorg.conf.d/new.conf
~$ vi /etc/X11/xorg.conf.d/dummy.conf
~$ systemctl restart display-manager
/etc/X11/xorg.conf.d/dummy.conf
Section "Device"
    Identifier  "Dummy Video Device"
    Driver      "dummy"
    VideoRam 256000
EndSection
 
Section "Monitor"
    Identifier  "Dummy Monitor"
    HorizSync 5.0 - 1000.0
    VertRefresh 5.0 - 200.0
    ModeLine "1920x1080" 148.50 1920 2448 2492 2640 1080 1084 1089 1125 +Hsync +Vsync
EndSection
 
Section "Screen"
    Identifier  "Dummy Screen"
    Monitor     "Dummy Monitor"
    Device      "Dummy Video Device"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    Modes "1920x1080" "1280x800" "1024x768" "1920x1080" "1440x900"
    EndSubSection
EndSection

Some other host

xvncviewer -listen 5500

X11 graphical session

~$ cvt 1440 900 60
# 1440x900 59.89 Hz (CVT 1.30MA) hsync: 55.93 kHz; pclk: 106.50 MHz
Modeline "1440x900_60.00"  106.50  1440 1528 1672 1904  900 903 909 934 -hsync +vsync
~$ xrandr --newmode 1440x900 106.50  1440 1528 1672 1904  900 903 909 934 -hsync +vsync
~$ xfce4-display-settings
~$ xrandr --addmode VIRTUAL1 1440x900
~$ X11VNC_REVERSE_CONNECTION_NO_AUTH=1 STY='' screen -S x11vnc x11vnc -clip xinerama3 \
                                                     -connect someotherhost -rfbport 0 -xdamage -xdamage

The double -xdamage is to avoid the warning

01/01/2025 10:20:30 XDAMAGE is not working well... misses: 206/227
01/01/2025 10:20:30 Maybe an OpenGL app like Beryl or Compiz is the problem?
01/01/2025 10:20:30 Use x11vnc -noxdamage or disable the Beryl/Compiz app.
01/01/2025 10:20:30 To disable this check and warning specify -xdamage twice.
Having the xfce4-display-settings running with “Wenn new displays are attached: extend” selected makes the viewport move somehow without reflecting this move in the display settings. So better just select “Show dialog”
docs/tips_n_tricks/x11.html.txt · Last modified: 17.01.2025 19:10 CET by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki