how do I set the default resolution? (slackware-current)
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The default resolution on startup (when kdm loads) is 1152 x 900. I can't actually see the whole screen. I need to move the mouse around to view a different section. It's hard for me to explain. Anyways, only once I've logged into my window manager I can enter the command “xrandr -s 0” which then changes the resolution to 1024 x 768. I hate having to enter that xrandr command every singly time I log in. What command do I enter to permanently set the resolution to 1024 x 768?
edit: grammar
Last edited by Drone4four; 11-24-2006 at 06:49 PM.
The default resolution on startup (when kdm loads) is 1152 x 900. I can't actually see the whole screen. I need to move the mouse around to view a different section. It's hard for me to explain. Anyways, only once I've logged into my window manager can I enter the command “xrandr -s 0” which then changes the resolution to 1024 x 768. I hate having to enter that xrandr command every singly time I log in. What command do I enter to permanently set the resolution to 1024 x 768?
It's the virtual desktop feature where the desktop size > screen size. You need to disable it. Run xorgconfig and manually reconfigure with the resolution of your choice and disable virtual desktop. Or alternatively, just edit your /etc/X11/xorg.conf
I removed all references to 1152x768 in my xorg.conf. For some reason, 1152x900 is still an xrandr option.
Code:
invert@314:~$ xrandr
SZ: Pixels Physical Refresh
*0 1024 x 768 ( 390mm x 305mm ) *85
1 800 x 600 ( 390mm x 305mm ) 85
2 640 x 480 ( 390mm x 305mm ) 85
3 1152 x 900 ( 390mm x 305mm ) 85
Current rotation - normal
Current reflection - none
Rotations possible - normal
Reflections possible - none
invert@314:~$
Here is the screen section of my xorg.conf:
Code:
# **********************************************************************
# Screen sections
# **********************************************************************
# Any number of screen sections may be present. Each describes
# the configuration of a single screen. A single specific screen section
# may be specified from the X server command line with the "-screen"
# option.
Section "Screen"
Identifier "Screen 1"
Device "i845G"
Monitor "SyncMaster 700NF"
DefaultDepth 24
Subsection "Display"
Depth 8
Modes "1024x768" "1280x1024" "800x600" "640x480"
ViewPort 0 0
Virtual 1600 1280
EndSubsection
Subsection "Display"
Depth 16
Modes "1024x768" "1280x1024" "800x600" "640x480"
ViewPort 0 0
Virtual 1280 1024
EndSubsection
Subsection "Display"
Depth 24
Modes "1024x768" "1280x1024" "800x600" "640x480"
ViewPort 0 0
Virtual 1024 768
EndSubsection
EndSection
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.