X Tips

Editor: pam.roberts@btinternet.com

27 July 2000: EnergyStar Monitor section added
23 July 2000: The original version

Being a collection of tips from several people about the X window system and GUI , mostly relating to Caldera's COL 2.2, 2.3 and eD2.4 distributions.

Note 1: Many of these were originally in the Step by Step TIPS section.

Note 2: Warning, YMMV. Whether these tips will work for you or not may depend on which distribution you are running and how it was set up.


X FONTS TIP


submitted by: Collins Richey (richey3@wt.net)

From: Collins Richey

This procedure has been tested on eDesk2.4 (full install) with KDE 1.1.3 (unmodified) and XFree86 401, but it should be applicable to other releases.

The default font size for XFree86 is so miniscule that screen resolutions of 1024x768 and above are almost unreadable. A simple way to fix this problem is to alter the FontPath search order in your XF86Config file such that the 100dpi directories precede the 75dpi directories.

Edit the FontPath statements to use the following order. I am using X 401, but this will be similar for XFree86 3.3.x. Restart X/KDE when done.

FontPath "/usr/X11R6/lib/X11/fonts/local/"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"

COMMON USER / ROOT GUI

To share the gui environment between user and su (root) so you can run a GUI program such as Kedit from a console after su'ing to get root permissions, insert the following line
xhost +"$hostname"
into the (dot)bashrc file in your home directory.

Or, you can open kedit (or other gui based program) with root permissions from a console by typing;
 [mereuser] su -mc 'kedit'
 password

If you don't want to be locked out of the console while you're running kedit, then
 [mereuser] su -mc 'kedit &'
 password


DUAL GUIS

This allows you to switch between a root gui environment (CTL-ALT-F9) and a user environment (CTL-ALT-F8) (or in fact any two user logins).

Edit /etc/X11/kdm/Xservers so it looks something like;

  :0 local /usr/X11R6/bin/X -dpi 75 -gamma 1.6 :0
  :1 local /usr/X11R6/bin/X -dpi 75 -gamma 1.6 :1

About the -dpi and -gamma options, mine as shown above are part of my war against ugly fonts, the crucial bits are the :n at the beginning _and_ end of each line.

Note from mikea: you might also wish to edit

 /usr/X11R6/lib/X11/xdm/Xservers

and insert the above lines so that both startx and kde achieve the same results.


STARTX

Joseph Van Valen; jrv@vanvalen.com

If you installed w/ LISA, there could be a bug which breaks Xterm.
No Xterm means that the startx script won't start.

To cure it, add the following line to /etc/fstab

devpts /dev/pts devpts gid=5,mode=620 0 0


Init state 3 and DISPLAY :0.0. problem

Bill Campbell; bill@celestial.com

There has been a problem in Caldera that goes back as far as the COL 2.2 beta. The problem comes up when trying to run X from init state 3.
The /usr/lib/X11/xinit/xserverrc file needs one line added to allow access from DISPLAY :0.0.
An example corrected xserverrc file is shown below, the only change is adding the line below the ``done'' line.

 #!/bin/bash
 XAUTH=$HOME/.Xauthority
 MKCOOKIE=/usr/bin/mcookie
 touch $XAUTH
 for host in localhost $HOSTNAME $HOST; do
 xauth add $host/unix:0 . `$MKCOOKIE`
 xauth add $host:0 . `$MKCOOKIE`
 done
 xauth add :0.0 . `$MKCOOKIE`
 exec Xwrapper -auth $XAUTH :0


Runlevel 3 and DISPLAY :0.0 Problem on Caldera eWorkstation 3.1.1

This is the same tip as the above, modified for Caldera's eWorkstation 3.1.1

Jerry McBride mcbrides9@comcast.net

 #!/bin/bash
 XAUTH=$HOME/.Xauthority
 MKCOOKIE=/usr/bin/mcookie
 touch $XAUTH
 for host in localhost $HOSTNAME $HOST; do
 xauth add $host/unix:0 . `$MKCOOKIE`
 xauth add $host:0 . `$MKCOOKIE`
 done
 xauth add :0.0 . `$MKCOOKIE`
 exec X -auth $XAUTH :0


EnergyStar Monitor

From: Les Bell

If you have an EnergyStar compliant monitor, you can modify XF86Config to automatically suspend and power-down the monitor. Here's how:

Su to root

Edit /etc/XF86Config. Scroll down to the section marked: Section "Device". Before the EndSection line, add a line that says:

Option "power_saver"

Now scroll further down, to the section used by your X server: it will be one of the Section "Screen" entries, but which one depends on whether you are using the XF86_SVGA (Driver "SVGA") or one of the accelerated (Driver "accel") servers. You can add these lines to *all* the "Screen" sections, if you want. Before you get to one of the Subsection "Display" entries, add the three lines:

StandbyTime 15
SuspendTime 30
OffTime 45

The times are specified in minutes, and can be adjusted, obviously.

Now, shut down your various X applications and logout, then restart the X server. Your monitor should now power down correctly.


searchSearch Index