LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices

Reply
 
LinkBack Search this Thread
Old 06-07-2006, 02:50 PM   #1
YankeeFan
LQ Newbie
 
Registered: Jun 2006
Posts: 21

Rep: Reputation: 15
Laptop screen shrinks when closed


gentle folk;
I am a linux newbie. I'm enjoying the learning curve. I installed rhel4 on a dell c-600 laptop (very used) for learning purposes.

With help, I've worked through a couple of bugs and am learning a bit.

Here is one our linux guru hasn't seen before and I was hoping someone here has.

When my laptop is running and I close the top (display) down and re-open it, my display window shrinks. I see about an inch-and-a-half of black screen border on all four sides. Nothing seems to be cut off, the whole display screen just shrinks.

If anyone knows what causes this, how to fix it, or at least how to make the screen full size again when it happens, I'd appreciate the help.

Thanks for any tips...
YankeeFan
 
Old 06-07-2006, 02:57 PM   #2
Tino27
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: SuSE 8.2, Slackware current, OpenBSD 3.5-3.8, Fedora Core 2
Posts: 400

Rep: Reputation: 30
When you shut the lid, is the laptop going into sleep mode? Or is it just turning the screen off, but leaving the computer running in normal mode?

My first guess at solving your problem might be the addition of a Modeline entry into your /etc/X11/xorg.conf file in the section that defines the Display. Perhaps when the computer is turning the screen back on after opening the laptop, it isn't making a correct "guess" as to the size of the actual screen.
 
Old 06-07-2006, 08:44 PM   #3
YankeeFan
LQ Newbie
 
Registered: Jun 2006
Posts: 21

Original Poster
Rep: Reputation: 15
Screen shrinks when closing laptop and reopening

Thank you for your post.

Okay, here is an unscientific test.
I just logged onto my laptop and the display is fullscreen normal.

I read your post and closed the lid and reopened it right away. It was immediately shrunken to what I described above. Hmmmm!!

I do not of what you speak: is it going into sleep mode or just turning the screen off and running normal. I mean to say, I do not know which mode the laptop goes into.

I will attempt what you suggest. Wish me luck.

YankeeFan...
 
Old 06-07-2006, 09:13 PM   #4
YankeeFan
LQ Newbie
 
Registered: Jun 2006
Posts: 21

Original Poster
Rep: Reputation: 15
I dis the following to no avail...

In /etc/X11/xorg.conf,

In the "Section Screen", this is what I see

Identifier "Screen0"
Device "VideoCard0"
Monitor "Monitor0"
DefaultDepth 24

SubSection "Display"
ViewPort 0 0
Depth 24
Modes "800x600" "640x800"
EndSubSection

EndSection

I removed the "640x800" from both blocks.
I saved and rebooted.
The problem still exists, the screen still shrinks.

Am I interpreting your tip incorrectly?
Thanks again for the help.
 
Old 06-08-2006, 08:18 AM   #5
Tino27
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: SuSE 8.2, Slackware current, OpenBSD 3.5-3.8, Fedora Core 2
Posts: 400

Rep: Reputation: 30
There are two differents uses of the word "Mode" in your xorg.conf.

One is in your "Monitor" section. This would be the "Modeline" keyword and is used as follows ...

Section "Monitor"
Identifier "Dell LCD"
HorizSync 31.5 - 48.5
VertRefresh 40.0 - 70.0
Option "DPMS"
UseModes "Modes1"
EndSection

Section "Modes"
Identifier "Modes1"
Modeline "1280x1024" 75.13 1280 1336 1472 1664 1024 1025 1028 1050 -hsync +vsync
Modeline "1400x1050" 84.76 1400 1472 1616 1832 1050 1051 1054 1076 -hsync +vsync
EndSection

Modeline in this case tells the X server exactly the dimensions on your display. X does it's best to try and guess this information, but sometimes (such as in my case), you have to specify the exact numbers.

"Modes" keyword is used in the "Screen" section in the "Display" subsection. This keyword tells the X server what resolutions are supported at particular bit levels. So, in my case ...

SubSection "Display"
Depth 24
Modes "1400x1050" "1280x1024"
EndSubSection

To figure out the correct modeline values, either check out a similar laptop at http://www.linux-on-laptops.com or use the generator located here http://xtiming.sourceforge.net/cgi-bin/xtiming.pl

I hope that clears up some confusion.
 
Old 06-09-2006, 12:05 PM   #6
YankeeFan
LQ Newbie
 
Registered: Jun 2006
Posts: 21

Original Poster
Rep: Reputation: 15
Screen Shrinks When Closed then Opened

Tino27, Thank you! Thank you!!

Sorry I haven't commented back in a day or two - I've been away. Your fix almost worked. I had to play with the section "Monitor" section a bit.

Re Yours:
Section "Monitor"
Identifier "Dell LCD"
HorizSync 31.5 - 48.5
VertRefresh 40.0 - 70.0
Option "DPMS"
UseModes "Modes1"
EndSection

I ended up using:

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Dell 1024x768 Laptop Display Panel"
HorizSync 31.5 - 48.5
VertRefresh 59.0 - 75.0
Option "dpms"
EndSection

Under section "Screen" subsection "Display", I added
1024 to the Modes line:
Modes "1024x768" "800x600" "640x480"

I had no idea how to fix this problem. You posted and got me thinking I could. Your post lead me to search for other xorg.conf entries for c600's. A couple of errors and recoverys later, I realized I needed to add 1024x768 to the modes line and get a modelname that worked in the Monitor section.

Thanks again for taking the time to help me with this. I want to learn, but books do not give me the extra tid bits other users do.

Cheers!!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
laptop lid won't shut off when closed houler Slackware 32 08-27-2005 11:59 PM
acroread convert to postscript to always shrinks pdf? chaos215bar2 Linux - Software 2 06-01-2005 10:04 PM
Laptop looses screen when closed GrizzlyOne Linux - Laptop and Netbook 9 01-24-2005 11:25 AM
Laptop acts funny when screen is closed larley Linux - Laptop and Netbook 1 10-05-2004 05:23 PM
Mandrake 9.2 freezes when screen is closed alexchannell Linux - Laptop and Netbook 6 11-05-2003 11:50 PM


All times are GMT -5. The time now is 04:53 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration