WLUG
By thread
wlug@lists.wlug.org
By month
Messages by month
- ----- 2026 -----
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2005 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2004 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2003 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2002 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2001 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2000 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- 1 participants
- 11227 messages
looking for PHP 5.2.x help
by John Stoffel
Guys,
I'm looking for some help with PHP5.2.x hacking on a web site to
cleanup how the user submitted search form is handled. Basically I
want to make it simple for the end user to a) refine their query, b)
not have to answer popups if they hit the reload button, and c) so I
can leanr more PHP. I found this nice reference:
http://us2.php.net/manual/en/language.variables.external.php
which has two sections by "wayne" and "Jonas Lindel" talking about how
you can take the results of a PHP POST request, stuff the vars into
your session, and redirect back to the same page without the POST vars
set, then complete the query.
The idea is so that when people hit the "back" or "reload" buttons,
they don't keep getting asked whether they want to resubmit their
data.
It's not strictly needed, but it would be a nice cleanup of the
interface.
Here's the snippet I'm trying to use, which bombs out with:
Fatal error: Cannot re-assign $this in .... on line 45
And the code I'm using is:
<?
// We want to put the search query into a session so we can restore it
// easily when users goto look at full_holdings.php and then return to
// the overall display page. We'll need to do a session_destroy in
// index.php I think. See the tutorial(s) at
// http://www.phpf1.com/tutorial/php-sessions.html
// http://us3.php.net/manual/en/book.session.php
session_start();
// Now see Jonas Lindel's & Wayne's code at
// http://us2.php.net/manual/en/language.variables.external.php for
// this *nice* trick.
//is there POST or GET data we should look at
if($_POST or ($_GET and (!isset($_SESSION['skipnextget'])))) {
//is there GET data?
if($_GET) {
$newgetarr = array();
foreach($_GET as $key => $value) {
if(is_array($value)) {
//if it's an array, convert it to comma separated
$newvalue = implode(',',$value);
} else {
$newvalue = $value;
}
$newgetarr[] = $key.'='.$newvalue;
}
$newget = implode('&',$newgetarr);
$_SESSION['skipnextget'] = 1;
}
foreach($_POST as $key => $value) {
$this[$key] = $value;
}
$_SESSION['postvars'] = serialize($this); //put POST in the session
header("Location: http://" .$_SERVER['HTTP_HOST']
. $_SERVER['PHP_SELF'] . '?\
' . $newget);
//reload page without POST data and shorter GET data
exit();
} else { //after reloading we'll come right to this spot
session_unregister('skipnextget');
if(isset($_SESSION['postvars'])) {
//load the POST variables from the session
// Error on this line below!
$this = unserialize($_SESSION['postvars']);
session_unregister('postvars'); //delete the session stuff we
//don't need anymore.
return $this;
}
}
Aug. 25, 2009
Re: [Wlug] This is an ancient OS.
by Adam Gomes
XF86Config
You have XFree86, not XOrg
On Thu, Aug 20, 2009 at 4:54 PM, Ken Jones <kjones(a)ziplink.net> wrote:
> John et al, I think I have a real problem.. Neither OS uses
> /etc/X11/xorg.conf as one would expect.
> I think there is a book available entitled "Computing in the Middle Ages".
> Could it be?????
>
> First kjones-sun
>
> [root@kjones-sun X11]# uname -a
> Linux kjones-sun 2.4.20-2.3sparc #1 Wed Jan 15 18:27:52 EST *2003* sparc64
> unknow
>
> ---------- xrandr is not interesting---------------
>
> [root@kjones-sun kjones]# xrandr -q
> Can't open display (null)
>
> ----------------no xorg.conf ---------
>
> [root@kjones-sun kjones]# cd /etc/X11
> [root@kjones-sun X11]# ls
> applnk proxymngr twm XF86Config-4 xinit
> xsrirc
> fs rstart X XF86Config-4.rpmsave xkb
> gdm serverconfig xdm XF86Config-5 Xmodmap
> lbxproxy starthere XF86Config XF86Config_orig xserver
> prefdm sysconfig XF86Config~ XftConfig xsm
> [root@kjones-sun X11]#
>
>
> There seems to be no xorg.conf. anywhere. "locate" can not find it.
>
> ====================================================
>
> Now kjones-sun2
>
> kjones-sun2 ~ # uname -a
> Linux kjones-sun2 2.6.20-gentoo-r5 #4 SMP Tue May 22 20:27:03 Local time
> zone mu
> st be set--see zic sparc64 sun4u TI UltraSparc I (SpitFire) GNU/Linux
>
> --------xrandr -q still not interesting--------
>
> kjones-sun2 ~ # xrandr -q
> Can't open display
>
>
> kjones-sun2 ~ # locate xorg.conf
> warning: locate: warning: database /var/lib/slocate/slocate.db' is more
> than 8 days old
> /usr/portage/app-emulation/vmware-workstation-tools/files/xorg.conf.ferris
> /usr/portage/app-emulation/vmware-workstation-tools/files/xorg.conf
> /usr/share/man/man5/xorg.conf.5x.bz2
> /etc/X11/xorg.conf.example
> ------------------try /etc/X11 for kicks------------------
>
> kjones-sun2 ~ # cd /etc/X11
> kjones-sun2 X11 # ls
> Sessions app-defaults chooser.sh mwm startDM.sh xinit
> xorg.conf.example
> kjones-sun2 X11 #
>
> ------------------xorg.conf looks like an example-----------
>
> kjones-sun2 ~ # more
> /usr/portage/app-emulation/vmware-workstation-tools/files/x
> org.conf
> --More--(22%)
> Section "ServerLayout"
> --More--(22%)
> Identifier "X.org Configured"
> Screen 0 "Screen0" 0 0
> InputDevice "Mouse0" "CorePointer"
> InputDevice "Keyboard0" "CoreKeyboard"
> EndSection
>
> Section "Files"
> RgbPath "/usr/lib/X11/rgb"
> ModulePath "/usr/lib/modules"
> FontPath "/usr/share/fonts/misc/"
> FontPath "/usr/share/fonts/TTF/"
> FontPath "/usr/share/fonts/Type1/"
> FontPath "/usr/share/fonts/CID/"
> FontPath "/usr/share/fonts/75dpi/"
> FontPath "/usr/share/fonts/100dpi/"
> EndSection
>
> Section "Module"
> Load "extmod"
> Load "dri"
> Load "dbe"
> Load "record"
> Load "xtrap"
> Load "glx"
> Load "type1"
> Load "freetype"
> EndSection
>
> Section "InputDevice"
> Identifier "Keyboard0"
> Driver "kbd"
> EndSection
>
> Section "InputDevice"
> Identifier "Mouse0"
> Driver "mouse"
> Option "Protocol" "auto"
> Option "Device" "/dev/mouse"
> EndSection
>
> Section "Monitor"
> Identifier "Monitor0"
> VendorName "Monitor Vendor"
> ModelName "Monitor Model"
>
> HorizSync 1-10000
> --More--(75%)
> VertRefresh 1-10000
>
> ModeLine "640x480" 100 640 700 800 900 480 500 600 700
> ModeLine "800x600" 100 800 900 1000 1100 600 700 800 900
> ModeLine "1024x768" 100 1024 1100 1200 1300 768 800 900 1000
> ModeLine "1152x864" 100 1152 1200 1300 1400 864 900 1000 1100
> ModeLine "1152x900" 100 1152 1200 1300 1400 900 1000 1100 1200
> ModeLine "1280x1024" 100 1280 1300 1400 1500 1024 1100 1200 1300
> ModeLine "1376x1032" 100 1376 1400 1500 1600 1032 1100 1200 1300
> ModeLine "1600x1200" 100 1600 1700 1800 1900 1200 1300 1400 1500
> ModeLine "2364x1773" 100 2364 2400 2500 2600 1773 1800 1900 2000
>
> EndSection
>
> Section "Device"
> ### Available Driver options are:-
> ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
> ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
> ### [arg]: arg optional
> #Option "HWcursor" # [<bool>]
> #Option "NoAccel" # [<bool>]
> Identifier "Card0"
> Driver "vmware"
> --More--(90%)
> VendorName "VMWare Inc"
> BoardName "Unknown Board"
> BusID "PCI:0:15:0"
> EndSection
>
> Section "Screen"
> Identifier "Screen0"
> Device "Card0"
> Monitor "Monitor0"
>
> SubSection "Display"
> Viewport 0 0
> Depth 4
> Modes "1024x768"
> EndSubSection
>
> SubSection "Display"
> Viewport 0 0
> Depth 8
> Modes "1024x768"
> EndSubSection
>
> SubSection "Display"
> Viewport 0 0
> Depth 15
> Modes "1024x768"
> EndSubSection
>
> SubSection "Display"
> Viewport 0 0
> Depth 16
> Modes "1024x768"
> EndSubSection
>
> SubSection "Display"
> Viewport 0 0
> Depth 24
> Modes "1024x768"
> EndSubSection
> EndSection
>
> Thanks, Ken Jones
>
> _______________________________________________
> Wlug mailing list
> Wlug(a)mail.wlug.org
> http://mail.wlug.org/mailman/listinfo/wlug
>
>
Aug. 25, 2009
Re: [Wlug] I've posted on Linux Questions
by E Johnson
I had read that at least one of the Samsung Syncmaster monitors really
does (allegedly) work at 120 Hz.
At least, certain customer reviews at Newegg seem to indicate that.
http://www.newegg.com/Product/ProductReview.aspx?Item=N82E16824001311
Good luck,'Liz J
2009/8/23 Ken Jones <kjones(a)ziplink.net>:
> Folks, thank you for your help so far. I have made progress. The image on
> my screen is still unacceptable. It will be interesting to see whether
> linuxquestions can come up with something
>
> http://www.linuxquestions.org/questions/linux-hardware-18/belkin-sun-adapte…
>
> Ken Jones
> _______________________________________________
> Wlug mailing list
> Wlug(a)mail.wlug.org
> http://mail.wlug.org/mailman/listinfo/wlug
>
>
Aug. 23, 2009
I've posted on Linux Questions
by Ken Jones
Folks, thank you for your help so far. I have made progress. The image on my screen is still unacceptable. It will be interesting to see whether linuxquestions can come up with something
http://www.linuxquestions.org/questions/linux-hardware-18/belkin-sun-adapte…
Ken Jones
Aug. 23, 2009
Re: [Wlug] I think I've found the cuprit
by John Stoffel
Ken> I think the monitor/display controlling configuration file in my
Ken> Aurora machine is /etc/X11/XF86Config
Oh yeah, you're running the Ancient (and forked to xorg.conf) xf86free
stuff.
Ken> [root@kjones-sun etc]# cd X11
Ken> [root@kjones-sun X11]# ls
Ken> applnk proxymngr twm XF86Config-4 xinit xsrirc
Ken> fs rstart X XF86Config-4.rpmsave xkb
Ken> gdm serverconfig xdm XF86Config-5 Xmodmap
Ken> lbxproxy starthere XF86Config XF86Config_orig xserver
Ken> prefdm sysconfig XF86Config~ XftConfig xsm
Ken> It is too long to send to all. The question is what should it say?
Send it.
Aug. 21, 2009
Re: [Wlug] I think I've found the cuprit
by jrm8005ï¼ gmail.com
You'll probably need something that says "ModeLine "number" "number"
"number"...." under Display IIRC.
> I think the monitor/display controlling configuration file in my Aurora machine is /etc/X11/XF86Config
>
> [root@kjones-sun etc]# cd X11
> [root@kjones-sun X11]# ls
> applnk proxymngr twm XF86Config-4 xinit xsrirc
> fs rstart X XF86Config-4.rpmsave xkb
> gdm serverconfig xdm XF86Config-5 Xmodmap
> lbxproxy starthere XF86Config XF86Config_orig xserver
> prefdm sysconfig XF86Config~ XftConfig xsm
>
> It is too long to send to all. The question is what should it say?
>
> Ken
Aug. 20, 2009
I think I've found the cuprit
by Ken Jones
I think the monitor/display controlling configuration file in my Aurora machine is /etc/X11/XF86Config
[root@kjones-sun etc]# cd X11
[root@kjones-sun X11]# ls
applnk proxymngr twm XF86Config-4 xinit xsrirc
fs rstart X XF86Config-4.rpmsave xkb
gdm serverconfig xdm XF86Config-5 Xmodmap
lbxproxy starthere XF86Config XF86Config_orig xserver
prefdm sysconfig XF86Config~ XftConfig xsm
It is too long to send to all. The question is what should it say?
Ken
Aug. 20, 2009
Re: [Wlug] This is an ancient OS.
by Randall Mason
You can run X -version and you can find out about what your computer thinks
it is:
mason@newdelly:~$ X -version
X.Org X Server 1.6.0
Release Date: 2009-2-25
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-23-server i686 Ubuntu
Current Operating System: Linux newdelly 2.6.27-11-generic #1 SMP Wed
Apr 1 20:57:48 UTC 2009 i686
Build Date: 09 April 2009 02:10:02AM
xorg-server 2:1.6.0-0ubuntu14 (buildd(a)rothera.buildd)
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
If that doesn't produce anything, then the X version is older than X.Org,
because X11R6 was renamed X at that point.
Try running the above command, but use "X11R6".
Also, look at the logs directory, in /var/log there will be either X.org
logs or XFree86 logs. Look at the top of those and that should tell you
what version you are running. While you're at it, email us the log and we
can diagnose the problem better.
Randall Mason
On Thu, Aug 20, 2009 at 4:57 PM, Randall Mason <clashthebunny(a)gmail.com>wrote:
> The file you need to edit is the XF86Config in /etc/X11, That's what the
> config file was before the whole X.Org switchover.
>
> Randall Mason
>
>
>
> On Thu, Aug 20, 2009 at 4:54 PM, Ken Jones <kjones(a)ziplink.net> wrote:
>
>> John et al, I think I have a real problem.. Neither OS uses
>> /etc/X11/xorg.conf as one would expect.
>> I think there is a book available entitled "Computing in the Middle
>> Ages". Could it be?????
>>
>> First kjones-sun
>>
>> [root@kjones-sun X11]# uname -a
>> Linux kjones-sun 2.4.20-2.3sparc #1 Wed Jan 15 18:27:52 EST *2003*sparc64 unknow
>>
>> ---------- xrandr is not interesting---------------
>>
>> [root@kjones-sun kjones]# xrandr -q
>> Can't open display (null)
>>
>> ----------------no xorg.conf ---------
>>
>> [root@kjones-sun kjones]# cd /etc/X11
>> [root@kjones-sun X11]# ls
>> applnk proxymngr twm XF86Config-4 xinit
>> xsrirc
>> fs rstart X XF86Config-4.rpmsave xkb
>> gdm serverconfig xdm XF86Config-5 Xmodmap
>> lbxproxy starthere XF86Config XF86Config_orig xserver
>> prefdm sysconfig XF86Config~ XftConfig xsm
>> [root@kjones-sun X11]#
>>
>>
>> There seems to be no xorg.conf. anywhere. "locate" can not find it.
>>
>> ====================================================
>>
>> Now kjones-sun2
>>
>> kjones-sun2 ~ # uname -a
>> Linux kjones-sun2 2.6.20-gentoo-r5 #4 SMP Tue May 22 20:27:03 Local time
>> zone mu
>> st be set--see zic sparc64 sun4u TI UltraSparc I (SpitFire) GNU/Linux
>>
>> --------xrandr -q still not interesting--------
>>
>> kjones-sun2 ~ # xrandr -q
>> Can't open display
>>
>>
>> kjones-sun2 ~ # locate xorg.conf
>> warning: locate: warning: database /var/lib/slocate/slocate.db' is more
>> than 8 days old
>> /usr/portage/app-emulation/vmware-workstation-tools/files/xorg.conf.ferris
>> /usr/portage/app-emulation/vmware-workstation-tools/files/xorg.conf
>> /usr/share/man/man5/xorg.conf.5x.bz2
>> /etc/X11/xorg.conf.example
>> ------------------try /etc/X11 for kicks------------------
>>
>> kjones-sun2 ~ # cd /etc/X11
>> kjones-sun2 X11 # ls
>> Sessions app-defaults chooser.sh mwm startDM.sh xinit
>> xorg.conf.example
>> kjones-sun2 X11 #
>>
>> ------------------xorg.conf looks like an example-----------
>>
>> kjones-sun2 ~ # more
>> /usr/portage/app-emulation/vmware-workstation-tools/files/x
>> org.conf
>> --More--(22%)
>> Section "ServerLayout"
>> --More--(22%)
>> Identifier "X.org Configured"
>> Screen 0 "Screen0" 0 0
>> InputDevice "Mouse0" "CorePointer"
>> InputDevice "Keyboard0" "CoreKeyboard"
>> EndSection
>>
>> Section "Files"
>> RgbPath "/usr/lib/X11/rgb"
>> ModulePath "/usr/lib/modules"
>> FontPath "/usr/share/fonts/misc/"
>> FontPath "/usr/share/fonts/TTF/"
>> FontPath "/usr/share/fonts/Type1/"
>> FontPath "/usr/share/fonts/CID/"
>> FontPath "/usr/share/fonts/75dpi/"
>> FontPath "/usr/share/fonts/100dpi/"
>> EndSection
>>
>> Section "Module"
>> Load "extmod"
>> Load "dri"
>> Load "dbe"
>> Load "record"
>> Load "xtrap"
>> Load "glx"
>> Load "type1"
>> Load "freetype"
>> EndSection
>>
>> Section "InputDevice"
>> Identifier "Keyboard0"
>> Driver "kbd"
>> EndSection
>>
>> Section "InputDevice"
>> Identifier "Mouse0"
>> Driver "mouse"
>> Option "Protocol" "auto"
>> Option "Device" "/dev/mouse"
>> EndSection
>>
>> Section "Monitor"
>> Identifier "Monitor0"
>> VendorName "Monitor Vendor"
>> ModelName "Monitor Model"
>>
>> HorizSync 1-10000
>> --More--(75%)
>> VertRefresh 1-10000
>>
>> ModeLine "640x480" 100 640 700 800 900 480 500 600 700
>> ModeLine "800x600" 100 800 900 1000 1100 600 700 800 900
>> ModeLine "1024x768" 100 1024 1100 1200 1300 768 800 900 1000
>> ModeLine "1152x864" 100 1152 1200 1300 1400 864 900 1000 1100
>> ModeLine "1152x900" 100 1152 1200 1300 1400 900 1000 1100 1200
>> ModeLine "1280x1024" 100 1280 1300 1400 1500 1024 1100 1200 1300
>> ModeLine "1376x1032" 100 1376 1400 1500 1600 1032 1100 1200 1300
>> ModeLine "1600x1200" 100 1600 1700 1800 1900 1200 1300 1400 1500
>> ModeLine "2364x1773" 100 2364 2400 2500 2600 1773 1800 1900 2000
>>
>> EndSection
>>
>> Section "Device"
>> ### Available Driver options are:-
>> ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
>> ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
>> ### [arg]: arg optional
>> #Option "HWcursor" # [<bool>]
>> #Option "NoAccel" # [<bool>]
>> Identifier "Card0"
>> Driver "vmware"
>> --More--(90%)
>> VendorName "VMWare Inc"
>> BoardName "Unknown Board"
>> BusID "PCI:0:15:0"
>> EndSection
>>
>> Section "Screen"
>> Identifier "Screen0"
>> Device "Card0"
>> Monitor "Monitor0"
>>
>> SubSection "Display"
>> Viewport 0 0
>> Depth 4
>> Modes "1024x768"
>> EndSubSection
>>
>> SubSection "Display"
>> Viewport 0 0
>> Depth 8
>> Modes "1024x768"
>> EndSubSection
>>
>> SubSection "Display"
>> Viewport 0 0
>> Depth 15
>> Modes "1024x768"
>> EndSubSection
>>
>> SubSection "Display"
>> Viewport 0 0
>> Depth 16
>> Modes "1024x768"
>> EndSubSection
>>
>> SubSection "Display"
>> Viewport 0 0
>> Depth 24
>> Modes "1024x768"
>> EndSubSection
>> EndSection
>>
>> Thanks, Ken Jones
>>
>> _______________________________________________
>> Wlug mailing list
>> Wlug(a)mail.wlug.org
>> http://mail.wlug.org/mailman/listinfo/wlug
>>
>>
>
Aug. 20, 2009
Re: [Wlug] getting rid of some monitors
by Jared Greenwald
21s taken
On Thu, Aug 20, 2009 at 2:35 PM, Jared
Greenwald<greenwaldjared(a)gmail.com> wrote:
> I apologize in advance for spamming the list with my want ad.
>
> I need to get rid of some CRT monitors and am wondering if anyone on
> the list would be interested. Â They are as follows...
>
> 1x Gateway Vivitron (circa '95) 17"
> 1x Compaq MV940 19"
> 2x Digital re-branded Trinitron 21" (matched pair)
>
> The 19" and 21" monitors can each run at 1600x1200 and the 21s have
> dual input, which is nice. Â I used the 21s in a TwinView setup on my
> main Ubuntu-based workstation at home for years until I got a LCD last
> Christmas. Â I have power/video cables for all of them, so they are
> ready to roll. Â I had them up on craigslist to try and sell them, but
> haven't gotten any hits and it's just time to clear out the space.
> The catch is that you would need to come pick them up from me in
> Uxbridge.
>
> Please respond to me privately so we don't spam the list.
>
> Thanks,
> Jared Greenwald
>
Aug. 20, 2009
Re: [Wlug] [W
by jrm8005ï¼ gmail.com
> John et al, I think I have a real problem.. Neither OS uses /etc/X11/xorg.conf as one would expect.
> I think there is a book available entitled "Computing in the Middle Ages". Could it be?????
>
If it's a recent version of Xorg, there won't be an xorg.conf. Xorg
uses HAL and crappy XML files now. If you know what modeline your
monitor needs, create an xorg.conf, put the modeline in, and the
monitor should work.
The idea is that xorg should figure out what to do automagically, but
X sucks and it never works. Giving it a working xorg.conf will make
it do what you want, not it's automagic stuff.
> First kjones-sun
>
> [root@kjones-sun X11]# uname -a
> Linux kjones-sun 2.4.20-2.3sparc #1 Wed Jan 15 18:27:52 EST 2003 sparc64 unknow
>
> ---------- xrandr is not interesting---------------
>
> [root@kjones-sun kjones]# xrandr -q
> Can't open display (null)
>
> ----------------no xorg.conf ---------
>
> [root@kjones-sun kjones]# cd /etc/X11
> [root@kjones-sun X11]# ls
> applnk proxymngr twm XF86Config-4 xinit xsrirc
> fs rstart X XF86Config-4.rpmsave xkb
> gdm serverconfig xdm XF86Config-5 Xmodmap
> lbxproxy starthere XF86Config XF86Config_orig xserver
> prefdm sysconfig XF86Config~ XftConfig xsm
> [root@kjones-sun X11]#
>
>
> There seems to be no xorg.conf. anywhere. "locate" can not find it.
>
> ====================================================
>
> Now kjones-sun2
>
> kjones-sun2 ~ # uname -a
> Linux kjones-sun2 2.6.20-gentoo-r5 #4 SMP Tue May 22 20:27:03 Local time zone mu
> st be set--see zic sparc64 sun4u TI UltraSparc I (SpitFire) GNU/Linux
>
> --------xrandr -q still not interesting--------
>
> kjones-sun2 ~ # xrandr -q
> Can't open display
>
>
> kjones-sun2 ~ # locate xorg.conf
> warning: locate: warning: database /var/lib/slocate/slocate.db' is more than 8 days old
> /usr/portage/app-emulation/vmware-workstation-tools/files/xorg.conf.ferris
> /usr/portage/app-emulation/vmware-workstation-tools/files/xorg.conf
> /usr/share/man/man5/xorg.conf.5x.bz2
> /etc/X11/xorg.conf.example
>
> ------------------try /etc/X11 for kicks------------------
>
> kjones-sun2 ~ # cd /etc/X11
> kjones-sun2 X11 # ls
> Sessions app-defaults chooser.sh mwm startDM.sh xinit xorg.conf.example
> kjones-sun2 X11 #
>
> ------------------xorg.conf looks like an example-----------
>
> kjones-sun2 ~ # more /usr/portage/app-emulation/vmware-workstation-tools/files/x
> org.conf
> --More--(22%)
> Section "ServerLayout"
> --More--(22%)
> Identifier "X.org Configured"
> Screen 0 "Screen0" 0 0
> InputDevice "Mouse0" "CorePointer"
> InputDevice "Keyboard0" "CoreKeyboard"
> EndSection
>
> Section "Files"
> RgbPath "/usr/lib/X11/rgb"
> ModulePath "/usr/lib/modules"
> FontPath "/usr/share/fonts/misc/"
> FontPath "/usr/share/fonts/TTF/"
> FontPath "/usr/share/fonts/Type1/"
> FontPath "/usr/share/fonts/CID/"
> FontPath "/usr/share/fonts/75dpi/"
> FontPath "/usr/share/fonts/100dpi/"
> EndSection
>
> Section "Module"
> Load "extmod"
> Load "dri"
> Load "dbe"
> Load "record"
> Load "xtrap"
> Load "glx"
> Load "type1"
> Load "freetype"
> EndSection
>
> Section "InputDevice"
> Identifier "Keyboard0"
> Driver "kbd"
> EndSection
>
> Section "InputDevice"
> Identifier "Mouse0"
> Driver "mouse"
> Option "Protocol" "auto"
> Option "Device" "/dev/mouse"
> EndSection
>
> Section "Monitor"
> Identifier "Monitor0"
> VendorName "Monitor Vendor"
> ModelName "Monitor Model"
>
> HorizSync 1-10000
> --More--(75%)
> VertRefresh 1-10000
>
> ModeLine "640x480" 100 640 700 800 900 480 500 600 700
> ModeLine "800x600" 100 800 900 1000 1100 600 700 800 900
> ModeLine "1024x768" 100 1024 1100 1200 1300 768 800 900 1000
> ModeLine "1152x864" 100 1152 1200 1300 1400 864 900 1000 1100
> ModeLine "1152x900" 100 1152 1200 1300 1400 900 1000 1100 1200
> ModeLine "1280x1024" 100 1280 1300 1400 1500 1024 1100 1200 1300
> ModeLine "1376x1032" 100 1376 1400 1500 1600 1032 1100 1200 1300
> ModeLine "1600x1200" 100 1600 1700 1800 1900 1200 1300 1400 1500
> ModeLine "2364x1773" 100 2364 2400 2500 2600 1773 1800 1900 2000
>
> EndSection
>
> Section "Device"
> ### Available Driver options are:-
> ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
> ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
> ### [arg]: arg optional
> #Option "HWcursor" # [<bool>]
> #Option "NoAccel" # [<bool>]
> Identifier "Card0"
> Driver "vmware"
> --More--(90%)
> VendorName "VMWare Inc"
> BoardName "Unknown Board"
> BusID "PCI:0:15:0"
> EndSection
>
> Section "Screen"
> Identifier "Screen0"
> Device "Card0"
> Monitor "Monitor0"
>
> SubSection "Display"
> Viewport 0 0
> Depth 4
> Modes "1024x768"
> EndSubSection
>
> SubSection "Display"
> Viewport 0 0
> Depth 8
> Modes "1024x768"
> EndSubSection
>
> SubSection "Display"
> Viewport 0 0
> Depth 15
> Modes "1024x768"
> EndSubSection
>
> SubSection "Display"
> Viewport 0 0
> Depth 16
> Modes "1024x768"
> EndSubSection
>
> SubSection "Display"
> Viewport 0 0
> Depth 24
> Modes "1024x768"
> EndSubSection
> EndSection
>
> Thanks, Ken Jones
Aug. 20, 2009