LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-26-2001, 03:54 PM   #1
FallingFrog
LQ Newbie
 
Registered: Apr 2001
Posts: 11

Rep: Reputation: 0
Question 32 bpp and startx


I'm having some trouble switching the display resolution under X-windows to 16 or 32bpp. I can only seem to get 8bpp. Slackware 8 came with XFree86 4.0, but this did not work, so I downloaded the XF86_S3 X server and set it up with xf86config. Now Xwindows works, but only in 8 bits per pixel. I tried adding "DefaultDepth 16" in various places in my XF86Config file, but then the X server just said it couldn't parse the line and crashed. This caused the X login manager to fail, which in turn meant I couldn't boot my computer without a boot disk. So what is the correct line?
As a side note, if I go to the command-line login, and then try to "startx" without logging in root, it says the X Server has to be run root. That's why I was using the graphical login.
So... if anyone can think of some solutions for either of these problems, I would much appreciate it!

FallingFrog
 
Old 09-29-2001, 04:54 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
First the commandline to start X is split in "client" and "sever" args, separated by "--". IMO, the bpp should be specified as server arg:
"startx -- -bpp 16"
If you gonna test X, spare yourself the trouble and start Linux in console mode: edit /etc/inittab and change the initlevel from 5 (xdm login) to 3 (console login).
Next you need to either set the S3 up *good* tru xf86config, or know how to work the sections in /etc/X11/XF86Config. Set it up, the manually comb tru the bottom of XF86Config where the "screen" dsiplay subsection are. IIRC, if you specified a subsection for your screen resolution with the colourdepth, this should say "DefaultColorDepth 16".

If that turns out fine, add the line ":0 local /etc/X11/X -bpp 16" in /etc/X11/xdm/Xservers, or create a file .xserverrc and put the line "exec XF86_S3 -bpp 16 :0" in it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
WHY should I type startx twice to startx? hiux Debian 6 09-09-2005 10:12 AM
Bug / Xwindows / startx : xinit works but startx crash www.rzr.free.fr Linux - Software 4 10-17-2004 09:06 AM
installing stuff and bpp slinky2004 Slackware 3 10-17-2004 12:00 AM
Wrong colours for Wine + Starcraft + 8 bpp wpyh Linux - Games 5 10-07-2004 05:09 AM
startx vs startx -- :2 (font dimension is different!!) moly82 Linux - General 7 09-15-2003 01:11 PM


All times are GMT -5. The time now is 11:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration