Skip to Main Content
Linux Desktop Hacks
book

Linux Desktop Hacks

by Nicholas Petreley, Jono Bacon
March 2005
Beginner to intermediate content levelBeginner to intermediate
342 pages
15h 55m
English
O'Reilly Media, Inc.
Content preview from Linux Desktop Hacks
286
|
Chapter 11, Hardware
#95 Print to Unsupported Printers
HACK
Configure the Resolution and Refresh Rate
To change the resolution and refresh rate inside X, you need to adjust the
Screen part of the configuration file. This section contains some important
settings which, if configured incorrectly, could stop X from working properly.
The first part of the block contains information about your monitor. Some
of the details you added to the
Monitor block earlier should be copied over
to this block. For the main part of this block, you need to set two things: the
resolution and the color depth. You use the
DefaultDepth option to set the
color depth, and you use the
Modes section to specify the first part of the cus-
tom mode you obtained from the X timing web site (
1152x864@88 for this
example). You should ensure that modes you don’t use are removed from
the Modes line. Here is an example block:
Section "Screen"
Identifier "Screen 1"
Device "Acme VideoKing"
Monitor "Whizzbang MonitorMan"
DefaultDepth 16
Subsection "Display"
Depth 16
Modes "1152x864@88"
ViewPort 0 0
EndSubsection
EndSection
Now restart X. If you are starting X with startx, simply log out and restart
the server. For example, if you are using a display manager such as GDM,
you will need to restart it with this:
foo@bar:~$ /etc/init.d/gdm restart
HACK
#95
Print to Unsupported Printers Hack #95
Use a Windows machine as a print server, when you can’t ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Linux Server Hacks, Volume Two

Linux Server Hacks, Volume Two

William von Hagen, Brian K. Jones
Introducing Linux Distros

Introducing Linux Distros

Jose Dieguez Castro

Publisher Resources

ISBN: 0596009119Supplemental ContentCatalog PageErrata