LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-05-2004, 11:04 PM   #1
bob4432
LQ Newbie
 
Registered: Jun 2004
Posts: 13

Rep: Reputation: 0
Video Problem with Mandrak 10


hello,

i had mandrake 10 running well up until now. i set the video display from 16 to 15bits and i was told to restart. now when i startup all i get is a console, no gui. i tried "startx" but i get an error that says my display adapter doesn't support 15bit. how do i change it back to 16bit without a gui?

thanks in advance...
 
Old 07-05-2004, 11:22 PM   #2
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
As root you will have to edit you XF86Config file which will be something like

/etc/X11/XF86Config
/etc/X11/XF86Config-4

or whatever... Towards the bottom in the screens section look for something like

DefaultColorDepth 15

and change it... See how that goes.
 
Old 07-05-2004, 11:38 PM   #3
bob4432
LQ Newbie
 
Registered: Jun 2004
Posts: 13

Original Poster
Rep: Reputation: 0
i am a real noob, how do i view the file? and change it?
 
Old 07-06-2004, 12:23 AM   #4
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Dang... I suppose you'll need a crash course in vi. It's the only editor you are like to have

Okay, you will need to be root. That means using

su

and then typing in your admin or root password.

Then you will need something like

vi /etc/X11/XF86Config-4

or it may be /etc/X11/XF86Config, or other... Depends on the system but maybe we'll get lucky here

once you have the XF86Config file opened, you can use the cursor keys to scroll down and find the line you need... vi is in move around mode at the moment (it's a little odd to get used to) Look for something like:

DefaultColorDepth 15

Get the cursor near the 15 and then hit the insert key. vi will now be in edit mode and you can use the keys and delete or whatever to edit the number back to 16

when finished, hit ESC (escape) to go out of edit mode.

then you can write the file back to the disk by typing

:w

you can then quit vi with by typing

:q

If you screw up[ at any time, just hit ESC a couple of times and type

:q!

to get out without saving and then you can start again at the top

Hope to heck this helps you
 
Old 07-06-2004, 12:35 AM   #5
bob4432
LQ Newbie
 
Registered: Jun 2004
Posts: 13

Original Poster
Rep: Reputation: 0
thank you very much for your help,

i logged in as root and used this command:
sed -i~ 's/DefaultColorDepth.*$/DefaultColorDepth 16/' /etc/X11/XF86Config-4

and it worked

thanks again, i will mess around with what you instructed me to do to try it out

thanks again
 
Old 07-06-2004, 12:43 AM   #6
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Well, that's the quick way I thought I'd stick with vi to keep it 'simple'

It does pay to learn vi for these times in case you have to do a lot of edit work without X running...

Mind you I tend to always install jed

glad you got it going...
 
Old 07-06-2004, 07:39 AM   #7
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Jed's awesome. Nano is included with Mandrake by default. Its also quite easy to use (what came with my Gentoo base system, and I've been too lazy to bother installing jed. LOL)
 
  


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
Mandrak display apurdy Linux - Newbie 7 10-08-2005 09:04 PM
editing fstab in mandrak lmcilwain Linux - Newbie 2 04-21-2004 02:03 PM
Mandrak MNF 9.0 Problem. dsheppard Linux - Newbie 8 08-06-2003 01:04 PM
Netcard problems in Mandrak 9.1 cmull123 Linux - Hardware 1 06-24-2003 05:09 AM
Mouse stays in top left corner after Mandrak 9 Install could be problem with X Shorty Linux - Newbie 4 04-09-2003 10:06 PM


All times are GMT -5. The time now is 07:29 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